hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT ALL - + CASE 13 WHEN + COUNT( * ) + - 67 THEN - 57 * + 49 * - 91 END / - ( + + 51 ) + + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL - + CASE 13 WHEN + COUNT ( * ) + - 67 THEN - 57 * + 49 * - 91 END / - ( + + 51 ) + + 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT + 86 * + - COALESCE ( + - 14, 5 + + ( - 65 ) ) + + 0 - + - COUNT( * )
----
1205

skipif mysql # not compatible
query I rowsort label-1
SELECT + 86 * + - COALESCE ( + - 14, 5 + + ( - 65 ) ) + + 0 - + - COUNT ( * )
----
1205

query I rowsort
SELECT DISTINCT + + 87 col1
----
87

query I rowsort
SELECT - 81 * - 44 AS col2
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT - COUNT( * ) * + 91 * + - MAX( + 14 ) AS col1
----
1274

skipif mysql # not compatible
query I rowsort label-4
SELECT - COUNT ( * ) * + 91 * + - MAX ( + 14 ) AS col1
----
1274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5
SELECT - COUNT( * ) * - 97 * - COALESCE ( + CAST( + 68 AS SIGNED ), - + CASE - + 63 WHEN - + COALESCE ( + COUNT( + 70 ), - 26 * - NULLIF ( + + 37, - 4 ) ) / COUNT( ALL 42 ) * + + CAST( - COUNT( DISTINCT + 49 ) AS SIGNED ) + - 79 * - COUNT( * ) THEN - COALESCE ( - COUNT( * ), - 37 ) + + MIN( + 71 ) WHEN 27 * - 52 THEN NULL ELSE NULL END ) AS col2
----
-6596

skipif mysql # not compatible
query I rowsort label-5
SELECT - COUNT ( * ) * - 97 * - COALESCE ( + CAST ( + 68 AS INTEGER ), - + CASE - + 63 WHEN - + COALESCE ( + COUNT ( + 70 ), - 26 * - NULLIF ( + + 37, - 4 ) ) / COUNT ( ALL 42 ) * + + CAST ( - COUNT ( DISTINCT + 49 ) AS INTEGER ) + - 79 * - COUNT ( * ) THEN - COALESCE ( - COUNT ( * ), - 37 ) + + MIN ( + 71 ) WHEN 27 * - 52 THEN NULL ELSE NULL END ) AS col2
----
-6596

query I rowsort
SELECT - NULLIF ( - 35, - + 50 * 89 ) * - - 94 AS col1
----
3290

query I rowsort
SELECT CASE AVG ( + - 67 ) WHEN 5 * + 59 THEN NULL WHEN - + AVG ( ALL + 84 ) * - + 21 + - 17 THEN NULL ELSE + 66 * - 37 END
----
-2442

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT + 68 DIV - 4 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-8
SELECT + 68 / - 4 AS col2
----
-17

query I rowsort
SELECT - 38 + - 54 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-10
SELECT ALL ( + 55 ), MIN( ALL 12 ) col2
----
55
12

skipif mysql # not compatible
query II rowsort label-10
SELECT ALL ( + 55 ), MIN ( ALL 12 ) col2
----
55
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-11
SELECT DISTINCT + 74 * - 20 DIV - COUNT( * )
----
1480

skipif mysql # not compatible
query I rowsort label-11
SELECT DISTINCT + 74 * - 20 / - COUNT ( * )
----
1480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-12
SELECT ALL NULLIF ( - - CAST( 26 AS SIGNED ), 14 * - - ( 98 ) ) DIV COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL NULLIF ( - - CAST ( 26 AS INTEGER ), 14 * - - ( 98 ) ) / COUNT ( * )
----
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-13
SELECT + 8 - + COUNT( ( - ( CAST( 44 AS DECIMAL ) ) ) )
----
7

skipif mysql # not compatible
query I rowsort label-13
SELECT + 8 - + COUNT ( ( - ( CAST ( 44 AS REAL ) ) ) )
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT ALL MAX( + - 55 ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL MAX ( + - 55 ) col2
----
-55

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

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL COUNT ( * ) / CAST ( NULL AS INTEGER ) + + + 23 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-17
SELECT - 63 / - 61 + + COUNT( DISTINCT - 19 ) + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-17
SELECT - 63 / - 61 + + COUNT ( DISTINCT - 19 ) + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-18
SELECT + 2 * - ( - - CAST( - 70 AS SIGNED ) ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-18
SELECT + 2 * - ( - - CAST ( - 70 AS INTEGER ) ) AS col1
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-19
SELECT 30 + - - 96 - - 4 + - + 77 + + 67 * + CAST( NULL AS SIGNED ) / ( - + 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-19
SELECT 30 + - - 96 - - 4 + - + 77 + + 67 * + CAST ( NULL AS INTEGER ) / ( - + 58 )
----
NULL

query I rowsort
SELECT ALL + 12 * + 73
----
876

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

skipif mysql # not compatible
query I rowsort label-21
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-22
SELECT DISTINCT 64 + 63 DIV + 97 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT 64 + 63 / + 97 AS col1
----
64

query I rowsort
SELECT ALL + ( ( - + 49 ) ) + 55 * 74
----
4021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-24
SELECT ALL + 52 + + 33 + 53 + + 68 * + COUNT( * ) * - + NULLIF ( + + NULLIF ( - ( 4 ), ( - 61 ) * + 86 * 18 + - 24 + - 89 * NULLIF ( - + 8, - CAST( NULL AS SIGNED ) + 10 * 11 ) ), COALESCE ( + 37, 11 ) + ( 72 ) * - COUNT( * ) )
----
410

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL + 52 + + 33 + 53 + + 68 * + COUNT ( * ) * - + NULLIF ( + + NULLIF ( - ( 4 ), ( - 61 ) * + 86 * 18 + - 24 + - 89 * NULLIF ( - + 8, - CAST ( NULL AS INTEGER ) + 10 * 11 ) ), COALESCE ( + 37, 11 ) + ( 72 ) * - COUNT ( * ) )
----
410

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

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

query I rowsort
SELECT DISTINCT + 18 + + + 81 + + + 57
----
156

query I rowsort
SELECT - 79 * + - 11 col1
----
869

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT NULLIF ( - + 25, - - COUNT( * ) ) + + 86 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-29
SELECT NULLIF ( - + 25, - - COUNT ( * ) ) + + 86 AS col1
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-30
SELECT ALL - 36 DIV + 1 AS col2, COUNT( * ) + + - NULLIF ( + + 92, + 41 ) AS col0
----
-36
-91

skipif mysql # not compatible
query II rowsort label-30
SELECT ALL - 36 / + 1 AS col2, COUNT ( * ) + + - NULLIF ( + + 92, + 41 ) AS col0
----
-36
-91

query I rowsort
SELECT - - 23 * + 76 + - 61 * - - 87 + 51 - + 40 AS col1
----
-3548

query I rowsort
SELECT ALL - 23 - + + 34 col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-33
SELECT ALL CAST( NULL AS DECIMAL ) / COALESCE ( - - 33, + COALESCE ( + - NULLIF ( + 90, - COUNT( * ) + - MIN( ALL 93 ) ), MAX( - + 38 ) ), + - COUNT( * ) ) * + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL CAST ( NULL AS REAL ) / COALESCE ( - - 33, + COALESCE ( + - NULLIF ( + 90, - COUNT ( * ) + - MIN ( ALL 93 ) ), MAX ( - + 38 ) ), + - COUNT ( * ) ) * + 36
----
NULL

query II rowsort
SELECT + 47 AS col2, 5 col0
----
47
5

query I rowsort
SELECT 41 * - 82
----
-3362

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-36
SELECT 83 DIV ( - + ( + + COUNT( * ) ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-36
SELECT 83 / ( - + ( + + COUNT ( * ) ) ) AS col2
----
-83

query I rowsort
SELECT 86 + 76 AS col2
----
162

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

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

query II rowsort
SELECT + 15 col1, 6
----
15
6

query I rowsort
SELECT DISTINCT 27 * - 83
----
-2241

query II rowsort
SELECT + 69 AS col2, + 8
----
69
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-42
SELECT ALL - COALESCE ( + + 97, CAST( - 79 AS SIGNED ) + + 73 ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL - COALESCE ( + + 97, CAST ( - 79 AS INTEGER ) + + 73 ) col2
----
-97

query I rowsort
SELECT 82 * - + 21 AS col1
----
-1722

onlyif mysql # aggregate syntax: 
query II rowsort label-44
SELECT ALL - COUNT( * ) AS col2, + CASE + 31 WHEN - 54 THEN - 11 END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-44
SELECT ALL - COUNT ( * ) AS col2, + CASE + 31 WHEN - 54 THEN - 11 END
----
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-45
SELECT DISTINCT 79, SUM( 14 ) AS col2
----
79
14

skipif mysql # not compatible
query II rowsort label-45
SELECT DISTINCT 79, SUM ( 14 ) AS col2
----
79
14

query I rowsort
SELECT 1 + 28 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-47
SELECT CAST( - COALESCE ( + 98, + COUNT( * ) * - - COUNT( * ) ) AS SIGNED ) * + 75 * 47 - - 5 * + COUNT( * ) - - 70 AS col1
----
-345375

skipif mysql # not compatible
query I rowsort label-47
SELECT CAST ( - COALESCE ( + 98, + COUNT ( * ) * - - COUNT ( * ) ) AS INTEGER ) * + 75 * 47 - - 5 * + COUNT ( * ) - - 70 AS col1
----
-345375

query I rowsort
SELECT 11 + 32
----
43

query I rowsort
SELECT DISTINCT + 43 * - 69 AS col1
----
-2967

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-50
SELECT - + 42 AS col0, 13 DIV + SUM( ALL 89 ) + + - 66
----
-42
-66

skipif mysql # not compatible
query II rowsort label-50
SELECT - + 42 AS col0, 13 / + SUM ( ALL 89 ) + + - 66
----
-42
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT DISTINCT + - 65 * - MAX( - 96 ) * - - 95
----
-592800

skipif mysql # not compatible
query I rowsort label-51
SELECT DISTINCT + - 65 * - MAX ( - 96 ) * - - 95
----
-592800

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT DISTINCT + COUNT( ALL 97 ) + - 98 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT + COUNT ( ALL 97 ) + - 98 AS col2
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-53
SELECT DISTINCT + + 53 + 78 DIV - 14 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT + + 53 + 78 / - 14 AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-54
SELECT DISTINCT + COUNT( ALL - 95 ) DIV + - 8 + 59 - + 92 - - + 70 DIV + 8
----
-25

skipif mysql # not compatible
query I rowsort label-54
SELECT DISTINCT + COUNT ( ALL - 95 ) / + - 8 + 59 - + 92 - - + 70 / + 8
----
-25

query I rowsort
SELECT DISTINCT - 48 + + - 62 - - - 67 * - ( - ( - 98 ) ) col0
----
6456

query I rowsort
SELECT DISTINCT + 89 + - 59
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-57
SELECT COUNT( * ) + 35 + + 98 AS col1, 93 AS col0
----
134
93

skipif mysql # not compatible
query II rowsort label-57
SELECT COUNT ( * ) + 35 + + 98 AS col1, 93 AS col0
----
134
93

query I rowsort
SELECT ALL + - 52 + - 90 AS col2
----
-142

onlyif mysql # DIV for integer division: 
query II rowsort label-59
SELECT DISTINCT - 98 DIV + 37 + + 95 * - ( + + 95 ) * - 32, + 97 col1
----
288798
97

skipif mysql # not compatible
query II rowsort label-59
SELECT DISTINCT - 98 / + 37 + + 95 * - ( + + 95 ) * - 32, + 97 col1
----
288798
97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-61
SELECT MAX( DISTINCT - - 25 ) * 24 AS col0, 48 AS col0
----
600
48

skipif mysql # not compatible
query II rowsort label-61
SELECT MAX ( DISTINCT - - 25 ) * 24 AS col0, 48 AS col0
----
600
48

query I rowsort
SELECT + 90 * - - 28 * ( - 58 ) + - + 20 * + 61 + + - 55 AS col0
----
-147435

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

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

query II rowsort
SELECT ALL 20 AS col1, 80 col2
----
20
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-65
SELECT ALL - CAST( + + ( - + CASE + CASE + CAST( NULL AS SIGNED ) WHEN 32 * + 36 * COUNT( * ) THEN + CAST( NULL AS SIGNED ) ELSE - 79 - + ( - + 97 ) END WHEN ( - COUNT( * ) ) * + 50 + + 20 THEN + 73 * - - 42 + - 30 WHEN - 66 THEN NULL END ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL - CAST ( + + ( - + CASE + CASE + CAST ( NULL AS INTEGER ) WHEN 32 * + 36 * COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) ELSE - 79 - + ( - + 97 ) END WHEN ( - COUNT ( * ) ) * + 50 + + 20 THEN + 73 * - - 42 + - 30 WHEN - 66 THEN NULL END ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 46 * + - 48
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT ( + CASE COUNT( * ) WHEN - 10 THEN - COALESCE ( - 87, + 90 ) WHEN COUNT( * ) + + - 67 THEN NULL ELSE NULL END ) * 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT ( + CASE COUNT ( * ) WHEN - 10 THEN - COALESCE ( - 87, + 90 ) WHEN COUNT ( * ) + + - 67 THEN NULL ELSE NULL END ) * 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-68
SELECT + SUM( - 73 ) AS col2, + 39
----
-73
39

skipif mysql # not compatible
query II rowsort label-68
SELECT + SUM ( - 73 ) AS col2, + 39
----
-73
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-69
SELECT - 78 * + COUNT( * ) - + + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col1, + MAX( 25 ) AS col1
----
-78
25

skipif mysql # not compatible
query II rowsort label-69
SELECT - 78 * + COUNT ( * ) - + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1, + MAX ( 25 ) AS col1
----
-78
25

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT MIN( ALL - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-70
SELECT MIN ( ALL - 10 )
----
-10

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-72
SELECT MIN( DISTINCT + 57 ) col2, - 25 col1
----
57
-25

skipif mysql # not compatible
query II rowsort label-72
SELECT MIN ( DISTINCT + 57 ) col2, - 25 col1
----
57
-25

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

skipif mysql # not compatible
query I rowsort label-73
SELECT SUM ( DISTINCT - 12 )
----
-12

query I rowsort
SELECT 76 * - 75 col2
----
-5700

query I rowsort
SELECT ALL 50 * + 32
----
1600

query I rowsort
SELECT ALL 21 + + + 31
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-77
SELECT DISTINCT 79 DIV ( 83 ) * - COUNT( * ) * - + 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT 79 / ( 83 ) * - COUNT ( * ) * - + 27 AS col1
----
0

query II rowsort
SELECT ALL - 2 + - 66 AS col0, 27
----
-68
27

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT - 26 DIV + + 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-79
SELECT - 26 / + + 39 AS col0
----
0

query I rowsort
SELECT ALL COALESCE ( - 75, + 21 + 63 ) + - 41
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT ( + + CASE - 53 WHEN 59 + + - 72 + + COUNT( * ) THEN - 65 END ) * - 61 * + - ( + - 25 ) + - 3 + ( - 21 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-81
SELECT ( + + CASE - 53 WHEN 59 + + - 72 + + COUNT ( * ) THEN - 65 END ) * - 61 * + - ( + - 25 ) + - 3 + ( - 21 ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 5 + - 27
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT ALL - - 92 + - 52 + + + 88 + MIN( 14 ) * 30 * 51 * - 98 AS col0
----
-2099032

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL - - 92 + - 52 + + + 88 + MIN ( 14 ) * 30 * 51 * - 98 AS col0
----
-2099032

query I rowsort
SELECT ALL 85 + + 62 AS col2
----
147

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

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

query I rowsort
SELECT - + 24 * + 37 + 49 * + 51
----
1611

query I rowsort
SELECT DISTINCT - 2 * 91
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT - - 91 + + + 34 + - + 92 + - SUM( ALL + 30 ) * ( - 46 ) * - 36
----
-49647

skipif mysql # not compatible
query I rowsort label-88
SELECT - - 91 + + + 34 + - + 92 + - SUM ( ALL + 30 ) * ( - 46 ) * - 36
----
-49647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-89
SELECT + + 80 * COUNT( - + 2 ) - + COUNT( * ) * - 54 + + SUM( ALL 0 ) + - + 47 + ( - CAST( NULL AS SIGNED ) ) + 61 + - 32 / - 31 * - - CAST( NULL AS SIGNED ) * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-89
SELECT + + 80 * COUNT ( - + 2 ) - + COUNT ( * ) * - 54 + + SUM ( ALL 0 ) + - + 47 + ( - CAST ( NULL AS INTEGER ) ) + 61 + - 32 / - 31 * - - CAST ( NULL AS INTEGER ) * + 83
----
NULL

query I rowsort
SELECT ALL - - 88 * + 41 * + - 84 * - + 53
----
16062816

query I rowsort
SELECT - - 5 + - + 15 + - 91 AS col0
----
-101

query I rowsort
SELECT + ( ( + 34 ) ) AS col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-93
SELECT DISTINCT - + 38 * COUNT( * ) + - + 33 * + + 88 + - 3 * + + 43 + - - 87 + + + 51 * CAST( NULL AS SIGNED ) + + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT - + 38 * COUNT ( * ) + - + 33 * + + 88 + - 3 * + + 43 + - - 87 + + + 51 * CAST ( NULL AS INTEGER ) + + + 48
----
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-97
SELECT - + 22 - 25 AS col0, - CAST( - 89 AS SIGNED ) col0
----
-47
89

skipif mysql # not compatible
query II rowsort label-97
SELECT - + 22 - 25 AS col0, - CAST ( - 89 AS INTEGER ) col0
----
-47
89

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-99
SELECT ALL - 53 DIV + ( - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL - 53 / + ( - 34 )
----
1

query I rowsort
SELECT ALL NULLIF ( - + 6, - + 92 ) AS col1
----
-6

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-103
SELECT - COALESCE ( - 80, - NULLIF ( + COUNT( * ), - ( + - 2 ) ) DIV + + 28 - - NULLIF ( - SUM( DISTINCT - - CAST( + ( - 93 ) AS SIGNED ) ), 93 ), - NULLIF ( + - COUNT( * ), - ( ( 26 ) ) ) ) + 96 * + 74
----
7184

skipif mysql # not compatible
query I rowsort label-103
SELECT - COALESCE ( - 80, - NULLIF ( + COUNT ( * ), - ( + - 2 ) ) / + + 28 - - NULLIF ( - SUM ( DISTINCT - - CAST ( + ( - 93 ) AS INTEGER ) ), 93 ), - NULLIF ( + - COUNT ( * ), - ( ( 26 ) ) ) ) + 96 * + 74
----
7184

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT - 69 DIV 28 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-104
SELECT - 69 / 28 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT + SUM( ALL 73 ) * + SUM( DISTINCT 94 ) * 14 AS col1
----
96068

skipif mysql # not compatible
query I rowsort label-105
SELECT + SUM ( ALL 73 ) * + SUM ( DISTINCT 94 ) * 14 AS col1
----
96068

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT ALL - 33 DIV - - 57
----
0

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL - 33 / - - 57
----
0

query I rowsort
SELECT + 51 * 18
----
918

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

skipif mysql # not compatible
query I rowsort label-108
SELECT COUNT ( * ) * CAST ( - 65 AS INTEGER ) + MIN ( ALL + 9 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT ALL 74 * - COALESCE ( - MIN( ALL + 69 ), 82 )
----
5106

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL 74 * - COALESCE ( - MIN ( ALL + 69 ), 82 )
----
5106

query I rowsort
SELECT DISTINCT + 8 col1
----
8

query I rowsort
SELECT ALL 36 * + - 20 + + - 56 + 85 * + + 44 * + 19
----
70284

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-113
SELECT + 15 * + NULLIF ( - 21, 79 + + CAST( - COUNT( * ) AS SIGNED ) ) * - - COUNT( * ) col2
----
-315

skipif mysql # not compatible
query I rowsort label-113
SELECT + 15 * + NULLIF ( - 21, 79 + + CAST ( - COUNT ( * ) AS INTEGER ) ) * - - COUNT ( * ) col2
----
-315

query I rowsort
SELECT ALL - 61 * + 85
----
-5185

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT ALL - CASE 76 WHEN - 90 / 60 + + + 40 THEN + + ( 30 ) WHEN - - COUNT( * ) THEN NULL WHEN - 34 THEN + ( ( - 96 ) ) ELSE NULL END * + 13 + 45 + - + 92 * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL - CASE 76 WHEN - 90 / 60 + + + 40 THEN + + ( 30 ) WHEN - - COUNT ( * ) THEN NULL WHEN - 34 THEN + ( ( - 96 ) ) ELSE NULL END * + 13 + 45 + - + 92 * - 26
----
NULL

query I rowsort
SELECT DISTINCT 73 * ( - 76 )
----
-5548

query I rowsort
SELECT - 79 * 79
----
-6241

query I rowsort
SELECT 70 * - - 35 * + 14 + ( 27 )
----
34327

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT NULLIF ( - 87, - MIN( ALL 94 ) ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-119
SELECT NULLIF ( - 87, - MIN ( ALL 94 ) ) AS col2
----
-87

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

query I rowsort
SELECT + 61 + - + 40 AS col2
----
21

query I rowsort
SELECT + 49 * - + 56
----
-2744

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT ALL 61 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL 61 / - 67
----
0

query I rowsort
SELECT + NULLIF ( - 77, + 24 / 14 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT ALL + MAX( - + 59 ) * - 75 * - 30 * 4 + - 37 + + 95 AS col2
----
-530942

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL + MAX ( - + 59 ) * - 75 * - 30 * 4 + - 37 + + 95 AS col2
----
-530942

query I rowsort
SELECT + ( - 85 ) col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT + ( + COALESCE ( + 23, + 27 * - 51, - SUM( ALL + ( 58 ) ) ) ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT + ( + COALESCE ( + 23, + 27 * - 51, - SUM ( ALL + ( 58 ) ) ) ) AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-128
SELECT ALL - MIN( - 2 ) DIV 5 * - 5 * - 18
----
0

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL - MIN ( - 2 ) / 5 * - 5 * - 18
----
0

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

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL COUNT ( DISTINCT - + ( + - 43 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 31 * + + 62 AS col2
----
1922

query I rowsort
SELECT ALL 1 * - + 14 AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-132
SELECT + 75 * ( + 86 ) DIV + + 79 + - 26 DIV - 42 * - ( - 54 ) - 95
----
-14

skipif mysql # not compatible
query I rowsort label-132
SELECT + 75 * ( + 86 ) / + + 79 + - 26 / - 42 * - ( - 54 ) - 95
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-133
SELECT - 45 * 66 + - + NULLIF ( 59, - + MAX( ALL + 20 ) - ( - - COUNT( * ) ) ) DIV - COUNT( * ) AS col2
----
-2911

skipif mysql # not compatible
query I rowsort label-133
SELECT - 45 * 66 + - + NULLIF ( 59, - + MAX ( ALL + 20 ) - ( - - COUNT ( * ) ) ) / - COUNT ( * ) AS col2
----
-2911

query I rowsort
SELECT + 89 * 25 AS col1
----
2225

query I rowsort
SELECT + 98 + + - 4 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT DISTINCT - 7 - NULLIF ( COUNT( * ), COALESCE ( + 13, - MIN( CASE + - 24 WHEN 39 + 29 THEN - 73 ELSE + 63 END ) * + - 84, ( + + 77 ) + + 36 * 70 ) - - + 41 )
----
-8

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT - 7 - NULLIF ( COUNT ( * ), COALESCE ( + 13, - MIN ( CASE + - 24 WHEN 39 + 29 THEN - 73 ELSE + 63 END ) * + - 84, ( + + 77 ) + + 36 * 70 ) - - + 41 )
----
-8

query I rowsort
SELECT DISTINCT - 96 * - 20 AS col1
----
1920

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

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

query II rowsort
SELECT ALL 82 col2, 26 * 77
----
82
2002

query I rowsort
SELECT + - 68 * - + 36 - - - ( + 9 ) AS col1
----
2439

query I rowsort
SELECT ALL NULLIF ( 31, - 60 - 74 )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-142
SELECT - - MIN( ALL + - 88 ) + + + 23 AS col0, 62 * - + 39 + + + 85 * 41 * + 4 * - 21 AS col1
----
-65
-295158

skipif mysql # not compatible
query II rowsort label-142
SELECT - - MIN ( ALL + - 88 ) + + + 23 AS col0, 62 * - + 39 + + + 85 * 41 * + 4 * - 21 AS col1
----
-65
-295158

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT - 47 + CASE + COALESCE ( - 55, 58 + + 78, - 29 * + + 25 ) WHEN - 76 THEN - 93 + - 17 + MIN( ALL + 47 ) WHEN - COUNT( + - 86 ) THEN + 20 END + + 16 + + 30 / COUNT( * ) + - + COUNT( * ) * - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-144
SELECT - 47 + CASE + COALESCE ( - 55, 58 + + 78, - 29 * + + 25 ) WHEN - 76 THEN - 93 + - 17 + MIN ( ALL + 47 ) WHEN - COUNT ( + - 86 ) THEN + 20 END + + 16 + + 30 / COUNT ( * ) + - + COUNT ( * ) * - 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-145
SELECT - SUM( 74 ) DIV - COALESCE ( - - 47, + + COUNT( * ), - - 96 * - + MIN( DISTINCT - 62 ) - - - 90, + COUNT( * ) DIV + 79 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-145
SELECT - SUM ( 74 ) / - COALESCE ( - - 47, + + COUNT ( * ), - - 96 * - + MIN ( DISTINCT - 62 ) - - - 90, + COUNT ( * ) / + 79 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-146
SELECT ALL 63 DIV ( - + 35 ) * + 19 + - COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL 63 / ( - + 35 ) * + 19 + - COUNT ( * ) AS col0
----
-20

query I rowsort
SELECT DISTINCT + 47 * 23 AS col1
----
1081

onlyif mysql # DIV for integer division: 
query I rowsort label-148
SELECT ALL - 84 DIV 20 + ( + 54 ) + 98 + 2 AS col1
----
150

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL - 84 / 20 + ( + 54 ) + 98 + 2 AS col1
----
150

query I rowsort
SELECT ALL - COALESCE ( - 66, - 41 + ( - 30 ) ) col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT ALL + COUNT( * ) + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL + COUNT ( * ) + - 90
----
-89

query I rowsort
SELECT + ( - - 17 ) * 27 - + 75
----
384

query II rowsort
SELECT 16, 4 AS col0
----
16
4

onlyif mysql # aggregate syntax: 
query II rowsort label-153
SELECT ALL - COUNT( * ) + + 64 AS col0, - 73 AS col2
----
63
-73

skipif mysql # not compatible
query II rowsort label-153
SELECT ALL - COUNT ( * ) + + 64 AS col0, - 73 AS col2
----
63
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT ( + 22 ) DIV + COALESCE ( - 21, - 49 + - 39, + 31 ) - 67
----
-68

skipif mysql # not compatible
query I rowsort label-154
SELECT ( + 22 ) / + COALESCE ( - 21, - 49 + - 39, + 31 ) - 67
----
-68

query II rowsort
SELECT ALL - 72 AS col1, 52 + + - 44 AS col0
----
-72
8

onlyif mysql # aggregate syntax: 
query II rowsort label-156
SELECT 35 AS col0, MIN( + 33 ) + - 79 - - + 20
----
35
-26

skipif mysql # not compatible
query II rowsort label-156
SELECT 35 AS col0, MIN ( + 33 ) + - 79 - - + 20
----
35
-26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT ALL - 39 + - - 70 * - COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL - 39 + - - 70 * - COUNT ( * )
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-159
SELECT DISTINCT COUNT( - ( - + 4 ) ) * - MAX( - CAST( + 74 AS SIGNED ) ) - COUNT( * ) + + CAST( + 26 AS SIGNED ) + - - 76 * - 84
----
-6285

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT COUNT ( - ( - + 4 ) ) * - MAX ( - CAST ( + 74 AS INTEGER ) ) - COUNT ( * ) + + CAST ( + 26 AS INTEGER ) + - - 76 * - 84
----
-6285

query I rowsort
SELECT ALL - 4 - + 78 col0
----
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-161
SELECT ALL - - 63 AS col0, - 1 DIV - 38 + + 62 AS col2
----
63
62

skipif mysql # not compatible
query II rowsort label-161
SELECT ALL - - 63 AS col0, - 1 / - 38 + + 62 AS col2
----
63
62

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

skipif mysql # not compatible
query I rowsort label-162
SELECT 19 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 46 * + 43
----
-1978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-164
SELECT DISTINCT - - CASE - 0 WHEN - 71 - - 21 - - 32 + + CASE - 74 WHEN AVG ( + 39 ) THEN - COUNT( * ) + + - 59 + + 27 * CAST( COUNT( * ) AS SIGNED ) ELSE - - 6 + - 0 END THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT - - CASE - 0 WHEN - 71 - - 21 - - 32 + + CASE - 74 WHEN AVG ( + 39 ) THEN - COUNT ( * ) + + - 59 + + 27 * CAST ( COUNT ( * ) AS INTEGER ) ELSE - - 6 + - 0 END THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 90 - 99 AS col2
----
-9

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-167
SELECT ALL - - 3 AS col1, + 86 + + 46 DIV + 23
----
3
88

skipif mysql # not compatible
query II rowsort label-167
SELECT ALL - - 3 AS col1, + 86 + + 46 / + 23
----
3
88

onlyif mysql # DIV for integer division: 
query II rowsort label-168
SELECT - + 79 * 64 DIV - 26 + 19 + - 64 * - - 81 AS col1, NULLIF ( 31, + 30 DIV + - 46 ) + + 35 AS col2
----
-4971
66

skipif mysql # not compatible
query II rowsort label-168
SELECT - + 79 * 64 / - 26 + 19 + - 64 * - - 81 AS col1, NULLIF ( 31, + 30 / + - 46 ) + + 35 AS col2
----
-4971
66

query I rowsort
SELECT 42 * NULLIF ( - 41, NULLIF ( 13, - 3 ) * + 81 + + ( ( - 19 ) ) )
----
-1722

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-172
SELECT - COUNT( * ) AS col1, + 62 + - 93 AS col0
----
-1
-31

skipif mysql # not compatible
query II rowsort label-172
SELECT - COUNT ( * ) AS col1, + 62 + - 93 AS col0
----
-1
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-173
SELECT - 33 AS col0, + 29 * + + CASE - - ( - - 93 ) WHEN + 65 THEN NULL WHEN + 84 / + 29 * - 79 + 84 + + 76 + + ( - + 19 ) * - 36 + - ( + + 8 ) * - 30 / ( - 59 ) THEN 2 WHEN - 53 - 86 THEN NULL WHEN - 1 THEN + 98 * MAX( 59 * 89 ) END * 10 AS col0
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-173
SELECT - 33 AS col0, + 29 * + + CASE - - ( - - 93 ) WHEN + 65 THEN NULL WHEN + 84 / + 29 * - 79 + 84 + + 76 + + ( - + 19 ) * - 36 + - ( + + 8 ) * - 30 / ( - 59 ) THEN 2 WHEN - 53 - 86 THEN NULL WHEN - 1 THEN + 98 * MAX ( 59 * 89 ) END * 10 AS col0
----
-33
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-174
SELECT + 36 + + 37 + + 91 * - 3 + 57 + 91 + - 23 + + - NULLIF ( 28, - + 16 - + 71 ) + - 11 + + 65 * - + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-174
SELECT + 36 + + 37 + + 91 * - 3 + 57 + 91 + - 23 + + - NULLIF ( 28, - + 16 - + 71 ) + - 11 + + 65 * - + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * + 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-175
SELECT 1 DIV - 44, + ( - 24 ) + MAX( DISTINCT - 52 ) * - 34 AS col0
----
0
1744

skipif mysql # not compatible
query II rowsort label-175
SELECT 1 / - 44, + ( - 24 ) + MAX ( DISTINCT - 52 ) * - 34 AS col0
----
0
1744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-176
SELECT - NULLIF ( - COUNT( - - 28 ), - 16 + - 74 ) * 24 + - COUNT( + + 63 ) DIV + COALESCE ( + - NULLIF ( 97, + 79 - + 24 * SUM( ALL 10 ) ), + + 53 * + 44 ) + 96 - - 15 + + CASE COALESCE ( 20, 70 * - 43 ) WHEN 98 THEN NULL WHEN - 15 THEN 92 WHEN + CASE 29 WHEN + 78 THEN 54 ELSE NULL END + 88 DIV 10 THEN - COUNT( * ) DIV - ( 96 ) ELSE 16 END + + 74
----
225

skipif mysql # not compatible
query I rowsort label-176
SELECT - NULLIF ( - COUNT ( - - 28 ), - 16 + - 74 ) * 24 + - COUNT ( + + 63 ) / + COALESCE ( + - NULLIF ( 97, + 79 - + 24 * SUM ( ALL 10 ) ), + + 53 * + 44 ) + 96 - - 15 + + CASE COALESCE ( 20, 70 * - 43 ) WHEN 98 THEN NULL WHEN - 15 THEN 92 WHEN + CASE 29 WHEN + 78 THEN 54 ELSE NULL END + 88 / 10 THEN - COUNT ( * ) / - ( 96 ) ELSE 16 END + + 74
----
225

query I rowsort
SELECT ALL 15 * - 66
----
-990

query I rowsort
SELECT - - 47 AS col1
----
47

query I rowsort
SELECT 91 * + 85 + 69
----
7804

query I rowsort
SELECT CASE - + ( + 55 ) WHEN + + 36 * + 11 THEN - 76 + - + 87 WHEN + 31 THEN NULL END + - - 1 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-181
SELECT - 84 AS col2, - CAST( - 25 AS SIGNED ) * 72
----
-84
1800

skipif mysql # not compatible
query II rowsort label-181
SELECT - 84 AS col2, - CAST ( - 25 AS INTEGER ) * 72
----
-84
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT MIN( + + 79 ) * - + 28 * + COUNT( DISTINCT 79 ) * + 70 - + + 80 AS col1
----
-154920

skipif mysql # not compatible
query I rowsort label-182
SELECT MIN ( + + 79 ) * - + 28 * + COUNT ( DISTINCT 79 ) * + 70 - + + 80 AS col1
----
-154920

query I rowsort
SELECT ALL 45 + + + 50 * + ( - 90 ) AS col1
----
-4455

query I rowsort
SELECT DISTINCT 4 + - - 39
----
43

query II rowsort
SELECT ALL - 70 + 22 AS col1, + 17 AS col1
----
-48
17

query I rowsort
SELECT 92 - 39
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-187
SELECT DISTINCT 39 + 87 + 84 + CASE - COALESCE ( - - CAST( NULL AS SIGNED ), - 2 + + 84, + + 5 - + SUM( - - 76 ) * - - 47 + COUNT( + 67 ) - - 82 * - COUNT( * ) * + 97 ) WHEN COUNT( * ) * 13 - - COALESCE ( + 45, + 60 ) + + 51 THEN - COUNT( * ) + + 51 END - 84 * - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT 39 + 87 + 84 + CASE - COALESCE ( - - CAST ( NULL AS INTEGER ), - 2 + + 84, + + 5 - + SUM ( - - 76 ) * - - 47 + COUNT ( + 67 ) - - 82 * - COUNT ( * ) * + 97 ) WHEN COUNT ( * ) * 13 - - COALESCE ( + 45, + 60 ) + + 51 THEN - COUNT ( * ) + + 51 END - 84 * - 74 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-188
SELECT 1 + + 20 AS col1, 49 DIV + 98 col0
----
21
0

skipif mysql # not compatible
query II rowsort label-188
SELECT 1 + + 20 AS col1, 49 / + 98 col0
----
21
0

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

query I rowsort
SELECT 82 + + 15 * + 92 + - 60 AS col1
----
1402

query I rowsort
SELECT ALL + CASE - - 44 WHEN 68 + + 90 THEN NULL ELSE - - 40 * + + 27 END * 89 * + 32
----
3075840

query I rowsort
SELECT DISTINCT 97 * 50 col1
----
4850

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT ALL 56 + 54 + COUNT( * ) * - 54 * + - 34 AS col2
----
1946

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL 56 + 54 + COUNT ( * ) * - 54 * + - 34 AS col2
----
1946

query I rowsort
SELECT ALL - CASE + + 15 WHEN + 25 + - 99 + - 93 THEN + + 84 * + + NULLIF ( + - 72, + 84 * 71 * + 69 * - + 76 ) WHEN + 78 * 25 THEN + 85 WHEN + 79 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT DISTINCT 91 - - COUNT( * ) col1
----
92

skipif mysql # not compatible
query I rowsort label-195
SELECT DISTINCT 91 - - COUNT ( * ) col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ALL COUNT( * ) * - - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL COUNT ( * ) * - - COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-197
SELECT + 0 * + COUNT( * ) DIV 8 + - - 8 * + 39 + + + 19 AS col1
----
331

skipif mysql # not compatible
query I rowsort label-197
SELECT + 0 * + COUNT ( * ) / 8 + - - 8 * + 39 + + + 19 AS col1
----
331

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT + 44 * + CASE - - CASE 65 WHEN - 50 THEN NULL WHEN - 71 / ( + 5 ) * + 99 / + NULLIF ( + + COUNT( 99 ), - 54 ) + 12 + ( - 9 ) THEN + 82 ELSE + + 17 END WHEN + 82 THEN - + 88 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-198
SELECT + 44 * + CASE - - CASE 65 WHEN - 50 THEN NULL WHEN - 71 / ( + 5 ) * + 99 / + NULLIF ( + + COUNT ( 99 ), - 54 ) + 12 + ( - 9 ) THEN + 82 ELSE + + 17 END WHEN + 82 THEN - + 88 ELSE NULL END col0
----
NULL

query I rowsort
SELECT - NULLIF ( - + NULLIF ( + + 9, 27 ), + 89 ) + - - 34 * - ( + 26 )
----
-875

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT DISTINCT - - MIN( - ( - 62 ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT - - MIN ( - ( - 62 ) ) AS col2
----
62

query I rowsort
SELECT - 66 * + 94 AS col0
----
-6204

onlyif mysql # DIV for integer division: 
query I rowsort label-202
SELECT DISTINCT - 70 DIV + - 96
----
0

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT - 70 / + - 96
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-203
SELECT ALL - MIN( + + 35 ), + 8 AS col0
----
-35
8

skipif mysql # not compatible
query II rowsort label-203
SELECT ALL - MIN ( + + 35 ), + 8 AS col0
----
-35
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-204
SELECT 44 * - + CAST( NULL AS SIGNED ) * + SUM( - - 0 ) + - AVG ( ALL 21 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT 44 * - + CAST ( NULL AS INTEGER ) * + SUM ( - - 0 ) + - AVG ( ALL 21 ) col1
----
NULL

query I rowsort
SELECT DISTINCT + - 68 * 93 - + + 64 + + 39 col1
----
-6349

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT ALL COALESCE ( + SUM( + - 44 ), - + 99 * 98 + COALESCE ( + 21, + + 2 * + + ( - 61 ), 94 - - 90 + ( - 20 ) * - - 1 ) ) * + 99 * 44 AS col1
----
-191664

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL COALESCE ( + SUM ( + - 44 ), - + 99 * 98 + COALESCE ( + 21, + + 2 * + + ( - 61 ), 94 - - 90 + ( - 20 ) * - - 1 ) ) * + 99 * 44 AS col1
----
-191664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-207
SELECT 67 + + - 1 + + MIN( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-207
SELECT 67 + + - 1 + + MIN ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 29 * - NULLIF ( - 62, - 5 ) * + + 18
----
32364

query I rowsort
SELECT + ( - + 22 ) * 87 + 35
----
-1879

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

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT DISTINCT + 47 + + ( - - NULLIF ( + 49, COUNT( * ) * - - COUNT( ALL 52 ) - - + 44 * MAX( + 96 ) ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT + 47 + + ( - - NULLIF ( + 49, COUNT ( * ) * - - COUNT ( ALL 52 ) - - + 44 * MAX ( + 96 ) ) ) AS col2
----
96

query I rowsort
SELECT + 0 * 32 * - 89 + + 38 - - 33 * - + 77 * - + 56 + + - 41 AS col1
----
142293

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT DISTINCT 93 + 72 + + COUNT( ALL + 84 ) * + MIN( ALL - 16 ) + - + 83 * - ( - 5 ) AS col2
----
-266

skipif mysql # not compatible
query I rowsort label-213
SELECT DISTINCT 93 + 72 + + COUNT ( ALL + 84 ) * + MIN ( ALL - 16 ) + - + 83 * - ( - 5 ) AS col2
----
-266

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT MAX( 0 ) + + 7 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-214
SELECT MAX ( 0 ) + + 7 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT ALL 16 + - MIN( ALL - 83 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL 16 + - MIN ( ALL - 83 ) AS col2
----
99

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

skipif mysql # not compatible
query II rowsort label-216
SELECT - 53 AS col1, - CAST ( NULL AS INTEGER )
----
-53
NULL

query I rowsort
SELECT + 86 + + - 65 * + 24 col1
----
-1474

query I rowsort
SELECT ALL 92 + - 31
----
61

query I rowsort
SELECT DISTINCT 51 + - 19 * 25 AS col0
----
-424

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT + 56 * COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-220
SELECT + 56 * COUNT ( * ) AS col2
----
56

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

skipif mysql # not compatible
query I rowsort label-221
SELECT + 74 / - 63
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-222
SELECT + 80 + + + 2 - + 77 + - - 14 * - 62 * + - 11 * COALESCE ( - 11, + - 3 - + - 6 + CAST( - - 9 AS SIGNED ) * COUNT( * ) ) + - 49 * - - 89
----
-109384

skipif mysql # not compatible
query I rowsort label-222
SELECT + 80 + + + 2 - + 77 + - - 14 * - 62 * + - 11 * COALESCE ( - 11, + - 3 - + - 6 + CAST ( - - 9 AS INTEGER ) * COUNT ( * ) ) + - 49 * - - 89
----
-109384

query I rowsort
SELECT DISTINCT 12 col0
----
12

query I rowsort
SELECT ALL 56 - 57
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT + NULLIF ( - 36, COUNT( * ) )
----
-36

skipif mysql # not compatible
query I rowsort label-226
SELECT + NULLIF ( - 36, COUNT ( * ) )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-227
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN - NULLIF ( - ( + + 79 ), - 47 / 10 * - - 71 + - COALESCE ( - 85, + 53 * - + 63 - - 26 + + + 57 ) ) THEN NULL WHEN - 30 THEN + ( + COUNT( * ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-227
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN - NULLIF ( - ( + + 79 ), - 47 / 10 * - - 71 + - COALESCE ( - 85, + 53 * - + 63 - - 26 + + + 57 ) ) THEN NULL WHEN - 30 THEN + ( + COUNT ( * ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 20 * - 77 AS col2
----
-1540

query II rowsort
SELECT CASE + + 68 WHEN + 11 THEN NULL ELSE - - 59 END, 37 - - 2 AS col0
----
59
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-230
SELECT ALL - 26 * - 95 - - CAST( NULL AS SIGNED ) * + - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL - 26 * - 95 - - CAST ( NULL AS INTEGER ) * + - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT COALESCE ( + COUNT( * ), - - 15, 96 )
----
1

skipif mysql # not compatible
query I rowsort label-231
SELECT COALESCE ( + COUNT ( * ), - - 15, 96 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT - - CASE 7 WHEN - SUM( ALL 90 ) THEN NULL WHEN + + 43 THEN + + 4 END * 45 * - CASE 95 WHEN + COUNT( * ) * - - COUNT( * ) + - 32 * 42 * - 33 THEN NULL WHEN + - COUNT( * ) - + - 7 + - - 62 * + + COUNT( * ) * 1 * 72 + 77 + - ( - 14 ) + + 32 / ( - 20 ) THEN - 52 + 40 END + 61 - + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT - - CASE 7 WHEN - SUM ( ALL 90 ) THEN NULL WHEN + + 43 THEN + + 4 END * 45 * - CASE 95 WHEN + COUNT ( * ) * - - COUNT ( * ) + - 32 * 42 * - 33 THEN NULL WHEN + - COUNT ( * ) - + - 7 + - - 62 * + + COUNT ( * ) * 1 * 72 + 77 + - ( - 14 ) + + 32 / ( - 20 ) THEN - 52 + 40 END + 61 - + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT - + MAX( - 33 ) * - 48 AS col0
----
-1584

skipif mysql # not compatible
query I rowsort label-233
SELECT - + MAX ( - 33 ) * - 48 AS col0
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT DISTINCT + COUNT( * ) * ( ( - 96 ) ) + - 26
----
-122

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT + COUNT ( * ) * ( ( - 96 ) ) + - 26
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT 81 * + COUNT( * ) - 62 + + 95 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-235
SELECT 81 * + COUNT ( * ) - 62 + + 95 AS col2
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-236
SELECT + - MIN( ALL + 74 ) DIV ( 60 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-236
SELECT + - MIN ( ALL + 74 ) / ( 60 ) AS col1
----
-1

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

skipif mysql # not compatible
query I rowsort label-237
SELECT + 35 + ( + + CAST ( NULL AS INTEGER ) ) + 58
----
NULL

query I rowsort
SELECT - + 6 - 90 * 91 AS col1
----
-8196

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-241
SELECT ALL 86 * - CASE - 67 WHEN 25 + + 27 + CAST( 62 AS SIGNED ) * - 61 * - - 47 THEN - COALESCE ( NULLIF ( - 55, - 30 * CAST( - + COUNT( * ) AS SIGNED ) * COUNT( * ) / - + 43 * - 78 + COUNT( * ) ), SUM( DISTINCT + 95 ) ) WHEN 60 THEN 31 * 5 END * MAX( DISTINCT 20 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL 86 * - CASE - 67 WHEN 25 + + 27 + CAST ( 62 AS INTEGER ) * - 61 * - - 47 THEN - COALESCE ( NULLIF ( - 55, - 30 * CAST ( - + COUNT ( * ) AS INTEGER ) * COUNT ( * ) / - + 43 * - 78 + COUNT ( * ) ), SUM ( DISTINCT + 95 ) ) WHEN 60 THEN 31 * 5 END * MAX ( DISTINCT 20 ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT + + MIN( + + 63 ) col2
----
63

skipif mysql # not compatible
query I rowsort label-242
SELECT + + MIN ( + + 63 ) col2
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-243
SELECT - 67 DIV 24 * ( - - 14 ) + - CASE + 6 WHEN + + 54 THEN NULL ELSE + + 61 END * 53, - 82 col2
----
-3261
-82

skipif mysql # not compatible
query II rowsort label-243
SELECT - 67 / 24 * ( - - 14 ) + - CASE + 6 WHEN + + 54 THEN NULL ELSE + + 61 END * 53, - 82 col2
----
-3261
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-244
SELECT + MIN( - - 67 ) * 8 * CAST( NULL AS SIGNED ) + COALESCE ( 14, - 17 / 2 + 51 ) - 63 * - + CAST( - 2 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-244
SELECT + MIN ( - - 67 ) * 8 * CAST ( NULL AS INTEGER ) + COALESCE ( 14, - 17 / 2 + 51 ) - 63 * - + CAST ( - 2 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT - 80 * 6 + + COALESCE ( + 42, + COUNT( * ) * + - 89 ) + 1 AS col1
----
-437

skipif mysql # not compatible
query I rowsort label-245
SELECT - 80 * 6 + + COALESCE ( + 42, + COUNT ( * ) * + - 89 ) + 1 AS col1
----
-437

onlyif mysql # DIV for integer division: 
query I rowsort label-246
SELECT ALL 57 * 87 + + 4 + + - 2 DIV + 23
----
4963

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL 57 * 87 + + 4 + + - 2 / + 23
----
4963

query I rowsort
SELECT DISTINCT + - 49 + 18 * 93 + + 42 + + 56 AS col1
----
1723

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

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL - COUNT( * ) + - 51
----
-52

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL - COUNT ( * ) + - 51
----
-52

query I rowsort
SELECT ALL + 85 + 47 AS col2
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-251
SELECT - COUNT( * ) AS col2, NULLIF ( 79, 24 ) * - ( - 96 ) + + 70 col0
----
-1
7654

skipif mysql # not compatible
query II rowsort label-251
SELECT - COUNT ( * ) AS col2, NULLIF ( 79, 24 ) * - ( - 96 ) + + 70 col0
----
-1
7654

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT DISTINCT - 88 + MIN( ALL 12 ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT - 88 + MIN ( ALL 12 ) col1
----
-76

query I rowsort
SELECT DISTINCT + 24 * 31 * 98
----
72912

query I rowsort
SELECT ALL - 70 + - - 64 + - 42 + + 56 + - 61 + - 48 * - + 49 + + - 92 AS col0
----
2207

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

skipif mysql # not compatible
query I rowsort label-255
SELECT ALL + COUNT ( * ) * - + 33 AS col1
----
-33

query I rowsort
SELECT - 98 - + 35
----
-133

query I rowsort
SELECT - 33 * + 43
----
-1419

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT - 67 * COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-260
SELECT - 67 * COUNT ( * ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT DISTINCT MAX( 60 ) * 46 + 68 * - ( - + 73 ) AS col2
----
7724

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT MAX ( 60 ) * 46 + 68 * - ( - + 73 ) AS col2
----
7724

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-262
SELECT ALL CAST( - 83 AS SIGNED ) * 96 AS col0
----
-7968

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL CAST ( - 83 AS INTEGER ) * 96 AS col0
----
-7968

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT - 18 * - - 69 + - + COUNT( ALL - - 3 )
----
-1243

skipif mysql # not compatible
query I rowsort label-263
SELECT - 18 * - - 69 + - + COUNT ( ALL - - 3 )
----
-1243

query I rowsort
SELECT + 96 - + - 28 AS col1
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT 76 DIV - 63 + 79
----
78

skipif mysql # not compatible
query I rowsort label-265
SELECT 76 / - 63 + 79
----
78

query I rowsort
SELECT ALL - + 22 * + 93
----
-2046

query I rowsort
SELECT DISTINCT + - 60 * - 21 AS col0
----
1260

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-269
SELECT ALL + 37 DIV + 68 * + + COUNT( - 98 ) * + 24 * + - 27 + COUNT( * ) + 25 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL + 37 / + 68 * + + COUNT ( - 98 ) * + 24 * + - 27 + COUNT ( * ) + 25 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-270
SELECT 35 * COUNT( - CAST( NULL AS SIGNED ) ) + - ( - 14 ) + + + 46 - - + CAST( + AVG ( + 31 ) AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-270
SELECT 35 * COUNT ( - CAST ( NULL AS INTEGER ) ) + - ( - 14 ) + + + 46 - - + CAST ( + AVG ( + 31 ) AS INTEGER )
----
91

query I rowsort
SELECT DISTINCT - 96 * - 66 - + 99
----
6237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-272
SELECT ALL + COALESCE ( + 69, - 96 ) * + 15 * - + 79 * + + ( 56 ) + + - 51 / - ( - CASE 71 WHEN + - 59 * 55 + + + 8 / - + 35 THEN NULL WHEN + 95 + COUNT( * ) * + COUNT( * ) * - ( - + 1 ) * - - 55 THEN - 41 + - - CAST( - - 80 AS SIGNED ) END ) * - 45 + - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL + COALESCE ( + 69, - 96 ) * + 15 * - + 79 * + + ( 56 ) + + - 51 / - ( - CASE 71 WHEN + - 59 * 55 + + + 8 / - + 35 THEN NULL WHEN + 95 + COUNT ( * ) * + COUNT ( * ) * - ( - + 1 ) * - - 55 THEN - 41 + - - CAST ( - - 80 AS INTEGER ) END ) * - 45 + - 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-273
SELECT + + 58 + COUNT( * ) AS col2, 31 col2
----
59
31

skipif mysql # not compatible
query II rowsort label-273
SELECT + + 58 + COUNT ( * ) AS col2, 31 col2
----
59
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-274
SELECT DISTINCT 9 * + ( - CASE + 14 WHEN SUM( - - CAST( NULL AS SIGNED ) ) THEN - + 27 + NULLIF ( + + COALESCE ( + 42, 33 + - 18, + 32, - COUNT( * ) ), - - CASE + COUNT( * ) WHEN - 75 / + + 29 THEN NULL ELSE + - 45 * + 4 * CAST( NULL AS SIGNED ) / + 24 END + - - 92 + + COUNT( * ) * - CAST( - 30 AS SIGNED ) ) ELSE NULL END ) - + 77 * 40 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT 9 * + ( - CASE + 14 WHEN SUM ( - - CAST ( NULL AS INTEGER ) ) THEN - + 27 + NULLIF ( + + COALESCE ( + 42, 33 + - 18, + 32, - COUNT ( * ) ), - - CASE + COUNT ( * ) WHEN - 75 / + + 29 THEN NULL ELSE + - 45 * + 4 * CAST ( NULL AS INTEGER ) / + 24 END + - - 92 + + COUNT ( * ) * - CAST ( - 30 AS INTEGER ) ) ELSE NULL END ) - + 77 * 40 + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 43 * 14 - 19 * 58
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT ALL - 57 * 82 + COUNT( * ) + COUNT( * ) - - SUM( - 63 )
----
-4735

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL - 57 * 82 + COUNT ( * ) + COUNT ( * ) - - SUM ( - 63 )
----
-4735

query I rowsort
SELECT + + 8 * - - 67 AS col2
----
536

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-279
SELECT 1 + + CAST( NULL AS SIGNED ) - - ( - - 20 ) + - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-279
SELECT 1 + + CAST ( NULL AS INTEGER ) - - ( - - 20 ) + - + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT DISTINCT COUNT( * ) - - - 71 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT COUNT ( * ) - - - 71 AS col2
----
-70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-282
SELECT DISTINCT - 66 DIV + - NULLIF ( - 33, + - 45 - + 92 + - 26 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-282
SELECT DISTINCT - 66 / + - NULLIF ( - 33, + - 45 - + 92 + - 26 ) AS col1
----
-2

query I rowsort
SELECT 94 - + 17
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-284
SELECT ALL + CAST( NULL AS SIGNED ) - + 60 + + 78 * AVG ( 38 ) * - 52 - 42 + - + 22 * + 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL + CAST ( NULL AS INTEGER ) - + 60 + + 78 * AVG ( 38 ) * - 52 - 42 + - + 22 * + 15 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-285
SELECT 20 DIV 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-285
SELECT 20 / 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-286
SELECT DISTINCT 14 col1, NULLIF ( COUNT( - + 5 ), - 22 ) AS col2
----
14
1

skipif mysql # not compatible
query II rowsort label-286
SELECT DISTINCT 14 col1, NULLIF ( COUNT ( - + 5 ), - 22 ) AS col2
----
14
1

query II rowsort
SELECT DISTINCT 65 AS col0, + 66
----
65
66

query I rowsort
SELECT 36 + + 53
----
89

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

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

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

query I rowsort
SELECT DISTINCT - 31 + + 37
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT ALL - - 95 + + - COUNT( * ) col0
----
94

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL - - 95 + + - COUNT ( * ) col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT DISTINCT 86 * + ( 76 ) + CASE + 58 WHEN COUNT( * ) THEN - - MIN( 67 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT 86 * + ( 76 ) + CASE + 58 WHEN COUNT ( * ) THEN - - MIN ( 67 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-295
SELECT DISTINCT - 92 + 1 + + + MIN( DISTINCT 40 ) + - 8 AS col2, - SUM( DISTINCT + - 14 ) AS col0
----
-59
14

skipif mysql # not compatible
query II rowsort label-295
SELECT DISTINCT - 92 + 1 + + + MIN ( DISTINCT 40 ) + - 8 AS col2, - SUM ( DISTINCT + - 14 ) AS col0
----
-59
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-296
SELECT + COUNT( * ) DIV - 98 AS col1
----
0

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

query I rowsort
SELECT ALL + - 95 + - 51
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-298
SELECT - 99 * 22 * 65 * - 97 - - + MAX( ALL - - 89 ) DIV 8 col0
----
13732301

skipif mysql # not compatible
query I rowsort label-298
SELECT - 99 * 22 * 65 * - 97 - - + MAX ( ALL - - 89 ) / 8 col0
----
13732301

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT + SUM( DISTINCT + + NULLIF ( + 29, - - 43 - + 85 ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-299
SELECT + SUM ( DISTINCT + + NULLIF ( + 29, - - 43 - + 85 ) ) AS col1
----
29

query I rowsort
SELECT ALL 70 + + - ( + - 51 ) col0
----
121

query I rowsort
SELECT - 40 - + 82
----
-122

query I rowsort
SELECT ALL + 98 + - 85
----
13

query I rowsort
SELECT + 53 + + 65
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-304
SELECT ALL + 18 + 36 - + + CASE + 40 WHEN + + 46 * 31 THEN NULL WHEN - COUNT( DISTINCT - 66 ) - COALESCE ( - - CAST( NULL AS SIGNED ), - 80 ) + - + 3 - + 7 * + + MIN( ALL - ( + 57 ) ) * COUNT( * ) * 49 THEN 70 * - ( + - ( + - 44 ) ) * - + 38 * - COALESCE ( - - 14, - 83 ) + + 51 + - 71 ELSE NULL END - 45 * + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL + 18 + 36 - + + CASE + 40 WHEN + + 46 * 31 THEN NULL WHEN - COUNT ( DISTINCT - 66 ) - COALESCE ( - - CAST ( NULL AS INTEGER ), - 80 ) + - + 3 - + 7 * + + MIN ( ALL - ( + 57 ) ) * COUNT ( * ) * 49 THEN 70 * - ( + - ( + - 44 ) ) * - + 38 * - COALESCE ( - - 14, - 83 ) + + 51 + - 71 ELSE NULL END - 45 * + 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT SUM( 33 ) * - + ( + 69 ) + - 49
----
-2326

skipif mysql # not compatible
query I rowsort label-305
SELECT SUM ( 33 ) * - + ( + 69 ) + - 49
----
-2326

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT COUNT( * ) + + ( - + 1 ) + - - 18 + - 77 * - 77 + + 92 + + + 45 * - - 62 * + + 90 * + 83 + 72 * 51 + + CASE 52 WHEN - + COUNT( * ) / + CASE - NULLIF ( - NULLIF ( + + ( 12 ), 90 ), - 54 + + ( 76 ) - - SUM( DISTINCT - 62 - 84 * 69 ) ) WHEN 97 THEN - 73 WHEN + 82 THEN NULL END THEN 59 * - AVG ( 81 * 81 ) WHEN + 27 + 74 * - 56 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-306
SELECT COUNT ( * ) + + ( - + 1 ) + - - 18 + - 77 * - 77 + + 92 + + + 45 * - - 62 * + + 90 * + 83 + 72 * 51 + + CASE 52 WHEN - + COUNT ( * ) / + CASE - NULLIF ( - NULLIF ( + + ( 12 ), 90 ), - 54 + + ( 76 ) - - SUM ( DISTINCT - 62 - 84 * 69 ) ) WHEN 97 THEN - 73 WHEN + 82 THEN NULL END THEN 59 * - AVG ( 81 * 81 ) WHEN + 27 + 74 * - 56 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT - COUNT( * ) - - 67
----
66

skipif mysql # not compatible
query I rowsort label-307
SELECT - COUNT ( * ) - - 67
----
66

query I rowsort
SELECT ALL 73 - - 53 AS col0
----
126

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

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

query II rowsort
SELECT ALL - 46 AS col2, 76
----
-46
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-311
SELECT CASE 20 WHEN COUNT( * ) * + + 3 + + 52 THEN + + 23 * + 53 * MAX( - 50 ) * - 86 * + - COALESCE ( + 96, 76 ) WHEN 55 * - + COALESCE ( + + 77, COUNT( * ) / ( - 15 ) + - + 5 + 67 ) + 30 THEN NULL ELSE NULL END * - CAST( NULL AS SIGNED ) + - + 74 * - + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-311
SELECT CASE 20 WHEN COUNT ( * ) * + + 3 + + 52 THEN + + 23 * + 53 * MAX ( - 50 ) * - 86 * + - COALESCE ( + 96, 76 ) WHEN 55 * - + COALESCE ( + + 77, COUNT ( * ) / ( - 15 ) + - + 5 + 67 ) + 30 THEN NULL ELSE NULL END * - CAST ( NULL AS INTEGER ) + - + 74 * - + 45 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT ALL - MAX( + + 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL - MAX ( + + 18 ) col0
----
-18

query I rowsort
SELECT ( + 36 ) + 94
----
130

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-316
SELECT ALL COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

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

query I rowsort
SELECT NULLIF ( + 41, - 89 ) * - + 25
----
-1025

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT DISTINCT SUM( ALL + 28 ) * + + 31
----
868

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT SUM ( ALL + 28 ) * + + 31
----
868

onlyif mysql # aggregate syntax: 
query II rowsort label-319
SELECT DISTINCT 9 AS col1, ( COUNT( * ) ) * - - 75
----
9
75

skipif mysql # not compatible
query II rowsort label-319
SELECT DISTINCT 9 AS col1, ( COUNT ( * ) ) * - - 75
----
9
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-320
SELECT ALL MIN( + - CAST( + 23 AS SIGNED ) ) * + ( - 14 ) * - 13 AS col2, - 95 AS col2
----
-4186
-95

skipif mysql # not compatible
query II rowsort label-320
SELECT ALL MIN ( + - CAST ( + 23 AS INTEGER ) ) * + ( - 14 ) * - 13 AS col2, - 95 AS col2
----
-4186
-95

query I rowsort
SELECT COALESCE ( - NULLIF ( 20, + 17 ), + ( - + 41 ), - 50 ) * - 62
----
1240

query I rowsort
SELECT 36 * + - 16
----
-576

query I rowsort
SELECT 16 + + + 11 * + + 16 col1
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-324
SELECT ALL + COALESCE ( - 11, - + 29 ) DIV - COALESCE ( 12, + - CASE 23 WHEN 91 THEN - 18 ELSE 1 END )
----
0

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL + COALESCE ( - 11, - + 29 ) / - COALESCE ( 12, + - CASE 23 WHEN 91 THEN - 18 ELSE 1 END )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT ( COALESCE ( - - 71, + 4 ) ) + MAX( + + 1 ) - 22 * 22 * + - 55 * + 3 * - 83
----
-6628308

skipif mysql # not compatible
query I rowsort label-325
SELECT ( COALESCE ( - - 71, + 4 ) ) + MAX ( + + 1 ) - 22 * 22 * + - 55 * + 3 * - 83
----
-6628308

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-326
SELECT DISTINCT + ( - 99 ) / CAST( NULL AS SIGNED ) + + 97 AS col2, + 54
----
NULL
54

skipif mysql # not compatible
query II rowsort label-326
SELECT DISTINCT + ( - 99 ) / CAST ( NULL AS INTEGER ) + + 97 AS col2, + 54
----
NULL
54

query I rowsort
SELECT ALL - 45 + - - ( 92 )
----
47

query I rowsort
SELECT ALL + 90 * + - 67 * 53 * - 23 * 62 AS col0
----
455735340

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT ALL ( + - 46 ) + MAX( DISTINCT + 27 ) + + 90 - - - 15
----
56

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL ( + - 46 ) + MAX ( DISTINCT + 27 ) + + 90 - - - 15
----
56

query I rowsort
SELECT - 44 + - + 92 * ( - 11 )
----
968

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

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - 63 + - + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 57 + - ( 76 ) * - + 5
----
437

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT ALL 67 * SUM( + - 22 ) + 43 + - 31
----
-1462

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL 67 * SUM ( + - 22 ) + 43 + - 31
----
-1462

query I rowsort
SELECT + 10 + + + 56 AS col1
----
66

query II rowsort
SELECT + - 34 AS col0, + 51 * 79 AS col0
----
-34
4029

query I rowsort
SELECT - NULLIF ( + 43, - 84 + 42 ) AS col0
----
-43

query I rowsort
SELECT ALL - + CASE - + 20 WHEN + - 41 + 91 THEN NULL ELSE + + 25 END
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-338
SELECT 13 * - CAST( 16 AS SIGNED ) * + NULLIF ( - 83, COUNT( * ) ) * 53 AS col2
----
914992

skipif mysql # not compatible
query I rowsort label-338
SELECT 13 * - CAST ( 16 AS INTEGER ) * + NULLIF ( - 83, COUNT ( * ) ) * 53 AS col2
----
914992

onlyif mysql # aggregate syntax: 
query II rowsort label-339
SELECT + + 62, - COUNT( * ) + + 66 AS col2
----
62
65

skipif mysql # not compatible
query II rowsort label-339
SELECT + + 62, - COUNT ( * ) + + 66 AS col2
----
62
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-340
SELECT - 74 + 33 - 68 DIV - 99 * + 35 * 65 - - 78, 1 + - 33 + + + CASE CASE - 59 WHEN 78 THEN NULL WHEN 90 * 37 THEN - + 41 * 49 + + 89 - - 72 + ( + - ( + + 61 ) ) * 3 * 17 - + CAST( NULL AS SIGNED ) WHEN + 72 THEN 21 + + 50 ELSE - 98 END WHEN - 62 + - COUNT( * ) THEN NULL WHEN 88 THEN 43 ELSE NULL END * + 94 AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-340
SELECT - 74 + 33 - 68 / - 99 * + 35 * 65 - - 78, 1 + - 33 + + + CASE CASE - 59 WHEN 78 THEN NULL WHEN 90 * 37 THEN - + 41 * 49 + + 89 - - 72 + ( + - ( + + 61 ) ) * 3 * 17 - + CAST ( NULL AS INTEGER ) WHEN + 72 THEN 21 + + 50 ELSE - 98 END WHEN - 62 + - COUNT ( * ) THEN NULL WHEN 88 THEN 43 ELSE NULL END * + 94 AS col1
----
37
NULL

query I rowsort
SELECT - + 81 * + + ( - 36 ) * + - 8 AS col2
----
-23328

onlyif mysql # DIV for integer division: 
query I rowsort label-342
SELECT ALL + - 0 * 22 DIV + ( + 92 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL + - 0 * 22 / + ( + 92 ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-343
SELECT - + COUNT ( * ) / + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT + + 26 * + + 43 * + 30 AS col2
----
33540

query I rowsort
SELECT ALL + 48 * - NULLIF ( + 41, - 26 / + ( + AVG ( + 34 ) ) )
----
-1968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-346
SELECT ALL CAST( NULL AS SIGNED ) / 79 * 24 * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL CAST ( NULL AS INTEGER ) / 79 * 24 * 38
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-347
SELECT + 97 + + COUNT( * ) col1, ( - + 6 ) DIV - 29 + 46 AS col1
----
98
46

skipif mysql # not compatible
query II rowsort label-347
SELECT + 97 + + COUNT ( * ) col1, ( - + 6 ) / - 29 + 46 AS col1
----
98
46

query I rowsort
SELECT - 94 * + 61 + + 33 * + 40
----
-4414

query II rowsort
SELECT - ( + 13 ), - 60 * + 53 col0
----
-13
-3180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-350
SELECT DISTINCT ( - ( + COUNT( - + 67 ) ) ) + - CAST( + 61 AS SIGNED ) + + + 58 * + + 68 - - 32
----
3914

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT ( - ( + COUNT ( - + 67 ) ) ) + - CAST ( + 61 AS INTEGER ) + + + 58 * + + 68 - - 32
----
3914

query I rowsort
SELECT + 20 - + + 21 * + - 53 AS col0
----
1133

query II rowsort
SELECT ALL 32 * - 74, 93 col0
----
-2368
93

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT - NULLIF ( 9, 76 / + COUNT( * ) * + NULLIF ( - + 12, - 76 + + ( ( 41 ) ) / 70 ) ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-353
SELECT - NULLIF ( 9, 76 / + COUNT ( * ) * + NULLIF ( - + 12, - 76 + + ( ( 41 ) ) / 70 ) ) AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-354
SELECT ALL 20 + - - CASE - - 50 WHEN COUNT( DISTINCT + 75 ) THEN - + 54 WHEN - + 26 THEN + NULLIF ( - + CAST( NULL AS SIGNED ), - 45 * SUM( - 87 ) ) WHEN - + 60 * + COUNT( * ) THEN - 40 * - + COUNT( * ) + + + 17 + - 41 * + MIN( ALL - 81 ) END + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL 20 + - - CASE - - 50 WHEN COUNT ( DISTINCT + 75 ) THEN - + 54 WHEN - + 26 THEN + NULLIF ( - + CAST ( NULL AS INTEGER ), - 45 * SUM ( - 87 ) ) WHEN - + 60 * + COUNT ( * ) THEN - 40 * - + COUNT ( * ) + + + 17 + - 41 * + MIN ( ALL - 81 ) END + 15
----
NULL

query II rowsort
SELECT + 31 + - 21 AS col0, - 21
----
10
-21

query I rowsort
SELECT ALL + 86 + ( 37 )
----
123

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT - - SUM( 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-358
SELECT - - SUM ( 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT + + 22 + - ( COUNT( * ) ) + + - ( - 8 )
----
29

skipif mysql # not compatible
query I rowsort label-359
SELECT + + 22 + - ( COUNT ( * ) ) + + - ( - 8 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT - 64 * + 55 * + SUM( + 28 )
----
-98560

skipif mysql # not compatible
query I rowsort label-360
SELECT - 64 * + 55 * + SUM ( + 28 )
----
-98560

onlyif mysql # aggregate syntax: 
query II rowsort label-361
SELECT - CASE - + 77 WHEN + 26 * 87 + - - COUNT( * ) THEN - ( + - 53 ) + + - COUNT( * ) END AS col1, COUNT( * ) - + ( 50 )
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-361
SELECT - CASE - + 77 WHEN + 26 * 87 + - - COUNT ( * ) THEN - ( + - 53 ) + + - COUNT ( * ) END AS col1, COUNT ( * ) - + ( 50 )
----
NULL
-49

query I rowsort
SELECT + - 62 * 80 col2
----
-4960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-363
SELECT + 31 * - + CAST( NULL AS SIGNED ) * + - 73 + - 16 + - - 81 * + COALESCE ( ( NULLIF ( + + 82, 13 / + 75 + + - 63 ) ), 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-363
SELECT + 31 * - + CAST ( NULL AS INTEGER ) * + - 73 + - 16 + - - 81 * + COALESCE ( ( NULLIF ( + + 82, 13 / + 75 + + - 63 ) ), 44 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-364
SELECT - 44 * - 99, - COALESCE ( - ( + + 25 ), + + COUNT( * ) ) AS col0
----
4356
25

skipif mysql # not compatible
query II rowsort label-364
SELECT - 44 * - 99, - COALESCE ( - ( + + 25 ), + + COUNT ( * ) ) AS col0
----
4356
25

query I rowsort
SELECT DISTINCT + 57 * - 79 * + 86
----
-387258

query I rowsort
SELECT + + 35 * 1 AS col2
----
35

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-368
SELECT 60 * - - 61 + - + 52 + - 75 + + - 81 / 25 / - CAST( NULL AS SIGNED ) * 43 * 91 * - + 28 - - COUNT( * ) + - 48 * 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-368
SELECT 60 * - - 61 + - + 52 + - 75 + + - 81 / 25 / - CAST ( NULL AS INTEGER ) * 43 * 91 * - + 28 - - COUNT ( * ) + - 48 * 64 AS col2
----
NULL

query I rowsort
SELECT - + 85 + + 75 + - - 47 + - - 43 * + 53
----
2316

query I rowsort
SELECT - 47 * - - 91 * - 62 * + 75 AS col2
----
19888050

query I rowsort
SELECT DISTINCT + 80 * 27
----
2160

query I rowsort
SELECT ( - 64 )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-373
SELECT ALL + CAST( NULL AS SIGNED ) / - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL + CAST ( NULL AS INTEGER ) / - 34 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-374
SELECT ALL + ( - CASE + ( + MIN( DISTINCT 19 ) ) WHEN CAST( - + 37 AS SIGNED ) * - 14 * 43 THEN NULL WHEN 77 THEN + 19 + + + 17 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL + ( - CASE + ( + MIN ( DISTINCT 19 ) ) WHEN CAST ( - + 37 AS INTEGER ) * - 14 * 43 THEN NULL WHEN 77 THEN + 19 + + + 17 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-375
SELECT - CASE - 91 WHEN + COALESCE ( 66, ( MIN( 65 ) ) + + 7 - - 88 * - 16 ) - - 71 THEN NULL WHEN + SUM( - + 30 ) * COUNT( ALL - 58 ) + COALESCE ( + ( - MIN( ALL - 74 ) ), + 27 * + NULLIF ( CASE + 91 WHEN + 22 * - 26 THEN - 9 WHEN + ( - NULLIF ( COUNT( * ), ( 38 ) + + 43 ) ) THEN 31 WHEN - 7 * + COALESCE ( 79 * ( + 22 ), - 13 * 39 ) THEN NULL END, CAST( NULL AS DECIMAL ) ) ) + COUNT( * ) THEN 47 + - 75 * 77 END + + CAST( COUNT( * ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-375
SELECT - CASE - 91 WHEN + COALESCE ( 66, ( MIN ( 65 ) ) + + 7 - - 88 * - 16 ) - - 71 THEN NULL WHEN + SUM ( - + 30 ) * COUNT ( ALL - 58 ) + COALESCE ( + ( - MIN ( ALL - 74 ) ), + 27 * + NULLIF ( CASE + 91 WHEN + 22 * - 26 THEN - 9 WHEN + ( - NULLIF ( COUNT ( * ), ( 38 ) + + 43 ) ) THEN 31 WHEN - 7 * + COALESCE ( 79 * ( + 22 ), - 13 * 39 ) THEN NULL END, CAST ( NULL AS REAL ) ) ) + COUNT ( * ) THEN 47 + - 75 * 77 END + + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-376
SELECT ALL + COUNT( DISTINCT ( 14 ) ) AS col2, ( - MAX( DISTINCT - 92 ) ) * - 57
----
1
-5244

skipif mysql # not compatible
query II rowsort label-376
SELECT ALL + COUNT ( DISTINCT ( 14 ) ) AS col2, ( - MAX ( DISTINCT - 92 ) ) * - 57
----
1
-5244

onlyif mysql # aggregate syntax: 
query II rowsort label-377
SELECT NULLIF ( - 92, + - 29 ) AS col2, COUNT( * )
----
-92
1

skipif mysql # not compatible
query II rowsort label-377
SELECT NULLIF ( - 92, + - 29 ) AS col2, COUNT ( * )
----
-92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT DISTINCT - 6 * - 14 + - + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT - 6 * - 14 + - + COUNT ( * ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT NULLIF ( 63, + - 18 + - 27 + + - COUNT( * ) )
----
63

skipif mysql # not compatible
query I rowsort label-379
SELECT NULLIF ( 63, + - 18 + - 27 + + - COUNT ( * ) )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-380
SELECT + 74 DIV + - 10 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-380
SELECT + 74 / + - 10 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT ALL - CASE 16 WHEN + ( + ( + 4 ) ) THEN ( + + COUNT( DISTINCT 49 ) ) WHEN + + COUNT( * ) THEN + + 94 ELSE - 55 END * - 72 + - + 90 * + + 63 - + 43
----
-9673

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL - CASE 16 WHEN + ( + ( + 4 ) ) THEN ( + + COUNT ( DISTINCT 49 ) ) WHEN + + COUNT ( * ) THEN + + 94 ELSE - 55 END * - 72 + - + 90 * + + 63 - + 43
----
-9673

onlyif mysql # aggregate syntax: 
query II rowsort label-382
SELECT - 20 + - COUNT( * ) + COUNT( * ) + + - NULLIF ( MAX( - 86 ), + 29 * - 35 + SUM( ( + + 66 ) ) ) * 19 * - - 0 AS col1, ( - 79 ) + + 71
----
-20
-8

skipif mysql # not compatible
query II rowsort label-382
SELECT - 20 + - COUNT ( * ) + COUNT ( * ) + + - NULLIF ( MAX ( - 86 ), + 29 * - 35 + SUM ( ( + + 66 ) ) ) * 19 * - - 0 AS col1, ( - 79 ) + + 71
----
-20
-8

query I rowsort
SELECT ALL - 96 * + + 58 + - 88 AS col0
----
-5656

query II rowsort
SELECT DISTINCT 20, 91 AS col2
----
20
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-385
SELECT ALL 65 * + COALESCE ( + 27, - 38 ) + - CAST( - 66 AS SIGNED ) AS col2
----
1821

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL 65 * + COALESCE ( + 27, - 38 ) + - CAST ( - 66 AS INTEGER ) AS col2
----
1821

onlyif mysql # aggregate syntax: 
query II rowsort label-386
SELECT - 2 + + NULLIF ( - ( - 32 ), 87 + 23 + - 88 / + MAX( + 69 ) ) * + 65 * - 6 AS col0, - 60
----
-12482
-60

skipif mysql # not compatible
query II rowsort label-386
SELECT - 2 + + NULLIF ( - ( - 32 ), 87 + 23 + - 88 / + MAX ( + 69 ) ) * + 65 * - 6 AS col0, - 60
----
-12482
-60

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

skipif mysql # not compatible
query I rowsort label-387
SELECT + 8 / 52
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-388
SELECT - 78 + + ( 10 ) + COUNT( * ) DIV 36
----
-68

skipif mysql # not compatible
query I rowsort label-388
SELECT - 78 + + ( 10 ) + COUNT ( * ) / 36
----
-68

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

query I rowsort
SELECT ALL 90 + - 24 + + 39 AS col1
----
105

query I rowsort
SELECT - 79 + - - 75 * CASE - + 48 WHEN - 77 + 75 + - 45 * + 83 * + 91 - - 54 + - 67 / - + 27 * - ( + 66 ) THEN + - 39 END col1
----
NULL

query II rowsort
SELECT - 53 AS col0, 95 AS col2
----
-53
95

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

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

query I rowsort
SELECT ALL + 80 - - - 13 * + + 30 + + - ( + 72 )
----
-382

query I rowsort
SELECT DISTINCT CASE ( + - 58 ) WHEN + 41 THEN NULL WHEN 86 THEN 84 ELSE NULL END - + 51 col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT ALL - COUNT( * ) * - + 51 * + 85 + 41 AS col1
----
4376

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL - COUNT ( * ) * - + 51 * + 85 + 41 AS col1
----
4376

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

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

query I rowsort
SELECT + 42 + - 97 + + - 27 + + 12
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-401
SELECT ALL + 86 * 3 * + COUNT( * ) AS col2, 46 * COUNT( * ) * - COUNT( * )
----
258
-46

skipif mysql # not compatible
query II rowsort label-401
SELECT ALL + 86 * 3 * + COUNT ( * ) AS col2, 46 * COUNT ( * ) * - COUNT ( * )
----
258
-46

query I rowsort
SELECT + 56 + - + 69 + 28 AS col0
----
15

query I rowsort
SELECT - 65 * + + 99 - + 48 AS col1
----
-6483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-404
SELECT ( CASE 69 WHEN - + CAST( 81 AS SIGNED ) * - 90 + 38 + 44 THEN - 87 * + - 32 WHEN + 21 THEN NULL END ) + 15 * + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-404
SELECT ( CASE 69 WHEN - + CAST ( 81 AS INTEGER ) * - 90 + 38 + 44 THEN - 87 * + - 32 WHEN + 21 THEN NULL END ) + 15 * + 33 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-405
SELECT ALL - - COALESCE ( CAST( NULL AS SIGNED ), 65 ) AS col2, + 47 AS col0
----
65
47

skipif mysql # not compatible
query II rowsort label-405
SELECT ALL - - COALESCE ( CAST ( NULL AS INTEGER ), 65 ) AS col2, + 47 AS col0
----
65
47

query I rowsort
SELECT - 9 + + 26
----
17

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-408
SELECT ALL - - 48 AS col1, SUM( + - 7 ) DIV + - 35
----
48
0

skipif mysql # not compatible
query II rowsort label-408
SELECT ALL - - 48 AS col1, SUM ( + - 7 ) / + - 35
----
48
0

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT 14 * + 54 + + 16 * + + 84 + 55 + - 57 + - 98 + - ( + COUNT( * ) ) * + 5
----
1995

skipif mysql # not compatible
query I rowsort label-409
SELECT 14 * + 54 + + 16 * + + 84 + 55 + - 57 + - 98 + - ( + COUNT ( * ) ) * + 5
----
1995

onlyif mysql # aggregate syntax: 
query II rowsort label-410
SELECT ALL - - NULLIF ( - 59, 88 * + COUNT( * ) ), 12 + - - COUNT( * ) AS col2
----
-59
13

skipif mysql # not compatible
query II rowsort label-410
SELECT ALL - - NULLIF ( - 59, 88 * + COUNT ( * ) ), 12 + - - COUNT ( * ) AS col2
----
-59
13

query II rowsort
SELECT DISTINCT - 73, 4 AS col2
----
-73
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-412
SELECT ALL - CAST( + 23 AS SIGNED ) * + - ( - 76 )
----
-1748

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL - CAST ( + 23 AS INTEGER ) * + - ( - 76 )
----
-1748

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT 20 + + 59 + - + COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-413
SELECT 20 + + 59 + - + COUNT ( * ) AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-414
SELECT 91 DIV 81 DIV + NULLIF ( - 57, - 94 ) * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-414
SELECT 91 / 81 / + NULLIF ( - 57, - 94 ) * COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-415
SELECT - CAST( 33 AS SIGNED ) * - - COALESCE ( + + 78, - COUNT( * ) * - 24 * + - 9 DIV + - 39 ) + ( + 25 ) + + - CAST( ( - 12 ) AS SIGNED ) * - - COALESCE ( COUNT( * ), 38 * - 14 * 96 ) + - COUNT( * ) * - + 69
----
-2468

skipif mysql # not compatible
query I rowsort label-415
SELECT - CAST ( 33 AS INTEGER ) * - - COALESCE ( + + 78, - COUNT ( * ) * - 24 * + - 9 / + - 39 ) + ( + 25 ) + + - CAST ( ( - 12 ) AS INTEGER ) * - - COALESCE ( COUNT ( * ), 38 * - 14 * 96 ) + - COUNT ( * ) * - + 69
----
-2468

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT DISTINCT COUNT( * ) * + 63 * - 53 AS col1
----
-3339

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT COUNT ( * ) * + 63 * - 53 AS col1
----
-3339

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT DISTINCT - COUNT( DISTINCT 16 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-418
SELECT DISTINCT - COUNT ( DISTINCT 16 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT DISTINCT COUNT( * ) + + + CASE + 56 WHEN + 87 - - 61 THEN + 37 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-419
SELECT DISTINCT COUNT ( * ) + + + CASE + 56 WHEN + 87 - - 61 THEN + 37 END AS col2
----
NULL

query I rowsort
SELECT 39 * + + 99
----
3861

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT ALL 3 + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL 3 + + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-422
SELECT DISTINCT - SUM( ALL 35 ), 56 AS col0
----
-35
56

skipif mysql # not compatible
query II rowsort label-422
SELECT DISTINCT - SUM ( ALL 35 ), 56 AS col0
----
-35
56

query I rowsort
SELECT ALL + 31 + 77 AS col1
----
108

query I rowsort
SELECT DISTINCT - 77 * 39 AS col2
----
-3003

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-425
SELECT 61 + COUNT( * ) col2, - 76 DIV COALESCE ( + 4, 15 * + COUNT( + 70 ) + + - 67 * - - COALESCE ( + + ( - 75 ), + + 98 ) )
----
62
-19

skipif mysql # not compatible
query II rowsort label-425
SELECT 61 + COUNT ( * ) col2, - 76 / COALESCE ( + 4, 15 * + COUNT ( + 70 ) + + - 67 * - - COALESCE ( + + ( - 75 ), + + 98 ) )
----
62
-19

query II rowsort
SELECT 64 * - + 9 AS col2, + ( - 85 ) AS col2
----
-576
-85

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-428
SELECT ALL - 86 + 82 + + 41 * - MIN( + 45 ) * 6 + + CASE - COUNT( * ) WHEN - - 47 + 26 THEN - ( + + 34 ) * + 94 DIV - - 91 * + 73 + + 27 - + + COUNT( * ) WHEN - 56 + - 98 THEN 35 * 48 * + - COUNT( DISTINCT 57 ) END + + 32 AS col0, + SUM( DISTINCT + 60 ) DIV + - 53 + + 15 + 10 + 62 * 40 + + 36
----
NULL
2540

skipif mysql # not compatible
query II rowsort label-428
SELECT ALL - 86 + 82 + + 41 * - MIN ( + 45 ) * 6 + + CASE - COUNT ( * ) WHEN - - 47 + 26 THEN - ( + + 34 ) * + 94 / - - 91 * + 73 + + 27 - + + COUNT ( * ) WHEN - 56 + - 98 THEN 35 * 48 * + - COUNT ( DISTINCT 57 ) END + + 32 AS col0, + SUM ( DISTINCT + 60 ) / + - 53 + + 15 + 10 + 62 * 40 + + 36
----
NULL
2540

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT DISTINCT - 69 - + 68 + 97 * + + MIN( DISTINCT - 79 ) + - 96 AS col2
----
-7896

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT - 69 - + 68 + 97 * + + MIN ( DISTINCT - 79 ) + - 96 AS col2
----
-7896

query I rowsort
SELECT - 37 * 77
----
-2849

query I rowsort
SELECT ALL - 26 * + 9 + - 95
----
-329

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-432
SELECT ALL - COUNT( * ) DIV 60 AS col1, + 47
----
0
47

skipif mysql # not compatible
query II rowsort label-432
SELECT ALL - COUNT ( * ) / 60 AS col1, + 47
----
0
47

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL CASE + 46 WHEN - - 72 * 32 / + - ( + SUM( ALL - 49 ) ) * 15 + + 17 THEN + 62 * - + 91 + - 25 WHEN 28 * - 15 * - 61 + 27 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL CASE + 46 WHEN - - 72 * 32 / + - ( + SUM ( ALL - 49 ) ) * 15 + + 17 THEN + 62 * - + 91 + - 25 WHEN 28 * - 15 * - 61 + 27 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT - COUNT( ALL - - 61 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-434
SELECT - COUNT ( ALL - - 61 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-435
SELECT DISTINCT + NULLIF ( + - CAST( NULL AS SIGNED ), - + 22 / - + COALESCE ( + - 5, - + CASE - NULLIF ( COUNT( * ), - 85 ) WHEN - 65 * CASE 57 WHEN 21 - - - 85 THEN - 99 + - 76 WHEN + SUM( - + CASE - + 24 WHEN - 65 THEN + - 33 + - 76 ELSE + - 2 * + 81 * + - 58 * + - 43 END ) * - 61 - + - ( - 93 ) + + 9 * MIN( - 50 ) THEN NULL ELSE NULL END * 28 THEN NULL ELSE 17 / COUNT( * ) END ) * 18 + COUNT( DISTINCT - 7 ) ) * 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT + NULLIF ( + - CAST ( NULL AS INTEGER ), - + 22 / - + COALESCE ( + - 5, - + CASE - NULLIF ( COUNT ( * ), - 85 ) WHEN - 65 * CASE 57 WHEN 21 - - - 85 THEN - 99 + - 76 WHEN + SUM ( - + CASE - + 24 WHEN - 65 THEN + - 33 + - 76 ELSE + - 2 * + 81 * + - 58 * + - 43 END ) * - 61 - + - ( - 93 ) + + 9 * MIN ( - 50 ) THEN NULL ELSE NULL END * 28 THEN NULL ELSE 17 / COUNT ( * ) END ) * 18 + COUNT ( DISTINCT - 7 ) ) * 82 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-436
SELECT DISTINCT + 1 - + 73 * COUNT( ALL CAST( + + 93 AS DECIMAL ) )
----
-72

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT + 1 - + 73 * COUNT ( ALL CAST ( + + 93 AS REAL ) )
----
-72

query I rowsort
SELECT - 70 * - 23 + - 59 AS col2
----
1551

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-438
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col0, 3 + + 85 AS col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-438
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col0, 3 + + 85 AS col0
----
NULL
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-439
SELECT 60 * - ( - COALESCE ( 65, + - 5 DIV - COUNT( * ) + - ( COUNT( * ) ) ) ) + - + 68 AS col0
----
3832

skipif mysql # not compatible
query I rowsort label-439
SELECT 60 * - ( - COALESCE ( 65, + - 5 / - COUNT ( * ) + - ( COUNT ( * ) ) ) ) + - + 68 AS col0
----
3832

query II rowsort
SELECT - 53 * 99, 98 * + 16 + 88 col1
----
-5247
1656

query I rowsort
SELECT + 62 + - 22 - + - 19 col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT DISTINCT + CASE COUNT( * ) WHEN - 56 + - 0 + 87 THEN 28 + 4 - + + 81 WHEN 49 THEN NULL ELSE CASE COUNT( * ) WHEN - 75 * + + 3 - + 90 * - + 13 / - ( 69 ) THEN + 84 ELSE - 5 * + 62 * + 1 END END AS col2
----
-310

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT + CASE COUNT ( * ) WHEN - 56 + - 0 + 87 THEN 28 + 4 - + + 81 WHEN 49 THEN NULL ELSE CASE COUNT ( * ) WHEN - 75 * + + 3 - + 90 * - + 13 / - ( 69 ) THEN + 84 ELSE - 5 * + 62 * + 1 END END AS col2
----
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT - MAX( + 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-443
SELECT - MAX ( + 16 ) AS col0
----
-16

query I rowsort
SELECT ALL 50 * - 92
----
-4600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-445
SELECT ALL + + CASE - - ( 30 ) WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE - 4 - CASE - 6 WHEN + 19 THEN 86 + + ( ( + 85 ) ) + 19 WHEN + + 36 THEN + 9 WHEN 8 THEN NULL ELSE 59 * - 82 END + + 53 + - + 13 * + 59 + - 48 * NULLIF ( 75, 82 - - 46 ) * + 17 END * - NULLIF ( + 91, - AVG ( ALL 68 ) ) + - 29
----
5194251

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL + + CASE - - ( 30 ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 4 - CASE - 6 WHEN + 19 THEN 86 + + ( ( + 85 ) ) + 19 WHEN + + 36 THEN + 9 WHEN 8 THEN NULL ELSE 59 * - 82 END + + 53 + - + 13 * + 59 + - 48 * NULLIF ( 75, 82 - - 46 ) * + 17 END * - NULLIF ( + 91, - AVG ( ALL 68 ) ) + - 29
----
5194251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-446
SELECT + 5 * ( + CAST( NULL AS SIGNED ) ) + - - 56 + 14 + - + 51 * - COUNT( * ) + + + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-446
SELECT + 5 * ( + CAST ( NULL AS INTEGER ) ) + - - 56 + 14 + - + 51 * - COUNT ( * ) + + + 54 AS col1
----
NULL

query I rowsort
SELECT - 1 * ( - 33 ) + - 48 col0
----
-15

query I rowsort
SELECT ALL + 35 * - - 45 + 60 + - 88 - 98
----
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT MIN( DISTINCT - 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-449
SELECT MIN ( DISTINCT - 50 ) AS col2
----
-50

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-451
SELECT ALL 27 + NULLIF ( + 35, - MIN( 51 ) ) * + 79 + + - CAST( NULL AS DECIMAL ) * 9 * NULLIF ( + - 80, COALESCE ( - CASE + 68 WHEN NULLIF ( + 9, COALESCE ( - - 34, + - 5 + - 54 - + 60 ) ) THEN + ( - - 98 ) ELSE NULL END, - 30 * - 86 / + - 42, - 35 * 92 ) ) - + - 59 + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL 27 + NULLIF ( + 35, - MIN ( 51 ) ) * + 79 + + - CAST ( NULL AS REAL ) * 9 * NULLIF ( + - 80, COALESCE ( - CASE + 68 WHEN NULLIF ( + 9, COALESCE ( - - 34, + - 5 + - 54 - + 60 ) ) THEN + ( - - 98 ) ELSE NULL END, - 30 * - 86 / + - 42, - 35 * 92 ) ) - + - 59 + + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT - COUNT( ALL 51 ) * - 38 + 18 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-452
SELECT - COUNT ( ALL 51 ) * - 38 + 18 AS col2
----
56

query I rowsort
SELECT ALL + 63 + + 39 AS col0
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-454
SELECT NULLIF ( - 51, + + 98 / COUNT( * ) * + + 19 ) * + 23 - COUNT( * ) * CASE - + 73 WHEN + 56 THEN + 0 WHEN 37 THEN NULL WHEN + 12 THEN NULL END AS col2, 20 * 86 AS col1
----
NULL
1720

skipif mysql # not compatible
query II rowsort label-454
SELECT NULLIF ( - 51, + + 98 / COUNT ( * ) * + + 19 ) * + 23 - COUNT ( * ) * CASE - + 73 WHEN + 56 THEN + 0 WHEN 37 THEN NULL WHEN + 12 THEN NULL END AS col2, 20 * 86 AS col1
----
NULL
1720

query I rowsort
SELECT ALL - 0 + + 15 * + 57 * + 10 AS col0
----
8550

query I rowsort
SELECT DISTINCT + 45 * + + 30
----
1350

query II rowsort
SELECT + 44 * + 39 + 29 AS col2, 63 * + - 69 AS col0
----
1745
-4347

query I rowsort
SELECT ALL - NULLIF ( - 54, 13 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT ALL COUNT( * ) - - 92 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL COUNT ( * ) - - 92 AS col2
----
93

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

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

query I rowsort
SELECT - ( - 23 )
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-462
SELECT - 21, CAST( NULL AS DECIMAL ) AS col2
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-462
SELECT - 21, CAST ( NULL AS REAL ) AS col2
----
-21
NULL

query I rowsort
SELECT - 33 * + 42 + 79 * - - 51 * - 56 + - - 35
----
-226975

query I rowsort
SELECT - - 22 + 54 - + ( + + 65 ) AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-465
SELECT - 68 / + 41 / - MIN( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-465
SELECT - 68 / + 41 / - MIN ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT - - 42 - SUM( + 16 ) col0
----
26

skipif mysql # not compatible
query I rowsort label-466
SELECT - - 42 - SUM ( + 16 ) col0
----
26

query I rowsort
SELECT DISTINCT + 37 * 13 AS col1
----
481

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-468
SELECT ALL COALESCE ( CASE + 68 WHEN - + 8 THEN + ( - 81 ) WHEN - - NULLIF ( - CAST( NULL AS SIGNED ), + ( + 7 ) ) * + ( + 87 ) + + 55 + + - 97 + - 57 - 83 + - 17 * + + 91 * + 88 + + - 93 / + CAST( AVG ( - 35 ) AS SIGNED ) THEN NULL END, + 60 + - 55 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL COALESCE ( CASE + 68 WHEN - + 8 THEN + ( - 81 ) WHEN - - NULLIF ( - CAST ( NULL AS INTEGER ), + ( + 7 ) ) * + ( + 87 ) + + 55 + + - 97 + - 57 - 83 + - 17 * + + 91 * + 88 + + - 93 / + CAST ( AVG ( - 35 ) AS INTEGER ) THEN NULL END, + 60 + - 55 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-469
SELECT - - 73 + + 52 + 4, - COUNT( * ) * + - NULLIF ( - ( + 20 ), + AVG ( DISTINCT - + 51 ) * + COUNT( * ) + + 61 + 27 ) AS col1
----
129
-20

skipif mysql # not compatible
query II rowsort label-469
SELECT - - 73 + + 52 + 4, - COUNT ( * ) * + - NULLIF ( - ( + 20 ), + AVG ( DISTINCT - + 51 ) * + COUNT ( * ) + + 61 + 27 ) AS col1
----
129
-20

query I rowsort
SELECT - + 98 + + 16 + - ( - 51 ) col2
----
-31

query I rowsort
SELECT ALL + 87 + + 43
----
130

query I rowsort
SELECT - 27 + + 99
----
72

query I rowsort
SELECT - 40 + - 82
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT - + COUNT( - 93 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-474
SELECT - + COUNT ( - 93 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-475
SELECT 29 col1, + CAST( NULL AS SIGNED ) + - + COUNT( * )
----
29
NULL

skipif mysql # not compatible
query II rowsort label-475
SELECT 29 col1, + CAST ( NULL AS INTEGER ) + - + COUNT ( * )
----
29
NULL

query I rowsort
SELECT + 54 + - 25 + + + 92 * - 65
----
-5951

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL - COALESCE ( + 49, + 29 ) + - ( COUNT( * ) ) col0
----
-50

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - COALESCE ( + 49, + 29 ) + - ( COUNT ( * ) ) col0
----
-50

query II rowsort
SELECT DISTINCT ( 16 ), - 76 * - 40 AS col2
----
16
3040

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

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT ALL - COUNT( * ) * - SUM( ALL - 94 ) + ( - COUNT( * ) )
----
-95

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL - COUNT ( * ) * - SUM ( ALL - 94 ) + ( - COUNT ( * ) )
----
-95

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ALL 9 * - - 64 * + + SUM( - 72 ) + 72 * - - 27 - 42
----
-39570

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL 9 * - - 64 * + + SUM ( - 72 ) + 72 * - - 27 - 42
----
-39570

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT + MAX( 63 ) + + SUM( + - 74 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-484
SELECT + MAX ( 63 ) + + SUM ( + - 74 ) AS col0
----
-11

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-486
SELECT CASE - - ( - 32 ) WHEN COALESCE ( + 75, + COUNT( DISTINCT - - ( 60 ) ) + + 83 + + CASE - + NULLIF ( - 92, 11 + 30 ) WHEN - 94 + - COUNT( * ) * + 24 - CAST( NULL AS SIGNED ) THEN - 79 WHEN + ( + AVG ( DISTINCT + 46 ) ) THEN 15 END * - - 48, - 66 - - - COUNT( * ) * + - 62 * + 45 ) + - COALESCE ( - 22, + 44, + COUNT( * ) - 26 ) THEN NULL WHEN - 69 THEN 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-486
SELECT CASE - - ( - 32 ) WHEN COALESCE ( + 75, + COUNT ( DISTINCT - - ( 60 ) ) + + 83 + + CASE - + NULLIF ( - 92, 11 + 30 ) WHEN - 94 + - COUNT ( * ) * + 24 - CAST ( NULL AS INTEGER ) THEN - 79 WHEN + ( + AVG ( DISTINCT + 46 ) ) THEN 15 END * - - 48, - 66 - - - COUNT ( * ) * + - 62 * + 45 ) + - COALESCE ( - 22, + 44, + COUNT ( * ) - 26 ) THEN NULL WHEN - 69 THEN 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT + 40 * COUNT( DISTINCT + 5 ) + - 27
----
13

skipif mysql # not compatible
query I rowsort label-487
SELECT + 40 * COUNT ( DISTINCT + 5 ) + - 27
----
13

query III rowsort
SELECT ALL + 15 col2, - 40, 47 * - 94 AS col1
----
15
-40
-4418

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT + 49 + MIN( - ( 64 ) ) + 53 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-489
SELECT + 49 + MIN ( - ( 64 ) ) + 53 AS col1
----
38

query I rowsort
SELECT ALL - ( 72 ) * - 30 - + + 54
----
2106

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

skipif mysql # not compatible
query I rowsort label-491
SELECT DISTINCT COUNT ( * ) / + ( - 29 )
----
0

query I rowsort
SELECT DISTINCT - 76 * - 75
----
5700

query I rowsort
SELECT + - 43 * + - 68 + + 98 AS col0
----
3022

onlyif mysql # DIV for integer division: 
query I rowsort label-494
SELECT DISTINCT - ( - + 65 ) * 97 * 55 DIV ( ( - COALESCE ( - - 76, - - 81 ) ) )
----
-4562

skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT - ( - + 65 ) * 97 * 55 / ( ( - COALESCE ( - - 76, - - 81 ) ) )
----
-4562

onlyif mysql # aggregate syntax: 
query II rowsort label-495
SELECT ALL + - 69 AS col2, CASE + + NULLIF ( 6, 91 * + - 8 ) WHEN - - 15 THEN + - 0 * - ( + COUNT( * ) ) ELSE NULL END AS col1
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-495
SELECT ALL + - 69 AS col2, CASE + + NULLIF ( 6, 91 * + - 8 ) WHEN - - 15 THEN + - 0 * - ( + COUNT ( * ) ) ELSE NULL END AS col1
----
-69
NULL

query I rowsort
SELECT + + 68 * ( - + 64 ) * 41 * + 94 + + 99 + 77
----
-16772432

query I rowsort
SELECT - + 63 + - + 64 AS col1
----
-127

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

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

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

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

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

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

query I rowsort
SELECT ALL - - 1 + 78 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT ALL 72 + CASE - + 94 WHEN 37 THEN + 53 ELSE + + ( + SUM( - 24 ) ) END AS col2
----
48

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL 72 + CASE - + 94 WHEN 37 THEN + 53 ELSE + + ( + SUM ( - 24 ) ) END AS col2
----
48

query I rowsort
SELECT DISTINCT 76 + ( + 83 ) * + 58 AS col2
----
4890

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-505
SELECT CAST( - + 48 AS SIGNED ) AS col1, 62 * 17 col2
----
-48
1054

skipif mysql # not compatible
query II rowsort label-505
SELECT CAST ( - + 48 AS INTEGER ) AS col1, 62 * 17 col2
----
-48
1054

onlyif mysql # aggregate syntax: 
query II rowsort label-506
SELECT ALL - + NULLIF ( COUNT( * ), AVG ( ALL + 23 ) - - 50 ) + - - 93, ( + - 51 ) col2
----
92
-51

skipif mysql # not compatible
query II rowsort label-506
SELECT ALL - + NULLIF ( COUNT ( * ), AVG ( ALL + 23 ) - - 50 ) + - - 93, ( + - 51 ) col2
----
92
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-507
SELECT + + ( NULLIF ( + COALESCE ( SUM( DISTINCT - 31 ), + - COUNT( * ) ), + + AVG ( - 84 ) / - 35 + 71 + + 24 ) ) - 32 + 64 * + COUNT( * ) AS col1, + 83 AS col2
----
1
83

skipif mysql # not compatible
query II rowsort label-507
SELECT + + ( NULLIF ( + COALESCE ( SUM ( DISTINCT - 31 ), + - COUNT ( * ) ), + + AVG ( - 84 ) / - 35 + 71 + + 24 ) ) - 32 + 64 * + COUNT ( * ) AS col1, + 83 AS col2
----
1
83

query I rowsort
SELECT ALL - + 34 + + + 74 AS col2
----
40

query I rowsort
SELECT ALL 51 + + 69 + 34
----
154

query II rowsort
SELECT ALL + 72 * - 82 AS col1, 6
----
-5904
6

onlyif mysql # DIV for integer division: 
query I rowsort label-511
SELECT - 22 DIV 6
----
-3

skipif mysql # not compatible
query I rowsort label-511
SELECT - 22 / 6
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT ALL + 63 * SUM( DISTINCT 63 ) AS col0
----
3969

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL + 63 * SUM ( DISTINCT 63 ) AS col0
----
3969

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-513
SELECT DISTINCT + MIN( - 9 ) * + 84 DIV - 41 + - + NULLIF ( - 41, - 17 + + - CASE - - 19 WHEN - - 26 THEN + NULLIF ( 17, 33 ) END + - + COALESCE ( - 66, 64, - + 48 ) )
----
59

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT + MIN ( - 9 ) * + 84 / - 41 + - + NULLIF ( - 41, - 17 + + - CASE - - 19 WHEN - - 26 THEN + NULLIF ( 17, 33 ) END + - + COALESCE ( - 66, 64, - + 48 ) )
----
59

query II rowsort
SELECT ALL - 99 - + 67, CASE 80 WHEN + - 10 + + 8 * + 9 * - ( + - 22 ) THEN NULL WHEN - 87 THEN - 60 * + - 63 - + 88 * 58 + + 74 ELSE 49 + + 93 END AS col1
----
-166
142

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT DISTINCT - 87 DIV 35 * + + 58 - + + 66 - + 74 * 11 col2
----
-996

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT - 87 / 35 * + + 58 - + + 66 - + 74 * 11 col2
----
-996

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT - 3 * COUNT( * ) * - - 80
----
-240

skipif mysql # not compatible
query I rowsort label-516
SELECT - 3 * COUNT ( * ) * - - 80
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-517
SELECT + CASE 77 WHEN - 18 + 84 THEN + CAST( - + ( - 22 ) AS SIGNED ) END, COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-517
SELECT + CASE 77 WHEN - 18 + 84 THEN + CAST ( - + ( - 22 ) AS INTEGER ) END, COUNT ( * ) col1
----
NULL
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-519
SELECT + 98 DIV - + COUNT( * ) + + 45 - 15 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-519
SELECT + 98 / - + COUNT ( * ) + + 45 - 15 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT ALL + MAX( + CASE + ( - COALESCE ( - + 53, + 59 ) ) WHEN - COALESCE ( + CASE 20 WHEN 14 * - 57 THEN - 91 END, + 28 * + 72 ) THEN NULLIF ( + 88, ( 36 ) ) WHEN + 58 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL + MAX ( + CASE + ( - COALESCE ( - + 53, + 59 ) ) WHEN - COALESCE ( + CASE 20 WHEN 14 * - 57 THEN - 91 END, + 28 * + 72 ) THEN NULLIF ( + 88, ( 36 ) ) WHEN + 58 THEN NULL END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-521
SELECT DISTINCT - COALESCE ( - CAST( NULL AS SIGNED ), - + 47 - SUM( + 8 ) ) AS col1, COUNT( * ) + + 74
----
55
75

skipif mysql # not compatible
query II rowsort label-521
SELECT DISTINCT - COALESCE ( - CAST ( NULL AS INTEGER ), - + 47 - SUM ( + 8 ) ) AS col1, COUNT ( * ) + + 74
----
55
75

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL MAX( - + 24 ) * - COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL MAX ( - + 24 ) * - COUNT ( * ) AS col1
----
24

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

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

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

skipif mysql # not compatible
query I rowsort label-524
SELECT COUNT ( 1 ) + COUNT ( * ) AS col0
----
2

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

skipif mysql # not compatible
query I rowsort label-525
SELECT + SUM ( - 85 )
----
-85

query I rowsort
SELECT + 91 * - + 48 * + - 30 + 10 AS col1
----
131050

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT ALL + 42 * - - ( 15 ) * 11 * + MAX( - 20 ) AS col2
----
-138600

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL + 42 * - - ( 15 ) * 11 * + MAX ( - 20 ) AS col2
----
-138600

query I rowsort
SELECT - 59 * + 49 * + 8 AS col2
----
-23128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-529
SELECT ALL COUNT( * ) DIV + 46 * - + 86 * - 83 + - + 50
----
-50

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL COUNT ( * ) / + 46 * - + 86 * - 83 + - + 50
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT ALL + 70 + + - 71 DIV ( - 4 ) + + - 57
----
30

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL + 70 + + - 71 / ( - 4 ) + + - 57
----
30

query I rowsort
SELECT + 9 * + 52 * + - 23
----
-10764

query II rowsort
SELECT 45 + - - 5, 6 AS col0
----
50
6

query I rowsort
SELECT ALL 5 * + 2 + + 95 AS col0
----
105

query I rowsort
SELECT - ( 9 ) + - 69 AS col0
----
-78

query I rowsort
SELECT ALL 45 - 46 AS col2
----
-1

query I rowsort
SELECT 38 + - ( - 59 ) * - 59
----
-3443

query I rowsort
SELECT ALL - 31 - 83 AS col1
----
-114

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

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

query I rowsort
SELECT ALL ( + 46 ) * 37
----
1702

query II rowsort
SELECT 96, 17 col2
----
96
17

onlyif mysql # aggregate syntax: 
query II rowsort label-541
SELECT DISTINCT 91 AS col0, COUNT( * ) * + - 50 + 64 AS col0
----
91
14

skipif mysql # not compatible
query II rowsort label-541
SELECT DISTINCT 91 AS col0, COUNT ( * ) * + - 50 + 64 AS col0
----
91
14

query I rowsort
SELECT 64 + + 48
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT CAST( NULL AS SIGNED ) * + NULLIF ( 64, 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT CAST ( NULL AS INTEGER ) * + NULLIF ( 64, 15 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-544
SELECT DISTINCT 0, + COUNT( * ) DIV - - 34 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-544
SELECT DISTINCT 0, + COUNT ( * ) / - - 34 AS col2
----
0
0

query I rowsort
SELECT ALL - 41 * 98
----
-4018

query I rowsort
SELECT DISTINCT - 23 * + - 50
----
1150

query I rowsort
SELECT ALL - NULLIF ( - 29, - + 63 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT DISTINCT - COUNT( * ) * - 19 col1
----
19

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT - COUNT ( * ) * - 19 col1
----
19

query I rowsort
SELECT 73 * + 82 AS col1
----
5986

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

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL 90 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( + 74 )
----
-74

query I rowsort
SELECT DISTINCT - 24 * + 60 col0
----
-1440

query I rowsort
SELECT ALL + 69 * - 55
----
-3795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-554
SELECT CAST( - - COUNT( * ) AS SIGNED ) * - 83 AS col2, - 65 DIV 54
----
-83
-1

skipif mysql # not compatible
query II rowsort label-554
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) * - 83 AS col2, - 65 / 54
----
-83
-1

query I rowsort
SELECT 63 * - 63
----
-3969

query I rowsort
SELECT COALESCE ( + + COALESCE ( + 24, 92 ), - - 74 ) * + 32 + + 35
----
803

query II rowsort
SELECT + 30 AS col0, + 31
----
30
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-558
SELECT 32 DIV - CASE - 76 WHEN + CASE + - 65 WHEN + COUNT( * ) THEN + COUNT( * ) + - + 30 END THEN + CASE - + 47 WHEN - - CAST( - - 62 AS SIGNED ) * - 70 * - COUNT( * ) THEN COUNT( * ) WHEN + - 96 THEN + CASE - ( + AVG ( + 29 ) ) WHEN - - COUNT( * ) THEN 62 ELSE NULL END * - - 66 + + + 2 * 89 WHEN COUNT( * ) * - - 65 THEN NULL END WHEN - COUNT( * ) * - COUNT( * ) THEN - + CASE - 68 WHEN 94 * + 5 + + COUNT( * ) THEN NULL WHEN 76 + 72 * 49 THEN - 37 END DIV - 29 ELSE - 26 * COUNT( * ) + NULLIF ( 20, 15 * + 13 - 15 ) * + COUNT( * ) END
----
5

skipif mysql # not compatible
query I rowsort label-558
SELECT 32 / - CASE - 76 WHEN + CASE + - 65 WHEN + COUNT ( * ) THEN + COUNT ( * ) + - + 30 END THEN + CASE - + 47 WHEN - - CAST ( - - 62 AS INTEGER ) * - 70 * - COUNT ( * ) THEN COUNT ( * ) WHEN + - 96 THEN + CASE - ( + AVG ( + 29 ) ) WHEN - - COUNT ( * ) THEN 62 ELSE NULL END * - - 66 + + + 2 * 89 WHEN COUNT ( * ) * - - 65 THEN NULL END WHEN - COUNT ( * ) * - COUNT ( * ) THEN - + CASE - 68 WHEN 94 * + 5 + + COUNT ( * ) THEN NULL WHEN 76 + 72 * 49 THEN - 37 END / - 29 ELSE - 26 * COUNT ( * ) + NULLIF ( 20, 15 * + 13 - 15 ) * + COUNT ( * ) END
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ALL - COUNT( * ) + + 56
----
55

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL - COUNT ( * ) + + 56
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT + COUNT( * ) + + + 20
----
21

skipif mysql # not compatible
query I rowsort label-560
SELECT + COUNT ( * ) + + + 20
----
21

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

skipif mysql # not compatible
query II rowsort label-561
SELECT DISTINCT - - 9, COUNT ( * ) AS col2
----
9
1

query I rowsort
SELECT - 48 * 25 AS col1
----
-1200

query I rowsort
SELECT ALL - - 67 + + 64
----
131

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

query I rowsort
SELECT DISTINCT + + NULLIF ( + + 63, - - 36 ) + + + 23
----
86

query I rowsort
SELECT ALL - + 55 * + 17
----
-935

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

skipif mysql # not compatible
query I rowsort label-567
SELECT 81 + + CAST ( NULL AS INTEGER ) + + COUNT ( + 36 )
----
NULL

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

query II rowsort
SELECT - 97 AS col1, + 54
----
-97
54

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT - 64 - - COUNT( * ) - 41 col1
----
-104

skipif mysql # not compatible
query I rowsort label-570
SELECT - 64 - - COUNT ( * ) - 41 col1
----
-104

query I rowsort
SELECT DISTINCT - - 13 * + 63 AS col0
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT ALL + 73 - + COUNT( ALL - 48 )
----
72

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL + 73 - + COUNT ( ALL - 48 )
----
72

query I rowsort
SELECT 52 * - + 88 * + + 12 * 51 * - 68 AS col2
----
190434816

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-576
SELECT 58 / + + 99
----
0

query I rowsort
SELECT 29 * - 33
----
-957

onlyif mysql # DIV for integer division: 
query I rowsort label-578
SELECT 35 DIV - 99 * + 42 * - 5 * + 89
----
0

skipif mysql # not compatible
query I rowsort label-578
SELECT 35 / - 99 * + 42 * - 5 * + 89
----
0

query I rowsort
SELECT DISTINCT 92 * 79 AS col1
----
7268

query I rowsort
SELECT DISTINCT 85 * - 78
----
-6630

query I rowsort
SELECT DISTINCT 3 col1
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT - SUM( ALL - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-583
SELECT - SUM ( ALL - 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT ALL 91 + + - COUNT( - 5 )
----
90

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL 91 + + - COUNT ( - 5 )
----
90

query I rowsort
SELECT DISTINCT 49 * - 7 * + + 15 AS col1
----
-5145

onlyif mysql # aggregate syntax: 
query II rowsort label-586
SELECT DISTINCT + 64 + + + 83 AS col1, - SUM( - 82 ) - - - 44 + ( + MIN( ALL + 89 ) ) AS col1
----
147
127

skipif mysql # not compatible
query II rowsort label-586
SELECT DISTINCT + 64 + + + 83 AS col1, - SUM ( - 82 ) - - - 44 + ( + MIN ( ALL + 89 ) ) AS col1
----
147
127

query I rowsort
SELECT + 73 + + + 20 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT + 2 * + ( + 28 ) + - + 5 - - MIN( DISTINCT 17 ) * COALESCE ( + 73, + - 67 ) AS col1
----
1292

skipif mysql # not compatible
query I rowsort label-588
SELECT + 2 * + ( + 28 ) + - + 5 - - MIN ( DISTINCT 17 ) * COALESCE ( + 73, + - 67 ) AS col1
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT COALESCE ( + - MAX( NULLIF ( - ( - ( + 45 ) ), - 98 ) ), 10 ) col1
----
-45

skipif mysql # not compatible
query I rowsort label-589
SELECT COALESCE ( + - MAX ( NULLIF ( - ( - ( + 45 ) ), - 98 ) ), 10 ) col1
----
-45

query I rowsort
SELECT CASE WHEN ( NULL ) IS NULL THEN 48 END
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-591
SELECT NULLIF ( NULLIF ( + 34, - - 17 ), - CAST( - ( + 59 ) AS SIGNED ) - 6 + - - 24 + 46 * - - 10 )
----
34

skipif mysql # not compatible
query I rowsort label-591
SELECT NULLIF ( NULLIF ( + 34, - - 17 ), - CAST ( - ( + 59 ) AS INTEGER ) - 6 + - - 24 + 46 * - - 10 )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-592
SELECT + 11 DIV + 64 + 67 + + 70
----
137

skipif mysql # not compatible
query I rowsort label-592
SELECT + 11 / + 64 + 67 + + 70
----
137

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT DISTINCT 20 * + - 95 + - CASE - AVG ( DISTINCT + - 55 ) WHEN - COUNT( * ) THEN + 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT 20 * + - 95 + - CASE - AVG ( DISTINCT + - 55 ) WHEN - COUNT ( * ) THEN + 65 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-595
SELECT + - CAST ( - CAST ( - CAST ( 20 AS INTEGER ) AS INTEGER ) AS INTEGER ) / + ( - - 93 ) * COUNT ( * ) + + COUNT ( * ) col1
----
1

query I rowsort
SELECT 65 * 29 + + - 64 * - 38 AS col1
----
4317

query I rowsort
SELECT ALL + 59 * 48
----
2832

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

skipif mysql # not compatible
query I rowsort label-598
SELECT - COUNT ( * ) * 45
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-599
SELECT - + 99 * NULLIF ( + 19, - 79 + - + CASE - - NULLIF ( + 73, 62 + + 55 ) WHEN 49 THEN + ( 34 ) WHEN CASE + 33 WHEN - COUNT( DISTINCT 20 ) THEN COUNT( DISTINCT - CAST( - 21 AS SIGNED ) ) WHEN - - 6 THEN NULL END THEN NULL END ) col0
----
-1881

skipif mysql # not compatible
query I rowsort label-599
SELECT - + 99 * NULLIF ( + 19, - 79 + - + CASE - - NULLIF ( + 73, 62 + + 55 ) WHEN 49 THEN + ( 34 ) WHEN CASE + 33 WHEN - COUNT ( DISTINCT 20 ) THEN COUNT ( DISTINCT - CAST ( - 21 AS INTEGER ) ) WHEN - - 6 THEN NULL END THEN NULL END ) col0
----
-1881

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-600
SELECT - 44 * - + 62 + + + ( - + CAST( NULL AS SIGNED ) ) - + 58 + - CAST( + 47 AS SIGNED ) / 85 * + - 63 * - + 95 + - + 35 + - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-600
SELECT - 44 * - + 62 + + + ( - + CAST ( NULL AS INTEGER ) ) - + 58 + - CAST ( + 47 AS INTEGER ) / 85 * + - 63 * - + 95 + - + 35 + - 68 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-601
SELECT ALL + CASE 9 WHEN 17 THEN - CAST( NULL AS SIGNED ) / 95 * - 97 * - 39 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL + CASE 9 WHEN 17 THEN - CAST ( NULL AS INTEGER ) / 95 * - 97 * - 39 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT - 84 * - - 96 + 96 * - + COUNT( ALL - 15 )
----
-8160

skipif mysql # not compatible
query I rowsort label-602
SELECT - 84 * - - 96 + 96 * - + COUNT ( ALL - 15 )
----
-8160

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT - ( - MIN( DISTINCT - 18 ) ) - - - 92
----
-110

skipif mysql # not compatible
query I rowsort label-603
SELECT - ( - MIN ( DISTINCT - 18 ) ) - - - 92
----
-110

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-605
SELECT - 63 + - - NULLIF ( CAST( NULL AS SIGNED ), + + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-605
SELECT - 63 + - - NULLIF ( CAST ( NULL AS INTEGER ), + + 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT - SUM( ALL 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-606
SELECT - SUM ( ALL 70 )
----
-70

query II rowsort
SELECT - 85, - 48 AS col2
----
-85
-48

query I rowsort
SELECT - 39 * 57
----
-2223

query I rowsort
SELECT ALL - 41 * + 44
----
-1804

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT - 57 + + - 89 + + - 32 * + MIN( DISTINCT + 64 ) + - 6
----
-2200

skipif mysql # not compatible
query I rowsort label-610
SELECT - 57 + + - 89 + + - 32 * + MIN ( DISTINCT + 64 ) + - 6
----
-2200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-611
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), 37 ) + + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), 37 ) + + 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-612
SELECT ALL + 41 + + 46 + MAX( ALL + 57 ) * + + 5 - + COUNT( * ) * - 14 * - 87 + ( + 63 ) * 99 + + 84 * - 30 - - 74 + + - COUNT( * ) DIV + 52
----
2945

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL + 41 + + 46 + MAX ( ALL + 57 ) * + + 5 - + COUNT ( * ) * - 14 * - 87 + ( + 63 ) * 99 + + 84 * - 30 - - 74 + + - COUNT ( * ) / + 52
----
2945

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT - SUM( 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-613
SELECT - SUM ( 32 )
----
-32

query I rowsort
SELECT + 85 + 30 AS col1
----
115

query I rowsort
SELECT ALL 97 + - ( 86 ) AS col2
----
11

query I rowsort
SELECT + 3 + - - 71 col2
----
74

query II rowsort
SELECT 59 col1, COALESCE ( + ( + 91 ), - 41 ) - ( + 43 ) + - + 9 * - + 27 + - 17
----
59
274

query I rowsort
SELECT + 31 + 94 + - 13 col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-619
SELECT ALL COUNT( * ) + 55 * + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL COUNT ( * ) + 55 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-54

query I rowsort
SELECT + ( - 21 ) * + 69 * 32 AS col0
----
-46368

query I rowsort
SELECT - ( - - 77 )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-622
SELECT + 19 * + - ( + - CAST( NULL AS SIGNED ) ), - 50 col1
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-622
SELECT + 19 * + - ( + - CAST ( NULL AS INTEGER ) ), - 50 col1
----
NULL
-50

query I rowsort
SELECT ALL 31 * 56
----
1736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-624
SELECT CAST( - 73 AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-624
SELECT CAST ( - 73 AS INTEGER )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-625
SELECT DISTINCT + 4 DIV - SUM( + 61 ) + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT + 4 / - SUM ( + 61 ) + - COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-626
SELECT ALL CASE + 98 WHEN - 56 * + - 90 + CASE 0 WHEN + 0 / - 88 + 97 + + COUNT( * ) / + 51 THEN + 51 * - 36 WHEN - ( MAX( 40 ) ) THEN NULL WHEN + 34 THEN + 68 END THEN NULL WHEN + 10 + - - COUNT( * ) + - 77 * + 86 THEN + 89 ELSE NULL END / + 82 + 30 + + CAST( + + AVG ( - + 77 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL CASE + 98 WHEN - 56 * + - 90 + CASE 0 WHEN + 0 / - 88 + 97 + + COUNT ( * ) / + 51 THEN + 51 * - 36 WHEN - ( MAX ( 40 ) ) THEN NULL WHEN + 34 THEN + 68 END THEN NULL WHEN + 10 + - - COUNT ( * ) + - 77 * + 86 THEN + 89 ELSE NULL END / + 82 + 30 + + CAST ( + + AVG ( - + 77 ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT COUNT( + 9 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-627
SELECT COUNT ( + 9 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL + + 58 / ( + 97 ) * + - 32 + CASE + COUNT( * ) WHEN + - 26 * 91 + COALESCE ( 54, + + 25 - + 27 * + 25 + 31 * + - CASE - CASE WHEN NOT 51 IS NOT NULL THEN - - ( 41 ) END WHEN 10 THEN - - 92 - 55 WHEN - 35 THEN NULL END ) + - COUNT( * ) THEN NULL WHEN + 26 / - ( 13 ) THEN + 52 * + 75 * + COUNT( * ) * - 32 END + + COUNT( * ) + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL + + 58 / ( + 97 ) * + - 32 + CASE + COUNT ( * ) WHEN + - 26 * 91 + COALESCE ( 54, + + 25 - + 27 * + 25 + 31 * + - CASE - CASE WHEN NOT 51 IS NOT NULL THEN - - ( 41 ) END WHEN 10 THEN - - 92 - 55 WHEN - 35 THEN NULL END ) + - COUNT ( * ) THEN NULL WHEN + 26 / - ( 13 ) THEN + 52 * + 75 * + COUNT ( * ) * - 32 END + + COUNT ( * ) + - 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT COALESCE ( NULLIF ( CAST( NULL AS SIGNED ), - SUM( ALL + 23 ) ), - - 80, 56, - 30 )
----
80

skipif mysql # not compatible
query I rowsort label-629
SELECT COALESCE ( NULLIF ( CAST ( NULL AS INTEGER ), - SUM ( ALL + 23 ) ), - - 80, 56, - 30 )
----
80

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

query II rowsort
SELECT - 14 AS col0, 99 AS col2
----
-14
99

query II rowsort
SELECT + 66 * + ( - 24 ), + 88 AS col1
----
-1584
88

query I rowsort
SELECT + - 8 * - - 55
----
-440

query I rowsort
SELECT + - CASE + - AVG ( - - 91 ) WHEN - - 5 THEN + 13 / + 60 * + + 83 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-635
SELECT ALL - 67 / - SUM( ALL + 10 ) * + + CAST( NULL AS SIGNED ) + SUM( 43 ) + - SUM( - 39 ) - - + 25 + - - 80 * - 12 * + 25 * + - 95 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL - 67 / - SUM ( ALL + 10 ) * + + CAST ( NULL AS INTEGER ) + SUM ( 43 ) + - SUM ( - 39 ) - - + 25 + - - 80 * - 12 * + 25 * + - 95 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 54 AS col2
----
-54

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

onlyif mysql # aggregate syntax: 
query II rowsort label-638
SELECT ALL + - COUNT( - + NULLIF ( + 13, - - 92 ) ) * - 33 AS col1, 15 + COUNT( * ) + - 27 * - + 66 AS col0
----
33
1798

skipif mysql # not compatible
query II rowsort label-638
SELECT ALL + - COUNT ( - + NULLIF ( + 13, - - 92 ) ) * - 33 AS col1, 15 + COUNT ( * ) + - 27 * - + 66 AS col0
----
33
1798

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

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

query I rowsort
SELECT + - 89 col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT ALL + - MIN( ALL 19 ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL + - MIN ( ALL 19 ) col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT DISTINCT + + NULLIF ( + 98, + 98 + + NULLIF ( + MIN( DISTINCT - 18 ), + - ( - 88 ) - 25 ) ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT + + NULLIF ( + 98, + 98 + + NULLIF ( + MIN ( DISTINCT - 18 ), + - ( - 88 ) - 25 ) ) AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-643
SELECT + - 81 * - 45 - + 15, - 27 / CAST( NULL AS SIGNED ) AS col0
----
3630
NULL

skipif mysql # not compatible
query II rowsort label-643
SELECT + - 81 * - 45 - + 15, - 27 / CAST ( NULL AS INTEGER ) AS col0
----
3630
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT + + ( - MIN( ALL 64 ) ) * - 73 * + - 57 - 21 + 78 * - + 91 + - COUNT( DISTINCT + - 81 ) + - CASE - - 97 WHEN - 72 THEN - 44 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-644
SELECT + + ( - MIN ( ALL 64 ) ) * - 73 * + - 57 - 21 + 78 * - + 91 + - COUNT ( DISTINCT + - 81 ) + - CASE - - 97 WHEN - 72 THEN - 44 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT + - MAX( + 86 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-645
SELECT + - MAX ( + 86 ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT - + 1 + 8 * + 20 + + - NULLIF ( + 46, - COUNT( * ) ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-646
SELECT - + 1 + 8 * + 20 + + - NULLIF ( + 46, - COUNT ( * ) ) AS col2
----
113

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

skipif mysql # not compatible
query I rowsort label-647
SELECT + COUNT ( * ) / + ( + COUNT ( * ) )
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-649
SELECT DISTINCT CAST( + ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) + - + 57 + + 71 * - 75 + - + 13 + + 16 + - CAST( NULL AS SIGNED ) + 3 * - CASE + + 90 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - + COUNT( * ) * CAST( NULL AS SIGNED ) END / + - 40 + + 18 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT DISTINCT CAST ( + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + - + 57 + + 71 * - 75 + - + 13 + + 16 + - CAST ( NULL AS INTEGER ) + 3 * - CASE + + 90 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - + COUNT ( * ) * CAST ( NULL AS INTEGER ) END / + - 40 + + 18 * + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL + 82 / COUNT ( * )
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-651
SELECT 64 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-651
SELECT 64 / + 49
----
1

query II rowsort
SELECT DISTINCT 45, + 28 + + 17
----
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT ALL - NULLIF ( - 49, + 26 * - 20 * + COUNT( 50 ) + 38 + - 67 + - ( + 29 ) * 50 + - 62 / - - 58 ) + - - 54 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL - NULLIF ( - 49, + 26 * - 20 * + COUNT ( 50 ) + 38 + - 67 + - ( + 29 ) * 50 + - 62 / - - 58 ) + - - 54 AS col1
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-654
SELECT 28, NULLIF ( + + CAST( - + COUNT( * ) AS SIGNED ), 70 ) col2
----
28
-1

skipif mysql # not compatible
query II rowsort label-654
SELECT 28, NULLIF ( + + CAST ( - + COUNT ( * ) AS INTEGER ), 70 ) col2
----
28
-1

query I rowsort
SELECT ALL - 83 + + - 61 AS col0
----
-144

query II rowsort
SELECT 98, 48 AS col2
----
98
48

query II rowsort
SELECT - 4 AS col1, - 5
----
-4
-5

query I rowsort
SELECT 63 * + 31 AS col0
----
1953

query II rowsort
SELECT 99 * - 20, + 62 AS col2
----
-1980
62

onlyif mysql # DIV for integer division: 
query II rowsort label-660
SELECT 12 AS col2, - 86 DIV - 71
----
12
1

skipif mysql # not compatible
query II rowsort label-660
SELECT 12 AS col2, - 86 / - 71
----
12
1

query I rowsort
SELECT 79 - + 80 + + - 16 + 22 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ALL + 20 * - COUNT( * ) * + 14 AS col1
----
-280

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL + 20 * - COUNT ( * ) * + 14 AS col1
----
-280

query I rowsort
SELECT DISTINCT - 65 + - 24 col2
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT ALL 23 AS col0, - CASE + + COUNT( * ) WHEN 55 THEN + + 18 END AS col1
----
23
NULL

skipif mysql # not compatible
query II rowsort label-664
SELECT ALL 23 AS col0, - CASE + + COUNT ( * ) WHEN 55 THEN + + 18 END AS col1
----
23
NULL

query II rowsort
SELECT 36, 65 AS col2
----
36
65

query I rowsort
SELECT DISTINCT + 93 * - - 78 AS col1
----
7254

query I rowsort
SELECT ALL + ( - 99 ) AS col0
----
-99

query II rowsort
SELECT ALL - 69 AS col2, - 20 AS col0
----
-69
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT 56 - + COUNT( * ) + 76 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-669
SELECT 56 - + COUNT ( * ) + 76 AS col2
----
131

query II rowsort
SELECT + ( - 8 ) AS col2, 42
----
-8
42

query I rowsort
SELECT + - ( - ( 37 ) ) col2
----
37

query I rowsort
SELECT ALL + 43 - - 15 + - - 65 - - + 15 - + 11 AS col2
----
127

query I rowsort
SELECT - 59 * 25
----
-1475

onlyif mysql # DIV for integer division: 
query I rowsort label-674
SELECT - 52 DIV + + ( 80 ) + + 88 * - 92
----
-8096

skipif mysql # not compatible
query I rowsort label-674
SELECT - 52 / + + ( 80 ) + + 88 * - 92
----
-8096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-675
SELECT 11 col1, - MAX( DISTINCT + 45 ) / - CAST( NULL AS SIGNED ) + + + 64 - + 8 * - - 9 / + + 97
----
11
NULL

skipif mysql # not compatible
query II rowsort label-675
SELECT 11 col1, - MAX ( DISTINCT + 45 ) / - CAST ( NULL AS INTEGER ) + + + 64 - + 8 * - - 9 / + + 97
----
11
NULL

query II rowsort
SELECT ALL - - 43 AS col0, + 8 AS col1
----
43
8

query I rowsort
SELECT DISTINCT - COALESCE ( 70, + - 3, - NULLIF ( 76, + 86 ), 71 ) AS col2
----
-70

query I rowsort
SELECT - 26 * - + 63
----
1638

query I rowsort
SELECT ALL - - NULLIF ( 90, - 60 ) AS col0
----
90

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

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

query I rowsort
SELECT 37 * + 22
----
814

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT + 75 * - COUNT( * ) + + COALESCE ( 86, - 61 + - + 38 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-682
SELECT + 75 * - COUNT ( * ) + + COALESCE ( 86, - 61 + - + 38 ) AS col0
----
11

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

query II rowsort
SELECT - 73, ( 90 ) + + 84 * 64 + + 49 + - 72 AS col0
----
-73
5443

query I rowsort
SELECT 14 - + 63 + + 87 - 12 AS col1
----
26

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-686
SELECT ALL CAST( NULL AS SIGNED ) + - 39 + COALESCE ( ( + 48 ), - - 34, + 88 * - CAST( - - 21 AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL CAST ( NULL AS INTEGER ) + - 39 + COALESCE ( ( + 48 ), - - 34, + 88 * - CAST ( - - 21 AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 41 + + 53 + - 8
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-688
SELECT COUNT( * ) * - 56 + 57 AS col1, + COALESCE ( + 7, - - 55 DIV - COUNT( * ) * + AVG ( 74 ) * + 20 DIV + 44 DIV - - 26, 23 ) AS col0
----
1
7

skipif mysql # not compatible
query II rowsort label-688
SELECT COUNT ( * ) * - 56 + 57 AS col1, + COALESCE ( + 7, - - 55 / - COUNT ( * ) * + AVG ( 74 ) * + 20 / + 44 / - - 26, 23 ) AS col0
----
1
7

query II rowsort
SELECT 92 * + 75 col1, 26 - - + 90 + 10 - + 88
----
6900
38

onlyif mysql # DIV for integer division: 
query I rowsort label-690
SELECT 99 DIV - + 97 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-690
SELECT 99 / - + 97 AS col0
----
-1

query I rowsort
SELECT ALL 61 + - 52 + 74
----
83

query I rowsort
SELECT CASE - 58 WHEN - ( - 76 ) + ( - 33 ) + - - ( 38 ) THEN + 19 ELSE NULL END + - 26 AS col1
----
NULL

query I rowsort
SELECT 82 * - 56
----
-4592

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT ALL - 52 DIV 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL - 52 / 72 AS col2
----
0

query II rowsort
SELECT 89 + - 2 AS col0, 90
----
87
90

onlyif mysql # aggregate syntax: 
query II rowsort label-696
SELECT 98 + COUNT( * ) * + - 0 * 37 * - 33 AS col0, 62 AS col1
----
98
62

skipif mysql # not compatible
query II rowsort label-696
SELECT 98 + COUNT ( * ) * + - 0 * 37 * - 33 AS col0, 62 AS col1
----
98
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-697
SELECT ALL + 79 - 5 * - CAST( + COUNT( * ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL + 79 - 5 * - CAST ( + COUNT ( * ) AS INTEGER )
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-698
SELECT 14 + - + MIN( DISTINCT 93 ) / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-698
SELECT 14 + - + MIN ( DISTINCT 93 ) / - CAST ( NULL AS REAL ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT 11 * - ( + COUNT( * ) ) * - 46 col1
----
506

skipif mysql # not compatible
query I rowsort label-700
SELECT 11 * - ( + COUNT ( * ) ) * - 46 col1
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT + 35 + 89 + + + AVG ( DISTINCT - 3 ) * + - 75 + - - 61 + - 58 + + + NULLIF ( - 38, + + 52 * 27 / - 80 * 34 ) * + + CASE 41 WHEN - - 51 + + - 56 * 59 + 39 THEN - 10 * + 74 WHEN + COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-701
SELECT + 35 + 89 + + + AVG ( DISTINCT - 3 ) * + - 75 + - - 61 + - 58 + + + NULLIF ( - 38, + + 52 * 27 / - 80 * 34 ) * + + CASE 41 WHEN - - 51 + + - 56 * 59 + 39 THEN - 10 * + 74 WHEN + COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT DISTINCT + - 46 * - COUNT( 97 )
----
46

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT + - 46 * - COUNT ( 97 )
----
46

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

skipif mysql # not compatible
query I rowsort label-703
SELECT - 48 + - COUNT ( * ) + - + 32 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-704
SELECT ALL + 81 * + COUNT( * ) AS col2, MAX( ALL - 5 ) * - - 80
----
81
-400

skipif mysql # not compatible
query II rowsort label-704
SELECT ALL + 81 * + COUNT ( * ) AS col2, MAX ( ALL - 5 ) * - - 80
----
81
-400

query I rowsort
SELECT DISTINCT - + 49 AS col0
----
-49

query I rowsort
SELECT DISTINCT - - 89 col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-707
SELECT DISTINCT - COALESCE ( - 70, + COUNT( + 81 ) - 23 ) * + + CAST( - 23 AS SIGNED ) + + - 64 * - MIN( - 23 ) + - 59 AS col0
----
-3141

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT - COALESCE ( - 70, + COUNT ( + 81 ) - 23 ) * + + CAST ( - 23 AS INTEGER ) + + - 64 * - MIN ( - 23 ) + - 59 AS col0
----
-3141

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT + 81 * - ( - 27 ) + + - COUNT( * ) + - 69 col1
----
2117

skipif mysql # not compatible
query I rowsort label-708
SELECT + 81 * - ( - 27 ) + + - COUNT ( * ) + - 69 col1
----
2117

query I rowsort
SELECT ALL - - 34 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT - ( - 27 ) - - COUNT( * ) * - 23 * COUNT( DISTINCT + 1 ) col1
----
4

skipif mysql # not compatible
query I rowsort label-710
SELECT - ( - 27 ) - - COUNT ( * ) * - 23 * COUNT ( DISTINCT + 1 ) col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-711
SELECT ALL + 58 * + 32 * + - 78 + ( + - 73 ) DIV - COUNT( * )
----
-144695

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + 58 * + 32 * + - 78 + ( + - 73 ) / - COUNT ( * )
----
-144695

query I rowsort
SELECT - - 99 + + - 51
----
48

query I rowsort
SELECT DISTINCT - + 83 * + 20 + + 45 + 70 AS col0
----
-1545

onlyif mysql # DIV for integer division: 
query II rowsort label-714
SELECT ALL + 38 AS col2, - 59 DIV + 93 AS col0
----
38
0

skipif mysql # not compatible
query II rowsort label-714
SELECT ALL + 38 AS col2, - 59 / + 93 AS col0
----
38
0

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

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

query I rowsort
SELECT DISTINCT 86 + - - 97 col2
----
183

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT ALL - 10 - COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL - 10 - COUNT ( * ) AS col2
----
-11

query II rowsort
SELECT ALL 56 AS col1, + 32
----
56
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-720
SELECT 66 AS col2, CAST( 78 AS SIGNED )
----
66
78

skipif mysql # not compatible
query II rowsort label-720
SELECT 66 AS col2, CAST ( 78 AS INTEGER )
----
66
78

query II rowsort
SELECT 74, 32 * - 2 AS col2
----
74
-64

query I rowsort
SELECT ALL 8 - - 63 * + + 12
----
764

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-724
SELECT DISTINCT 19 DIV - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT 19 / - 92 AS col0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-726
SELECT + 78 * + ( - - 28 ) * + CAST( - MIN( ALL + - 38 ) AS SIGNED ) * - - ( + 94 ), - 10 AS col2
----
7801248
-10

skipif mysql # not compatible
query II rowsort label-726
SELECT + 78 * + ( - - 28 ) * + CAST ( - MIN ( ALL + - 38 ) AS INTEGER ) * - - ( + 94 ), - 10 AS col2
----
7801248
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-727
SELECT 23 AS col0, - CAST( - 45 AS SIGNED ) * 28 + + 72 AS col2
----
23
1332

skipif mysql # not compatible
query II rowsort label-727
SELECT 23 AS col0, - CAST ( - 45 AS INTEGER ) * 28 + + 72 AS col2
----
23
1332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-728
SELECT + 58 * + + 79 / - COUNT( * ) + - CASE 25 WHEN + 52 THEN - 55 * + + 54 + 11 + 38 * - + CASE 2 WHEN ( + 43 ) THEN - 41 WHEN + SUM( DISTINCT + 55 ) * - + CAST( + ( + + ( 72 ) ) AS SIGNED ) / + 40 + 17 + + 11 + - + 41 + - 17 * - + 14 THEN - - ( 51 ) END WHEN + ( ( + 67 ) ) * 43 - - CAST( ( - - 90 ) AS SIGNED ) THEN - 12 + - - 49 + - 84 ELSE NULL END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT + 58 * + + 79 / - COUNT ( * ) + - CASE 25 WHEN + 52 THEN - 55 * + + 54 + 11 + 38 * - + CASE 2 WHEN ( + 43 ) THEN - 41 WHEN + SUM ( DISTINCT + 55 ) * - + CAST ( + ( + + ( 72 ) ) AS INTEGER ) / + 40 + 17 + + 11 + - + 41 + - 17 * - + 14 THEN - - ( 51 ) END WHEN + ( ( + 67 ) ) * 43 - - CAST ( ( - - 90 ) AS INTEGER ) THEN - 12 + - - 49 + - 84 ELSE NULL END / COUNT ( * )
----
NULL

query I rowsort
SELECT + 63 * - 99 col1
----
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT - COUNT( * ) * 20 + + MIN( ALL + + 14 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-730
SELECT - COUNT ( * ) * 20 + + MIN ( ALL + + 14 ) AS col1
----
-6

query I rowsort
SELECT ALL + 15 * + - 98 + + 53 + - 25
----
-1442

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT + + COALESCE ( 48, + - MAX( 52 ) + 98 * 35 * 38 + + - 33, + 49 ) * - 95
----
-4560

skipif mysql # not compatible
query I rowsort label-732
SELECT + + COALESCE ( 48, + - MAX ( 52 ) + 98 * 35 * 38 + + - 33, + 49 ) * - 95
----
-4560

query I rowsort
SELECT + + ( 64 ) * + - 64 + + 62 * - 21 AS col2
----
-5398

onlyif mysql # DIV for integer division: 
query I rowsort label-734
SELECT ALL - + 81 DIV 97 col1
----
0

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL - + 81 / 97 col1
----
0

query II rowsort
SELECT + 61 * + ( + - 68 ) AS col2, ( 66 )
----
-4148
66

query I rowsort
SELECT + AVG ( + + 80 ) + CASE + 6 WHEN - ( - 83 ) THEN + 56 ELSE NULL END
----
NULL

query I rowsort
SELECT - 35 - 40 + 77 - - 29 * 97 + 57 * - 99 * + - 24 AS col1
----
138247

query I rowsort
SELECT ALL + - 5 col1
----
-5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT - 48 * 67 DIV - 11 AS col2
----
292

skipif mysql # not compatible
query I rowsort label-740
SELECT - 48 * 67 / - 11 AS col2
----
292

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT - SUM( ALL - 12 )
----
12

skipif mysql # not compatible
query I rowsort label-742
SELECT - SUM ( ALL - 12 )
----
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-743
SELECT ALL 76 DIV - CAST( CAST( + 73 AS SIGNED ) AS SIGNED ) + + - 17 + 51
----
33

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL 76 / - CAST ( CAST ( + 73 AS INTEGER ) AS INTEGER ) + + - 17 + 51
----
33

query I rowsort
SELECT - NULLIF ( + 65, 11 ) AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-745
SELECT + - COUNT( * ) * - 11 * - - CAST( + 93 AS SIGNED ) + - 60
----
963

skipif mysql # not compatible
query I rowsort label-745
SELECT + - COUNT ( * ) * - 11 * - - CAST ( + 93 AS INTEGER ) + - 60
----
963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-746
SELECT ALL + COALESCE ( + - ( 55 ), - - NULLIF ( 93, - MAX( DISTINCT - - 36 ) * - CASE 89 WHEN 12 * COUNT( * ) - + - COALESCE ( - - CAST( NULL AS SIGNED ), + + 80 DIV - 94 DIV - 46 DIV - 94 ) * ( + CAST( NULL AS SIGNED ) ) THEN + 33 * COUNT( * ) ELSE NULL END + - - 6 * COUNT( * ) DIV 55 ) * - - 39 + COUNT( * ) + + 71 * + ( + 84 ) + - CASE + + 82 WHEN + 73 THEN NULL WHEN + 44 DIV + SUM( ( 14 ) ) + - 11 THEN NULL ELSE 32 + + + COUNT( ALL 43 ) DIV - 42 END + - 59, - 71 DIV 77 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL + COALESCE ( + - ( 55 ), - - NULLIF ( 93, - MAX ( DISTINCT - - 36 ) * - CASE 89 WHEN 12 * COUNT ( * ) - + - COALESCE ( - - CAST ( NULL AS INTEGER ), + + 80 / - 94 / - 46 / - 94 ) * ( + CAST ( NULL AS INTEGER ) ) THEN + 33 * COUNT ( * ) ELSE NULL END + - - 6 * COUNT ( * ) / 55 ) * - - 39 + COUNT ( * ) + + 71 * + ( + 84 ) + - CASE + + 82 WHEN + 73 THEN NULL WHEN + 44 / + SUM ( ( 14 ) ) + - 11 THEN NULL ELSE 32 + + + COUNT ( ALL 43 ) / - 42 END + - 59, - 71 / 77 ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-747
SELECT DISTINCT CASE CAST( NULL AS SIGNED ) WHEN 94 + - 38 THEN NULL WHEN COUNT( * ) + - 10 THEN 66 / + 32 * - 14 * ( 8 ) / COUNT( * ) * + 11 * - + 98 END * 72 + + 55 + + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT CASE CAST ( NULL AS INTEGER ) WHEN 94 + - 38 THEN NULL WHEN COUNT ( * ) + - 10 THEN 66 / + 32 * - 14 * ( 8 ) / COUNT ( * ) * + 11 * - + 98 END * 72 + + 55 + + - 60
----
NULL

query I rowsort
SELECT - 57 * + 81
----
-4617

query I rowsort
SELECT - 63 * 20
----
-1260

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-750
SELECT - AVG ( + + 28 ) DIV - - 80 * - + CAST( NULL AS SIGNED ), + 22 DIV 4 AS col1
----
NULL
5

skipif mysql # not compatible
query II rowsort label-750
SELECT - AVG ( + + 28 ) / - - 80 * - + CAST ( NULL AS INTEGER ), + 22 / 4 AS col1
----
NULL
5

query I rowsort
SELECT ( 87 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-752
SELECT - COUNT( * ) * 0 AS col2, + 25
----
0
25

skipif mysql # not compatible
query II rowsort label-752
SELECT - COUNT ( * ) * 0 AS col2, + 25
----
0
25

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT CASE - 3 WHEN - COUNT( * ) THEN NULL WHEN + - CASE - 98 WHEN - 47 THEN - 14 END THEN 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-753
SELECT CASE - 3 WHEN - COUNT ( * ) THEN NULL WHEN + - CASE - 98 WHEN - 47 THEN - 14 END THEN 9 END AS col2
----
NULL

query I rowsort
SELECT ALL - 51 * + + 30
----
-1530

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-757
SELECT ALL 67 * + NULLIF ( - 27, 65 ) AS col0, ( COUNT( * ) ) * 26
----
-1809
26

skipif mysql # not compatible
query II rowsort label-757
SELECT ALL 67 * + NULLIF ( - 27, 65 ) AS col0, ( COUNT ( * ) ) * 26
----
-1809
26

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

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

query I rowsort
SELECT + 66 + + 42 col1
----
108

query I rowsort
SELECT + 43 + 26 * 71 AS col2
----
1889

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT - 54 + + MIN( ALL - 20 ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-761
SELECT - 54 + + MIN ( ALL - 20 ) col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-762
SELECT - CASE + 30 WHEN + CAST( - 10 AS SIGNED ) THEN + NULLIF ( - CAST( + - 42 AS DECIMAL ), - COUNT( * ) + - + 0 - - COUNT( * ) / - - 72 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-762
SELECT - CASE + 30 WHEN + CAST ( - 10 AS INTEGER ) THEN + NULLIF ( - CAST ( + - 42 AS REAL ), - COUNT ( * ) + - + 0 - - COUNT ( * ) / - - 72 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT SUM( 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-763
SELECT SUM ( 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + - 50 + ( + COUNT( * ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-764
SELECT + - 50 + ( + COUNT ( * ) ) AS col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-765
SELECT + + ( + 42 ) + 19 DIV + 15 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-765
SELECT + + ( + 42 ) + 19 / + 15 AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT ALL ( - COUNT( * ) ) * CAST( + 44 AS SIGNED ) * 68
----
-2992

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL ( - COUNT ( * ) ) * CAST ( + 44 AS INTEGER ) * 68
----
-2992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-767
SELECT + - 0 + + 65 + + + COUNT( + 3 ) + - 14 * 25 DIV 38
----
57

skipif mysql # not compatible
query I rowsort label-767
SELECT + - 0 + + 65 + + + COUNT ( + 3 ) + - 14 * 25 / 38
----
57

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

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

query I rowsort
SELECT - ( + + 54 ) * - 39 * - 43
----
-90558

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT + 6 + + NULLIF ( COUNT( * ), 82 ) + 10
----
17

skipif mysql # not compatible
query I rowsort label-770
SELECT + 6 + + NULLIF ( COUNT ( * ), 82 ) + 10
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT + COUNT( * ) + + + ( 1 ) + - 77
----
-75

skipif mysql # not compatible
query I rowsort label-771
SELECT + COUNT ( * ) + + + ( 1 ) + - 77
----
-75

query I rowsort
SELECT - - COALESCE ( + 93, - 37 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL + 79 + - COUNT( * ) + 4
----
82

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL + 79 + - COUNT ( * ) + 4
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-774
SELECT ALL + + MIN( DISTINCT 58 ) DIV 9
----
6

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + + MIN ( DISTINCT 58 ) / 9
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT ALL - - SUM( + + CASE + ( + 94 ) WHEN - 2 THEN NULL ELSE 4 + - + 61 END )
----
-57

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL - - SUM ( + + CASE + ( + 94 ) WHEN - 2 THEN NULL ELSE 4 + - + 61 END )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-776
SELECT ALL 96 + - - COUNT( * ) * ( + CASE - + 98 WHEN - + 47 THEN NULL WHEN 36 THEN + + 28 WHEN - + 85 THEN - - 59 * + 62 * - NULLIF ( + ( - 60 ), COUNT( * ) * - 56 - - + 52 ) + 83 ELSE NULL END ) + + 51 * - 30 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL 96 + - - COUNT ( * ) * ( + CASE - + 98 WHEN - + 47 THEN NULL WHEN 36 THEN + + 28 WHEN - + 85 THEN - - 59 * + 62 * - NULLIF ( + ( - 60 ), COUNT ( * ) * - 56 - - + 52 ) + 83 ELSE NULL END ) + + 51 * - 30 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 75 AS col0, - 16
----
75
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-778
SELECT 89 + 27 DIV - - 67 * + 82 * + + 40
----
89

skipif mysql # not compatible
query I rowsort label-778
SELECT 89 + 27 / - - 67 * + 82 * + + 40
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT DISTINCT - NULLIF ( - 2, COUNT( * ) - - + 8 + 79 + 38 * + MAX( DISTINCT + + 90 ) * COUNT( + - CASE + 50 WHEN - + 36 THEN - 99 WHEN - 40 THEN NULL END ) * COUNT( * ) * + 62 / 24 + + 9 * + COALESCE ( - 75, + - COUNT( + 98 ) ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT - NULLIF ( - 2, COUNT ( * ) - - + 8 + 79 + 38 * + MAX ( DISTINCT + + 90 ) * COUNT ( + - CASE + 50 WHEN - + 36 THEN - 99 WHEN - 40 THEN NULL END ) * COUNT ( * ) * + 62 / 24 + + 9 * + COALESCE ( - 75, + - COUNT ( + 98 ) ) ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT ALL - NULLIF ( + ( - + 7 ), - + COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL - NULLIF ( + ( - + 7 ), - + COUNT ( * ) )
----
7

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

skipif mysql # not compatible
query II rowsort label-781
SELECT DISTINCT - COUNT ( * ) AS col1, 3
----
-1
3

query I rowsort
SELECT + CASE WHEN 83 IS NOT NULL THEN 26 / + + 19 - + COALESCE ( + + 56, - - 29 + + + 82 ) ELSE 46 END * 52 - - + 83 - - CASE + 81 WHEN + COALESCE ( + 90, + 69 ) THEN 40 * - 78 / - - 23 END / 57 - 21
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-784
SELECT - CAST( + - ( + 70 ) AS SIGNED ) * - 93 + - 71 + NULLIF ( 4, 4 ) / 35
----
NULL

skipif mysql # not compatible
query I rowsort label-784
SELECT - CAST ( + - ( + 70 ) AS INTEGER ) * - 93 + - 71 + NULLIF ( 4, 4 ) / 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT DISTINCT - COUNT( - CASE - 46 WHEN + 93 THEN - 83 + 22 ELSE NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-785
SELECT DISTINCT - COUNT ( - CASE - 46 WHEN + 93 THEN - 83 + 22 ELSE NULL END )
----
0

query I rowsort
SELECT 24 + + + 45
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-787
SELECT ALL - CASE + 64 WHEN + 76 * 3 THEN - + 18 + + 70 + 44 ELSE + CASE - SUM( + 36 ) WHEN + 90 THEN - + ( + + 64 ) WHEN + - 53 THEN 32 / - + 31 ELSE NULL END - - MAX( - - 39 ) END AS col1, 71 AS col0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-787
SELECT ALL - CASE + 64 WHEN + 76 * 3 THEN - + 18 + + 70 + 44 ELSE + CASE - SUM ( + 36 ) WHEN + 90 THEN - + ( + + 64 ) WHEN + - 53 THEN 32 / - + 31 ELSE NULL END - - MAX ( - - 39 ) END AS col1, 71 AS col0
----
NULL
71

query I rowsort
SELECT 98 * 18 AS col2
----
1764

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT DISTINCT + ( 53 ) * 46 DIV + - 39 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT + ( 53 ) * 46 / + - 39 AS col0
----
-62

query II rowsort
SELECT 24 AS col2, 78 AS col1
----
24
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-791
SELECT ALL + COALESCE ( 83, - + CAST( NULL AS SIGNED ) + - 45 ) / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL + COALESCE ( 83, - + CAST ( NULL AS INTEGER ) + - 45 ) / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT DISTINCT - MIN( - + 76 ) + - 81 * 42 AS col2
----
-3326

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT - MIN ( - + 76 ) + - 81 * 42 AS col2
----
-3326

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT ALL MAX( + 73 ) * - 13 AS col1
----
-949

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL MAX ( + 73 ) * - 13 AS col1
----
-949

query I rowsort
SELECT - 67 * 11 AS col0
----
-737

query I rowsort
SELECT ALL - - 10 + + NULLIF ( 31, - - 38 ) col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT 48 DIV + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-796
SELECT 48 / + 71 AS col0
----
0

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

query II rowsort
SELECT ALL + COALESCE ( 37, + 57 ) AS col1, + 15 AS col0
----
37
15

onlyif mysql # DIV for integer division: 
query I rowsort label-799
SELECT + 34 + - 7 + + 93 + - + 24 * - 53 + - + 42 DIV + 64 AS col1
----
1392

skipif mysql # not compatible
query I rowsort label-799
SELECT + 34 + - 7 + + 93 + - + 24 * - 53 + - + 42 / + 64 AS col1
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT CASE - 32 WHEN + 98 THEN - CASE WHEN NOT COUNT( * ) IS NOT NULL THEN + 84 + 91 WHEN NOT - 60 IS NOT NULL THEN NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-800
SELECT CASE - 32 WHEN + 98 THEN - CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN + 84 + 91 WHEN NOT - 60 IS NOT NULL THEN NULL END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT - 70 - COUNT( * ) - + 86 - CASE NULLIF ( CASE + 77 WHEN + - 25 THEN NULL WHEN + - COUNT( * ) * 54 * - COUNT( * ) * 20 * - - 31 + - COUNT( * ) THEN + 84 ELSE + COUNT( * ) END, 39 ) WHEN - - 1 THEN NULL WHEN - 84 THEN COUNT( * ) WHEN 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-801
SELECT - 70 - COUNT ( * ) - + 86 - CASE NULLIF ( CASE + 77 WHEN + - 25 THEN NULL WHEN + - COUNT ( * ) * 54 * - COUNT ( * ) * 20 * - - 31 + - COUNT ( * ) THEN + 84 ELSE + COUNT ( * ) END, 39 ) WHEN - - 1 THEN NULL WHEN - 84 THEN COUNT ( * ) WHEN 89 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-802
SELECT ALL + 97 * 14 DIV - ( + COUNT( * ) ) + 66 AS col0
----
-1292

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL + 97 * 14 / - ( + COUNT ( * ) ) + 66 AS col0
----
-1292

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-803
SELECT DISTINCT + + COUNT( DISTINCT - 67 ) + + 11 col2, + 85 * 12 DIV - + 31
----
12
-32

skipif mysql # not compatible
query II rowsort label-803
SELECT DISTINCT + + COUNT ( DISTINCT - 67 ) + + 11 col2, + 85 * 12 / - + 31
----
12
-32

query I rowsort
SELECT - COALESCE ( + + 96, + - 79, - NULLIF ( - 36, - + 38 ) ) AS col2
----
-96

query II rowsort
SELECT - - 96 AS col2, + 49 - - 33 + 19 AS col2
----
96
101

query I rowsort
SELECT ALL + 48 + + + 88 AS col2
----
136

query I rowsort
SELECT DISTINCT + 25 * + 95
----
2375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-808
SELECT + 50 + + CAST( + CAST( + 17 AS SIGNED ) AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-808
SELECT + 50 + + CAST ( + CAST ( + 17 AS INTEGER ) AS INTEGER )
----
67

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

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

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

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

skipif mysql # not compatible
query I rowsort label-811
SELECT + COUNT ( DISTINCT - 85 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 63 * - 79 col2
----
-4977

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT MAX( + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-813
SELECT MAX ( + 18 )
----
18

query I rowsort
SELECT ALL 9 * - - 4 AS col0
----
36

query I rowsort
SELECT DISTINCT 27 * + 21 AS col1
----
567

query II rowsort
SELECT ALL - 37 AS col0, - ( + + 62 ) AS col2
----
-37
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-817
SELECT DISTINCT - 40, - COUNT( ALL 64 ) AS col1
----
-40
-1

skipif mysql # not compatible
query II rowsort label-817
SELECT DISTINCT - 40, - COUNT ( ALL 64 ) AS col1
----
-40
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT COALESCE ( + 91, + 80 * + 98 - + 35 + + COUNT( * ) ) * - 65 * - + 20
----
118300

skipif mysql # not compatible
query I rowsort label-819
SELECT COALESCE ( + 91, + 80 * + 98 - + 35 + + COUNT ( * ) ) * - 65 * - + 20
----
118300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-820
SELECT + 86 DIV COUNT( * ) * - - 35 * + 58 + COUNT( * )
----
174581

skipif mysql # not compatible
query I rowsort label-820
SELECT + 86 / COUNT ( * ) * - - 35 * + 58 + COUNT ( * )
----
174581

query I rowsort
SELECT 27 + - - 99 AS col0
----
126

query I rowsort
SELECT 43 * - 87 AS col0
----
-3741

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT ( - 50 ) + - - SUM( - CASE - 84 WHEN 75 THEN ( - 18 ) WHEN + + 14 * + 25 / + + 44 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-823
SELECT ( - 50 ) + - - SUM ( - CASE - 84 WHEN 75 THEN ( - 18 ) WHEN + + 14 * + 25 / + + 44 THEN NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-824
SELECT + COUNT( * ), 42 * 33 * - + 75 * 68 * - 83 col0
----
1
586693800

skipif mysql # not compatible
query II rowsort label-824
SELECT + COUNT ( * ), 42 * 33 * - + 75 * 68 * - 83 col0
----
1
586693800

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT DISTINCT MIN( DISTINCT 89 ) + + 47
----
136

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT MIN ( DISTINCT 89 ) + + 47
----
136

query I rowsort
SELECT DISTINCT 26 + + + 52
----
78

onlyif mysql # aggregate syntax: 
query III rowsort label-827
SELECT 4 + - + 67 AS col0, 36 + - 9, - - CASE - - 88 WHEN - 81 * + + 51 * + 86 + 59 THEN NULLIF ( 4, 90 + - 5 ) * - 82 * + NULLIF ( - + COUNT( * ), + 79 ) * 71 WHEN - 87 * COUNT( + + NULLIF ( + 3, - 33 ) ) THEN NULL ELSE NULL END * 56 AS col0
----
-63
27
NULL

skipif mysql # not compatible
query III rowsort label-827
SELECT 4 + - + 67 AS col0, 36 + - 9, - - CASE - - 88 WHEN - 81 * + + 51 * + 86 + 59 THEN NULLIF ( 4, 90 + - 5 ) * - 82 * + NULLIF ( - + COUNT ( * ), + 79 ) * 71 WHEN - 87 * COUNT ( + + NULLIF ( + 3, - 33 ) ) THEN NULL ELSE NULL END * 56 AS col0
----
-63
27
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-828
SELECT + 74 - COUNT( * ) * - + CAST( 28 AS SIGNED )
----
102

skipif mysql # not compatible
query I rowsort label-828
SELECT + 74 - COUNT ( * ) * - + CAST ( 28 AS INTEGER )
----
102

query II rowsort
SELECT ALL + 91, 37 AS col0
----
91
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT ( - 43 ) + 4 * + COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-831
SELECT ( - 43 ) + 4 * + COUNT ( * ) AS col2
----
-39

query I rowsort
SELECT 18 * + 41 + - 80
----
658

query I rowsort
SELECT ALL - ( - 37 ) + - 74
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT - MIN( - 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-834
SELECT - MIN ( - 17 ) AS col1
----
17

query I rowsort
SELECT - ( - + 92 ) + + 89
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ALL + COALESCE ( - COUNT( * ), + 21 ) * - 77 + + + 84
----
161

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL + COALESCE ( - COUNT ( * ), + 21 ) * - 77 + + + 84
----
161

onlyif mysql # DIV for integer division: 
query II rowsort label-837
SELECT DISTINCT - 10 DIV - 96, - 20 AS col0
----
0
-20

skipif mysql # not compatible
query II rowsort label-837
SELECT DISTINCT - 10 / - 96, - 20 AS col0
----
0
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL + + 90 - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL + + 90 - COUNT ( * )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-839
SELECT - CASE - 32 WHEN - 3 THEN - 7 * 2 * - 38 WHEN - COUNT( * ) + + 82 + + COUNT( * ) * - 41 THEN NULLIF ( - 19, - - NULLIF ( 87, COUNT( ALL 44 ) * - 91 + - 82 ) * - + 87 * + 29 ) WHEN + CAST( MIN( + 1 ) AS SIGNED ) + + 85 * - COUNT( * ) THEN - 51 ELSE 66 END AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-839
SELECT - CASE - 32 WHEN - 3 THEN - 7 * 2 * - 38 WHEN - COUNT ( * ) + + 82 + + COUNT ( * ) * - 41 THEN NULLIF ( - 19, - - NULLIF ( 87, COUNT ( ALL 44 ) * - 91 + - 82 ) * - + 87 * + 29 ) WHEN + CAST ( MIN ( + 1 ) AS INTEGER ) + + 85 * - COUNT ( * ) THEN - 51 ELSE 66 END AS col2
----
-66

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

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

query I rowsort
SELECT ALL - 77 - - 40
----
-37

query I rowsort
SELECT ALL + + ( - 33 ) * - 14 AS col1
----
462

query I rowsort
SELECT - + 75 AS col1
----
-75

query II rowsort
SELECT + 59, + 29 + - - 61 col0
----
59
90

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

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

skipif mysql # not compatible
query I rowsort label-846
SELECT - 70 * - COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT + 40 * COUNT( + 35 ) - - COALESCE ( + CASE - + SUM( + 28 ) WHEN COUNT( * ) + - 50 THEN NULL WHEN + 24 THEN - + 87 END, - + MAX( ALL - ( - + 37 ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-847
SELECT + 40 * COUNT ( + 35 ) - - COALESCE ( + CASE - + SUM ( + 28 ) WHEN COUNT ( * ) + - 50 THEN NULL WHEN + 24 THEN - + 87 END, - + MAX ( ALL - ( - + 37 ) ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT MIN( DISTINCT - 72 ) - 82 + + + 4 col1
----
-150

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT MIN ( DISTINCT - 72 ) - 82 + + + 4 col1
----
-150

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-850
SELECT + CAST( - 57 AS SIGNED ) * - - 75
----
-4275

skipif mysql # not compatible
query I rowsort label-850
SELECT + CAST ( - 57 AS INTEGER ) * - - 75
----
-4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-851
SELECT DISTINCT ( - 94 ) * - - CAST( + - 94 AS SIGNED ) - - 59
----
8895

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT ( - 94 ) * - - CAST ( + - 94 AS INTEGER ) - - 59
----
8895

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

query I rowsort
SELECT + 76 * + ( 68 ) - + + 92 * + 61 AS col1
----
-444

query II rowsort
SELECT + 67 + + 38 + + 5, - 67 * 9 AS col2
----
110
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT + NULLIF ( 35, + - COUNT( * ) / - 9 ) col1
----
35

skipif mysql # not compatible
query I rowsort label-855
SELECT + NULLIF ( 35, + - COUNT ( * ) / - 9 ) col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-856
SELECT - COUNT( * ) * - NULLIF ( - 29, + - 52 ) + 59 AS col2, 70 - CAST( NULL AS SIGNED ) * - - 5 AS col2
----
30
NULL

skipif mysql # not compatible
query II rowsort label-856
SELECT - COUNT ( * ) * - NULLIF ( - 29, + - 52 ) + 59 AS col2, 70 - CAST ( NULL AS INTEGER ) * - - 5 AS col2
----
30
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-857
SELECT CASE - 33 WHEN + 65 THEN + + COUNT( * ) / + COUNT( * ) * 87 * - COUNT( * ) * + + COUNT( * ) + + ( - - 46 ) + + 70 + 81 * + + 15 WHEN 9 * 68 THEN NULL ELSE NULL END AS col1, + COUNT( NULLIF ( - + 8, - ( - - CAST( ( + + 9 ) AS SIGNED ) ) ) ) + 86
----
NULL
87

skipif mysql # not compatible
query II rowsort label-857
SELECT CASE - 33 WHEN + 65 THEN + + COUNT ( * ) / + COUNT ( * ) * 87 * - COUNT ( * ) * + + COUNT ( * ) + + ( - - 46 ) + + 70 + 81 * + + 15 WHEN 9 * 68 THEN NULL ELSE NULL END AS col1, + COUNT ( NULLIF ( - + 8, - ( - - CAST ( ( + + 9 ) AS INTEGER ) ) ) ) + 86
----
NULL
87

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT + 20 DIV 71 * + + 20
----
0

skipif mysql # not compatible
query I rowsort label-858
SELECT + 20 / 71 * + + 20
----
0

query I rowsort
SELECT + 90 - - 8
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT ALL - 29 * 9 + + COUNT( * ) - + + 23 + + 74 * 3 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL - 29 * 9 + + COUNT ( * ) - + + 23 + + 74 * 3 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT CASE - 66 WHEN + 93 - - 94 - 26 + - - 40 + COUNT( * ) + 58 * - - MAX( ALL + 61 ) THEN ( - 76 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT CASE - 66 WHEN + 93 - - 94 - 26 + - - 40 + COUNT ( * ) + 58 * - - MAX ( ALL + 61 ) THEN ( - 76 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-862
SELECT + 84 DIV - 96, 47 * - 65 * 50 AS col1
----
0
-152750

skipif mysql # not compatible
query II rowsort label-862
SELECT + 84 / - 96, 47 * - 65 * 50 AS col1
----
0
-152750

query I rowsort
SELECT ALL NULLIF ( - + 86, + 96 * - 37 * - + 69 ) * - 54 + + 30 + + 5
----
4679

query I rowsort
SELECT + 72 * - ( - + 14 )
----
1008

query II rowsort
SELECT - COALESCE ( - + ( - 7 ), - 30 * + 56 - - 59 ) * - + 67 + + 21 + + 14 * 15 AS col2, 56
----
700
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT + + 38 * - 6 * CAST( NULL AS SIGNED ) / + - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT + + 38 * - 6 * CAST ( NULL AS INTEGER ) / + - 21 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT ALL 33 DIV + 99 * + 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL 33 / + 99 * + 10 AS col1
----
0

query I rowsort
SELECT ALL + 66 * + + 63 + - 92 AS col2
----
4066

query I rowsort
SELECT DISTINCT + 80 * - - 4 + + NULLIF ( - 84, - - 73 ) + + - ( - 17 ) AS col2
----
253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT ALL + - CAST( - 51 AS SIGNED ) * + 80 AS col0
----
4080

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL + - CAST ( - 51 AS INTEGER ) * + 80 AS col0
----
4080

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-872
SELECT ALL + - 54 - - - 40, COUNT( ALL - 92 ) * - CASE - 12 WHEN + + 16 THEN NULL WHEN + COUNT( * ) THEN + 79 ELSE + 43 * - - 64 * - 24 + 54 END * 70 + + 49 + - - 1 col2
----
-94
4619630

skipif mysql # not compatible
query II rowsort label-872
SELECT ALL + - 54 - - - 40, COUNT ( ALL - 92 ) * - CASE - 12 WHEN + + 16 THEN NULL WHEN + COUNT ( * ) THEN + 79 ELSE + 43 * - - 64 * - 24 + 54 END * 70 + + 49 + - - 1 col2
----
-94
4619630

query II rowsort
SELECT ALL - 31 * - + 38 AS col2, 93 AS col0
----
1178
93

onlyif mysql # DIV for integer division: 
query II rowsort label-874
SELECT - 88 DIV 41 AS col2, - 86
----
-2
-86

skipif mysql # not compatible
query II rowsort label-874
SELECT - 88 / 41 AS col2, - 86
----
-2
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT + 32 + + 50 - COUNT( * ) * + + 67 + + 52 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-875
SELECT + 32 + + 50 - COUNT ( * ) * + + 67 + + 52 AS col0
----
67

query II rowsort
SELECT + 45 * + 13, 46 * - 24 * 7 AS col2
----
585
-7728

query I rowsort
SELECT - + 54 * - - 43 + + 92 - + 34 + - 67 * + - 25 - - 45 + + 84 * 56
----
4160

query I rowsort
SELECT - - 85 - + 70 * - 22 * - ( + - 73 )
----
112505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-879
SELECT ALL - COALESCE ( 51, + - 88, - + CAST( + 19 AS SIGNED ) ) * + - 67 + + + 83 + - 33
----
3467

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL - COALESCE ( 51, + - 88, - + CAST ( + 19 AS INTEGER ) ) * + - 67 + + + 83 + - 33
----
3467

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT ALL - 33 DIV + ( + 40 )
----
0

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL - 33 / + ( + 40 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT DISTINCT CASE + 78 WHEN + COUNT( * ) THEN 33 / + + COUNT( * ) * + 23 + + 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT CASE + 78 WHEN + COUNT ( * ) THEN 33 / + + COUNT ( * ) * + 23 + + 49 END
----
NULL

query I rowsort
SELECT - 56 + + 98 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-883
SELECT ALL + COALESCE ( - 61, - - 76 DIV - + NULLIF ( - - ( - ( - ( + 85 ) ) ), + + CAST( NULL AS SIGNED ) ), - + 97 ) * + 80 AS col2
----
-4880

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL + COALESCE ( - 61, - - 76 / - + NULLIF ( - - ( - ( - ( + 85 ) ) ), + + CAST ( NULL AS INTEGER ) ), - + 97 ) * + 80 AS col2
----
-4880

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

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

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

query I rowsort
SELECT - 50 - - - 24
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT - 68 DIV 30
----
-2

skipif mysql # not compatible
query I rowsort label-887
SELECT - 68 / 30
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT 7 * - MIN( - 39 ) * + 63 + - 58 col1
----
17141

skipif mysql # not compatible
query I rowsort label-889
SELECT 7 * - MIN ( - 39 ) * + 63 + - 58 col1
----
17141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-890
SELECT ALL - COUNT( * ) DIV + 34 + 95 - 11 * - 91
----
1096

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL - COUNT ( * ) / + 34 + 95 - 11 * - 91
----
1096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-891
SELECT DISTINCT COUNT( * ) DIV + 9 + 16 + + 40 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-891
SELECT DISTINCT COUNT ( * ) / + 9 + 16 + + 40 AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-892
SELECT DISTINCT COUNT( * ) DIV + 60 + + 12 * + - 27 AS col2
----
-324

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT COUNT ( * ) / + 60 + + 12 * + - 27 AS col2
----
-324

query I rowsort
SELECT - 8 * + + 6
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-894
SELECT ALL 27 DIV + + 10 * + - COUNT( * ) + + ( - 11 )
----
-13

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL 27 / + + 10 * + - COUNT ( * ) + + ( - 11 )
----
-13

query I rowsort
SELECT ALL 54 * + 11
----
594

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-896
SELECT CAST( + ( - 4 ) AS SIGNED ) AS col1, 33
----
-4
33

skipif mysql # not compatible
query II rowsort label-896
SELECT CAST ( + ( - 4 ) AS INTEGER ) AS col1, 33
----
-4
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-897
SELECT - 48 + + ( + 21 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-897
SELECT - 48 + + ( + 21 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL ( + 1 ) + + 82 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT + SUM( + + NULLIF ( 88, - 52 ) )
----
88

skipif mysql # not compatible
query I rowsort label-899
SELECT + SUM ( + + NULLIF ( 88, - 52 ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL - COALESCE ( 69, - MAX( ALL 8 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL - COALESCE ( 69, - MAX ( ALL 8 ) )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-901
SELECT DISTINCT - - MAX( + - 54 ) * - COUNT( * ) + + 18 * SUM( DISTINCT + 3 ), 61 + 17 + + + 12 AS col2
----
108
90

skipif mysql # not compatible
query II rowsort label-901
SELECT DISTINCT - - MAX ( + - 54 ) * - COUNT ( * ) + + 18 * SUM ( DISTINCT + 3 ), 61 + 17 + + + 12 AS col2
----
108
90

query I rowsort
SELECT + 19 * 43 + - 74
----
743

query II rowsort
SELECT ALL - - 11 * + - 20 - - 10 AS col2, - 79
----
-210
-79

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

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

query I rowsort
SELECT 33 - + 11 AS col2
----
22

query I rowsort
SELECT - 63 * - 42
----
2646

query II rowsort
SELECT - ( + 70 ) + + 75, + 25 AS col1
----
5
25

query I rowsort
SELECT 95 * + 85
----
8075

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT DISTINCT - 27 DIV - + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT - 27 / - + 83 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-910
SELECT NULLIF ( + - ( + CAST( NULL AS SIGNED ) ), + 31 ) * - - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT NULLIF ( + - ( + CAST ( NULL AS INTEGER ) ), + 31 ) * - - 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-911
SELECT - + NULLIF ( + 31, - + 25 ) * - + COUNT( * ) * + - ( - 64 ) + 19 - 58 + + 77 * 67 / CAST( NULL AS SIGNED ) * - + COUNT( * ) * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-911
SELECT - + NULLIF ( + 31, - + 25 ) * - + COUNT ( * ) * + - ( - 64 ) + 19 - 58 + + 77 * 67 / CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * - 73
----
NULL

query I rowsort
SELECT + 39 + ( + 72 ) AS col0
----
111

query II rowsort
SELECT DISTINCT - 33, + 81 * 43 + 91 * - 96 AS col0
----
-33
-5253

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT 51 + - + COALESCE ( COUNT( 23 ), 30 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-914
SELECT 51 + - + COALESCE ( COUNT ( 23 ), 30 ) AS col0
----
50

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

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

query I rowsort
SELECT ALL 80 * + 3 * - - 78
----
18720

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

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

query I rowsort
SELECT DISTINCT 98 + 26
----
124

query I rowsort
SELECT 27 + - 76
----
-49

query I rowsort
SELECT ALL - 2 + + 84 + 96 AS col2
----
178

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

skipif mysql # not compatible
query I rowsort label-921
SELECT 33 / COUNT ( * ) AS col0
----
33

query I rowsort
SELECT 37 + - 61 AS col1
----
-24

query I rowsort
SELECT DISTINCT 43 col1
----
43

query II rowsort
SELECT DISTINCT 79 + - - 11 AS col0, 36
----
90
36

query I rowsort
SELECT 23 + 49 AS col2
----
72

query I rowsort
SELECT DISTINCT + 57 + - 59 * - 49 + - 23
----
2925

query II rowsort
SELECT 43 * - + 57 AS col0, + 47 * - 37 AS col2
----
-2451
-1739

query I rowsort
SELECT DISTINCT - 12 + + ( + + 96 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-929
SELECT 76 * + COALESCE ( 32, - COALESCE ( + ( - 17 ), + 68 + + SUM( ALL - 88 ) + 17 ) ) - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-929
SELECT 76 * + COALESCE ( 32, - COALESCE ( + ( - 17 ), + 68 + + SUM ( ALL - 88 ) + 17 ) ) - - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 58 + - - 35 + 29
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT DISTINCT - 86 * ( + + COUNT( * ) ) col2
----
-86

skipif mysql # not compatible
query I rowsort label-931
SELECT DISTINCT - 86 * ( + + COUNT ( * ) ) col2
----
-86

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

onlyif mysql # aggregate syntax: 
query II rowsort label-933
SELECT DISTINCT - - 59 - - 83 + + - COUNT( * ) + - 90, MAX( 23 ) + + 76 + - - 12 - - 46 AS col2
----
51
157

skipif mysql # not compatible
query II rowsort label-933
SELECT DISTINCT - - 59 - - 83 + + - COUNT ( * ) + - 90, MAX ( 23 ) + + 76 + - - 12 - - 46 AS col2
----
51
157

onlyif mysql # aggregate syntax: 
query II rowsort label-934
SELECT ALL 60 - + COUNT( * ) AS col1, ( + COUNT( * ) )
----
59
1

skipif mysql # not compatible
query II rowsort label-934
SELECT ALL 60 - + COUNT ( * ) AS col1, ( + COUNT ( * ) )
----
59
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-935
SELECT DISTINCT - COUNT( - 77 ) AS col0, 20 DIV + 66
----
-1
0

skipif mysql # not compatible
query II rowsort label-935
SELECT DISTINCT - COUNT ( - 77 ) AS col0, 20 / + 66
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-936
SELECT MAX( + + 75 ) AS col2, NULLIF ( - CASE - 30 WHEN CASE 73 WHEN + ( - 38 ) THEN 14 * - CASE AVG ( ALL 56 ) WHEN - 63 THEN + 50 * + + COALESCE ( + + 73, - 22 ) + - - 61 * + - SUM( - 98 ) ELSE - + ( + 80 ) / + 46 + + + 76 * + + 19 / + + COUNT( * ) END * + + SUM( DISTINCT + + 98 ) ELSE NULL END + + MAX( DISTINCT + 45 ) THEN - + 53 * + - CASE + 72 WHEN 72 THEN + COUNT( * ) + 8 WHEN - 6 + 91 THEN NULL ELSE 86 / + 61 + - 89 END ELSE NULL END, + CASE + 61 WHEN + 98 * + 94 + 7 THEN - 92 * + 7 WHEN + 15 + - 85 * 33 THEN NULL ELSE NULL END + + 50 * - NULLIF ( + 46 + + 19, + 39 ) ) * 71
----
75
NULL

skipif mysql # not compatible
query II rowsort label-936
SELECT MAX ( + + 75 ) AS col2, NULLIF ( - CASE - 30 WHEN CASE 73 WHEN + ( - 38 ) THEN 14 * - CASE AVG ( ALL 56 ) WHEN - 63 THEN + 50 * + + COALESCE ( + + 73, - 22 ) + - - 61 * + - SUM ( - 98 ) ELSE - + ( + 80 ) / + 46 + + + 76 * + + 19 / + + COUNT ( * ) END * + + SUM ( DISTINCT + + 98 ) ELSE NULL END + + MAX ( DISTINCT + 45 ) THEN - + 53 * + - CASE + 72 WHEN 72 THEN + COUNT ( * ) + 8 WHEN - 6 + 91 THEN NULL ELSE 86 / + 61 + - 89 END ELSE NULL END, + CASE + 61 WHEN + 98 * + 94 + 7 THEN - 92 * + 7 WHEN + 15 + - 85 * 33 THEN NULL ELSE NULL END + + 50 * - NULLIF ( + 46 + + 19, + 39 ) ) * 71
----
75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-937
SELECT ALL + + 71 - - 5 AS col1, COUNT( * ) + - + 57 * 87 AS col0
----
76
-4958

skipif mysql # not compatible
query II rowsort label-937
SELECT ALL + + 71 - - 5 AS col1, COUNT ( * ) + - + 57 * 87 AS col0
----
76
-4958

query I rowsort
SELECT DISTINCT 49 * + - 79
----
-3871

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

skipif mysql # not compatible
query I rowsort label-939
SELECT + COUNT ( * ) / - + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT ALL 67 * + NULLIF ( 71, - - COUNT( * ) ) * - ( - ( + - 50 ) ) * + - 54 + + + 37 AS col0
----
12843937

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL 67 * + NULLIF ( 71, - - COUNT ( * ) ) * - ( - ( + - 50 ) ) * + - 54 + + + 37 AS col0
----
12843937

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-941
SELECT ALL + 37 * - 53 * - - COUNT( DISTINCT - 71 ) * + + 5 * - - 74 * + - 40 DIV 2 AS col1
----
14511400

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL + 37 * - 53 * - - COUNT ( DISTINCT - 71 ) * + + 5 * - - 74 * + - 40 / 2 AS col1
----
14511400

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT ALL + NULLIF ( + COUNT( * ), + 32 * - ( + 14 ) / + AVG ( - - 34 ) * + 22 - + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL + NULLIF ( + COUNT ( * ), + 32 * - ( + 14 ) / + AVG ( - - 34 ) * + 22 - + COUNT ( * ) ) col1
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-944
SELECT DISTINCT + + 41 * + - CAST( + + 6 AS SIGNED ) AS col0
----
-246

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT + + 41 * + - CAST ( + + 6 AS INTEGER ) AS col0
----
-246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-945
SELECT DISTINCT COALESCE ( + 94, - + 46 DIV + CAST( - - 42 AS SIGNED ) + + MIN( + - 66 ), + + 50 )
----
94

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT COALESCE ( + 94, - + 46 / + CAST ( - - 42 AS INTEGER ) + + MIN ( + - 66 ), + + 50 )
----
94

query I rowsort
SELECT ALL + 88 + ( 80 )
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT - - SUM( DISTINCT + - 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-947
SELECT - - SUM ( DISTINCT + - 91 ) AS col1
----
-91

query I rowsort
SELECT 82 + + 51 AS col2
----
133

query II rowsort
SELECT 46, + 41 col1
----
46
41

query I rowsort
SELECT ( - + 98 ) * + 60 - - 41
----
-5839

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-953
SELECT ALL CAST( - 80 AS SIGNED ) + + - 40 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL CAST ( - 80 AS INTEGER ) + + - 40 AS col0
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-954
SELECT ( + 97 ) + + COALESCE ( - 55, 31 * - 76 + + + 80 DIV + 39 ) * 29 AS col1
----
-1498

skipif mysql # not compatible
query I rowsort label-954
SELECT ( + 97 ) + + COALESCE ( - 55, 31 * - 76 + + + 80 / + 39 ) * 29 AS col1
----
-1498

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

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

query I rowsort
SELECT ALL 49 + - - 7
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT - NULLIF ( 29, COUNT( - + 14 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-957
SELECT - NULLIF ( 29, COUNT ( - + 14 ) )
----
-29

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

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

query II rowsort
SELECT 70 AS col1, - 68
----
70
-68

query II rowsort
SELECT - 60 col0, ( 11 ) AS col1
----
-60
11

query I rowsort
SELECT - 13 - 78 * + 37
----
-2899

query I rowsort
SELECT DISTINCT - 76 * - 44 - - 53 + + 29
----
3426

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT ALL + 36 DIV 16
----
2

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL + 36 / 16
----
2

query I rowsort
SELECT + 77 + + 48 + - 4
----
121

query I rowsort
SELECT DISTINCT + + ( + 41 ) AS col2
----
41

query I rowsort
SELECT - - 99 * - 6 AS col1
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT DISTINCT + - CASE + - 24 WHEN - 60 * + COUNT( * ) THEN - MIN( ALL + 47 ) ELSE - 42 END
----
42

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT + - CASE + - 24 WHEN - 60 * + COUNT ( * ) THEN - MIN ( ALL + 47 ) ELSE - 42 END
----
42

query II rowsort
SELECT + 48 * 40 * - 68 + 16 - + + 53 AS col2, 71 AS col2
----
-130597
71

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

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

query I rowsort
SELECT - 68 * + 24
----
-1632

query I rowsort
SELECT DISTINCT 77 * - 79
----
-6083

query I rowsort
SELECT - 60 * 73 + - 70 + + + 94 + + 65 col1
----
-4291

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT ALL + SUM( DISTINCT - 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL + SUM ( DISTINCT - 47 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-974
SELECT ALL + 91 AS col1, - COUNT( * ) + + 74 + COUNT( * ) * + 58
----
91
131

skipif mysql # not compatible
query II rowsort label-974
SELECT ALL + 91 AS col1, - COUNT ( * ) + + 74 + COUNT ( * ) * + 58
----
91
131

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT ALL - 37 * - COALESCE ( + 38, - 4 ) + - + COUNT( * )
----
1405

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL - 37 * - COALESCE ( + 38, - 4 ) + - + COUNT ( * )
----
1405

query I rowsort
SELECT DISTINCT - 1 * - + 45 + - - 89
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-977
SELECT + COUNT( * ) AS col2, SUM( - - 58 ) AS col1
----
1
58

skipif mysql # not compatible
query II rowsort label-977
SELECT + COUNT ( * ) AS col2, SUM ( - - 58 ) AS col1
----
1
58

query I rowsort
SELECT - + 31 + 86 + + - 75 AS col0
----
-20

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

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

query I rowsort
SELECT + 27 + + 55 + + 26
----
108

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

skipif mysql # not compatible
query II rowsort label-981
SELECT COUNT ( * ) AS col1, - 91 AS col2
----
1
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-982
SELECT ALL + 75 + + 28 + + - 95 DIV + CAST( - 60 AS SIGNED ) col0
----
104

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL + 75 + + 28 + + - 95 / + CAST ( - 60 AS INTEGER ) col0
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT ALL + 2 DIV - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL + 2 / - 32 AS col1
----
0

query I rowsort
SELECT - 91 + - 19 AS col0
----
-110

query I rowsort
SELECT ALL - COALESCE ( 31, 18 ) + + 78
----
47

query I rowsort
SELECT DISTINCT ( - + 5 )
----
-5

query I rowsort
SELECT DISTINCT + 58 - + + 85 + - 26
----
-53

query I rowsort
SELECT - 73 + - - 14 AS col1
----
-59

query I rowsort
SELECT DISTINCT CASE - 13 WHEN - + 30 THEN + 57 END - 40
----
NULL

query II rowsort
SELECT 74, - 24 AS col2
----
74
-24

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

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

query I rowsort
SELECT + 19 + + 36 - + 70 * 26 + + 3 AS col2
----
-1762

query I rowsort
SELECT - CASE 6 WHEN + ( + + 45 ) * - 56 + - 84 THEN + 2 * + 34 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-994
SELECT ALL CAST( + MAX( - + 94 ) AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL CAST ( + MAX ( - + 94 ) AS INTEGER )
----
-94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-995
SELECT - ( COALESCE ( - + 26, CAST( - + 89 AS SIGNED ) DIV 98 ) ) col0
----
26

skipif mysql # not compatible
query I rowsort label-995
SELECT - ( COALESCE ( - + 26, CAST ( - + 89 AS INTEGER ) / 98 ) ) col0
----
26

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

skipif mysql # not compatible
query II rowsort label-996
SELECT ALL COUNT ( * ), 95 AS col1
----
1
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-997
SELECT - 33 * 4 * 50 * + + 56 / + 16 - - - 94 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-997
SELECT - 33 * 4 * 50 * + + 56 / + 16 - - - 94 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT + 55 * - MAX( DISTINCT + 17 )
----
-935

skipif mysql # not compatible
query I rowsort label-998
SELECT + 55 * - MAX ( DISTINCT + 17 )
----
-935

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

skipif mysql # not compatible
query I rowsort label-999
SELECT + - 91 / + COUNT ( * ) + 10 AS col1
----
-81

query I rowsort
SELECT DISTINCT 95 * + 34 * + 38 AS col1
----
122740

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

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

query I rowsort
SELECT + 39 + - 37 - - - 6
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT + 82 DIV - - 97
----
0

skipif mysql # not compatible
query I rowsort label-1003
SELECT + 82 / - - 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT - + 77 * 62 * + 79 * - 2 + - CASE 57 WHEN + 12 THEN - - 21 WHEN 47 + + + COUNT( * ) THEN + + AVG ( DISTINCT + 41 ) ELSE NULL END + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-1004
SELECT - + 77 * 62 * + 79 * - 2 + - CASE 57 WHEN + 12 THEN - - 21 WHEN 47 + + + COUNT ( * ) THEN + + AVG ( DISTINCT + 41 ) ELSE NULL END + - 37
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1005
SELECT ALL 16 DIV + 32 + 20 + - + ( - 2 ) * + ( - 63 ) - - 36 + + 59 * + + 33
----
1877

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL 16 / + 32 + 20 + - + ( - 2 ) * + ( - 63 ) - - 36 + + 59 * + + 33
----
1877

query II rowsort
SELECT DISTINCT + 70 * - - 99 * - 58 * - 51 * 59 + - 30 AS col2, 59
----
1209437430
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1007
SELECT DISTINCT + MAX( DISTINCT 52 ) / - + COUNT( - + 7 ) + - + 49 + 60 + + CAST( NULL AS SIGNED ) * + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1007
SELECT DISTINCT + MAX ( DISTINCT 52 ) / - + COUNT ( - + 7 ) + - + 49 + 60 + + CAST ( NULL AS INTEGER ) * + + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + 58 * + 94 - COUNT( * ) AS col0
----
5451

skipif mysql # not compatible
query I rowsort label-1008
SELECT + 58 * + 94 - COUNT ( * ) AS col0
----
5451

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1010
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) / + 29 + - 1 + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) / + 29 + - 1 + 58
----
NULL

query I rowsort
SELECT ALL 24 * + + 28 + 20 + - 13 * 42
----
146

query II rowsort
SELECT ALL + 59 AS col2, + 62 + + 90 AS col1
----
59
152

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT + + 82 * + 27 + - SUM( + + 51 ) + - 64 AS col1
----
2099

skipif mysql # not compatible
query I rowsort label-1013
SELECT + + 82 * + 27 + - SUM ( + + 51 ) + - 64 AS col1
----
2099

onlyif mysql # DIV for integer division: 
query I rowsort label-1014
SELECT + 85 DIV - - 64 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1014
SELECT + 85 / - - 64 AS col2
----
1

query I rowsort
SELECT ALL + 4 * + 12 + + 87
----
135

query II rowsort
SELECT ALL + 39, - 47 col2
----
39
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT DISTINCT + COUNT( * ) * - 83 + 51 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT + COUNT ( * ) * - 83 + 51 AS col2
----
-32

query I rowsort
SELECT DISTINCT + 63 * 32 col0
----
2016

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT - 15 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1019
SELECT - 15 / - 79 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1020
SELECT ALL AVG ( 35 ) * - 80 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL AVG ( 35 ) * - 80 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1021
SELECT - 92 * 35 AS col0, + 32 - 70 * - COUNT( * ) col0
----
-3220
102

skipif mysql # not compatible
query II rowsort label-1021
SELECT - 92 * 35 AS col0, + 32 - 70 * - COUNT ( * ) col0
----
-3220
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1022
SELECT ALL CAST( + 46 AS SIGNED ) AS col0, - CAST( 37 AS SIGNED ) - COUNT( * ) + + 49 + + 36 AS col1
----
46
47

skipif mysql # not compatible
query II rowsort label-1022
SELECT ALL CAST ( + 46 AS INTEGER ) AS col0, - CAST ( 37 AS INTEGER ) - COUNT ( * ) + + 49 + + 36 AS col1
----
46
47

query II rowsort
SELECT NULLIF ( + + ( + 2 ), ( 31 ) / - 20 * - 40 ), + 7 AS col1
----
2
7

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

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

query I rowsort
SELECT 17 + + 94 AS col1
----
111

onlyif mysql # DIV for integer division: 
query II rowsort label-1026
SELECT DISTINCT + 53 DIV - 49, + 97 col1
----
-1
97

skipif mysql # not compatible
query II rowsort label-1026
SELECT DISTINCT + 53 / - 49, + 97 col1
----
-1
97

query I rowsort
SELECT 33 * ( + 88 ) AS col0
----
2904

query I rowsort
SELECT DISTINCT - 36 * + - 92 * + 50 AS col0
----
165600

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT DISTINCT - 27 * 38 * - COUNT( * )
----
1026

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT - 27 * 38 * - COUNT ( * )
----
1026

query I rowsort
SELECT 52 + - 76 * - - 36
----
-2684

query I rowsort
SELECT 58 * + 55
----
3190

query I rowsort
SELECT DISTINCT - 36 * + 60
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT 42 + - 47 - MAX( ALL 36 ) * + 48
----
-1733

skipif mysql # not compatible
query I rowsort label-1033
SELECT 42 + - 47 - MAX ( ALL 36 ) * + 48
----
-1733

query I rowsort
SELECT - 40 * + 99 + - + 8
----
-3968

query I rowsort
SELECT 25 + - 44 + 37 AS col0
----
18

query I rowsort
SELECT - 14 - - 11
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT - CASE - + 91 WHEN - CASE + 40 WHEN + MIN( - 84 ) * - ( ( - 84 ) ) + - COUNT( * ) + + COUNT( * ) THEN NULL ELSE - AVG ( ALL + 62 ) END * - 71 THEN NULL WHEN 23 THEN + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1037
SELECT - CASE - + 91 WHEN - CASE + 40 WHEN + MIN ( - 84 ) * - ( ( - 84 ) ) + - COUNT ( * ) + + COUNT ( * ) THEN NULL ELSE - AVG ( ALL + 62 ) END * - 71 THEN NULL WHEN 23 THEN + 86 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT DISTINCT + SUM( ALL 0 ) + - + 59
----
-59

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT + SUM ( ALL 0 ) + - + 59
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT 46 DIV + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1039
SELECT 46 / + 49 AS col2
----
0

query I rowsort
SELECT ALL - 10 + + 95 * - + 13
----
-1245

query I rowsort
SELECT DISTINCT - - 15 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT DISTINCT - - COALESCE ( + - SUM( 61 ), COALESCE ( - - 87, 30, - - 27 + - 64 ) ) + - COALESCE ( + 27, - 54 ) + + 53
----
-35

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT - - COALESCE ( + - SUM ( 61 ), COALESCE ( - - 87, 30, - - 27 + - 64 ) ) + - COALESCE ( + 27, - 54 ) + + 53
----
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-1043
SELECT 95 + 29 DIV ( COALESCE ( + ( + - 42 ), + 77 ) ), COALESCE ( - + 97, - - 14 ) + - - 71 AS col0
----
95
-26

skipif mysql # not compatible
query II rowsort label-1043
SELECT 95 + 29 / ( COALESCE ( + ( + - 42 ), + 77 ) ), COALESCE ( - + 97, - - 14 ) + - - 71 AS col0
----
95
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ALL - CASE 46 WHEN - 73 / COUNT( * ) + + 90 THEN - ( - 44 ) ELSE NULL END + + 45 * + - 56 - + + 90 * + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL - CASE 46 WHEN - 73 / COUNT ( * ) + + 90 THEN - ( - 44 ) ELSE NULL END + + 45 * + - 56 - + + 90 * + 28 AS col2
----
NULL

query I rowsort
SELECT ALL + ( + 94 ) + - - 7 AS col1
----
101

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

query I rowsort
SELECT 2 - - + 22 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT + ( + 23 ) / - + 31 - + + 45 + + - 91 * - 50 - - 56 * + CASE CASE + ( - 25 ) WHEN - 32 * 16 THEN NULL ELSE + COUNT( * ) + COUNT( * ) END WHEN - 51 THEN - NULLIF ( + 94, + 92 ) + - COUNT( * ) ELSE NULL END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT + ( + 23 ) / - + 31 - + + 45 + + - 91 * - 50 - - 56 * + CASE CASE + ( - 25 ) WHEN - 32 * 16 THEN NULL ELSE + COUNT ( * ) + COUNT ( * ) END WHEN - 51 THEN - NULLIF ( + 94, + 92 ) + - COUNT ( * ) ELSE NULL END + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT SUM( 89 )
----
89

skipif mysql # not compatible
query I rowsort label-1049
SELECT SUM ( 89 )
----
89

query I rowsort
SELECT 64 * 34 AS col0
----
2176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1051
SELECT ALL 13 * - 17 DIV - + COUNT( * )
----
221

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL 13 * - 17 / - + COUNT ( * )
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT 51 + 2 + + + ( COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-1052
SELECT 51 + 2 + + + ( COUNT ( * ) )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1053
SELECT 94 DIV - 71 col2
----
-1

skipif mysql # not compatible
query I rowsort label-1053
SELECT 94 / - 71 col2
----
-1

query I rowsort
SELECT ALL - 9 + - 24 - + 27 * - 2 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT COUNT( - 17 ) + + - 65 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-1055
SELECT COUNT ( - 17 ) + + - 65 AS col2
----
-64

query I rowsort
SELECT + 5 + + 29 + - - 11 AS col1
----
45

query I rowsort
SELECT 43 * 36 * + 30 AS col2
----
46440

query I rowsort
SELECT ALL - + 79 AS col2
----
-79

query II rowsort
SELECT DISTINCT - 65, - 19 * - CASE - 51 WHEN + - 34 * + 46 * - ( + 64 ) / - 59 + - 8 THEN 34 WHEN 16 THEN NULL WHEN + 37 THEN + + 90 END AS col1
----
-65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT COUNT( * ) + - - 59 * - 75 AS col2
----
-4424

skipif mysql # not compatible
query I rowsort label-1060
SELECT COUNT ( * ) + - - 59 * - 75 AS col2
----
-4424

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT ALL 68 DIV - 38 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL 68 / - 38 AS col1
----
-1

query I rowsort
SELECT 52 + - - 84 col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT ALL COUNT( * ) * CASE 18 WHEN - COUNT( * ) THEN + + NULLIF ( - 68, - ( - AVG ( DISTINCT 40 ) ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL COUNT ( * ) * CASE 18 WHEN - COUNT ( * ) THEN + + NULLIF ( - 68, - ( - AVG ( DISTINCT 40 ) ) ) ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - 13 * + 30
----
-390

onlyif mysql # DIV for integer division: 
query I rowsort label-1066
SELECT 68 DIV - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1066
SELECT 68 / - 97 AS col1
----
0

query I rowsort
SELECT ALL + 49 * - 15 AS col2
----
-735

onlyif mysql # aggregate syntax: 
query II rowsort label-1068
SELECT 94 AS col0, SUM( ALL - 75 )
----
94
-75

skipif mysql # not compatible
query II rowsort label-1068
SELECT 94 AS col0, SUM ( ALL - 75 )
----
94
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-1069
SELECT ALL 52 AS col2, SUM( + 48 ) + - ( + COUNT( * ) ) AS col1
----
52
47

skipif mysql # not compatible
query II rowsort label-1069
SELECT ALL 52 AS col2, SUM ( + 48 ) + - ( + COUNT ( * ) ) AS col1
----
52
47

query I rowsort
SELECT DISTINCT 25 * - 87 AS col1
----
-2175

query II rowsort
SELECT ALL 56, + 70 + - 94 + + 74 * - 36 AS col0
----
56
-2688

query II rowsort
SELECT - 57 AS col0, 94
----
-57
94

query I rowsort
SELECT 68 * + - NULLIF ( - + 54, + 17 + 25 ) AS col2
----
3672

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT - MIN( - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-1074
SELECT - MIN ( - 78 )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1075
SELECT 94 AS col1, + CASE - 6 WHEN + + COUNT( * ) * + 26 + + ( + 90 ) / - 8 * 17 THEN NULL ELSE - - COALESCE ( - + 88, + 47 + - 94 * + 24 * + - 18, 88 ) END
----
94
-88

skipif mysql # not compatible
query II rowsort label-1075
SELECT 94 AS col1, + CASE - 6 WHEN + + COUNT ( * ) * + 26 + + ( + 90 ) / - 8 * 17 THEN NULL ELSE - - COALESCE ( - + 88, + 47 + - 94 * + 24 * + - 18, 88 ) END
----
94
-88

query I rowsort
SELECT - ( - 16 ) col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT ALL + 56 + + + 83 + - + 28 * + + COUNT( * ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL + 56 + + + 83 + - + 28 * + + COUNT ( * ) AS col1
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1078
SELECT - CAST( 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-1078
SELECT - CAST ( 84 AS INTEGER )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1079
SELECT ALL - + CAST( - 44 AS SIGNED ) + - COUNT( * ) + + 0
----
43

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL - + CAST ( - 44 AS INTEGER ) + - COUNT ( * ) + + 0
----
43

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

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

query I rowsort
SELECT 48 + 80 - - - 41 * + 21 AS col0
----
-733

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

query I rowsort
SELECT DISTINCT - + 99 + - 77 * + 80 - + - 66
----
-6193

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT + 86 * - - SUM( 2 ) * 91 + + 12
----
15664

skipif mysql # not compatible
query I rowsort label-1084
SELECT + 86 * - - SUM ( 2 ) * 91 + + 12
----
15664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1085
SELECT - COALESCE ( 66, + 46 * + CAST( NULL AS SIGNED ) + - + SUM( - 30 ) * + + ( + 39 ) + + 15 * - ( COUNT( * ) ) * + - ( ( 12 ) ), - - 58 * - + 18 * 85 * + 81 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1085
SELECT - COALESCE ( 66, + 46 * + CAST ( NULL AS INTEGER ) + - + SUM ( - 30 ) * + + ( + 39 ) + + 15 * - ( COUNT ( * ) ) * + - ( ( 12 ) ), - - 58 * - + 18 * 85 * + 81 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT 17 + + COUNT( * ) - - 85 * + 60 - - COUNT( * ) * - MIN( 78 ) + - - 58
----
5098

skipif mysql # not compatible
query I rowsort label-1086
SELECT 17 + + COUNT ( * ) - - 85 * + 60 - - COUNT ( * ) * - MIN ( 78 ) + - - 58
----
5098

query II rowsort
SELECT - 28 * + + CASE 94 WHEN - 89 THEN - 50 END * - 52, 32 AS col0
----
NULL
32

query I rowsort
SELECT ALL - 89 * + 87 - - 85 AS col1
----
-7658

query II rowsort
SELECT ALL - + 11 col0, 9
----
-11
9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT + 94 DIV + 67 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1091
SELECT + 94 / + 67 AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + + ( - 91 ) / + 34 + + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL 47 * - 55 + + COUNT( * ) AS col0
----
-2584

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL 47 * - 55 + + COUNT ( * ) AS col0
----
-2584

query I rowsort
SELECT DISTINCT - 69 col2
----
-69

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1096
SELECT + 21 * - CAST( + 68 AS SIGNED )
----
-1428

skipif mysql # not compatible
query I rowsort label-1096
SELECT + 21 * - CAST ( + 68 AS INTEGER )
----
-1428

query I rowsort
SELECT ALL 27 * + 18
----
486

onlyif mysql # aggregate syntax: 
query II rowsort label-1098
SELECT DISTINCT MAX( - 1 ) * + + COUNT( * ) + - + 43 AS col1, CASE 48 WHEN - 9 THEN + COUNT( * ) END * 88 + - 75 + COUNT( * ) + - 15 * - + COALESCE ( - + 23, 36 * 16 * + 55 + 91 ) AS col1
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-1098
SELECT DISTINCT MAX ( - 1 ) * + + COUNT ( * ) + - + 43 AS col1, CASE 48 WHEN - 9 THEN + COUNT ( * ) END * 88 + - 75 + COUNT ( * ) + - 15 * - + COALESCE ( - + 23, 36 * 16 * + 55 + 91 ) AS col1
----
-44
NULL

query II rowsort
SELECT ALL - ( - - ( + 35 ) ) * 30 AS col0, 84 AS col1
----
-1050
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT 81 * + COUNT( * ) - 46 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1100
SELECT 81 * + COUNT ( * ) - 46 AS col0
----
35

query I rowsort
SELECT ALL + 81 col1
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1102
SELECT ALL 49 DIV - 36 AS col0, - ( + 50 ) + + CAST( + 40 AS SIGNED )
----
-1
-10

skipif mysql # not compatible
query II rowsort label-1102
SELECT ALL 49 / - 36 AS col0, - ( + 50 ) + + CAST ( + 40 AS INTEGER )
----
-1
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1103
SELECT + MIN( - CAST( - 58 AS SIGNED ) ) * - 93, + COUNT( * ) AS col1
----
-5394
1

skipif mysql # not compatible
query II rowsort label-1103
SELECT + MIN ( - CAST ( - 58 AS INTEGER ) ) * - 93, + COUNT ( * ) AS col1
----
-5394
1

query I rowsort
SELECT ALL + 82 * - - 99
----
8118

query I rowsort
SELECT + 48 - - + 28 * + 27 * - 39 * + ( + - 32 ) AS col1
----
943536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1106
SELECT + 60 * CAST( - + 3 AS SIGNED ) AS col2
----
-180

skipif mysql # not compatible
query I rowsort label-1106
SELECT + 60 * CAST ( - + 3 AS INTEGER ) AS col2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT + COUNT( * ) + 49 * - 42
----
-2057

skipif mysql # not compatible
query I rowsort label-1107
SELECT + COUNT ( * ) + 49 * - 42
----
-2057

onlyif mysql # DIV for integer division: 
query I rowsort label-1108
SELECT - ( - - 65 ) DIV + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1108
SELECT - ( - - 65 ) / + 76 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT - COALESCE ( - 40, COUNT( * ) - 49 )
----
40

skipif mysql # not compatible
query I rowsort label-1110
SELECT - COALESCE ( - 40, COUNT ( * ) - 49 )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1111
SELECT + NULLIF ( CAST( NULL AS SIGNED ), - NULLIF ( + - CAST( 18 AS SIGNED ), + 61 ) ) + + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1111
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), - NULLIF ( + - CAST ( 18 AS INTEGER ), + 61 ) ) + + 97 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 41 * + 74, + 88 AS col1
----
3034
88

query I rowsort
SELECT + 62 + + 69 + - + 30 AS col0
----
101

query I rowsort
SELECT ALL 32 + 61 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT ALL 45 + + SUM( DISTINCT 96 ) AS col0
----
141

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL 45 + + SUM ( DISTINCT 96 ) AS col0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT CASE + MIN( - 25 ) WHEN + + 58 * 50 / - COUNT( * ) THEN - - AVG ( ALL + - 31 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1116
SELECT CASE + MIN ( - 25 ) WHEN + + 58 * 50 / - COUNT ( * ) THEN - - AVG ( ALL + - 31 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + - 70 * - 51
----
3570

query I rowsort
SELECT - CASE 84 WHEN - 15 - - - 99 THEN NULL ELSE 24 * + 60 END AS col1
----
-1440

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

query I rowsort
SELECT - + 89 + + + 54 AS col1
----
-35

query I rowsort
SELECT - 65 * + 15 AS col1
----
-975

query I rowsort
SELECT - + 70 * + 85 - + 68 AS col0
----
-6018

query I rowsort
SELECT DISTINCT + + 79 * - 23 * - + 82 AS col0
----
148994

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT ALL + + SUM( + 30 ) * 93 * + 23 AS col2
----
64170

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL + + SUM ( + 30 ) * 93 * + 23 AS col2
----
64170

query I rowsort
SELECT - - 37 * + 47 col0
----
1739

query I rowsort
SELECT ALL + - 75 AS col0
----
-75

query I rowsort
SELECT ALL + + 45 AS col0
----
45

query I rowsort
SELECT - 62 - - - 48
----
-110

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

skipif mysql # not compatible
query I rowsort label-1129
SELECT - COUNT ( * ) / + - 5 AS col0
----
0

query I rowsort
SELECT ALL + CASE + 37 WHEN - 90 / - 99 + + 87 THEN - ( 81 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1131
SELECT + 6 * + MAX( - 79 ) - COALESCE ( 50, - 59 + - ( COUNT( * ) ), 90 * - ( - COUNT( DISTINCT - CAST( ( - + 48 ) AS DECIMAL ) ) ) DIV + + 18 - 94 + 41 )
----
-524

skipif mysql # not compatible
query I rowsort label-1131
SELECT + 6 * + MAX ( - 79 ) - COALESCE ( 50, - 59 + - ( COUNT ( * ) ), 90 * - ( - COUNT ( DISTINCT - CAST ( ( - + 48 ) AS REAL ) ) ) / + + 18 - 94 + 41 )
----
-524

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1135
SELECT - MIN( 28 ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-1135
SELECT - MIN ( 28 ) / - 61
----
0

query II rowsort
SELECT DISTINCT + 75 col1, 47 AS col2
----
75
47

query I rowsort
SELECT DISTINCT 14 * + 97 * 72
----
97776

query I rowsort
SELECT ALL 37 * + 48 + 22
----
1798

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT MIN( + 14 ) * + COUNT( * ) + 48
----
62

skipif mysql # not compatible
query I rowsort label-1139
SELECT MIN ( + 14 ) * + COUNT ( * ) + 48
----
62

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1141
SELECT ALL COUNT( - 35 ) * + 9 + + 45 * + ( - + COALESCE ( - CAST( MAX( + 11 ) AS SIGNED ), + 77, - 90 + + COUNT( - 68 ) + 21 + - + 97 + 6 * 69 ) ) AS col2
----
504

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL COUNT ( - 35 ) * + 9 + + 45 * + ( - + COALESCE ( - CAST ( MAX ( + 11 ) AS INTEGER ), + 77, - 90 + + COUNT ( - 68 ) + 21 + - + 97 + 6 * 69 ) ) AS col2
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT + COUNT( * ) + + + MIN( - 90 ) * - 91 AS col1
----
8191

skipif mysql # not compatible
query I rowsort label-1142
SELECT + COUNT ( * ) + + + MIN ( - 90 ) * - 91 AS col1
----
8191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1143
SELECT DISTINCT 48 * - + NULLIF ( - + 66, - 30 * 48 ) + 37 DIV + COUNT( * ) AS col0
----
3205

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT 48 * - + NULLIF ( - + 66, - 30 * 48 ) + 37 / + COUNT ( * ) AS col0
----
3205

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

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL 17 * + 14 * + COUNT ( * ) + COUNT ( * )
----
239

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT - MIN( ALL 14 ) * + + 20 col1
----
-280

skipif mysql # not compatible
query I rowsort label-1145
SELECT - MIN ( ALL 14 ) * + + 20 col1
----
-280

query I rowsort
SELECT + 11 * 42 + 67
----
529

query II rowsort
SELECT ALL COALESCE ( 82, - + 40 * + 56 ) * + 78 + - 66 AS col2, - ( 53 )
----
6330
-53

query I rowsort
SELECT DISTINCT 18 + + 44
----
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT MAX( ALL - 41 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1150
SELECT MAX ( ALL - 41 ) AS col2
----
-41

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT + ( 74 ) DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1152
SELECT + ( 74 ) / + 90 AS col2
----
0

query I rowsort
SELECT + 35 * + 83 AS col2
----
2905

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT - COALESCE ( 66, MAX( DISTINCT 84 ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1154
SELECT - COALESCE ( 66, MAX ( DISTINCT 84 ) ) AS col2
----
-66

query I rowsort
SELECT ALL ( - 69 ) - + 62
----
-131

query I rowsort
SELECT + 99 * - 49
----
-4851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1157
SELECT DISTINCT NULLIF ( + 84, 40 + - 48 ) * + CAST( 30 * + 39 AS SIGNED ) AS col0
----
98280

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT NULLIF ( + 84, 40 + - 48 ) * + CAST ( 30 * + 39 AS INTEGER ) AS col0
----
98280

query I rowsort
SELECT + 93 + ( 13 ) AS col0
----
106

query I rowsort
SELECT DISTINCT ( - 89 ) AS col2
----
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT + ( 11 ) * - COUNT( * ) - - 91 * + 20 AS col0
----
1809

skipif mysql # not compatible
query I rowsort label-1161
SELECT + ( 11 ) * - COUNT ( * ) - - 91 * + 20 AS col0
----
1809

query I rowsort
SELECT ( + 65 ) * 45 AS col1
----
2925

query I rowsort
SELECT DISTINCT + 8 * + 3 AS col2
----
24

query I rowsort
SELECT ALL - 54 + - 43 col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL + 90 + - SUM( DISTINCT - 63 ) * 56
----
3618

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL + 90 + - SUM ( DISTINCT - 63 ) * 56
----
3618

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT 52 * + CASE - ( - ( 74 ) ) WHEN ( 40 ) THEN COUNT( * ) ELSE CASE 29 WHEN 37 + - 50 * 79 THEN 99 WHEN COALESCE ( - CASE 38 WHEN + 54 THEN 61 - + 83 ELSE COALESCE ( + ( 33 ), + 34, 6 * ( COUNT( * ) ) + ( + 65 ) ) / + COUNT( * ) END, + 48 + 19 * - COALESCE ( 13 / + 94 + - 91, 69 + NULLIF ( - 1, 53 * MIN( DISTINCT 45 ) ) ), 30 + 95 ) THEN + 88 * - 13 - 43 ELSE + 43 END END AS col0
----
2236

skipif mysql # not compatible
query I rowsort label-1166
SELECT 52 * + CASE - ( - ( 74 ) ) WHEN ( 40 ) THEN COUNT ( * ) ELSE CASE 29 WHEN 37 + - 50 * 79 THEN 99 WHEN COALESCE ( - CASE 38 WHEN + 54 THEN 61 - + 83 ELSE COALESCE ( + ( 33 ), + 34, 6 * ( COUNT ( * ) ) + ( + 65 ) ) / + COUNT ( * ) END, + 48 + 19 * - COALESCE ( 13 / + 94 + - 91, 69 + NULLIF ( - 1, 53 * MIN ( DISTINCT 45 ) ) ), 30 + 95 ) THEN + 88 * - 13 - 43 ELSE + 43 END END AS col0
----
2236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT ALL CAST( - 24 AS SIGNED ) + - 67
----
-91

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL CAST ( - 24 AS INTEGER ) + - 67
----
-91

query I rowsort
SELECT ALL + 81 * COALESCE ( 19 * + 71, 26, + 3 + 75 * + 41 )
----
109269

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT DISTINCT + 9 + MIN( 76 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT + 9 + MIN ( 76 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT ALL - 18 + COALESCE ( 62 + ( + 81 + - 72 * 41 ) * - COUNT( * ), - COUNT( * ) * + 29 )
----
2915

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL - 18 + COALESCE ( 62 + ( + 81 + - 72 * 41 ) * - COUNT ( * ), - COUNT ( * ) * + 29 )
----
2915

query I rowsort
SELECT ALL + 91 + 43
----
134

query I rowsort
SELECT DISTINCT - 73 + + 36 * + 63 AS col2
----
2195

query I rowsort
SELECT ALL + 18 + - 28
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1174
SELECT 96 DIV COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-1174
SELECT 96 / COUNT ( * ) AS col1
----
96

query I rowsort
SELECT 19 * - 38 - 64
----
-786

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT DISTINCT - 46 DIV - 27
----
1

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT - 46 / - 27
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT ALL + MIN( DISTINCT 47 ) + 22 * 83
----
1873

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL + MIN ( DISTINCT 47 ) + 22 * 83
----
1873

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1179
SELECT 86 DIV + 69
----
1

skipif mysql # not compatible
query I rowsort label-1179
SELECT 86 / + 69
----
1

query I rowsort
SELECT ALL - 56 - 51 AS col2
----
-107

query I rowsort
SELECT ALL 77 * 56 AS col1
----
4312

query I rowsort
SELECT 93 * + 0
----
0

query I rowsort
SELECT ALL 84 - 8
----
76

query I rowsort
SELECT - ( 34 ) AS col0
----
-34

query I rowsort
SELECT - 97 + 94 AS col1
----
-3

query I rowsort
SELECT 94 + - 79
----
15

query I rowsort
SELECT - 80 - 89 * 73 AS col2
----
-6577

query I rowsort
SELECT 25 * 41 AS col0
----
1025

onlyif mysql # DIV for integer division: 
query I rowsort label-1189
SELECT - 24 + + 64 DIV ( 77 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-1189
SELECT - 24 + + 64 / ( 77 ) AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-1190
SELECT + 47 + - 97 DIV + 97 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1190
SELECT + 47 + - 97 / + 97 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT ALL + 81 * + MAX( CASE - 69 WHEN COALESCE ( - 22, 75 * ( ( 62 ) ) ) THEN 75 WHEN 17 THEN NULL WHEN + 35 * 10 THEN 99 ELSE NULL END - + 72 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL + 81 * + MAX ( CASE - 69 WHEN COALESCE ( - 22, 75 * ( ( 62 ) ) ) THEN 75 WHEN 17 THEN NULL WHEN + 35 * 10 THEN 99 ELSE NULL END - + 72 ) AS col0
----
NULL

query I rowsort
SELECT - 22 + 60
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1193
SELECT DISTINCT - 99 DIV 52
----
-1

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT - 99 / 52
----
-1

query I rowsort
SELECT - CASE + 17 WHEN - 70 THEN ( 82 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT DISTINCT SUM( ALL - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT SUM ( ALL - 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT ALL ( - 35 ) * - COUNT( 67 + + 54 * - 40 )
----
35

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL ( - 35 ) * - COUNT ( 67 + + 54 * - 40 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1197
SELECT + 49 DIV + 25
----
1

skipif mysql # not compatible
query I rowsort label-1197
SELECT + 49 / + 25
----
1

query I rowsort
SELECT DISTINCT 39 * - 62 AS col2
----
-2418

query I rowsort
SELECT - 98 * + 2 + 76 AS col0
----
-120

query I rowsort
SELECT DISTINCT ( - 17 ) + - 31
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1201
SELECT 52 DIV - 92 * + 78 col2
----
0

skipif mysql # not compatible
query I rowsort label-1201
SELECT 52 / - 92 * + 78 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT DISTINCT - 49 + + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT - 49 + + COUNT ( * )
----
-48

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1204
SELECT CAST( - - 83 AS SIGNED ) * + 71 AS col1
----
5893

skipif mysql # not compatible
query I rowsort label-1204
SELECT CAST ( - - 83 AS INTEGER ) * + 71 AS col1
----
5893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1205
SELECT ALL CAST( 36 AS SIGNED ) + - 86 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL CAST ( 36 AS INTEGER ) + - 86 AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1206
SELECT 23 * + ( - 88 ) + ( - CAST( NULL AS SIGNED ) - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1206
SELECT 23 * + ( - 88 ) + ( - CAST ( NULL AS INTEGER ) - 97 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT 77 - - COUNT( * ) * 4 col0
----
81

skipif mysql # not compatible
query I rowsort label-1207
SELECT 77 - - COUNT ( * ) * 4 col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1208
SELECT + 47 DIV + + 40 + COUNT( ALL + 37 + 5 ) DIV + 79 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1208
SELECT + 47 / + + 40 + COUNT ( ALL + 37 + 5 ) / + 79 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT + 59 * 1 * 87 - + CASE + 60 WHEN - COUNT( * ) * 98 THEN - 53 + 11 * + COUNT( * ) WHEN 55 * 4 THEN NULL END * 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1209
SELECT + 59 * 1 * 87 - + CASE + 60 WHEN - COUNT ( * ) * 98 THEN - 53 + 11 * + COUNT ( * ) WHEN 55 * 4 THEN NULL END * 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT MIN( DISTINCT - - 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1210
SELECT MIN ( DISTINCT - - 58 ) AS col0
----
58

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

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

query I rowsort
SELECT ( - NULLIF ( - 11, + ( + 10 ) ) ) * - 2 + 9
----
-13

query I rowsort
SELECT ALL 95 - 98
----
-3

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

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

query I rowsort
SELECT ALL - 33 * - 9
----
297

query I rowsort
SELECT 96 + - - 93 * + 35 AS col1
----
3351

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL 48 * - COALESCE ( COUNT( * ), COALESCE ( 80, 72, - 58 + 51 ) ) * 96 AS col1
----
-4608

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL 48 * - COALESCE ( COUNT ( * ), COALESCE ( 80, 72, - 58 + 51 ) ) * 96 AS col1
----
-4608

query I rowsort
SELECT 2 * + 22
----
44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT DISTINCT - 4 * + + 92 + COUNT( * ) col0
----
-367

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT - 4 * + + 92 + COUNT ( * ) col0
----
-367

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT + 65 + + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1221
SELECT + 65 + + COUNT ( * ) AS col2
----
66

query I rowsort
SELECT ALL - + 23 - - + 77 AS col2
----
54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1224
SELECT + SUM( + 96 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1224
SELECT + SUM ( + 96 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - + 94 * 91 + 13 AS col1
----
-8541

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT ALL - - 48 DIV - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL - - 48 / - 58 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT CASE WHEN NOT ( 89 ) IS NOT NULL THEN SUM( DISTINCT + 59 ) * + 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1227
SELECT CASE WHEN NOT ( 89 ) IS NOT NULL THEN SUM ( DISTINCT + 59 ) * + 92 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( COALESCE ( 69, 83 ), 72 )
----
69

query I rowsort
SELECT DISTINCT - 88 * + + 65 + 84 * - ( 5 )
----
-6140

query I rowsort
SELECT ALL + NULLIF ( + 28, + 49 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT - 98 - + COUNT( * ) - - CASE + 5 WHEN - 44 / + MIN( - 54 ) + - 50 * + COUNT( * ) THEN NULL WHEN 47 THEN NULL ELSE COUNT( * ) END
----
-98

skipif mysql # not compatible
query I rowsort label-1231
SELECT - 98 - + COUNT ( * ) - - CASE + 5 WHEN - 44 / + MIN ( - 54 ) + - 50 * + COUNT ( * ) THEN NULL WHEN 47 THEN NULL ELSE COUNT ( * ) END
----
-98

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT - + 64 * 26 * 12 + SUM( + 52 ) AS col2
----
-19916

skipif mysql # not compatible
query I rowsort label-1234
SELECT - + 64 * 26 * 12 + SUM ( + 52 ) AS col2
----
-19916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT + - CAST( - - 92 AS SIGNED ) + + ( - 13 )
----
-105

skipif mysql # not compatible
query I rowsort label-1235
SELECT + - CAST ( - - 92 AS INTEGER ) + + ( - 13 )
----
-105

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

query I rowsort
SELECT ALL NULLIF ( + 4, 50 ) AS col2
----
4

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1239
SELECT ALL + + ( - 35 ) + NULLIF ( + CASE + 76 WHEN 68 THEN NULL WHEN + 12 THEN + 18 - 43 / + COUNT( * ) WHEN 50 * 22 + 70 THEN NULL END, 11 - COALESCE ( CASE 23 WHEN 15 THEN 68 + COALESCE ( CAST( 35 AS SIGNED ) + + 75, + COALESCE ( + COUNT( * ), 21 ) + 31, 42 - + 66, 30 * 90 ) WHEN - CAST( NULL AS SIGNED ) THEN + 96 + - 49 END + - 18 * + 13, - 19 * - 95 - 53, - 65 + 30 * + 3, 94 ) ) * + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL + + ( - 35 ) + NULLIF ( + CASE + 76 WHEN 68 THEN NULL WHEN + 12 THEN + 18 - 43 / + COUNT ( * ) WHEN 50 * 22 + 70 THEN NULL END, 11 - COALESCE ( CASE 23 WHEN 15 THEN 68 + COALESCE ( CAST ( 35 AS INTEGER ) + + 75, + COALESCE ( + COUNT ( * ), 21 ) + 31, 42 - + 66, 30 * 90 ) WHEN - CAST ( NULL AS INTEGER ) THEN + 96 + - 49 END + - 18 * + 13, - 19 * - 95 - 53, - 65 + 30 * + 3, 94 ) ) * + 70 AS col1
----
NULL

query I rowsort
SELECT ALL 87 + 59 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT - 56 + COUNT( * ) * 10
----
-46

skipif mysql # not compatible
query I rowsort label-1241
SELECT - 56 + COUNT ( * ) * 10
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1242
SELECT DISTINCT - 8 + - 77 + + 11 * CAST( 7 + 10 AS SIGNED ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT - 8 + - 77 + + 11 * CAST ( 7 + 10 AS INTEGER ) AS col0
----
102

query I rowsort
SELECT + 38 * + 15 AS col2
----
570

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1244
SELECT ALL + 36 + + ( - + CASE 35 WHEN 43 - 88 / 13 THEN NULL WHEN + COUNT( DISTINCT 18 ) THEN NULL WHEN CAST( NULL AS DECIMAL ) + NULLIF ( + 53, COUNT( * ) / - 25 ) THEN NULL ELSE 69 - COUNT( * ) * 7 END ) + + 62 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL + 36 + + ( - + CASE 35 WHEN 43 - 88 / 13 THEN NULL WHEN + COUNT ( DISTINCT 18 ) THEN NULL WHEN CAST ( NULL AS REAL ) + NULLIF ( + 53, COUNT ( * ) / - 25 ) THEN NULL ELSE 69 - COUNT ( * ) * 7 END ) + + 62 AS col2
----
36

query I rowsort
SELECT ( - 13 ) AS col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1246
SELECT + 81 DIV + 64 + - 37
----
-36

skipif mysql # not compatible
query I rowsort label-1246
SELECT + 81 / + 64 + - 37
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1247
SELECT + COUNT( * ) + COUNT( * ) + - ( - 64 ) - + 18 * 62 DIV 55
----
46

skipif mysql # not compatible
query I rowsort label-1247
SELECT + COUNT ( * ) + COUNT ( * ) + - ( - 64 ) - + 18 * 62 / 55
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1248
SELECT + COUNT( ALL + 68 ) * + 43 + - 93 DIV 27 - 22
----
18

skipif mysql # not compatible
query I rowsort label-1248
SELECT + COUNT ( ALL + 68 ) * + 43 + - 93 / 27 - 22
----
18

query II rowsort
SELECT ALL + 25 AS col2, + 0 * + + 54
----
25
0

query I rowsort
SELECT + 93 * + 69 + 60
----
6477

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

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

query I rowsort
SELECT DISTINCT 13 * - 39 AS col0
----
-507

onlyif mysql # DIV for integer division: 
query I rowsort label-1253
SELECT + COALESCE ( - + 23, 16 DIV + 97 ) * - 39 AS col2
----
897

skipif mysql # not compatible
query I rowsort label-1253
SELECT + COALESCE ( - + 23, 16 / + 97 ) * - 39 AS col2
----
897

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT + 30 + + + NULLIF ( + 73, + COUNT( * ) ) + - 26 col1
----
77

skipif mysql # not compatible
query I rowsort label-1255
SELECT + 30 + + + NULLIF ( + 73, + COUNT ( * ) ) + - 26 col1
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-1256
SELECT 85, 43 DIV 48 AS col1
----
85
0

skipif mysql # not compatible
query II rowsort label-1256
SELECT 85, 43 / 48 AS col1
----
85
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1257
SELECT + + CAST( NULL AS SIGNED ) * - 28 * + 87 + 11 * 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT + + CAST ( NULL AS INTEGER ) * - 28 * + 87 + 11 * 83 AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT DISTINCT + COALESCE ( - + 44, - 30 + 78 DIV + 70 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT + COALESCE ( - + 44, - 30 + 78 / + 70 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-1260
SELECT ALL + - 72, + COUNT( * ) * + 90 + - 41 AS col0
----
-72
49

skipif mysql # not compatible
query II rowsort label-1260
SELECT ALL + - 72, + COUNT ( * ) * + 90 + - 41 AS col0
----
-72
49

query II rowsort
SELECT ALL + - 46 AS col1, 95 AS col1
----
-46
95

query I rowsort
SELECT + 15 - - 78 AS col0
----
93

query II rowsort
SELECT DISTINCT + 14 AS col0, 63 * 13 AS col0
----
14
819

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT - - 54 * - - 62 + - NULLIF ( - 91, - 65 - - 64 * ( 28 * MAX( DISTINCT + 27 ) ) ) AS col0
----
3439

skipif mysql # not compatible
query I rowsort label-1264
SELECT - - 54 * - - 62 + - NULLIF ( - 91, - 65 - - 64 * ( 28 * MAX ( DISTINCT + 27 ) ) ) AS col0
----
3439

query I rowsort
SELECT ALL - 46 * 32 * - 63 + + 42 col1
----
92778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1266
SELECT - ( COUNT( * ) ) * CAST( 9 AS SIGNED ) + + ( NULLIF ( COUNT( - 28 ), - 99 ) + + 23 )
----
15

skipif mysql # not compatible
query I rowsort label-1266
SELECT - ( COUNT ( * ) ) * CAST ( 9 AS INTEGER ) + + ( NULLIF ( COUNT ( - 28 ), - 99 ) + + 23 )
----
15

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1268
SELECT + - CAST( NULL AS SIGNED ) + - 49 + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1268
SELECT + - CAST ( NULL AS INTEGER ) + - 49 + + 34
----
NULL

query I rowsort
SELECT 4 * ( - + 89 ) - ( COALESCE ( - 89, 76, 42 ) ) * + 64
----
5340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1270
SELECT ALL - 99 * - 4 + - CAST( NULL AS SIGNED ) * 73 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL - 99 * - 4 + - CAST ( NULL AS INTEGER ) * 73 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1271
SELECT + 4 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-1271
SELECT + 4 / + 60
----
0

query I rowsort
SELECT + + 35 + 79 AS col1
----
114

query I rowsort
SELECT - 88 * + 19 + 81 col2
----
-1591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1274
SELECT DISTINCT - 7 + + NULLIF ( + - CASE - 59 WHEN + 50 THEN + 46 - + 58 / - 51 END, 90 * + ( 15 ) ) / CASE NULLIF ( CASE 22 WHEN MIN( ALL + 7 ) THEN 19 * ( 42 ) - - 34 WHEN - 73 + 2 * COUNT( DISTINCT - 39 ) THEN NULL END, - ( 24 ) ) * 60 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 99 + + 35 * CAST( NULL AS SIGNED ) THEN 23 * - 17 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT - 7 + + NULLIF ( + - CASE - 59 WHEN + 50 THEN + 46 - + 58 / - 51 END, 90 * + ( 15 ) ) / CASE NULLIF ( CASE 22 WHEN MIN ( ALL + 7 ) THEN 19 * ( 42 ) - - 34 WHEN - 73 + 2 * COUNT ( DISTINCT - 39 ) THEN NULL END, - ( 24 ) ) * 60 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 99 + + 35 * CAST ( NULL AS INTEGER ) THEN 23 * - 17 END AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1276
SELECT - 45 + + + 74 - + COUNT ( * ) AS col0
----
28

query I rowsort
SELECT DISTINCT - 47 + 59 + + 74 * + 47 AS col1
----
3490

query I rowsort
SELECT ALL + 31 * + + 12
----
372

onlyif mysql # aggregate syntax: 
query II rowsort label-1279
SELECT ALL - 4 + - + COUNT( * ) AS col1, - 19
----
-5
-19

skipif mysql # not compatible
query II rowsort label-1279
SELECT ALL - 4 + - + COUNT ( * ) AS col1, - 19
----
-5
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT - 44 + 93 * + 27 + - MAX( - 21 ) AS col0
----
2488

skipif mysql # not compatible
query I rowsort label-1280
SELECT - 44 + 93 * + 27 + - MAX ( - 21 ) AS col0
----
2488

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT DISTINCT - 86 + + 0 + - - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-1281
SELECT DISTINCT - 86 + + 0 + - - COUNT ( * )
----
-85

query I rowsort
SELECT DISTINCT - 77 * - + ( - 33 ) * - 9 AS col2
----
22869

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1283
SELECT DISTINCT CAST( + 73 AS SIGNED ), - 96 col1
----
73
-96

skipif mysql # not compatible
query II rowsort label-1283
SELECT DISTINCT CAST ( + 73 AS INTEGER ), - 96 col1
----
73
-96

query II rowsort
SELECT ALL - 59 * 77, - 94 AS col2
----
-4543
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1285
SELECT - 14 - + - NULLIF ( - + CASE ( 10 ) WHEN ( 60 ) THEN - 46 * 93 WHEN 18 THEN AVG ( ALL - CAST( NULL AS SIGNED ) ) * + 29 - 28 ELSE NULL END, - 27 / COALESCE ( + 2, - AVG ( ( + 38 ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT - 14 - + - NULLIF ( - + CASE ( 10 ) WHEN ( 60 ) THEN - 46 * 93 WHEN 18 THEN AVG ( ALL - CAST ( NULL AS INTEGER ) ) * + 29 - 28 ELSE NULL END, - 27 / COALESCE ( + 2, - AVG ( ( + 38 ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1286
SELECT DISTINCT - 87 * - 94 AS col0, + MAX( DISTINCT - 67 ) DIV COUNT( * )
----
8178
-67

skipif mysql # not compatible
query II rowsort label-1286
SELECT DISTINCT - 87 * - 94 AS col0, + MAX ( DISTINCT - 67 ) / COUNT ( * )
----
8178
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT - COUNT( * ) * - 76 * + - 25 AS col2
----
-1900

skipif mysql # not compatible
query I rowsort label-1288
SELECT - COUNT ( * ) * - 76 * + - 25 AS col2
----
-1900

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

skipif mysql # not compatible
query I rowsort label-1289
SELECT ( - + 89 ) / + 9 + ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 60 * - 64 AS col2
----
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT COUNT( ALL + 4 ) * + MIN( ALL + 49 ) + + 9
----
58

skipif mysql # not compatible
query I rowsort label-1291
SELECT COUNT ( ALL + 4 ) * + MIN ( ALL + 49 ) + + 9
----
58

query I rowsort
SELECT + 60 - + + 32 AS col0
----
28

query I rowsort
SELECT + 19 * + + 5 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT + AVG ( DISTINCT + 2 ) * + + 63 + - COUNT( * ) + + CASE - 57 WHEN - 19 + + COUNT( DISTINCT + 81 + - 38 ) THEN NULL WHEN 16 / - 51 - 14 THEN 8 WHEN 28 + CASE + 26 WHEN MAX( DISTINCT ( 32 ) ) THEN 22 * + NULLIF ( 70, + 88 ) WHEN - 28 / 15 THEN NULL END * + 53 THEN NULL END * 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1294
SELECT + AVG ( DISTINCT + 2 ) * + + 63 + - COUNT ( * ) + + CASE - 57 WHEN - 19 + + COUNT ( DISTINCT + 81 + - 38 ) THEN NULL WHEN 16 / - 51 - 14 THEN 8 WHEN 28 + CASE + 26 WHEN MAX ( DISTINCT ( 32 ) ) THEN 22 * + NULLIF ( 70, + 88 ) WHEN - 28 / 15 THEN NULL END * + 53 THEN NULL END * 69 AS col0
----
NULL

query I rowsort
SELECT + ( - ( + NULLIF ( + 34, - 60 ) ) )
----
-34

query I rowsort
SELECT - 7 + - + 20 AS col2
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT + 89 * + CASE COUNT( * ) WHEN 8 THEN 21 WHEN + 35 THEN NULL END * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT + 89 * + CASE COUNT ( * ) WHEN 8 THEN 21 WHEN + 35 THEN NULL END * 88
----
NULL

query I rowsort
SELECT ALL 16 * + + 28 * - NULLIF ( + ( 78 ), + 5 )
----
-34944

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT + MIN( - - 52 ) + + + MIN( ( 28 ) ) + + ( + COUNT( * ) ) col0
----
81

skipif mysql # not compatible
query I rowsort label-1300
SELECT + MIN ( - - 52 ) + + + MIN ( ( 28 ) ) + + ( + COUNT ( * ) ) col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT 74 * + + 14 + - 56 + 74 DIV - 97 AS col2
----
980

skipif mysql # not compatible
query I rowsort label-1301
SELECT 74 * + + 14 + - 56 + 74 / - 97 AS col2
----
980

query I rowsort
SELECT ALL - 63 * 89 AS col2
----
-5607

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1303
SELECT DISTINCT - + 6 DIV - 43 + - COUNT( * ) DIV + 54 + 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT - + 6 / - 43 + - COUNT ( * ) / + 54 + 51 AS col2
----
51

query I rowsort
SELECT ALL + 94 * + + 81 AS col1
----
7614

query I rowsort
SELECT ALL - CASE - 93 WHEN 92 THEN - 10 * 33 WHEN - 22 * 19 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 27 + 97 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT MAX( + 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1307
SELECT MAX ( + 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1308
SELECT ALL COUNT( * ) * 88 AS col0, 46 col0
----
88
46

skipif mysql # not compatible
query II rowsort label-1308
SELECT ALL COUNT ( * ) * 88 AS col0, 46 col0
----
88
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT + MIN( ALL 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1309
SELECT + MIN ( ALL 43 ) AS col0
----
43

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

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

query I rowsort
SELECT ALL - 70 + - 15 - + ( + - 92 )
----
7

query I rowsort
SELECT + 93 * + + 16
----
1488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1313
SELECT 58 * + COUNT( * ) + + - ( NULLIF ( - 69, 98 ) ) DIV 30
----
60

skipif mysql # not compatible
query I rowsort label-1313
SELECT 58 * + COUNT ( * ) + + - ( NULLIF ( - 69, 98 ) ) / 30
----
60

query I rowsort
SELECT DISTINCT + 36 + + 67 + - + 11 AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1315
SELECT ALL 46 + + + 54 DIV + 35
----
47

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL 46 + + + 54 / + 35
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT 18 * - 15 * 70 - + 96 * + CASE COUNT( * ) WHEN 92 THEN - COALESCE ( ( ( - 80 ) ), COUNT( * ), + 21 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT 18 * - 15 * 70 - + 96 * + CASE COUNT ( * ) WHEN 92 THEN - COALESCE ( ( ( - 80 ) ), COUNT ( * ), + 21 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT DISTINCT - 76 + - - COALESCE ( - - SUM( - + ( 75 ) ), 68, - 26 ) + 27 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT - 76 + - - COALESCE ( - - SUM ( - + ( 75 ) ), 68, - 26 ) + 27 AS col1
----
-124

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

skipif mysql # not compatible
query I rowsort label-1318
SELECT - + MIN ( + 88 )
----
-88

query I rowsort
SELECT ALL 39 * - + 63 col2
----
-2457

query I rowsort
SELECT 45 - - + 20
----
65

query I rowsort
SELECT DISTINCT 74 * - CASE + - 12 WHEN - + 66 THEN ( - 58 ) * + 77 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT 90 DIV + - 85
----
-1

skipif mysql # not compatible
query I rowsort label-1322
SELECT 90 / + - 85
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT 96 + + SUM( ALL - 22 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1323
SELECT 96 + + SUM ( ALL - 22 ) AS col0
----
74

query I rowsort
SELECT ALL - 73 - + 20
----
-93

query II rowsort
SELECT 98, - 81 + 38 AS col1
----
98
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT 77 + + 63 + 10 * + NULLIF ( 50, - 98 * 29 ) * 88 + - 44 DIV + 12
----
44137

skipif mysql # not compatible
query I rowsort label-1326
SELECT 77 + + 63 + 10 * + NULLIF ( 50, - 98 * 29 ) * 88 + - 44 / + 12
----
44137

query I rowsort
SELECT 86 * + 21
----
1806

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

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL 31 - + COUNT ( * ) * COUNT ( * ) AS col2
----
30

query II rowsort
SELECT - 45 AS col2, 67 col0
----
-45
67

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

skipif mysql # not compatible
query I rowsort label-1330
SELECT 5 / + 24
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1331
SELECT ALL - 1 DIV 5
----
0

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL - 1 / 5
----
0

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

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

query I rowsort
SELECT 15 * + - 41 AS col2
----
-615

query I rowsort
SELECT ALL + 38 * 39 * + 51 AS col2
----
75582

query I rowsort
SELECT 86 * 96
----
8256

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

skipif mysql # not compatible
query I rowsort label-1336
SELECT 21 + COUNT ( * ) AS col1
----
22

query I rowsort
SELECT ALL + 29 * - + 41
----
-1189

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1339
SELECT DISTINCT - 73, - CAST( 5 AS SIGNED ) AS col1
----
-73
-5

skipif mysql # not compatible
query II rowsort label-1339
SELECT DISTINCT - 73, - CAST ( 5 AS INTEGER ) AS col1
----
-73
-5

query I rowsort
SELECT DISTINCT - 84 + 96 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT DISTINCT 32 + + 44 * - - 8 * - 47 * - COUNT( * ) AS col2
----
16576

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT 32 + + 44 * - - 8 * - 47 * - COUNT ( * ) AS col2
----
16576

onlyif mysql # aggregate syntax: 
query II rowsort label-1342
SELECT DISTINCT - 97 AS col0, - 14 + + COUNT( * ) * 45
----
-97
31

skipif mysql # not compatible
query II rowsort label-1342
SELECT DISTINCT - 97 AS col0, - 14 + + COUNT ( * ) * 45
----
-97
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT ALL - ( - - ( 33 ) ) + + COUNT( * ) * - MIN( 91 )
----
-124

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL - ( - - ( 33 ) ) + + COUNT ( * ) * - MIN ( 91 )
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT 17 + - - SUM( ALL - + NULLIF ( 45, 53 ) ) * 56 AS col1
----
-2503

skipif mysql # not compatible
query I rowsort label-1344
SELECT 17 + - - SUM ( ALL - + NULLIF ( 45, 53 ) ) * 56 AS col1
----
-2503

onlyif mysql # DIV for integer division: 
query I rowsort label-1345
SELECT 64 DIV + 8 + - 36 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-1345
SELECT 64 / + 8 + - 36 AS col1
----
-28

query I rowsort
SELECT ALL - 82 + - ( + CASE - - 95 WHEN + 39 THEN 70 END ) + + 72 * 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT ALL + COUNT( * ) + 71 + + NULLIF ( 23, + - 82 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL + COUNT ( * ) + 71 + + NULLIF ( 23, + - 82 ) AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1348
SELECT - 40 * - ( + + 24 ) * + + 88 + - + 87 + - 14 + CAST( NULL AS SIGNED ) - - 10 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1348
SELECT - 40 * - ( + + 24 ) * + + 88 + - + 87 + - 14 + CAST ( NULL AS INTEGER ) - - 10 col0
----
NULL

query I rowsort
SELECT DISTINCT - 80 + - + 12 col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1350
SELECT ALL - + CASE - 1 WHEN + ( CAST( NULL AS SIGNED ) ) THEN + + 19 WHEN + 8 THEN CAST( NULL AS SIGNED ) ELSE - 56 * - 92 + + CAST( - 34 AS SIGNED ) END
----
-5118

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL - + CASE - 1 WHEN + ( CAST ( NULL AS INTEGER ) ) THEN + + 19 WHEN + 8 THEN CAST ( NULL AS INTEGER ) ELSE - 56 * - 92 + + CAST ( - 34 AS INTEGER ) END
----
-5118

query I rowsort
SELECT ALL + + CASE + NULLIF ( 24, + 26 ) WHEN 98 THEN NULL WHEN + 50 + - NULLIF ( - 44 + + AVG ( 77 ), - 81 * 77 ) THEN 27 ELSE NULL END - 60 col0
----
NULL

query I rowsort
SELECT DISTINCT - + 94 * - + 89 * + + 45 AS col1
----
376470

onlyif mysql # DIV for integer division: 
query I rowsort label-1353
SELECT - CASE WHEN ( NULL ) BETWEEN ( + 99 ) AND - 35 + 46 THEN NULL ELSE + ( + 59 ) + 89 DIV - 89 END AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-1353
SELECT - CASE WHEN ( NULL ) BETWEEN ( + 99 ) AND - 35 + 46 THEN NULL ELSE + ( + 59 ) + 89 / - 89 END AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT - COUNT( - 26 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1354
SELECT - COUNT ( - 26 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1355
SELECT 90 - + CAST( NULL AS SIGNED ) * + - NULLIF ( + + 71, - + CAST( 46 AS SIGNED ) - - 48 ) * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1355
SELECT 90 - + CAST ( NULL AS INTEGER ) * + - NULLIF ( + + 71, - + CAST ( 46 AS INTEGER ) - - 48 ) * 52
----
NULL

query II rowsort
SELECT ALL 91 - - - 9, 98 AS col2
----
82
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT - SUM( DISTINCT 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1357
SELECT - SUM ( DISTINCT 28 ) AS col2
----
-28

query II rowsort
SELECT ALL 33 AS col2, + 92
----
33
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT DISTINCT NULLIF ( 19, - 68 ) * + 91 + + - COUNT( * ) * + + COUNT( ALL ( 61 ) )
----
1728

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT NULLIF ( 19, - 68 ) * + 91 + + - COUNT ( * ) * + + COUNT ( ALL ( 61 ) )
----
1728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1360
SELECT CAST( + MAX( DISTINCT 72 ) AS SIGNED ) + - - 63 DIV 74
----
72

skipif mysql # not compatible
query I rowsort label-1360
SELECT CAST ( + MAX ( DISTINCT 72 ) AS INTEGER ) + - - 63 / 74
----
72

query I rowsort
SELECT CASE WHEN ( NULLIF ( - + 3, + + 16 ) ) IS NULL THEN COALESCE ( + 2, - ( + 43 ) + 59 ) * 31 END + 72 * 31
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1362
SELECT - 42 AS col0, + CASE AVG ( 39 ) WHEN - 12 * - COUNT( * ) * 68 - 31 THEN + 75 * - 80 END AS col2
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-1362
SELECT - 42 AS col0, + CASE AVG ( 39 ) WHEN - 12 * - COUNT ( * ) * 68 - 31 THEN + 75 * - 80 END AS col2
----
-42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT MAX( - - 81 ) + + 42 + - + 34 + 24
----
113

skipif mysql # not compatible
query I rowsort label-1363
SELECT MAX ( - - 81 ) + + 42 + - + 34 + 24
----
113

query I rowsort
SELECT 86 + + 31
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-1365
SELECT 21 * + 61 DIV 30
----
42

skipif mysql # not compatible
query I rowsort label-1365
SELECT 21 * + 61 / 30
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT 25 + - NULLIF ( - COALESCE ( + 57, - - 81 + 83 + NULLIF ( - 53 + - 59 * - COUNT( * ), - 65 * - COUNT( * ) + - NULLIF ( + 86, 17 + + 85 * + 62 ) * - 15 ) * - 67 ), 12 ) * - 89
----
-5048

skipif mysql # not compatible
query I rowsort label-1366
SELECT 25 + - NULLIF ( - COALESCE ( + 57, - - 81 + 83 + NULLIF ( - 53 + - 59 * - COUNT ( * ), - 65 * - COUNT ( * ) + - NULLIF ( + 86, 17 + + 85 * + 62 ) * - 15 ) * - 67 ), 12 ) * - 89
----
-5048

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT NULLIF ( 26, - COUNT( * ) ) + 43 * CASE - 51 WHEN 45 THEN + 74 WHEN + 20 THEN NULL END + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1367
SELECT NULLIF ( 26, - COUNT ( * ) ) + 43 * CASE - 51 WHEN 45 THEN + 74 WHEN + 20 THEN NULL END + + 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1368
SELECT - NULLIF ( - COALESCE ( + COALESCE ( - ( + 37 ), + CAST( - 14 AS SIGNED ) * + 8 + 9 DIV CAST( + 35 AS SIGNED ) ), - COALESCE ( - 15, 8 ) ), + 82 + + 61 )
----
-37

skipif mysql # not compatible
query I rowsort label-1368
SELECT - NULLIF ( - COALESCE ( + COALESCE ( - ( + 37 ), + CAST ( - 14 AS INTEGER ) * + 8 + 9 / CAST ( + 35 AS INTEGER ) ), - COALESCE ( - 15, 8 ) ), + 82 + + 61 )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT 11 + + ( - COALESCE ( 60, - 92 * + 98 + 23 DIV 37 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-1369
SELECT 11 + + ( - COALESCE ( 60, - 92 * + 98 + 23 / 37 ) )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT ALL CAST( NULL AS SIGNED ) * - 48 / - - 60 + AVG ( - - 57 ) + + 66 - + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL CAST ( NULL AS INTEGER ) * - 48 / - - 60 + AVG ( - - 57 ) + + 66 - + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL - 51 * - 92 + + COUNT( * )
----
4693

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL - 51 * - 92 + + COUNT ( * )
----
4693

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1372
SELECT - COUNT( * ) DIV - - 96 * + 2 + + 70 col1, 10
----
70
10

skipif mysql # not compatible
query II rowsort label-1372
SELECT - COUNT ( * ) / - - 96 * + 2 + + 70 col1, 10
----
70
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1373
SELECT ALL + COUNT( * ) * - 88 DIV + ( 98 ) + + + 34 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL + COUNT ( * ) * - 88 / + ( 98 ) + + + 34 AS col0
----
34

query I rowsort
SELECT DISTINCT + 81 AS col0
----
81

query I rowsort
SELECT 72 * - + 19 + - 85 AS col2
----
-1453

query I rowsort
SELECT - - 66 - + 44 * 0 AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1377
SELECT + 63 AS col0, + 55 * CAST( NULL AS SIGNED ) / + 82
----
63
NULL

skipif mysql # not compatible
query II rowsort label-1377
SELECT + 63 AS col0, + 55 * CAST ( NULL AS INTEGER ) / + 82
----
63
NULL

query II rowsort
SELECT ALL + 43 AS col2, - 65 + + 26 + - 25 * - + 96 + + ( 38 )
----
43
2399

onlyif mysql # DIV for integer division: 
query I rowsort label-1379
SELECT - - 19 DIV - - 7 + 39
----
41

skipif mysql # not compatible
query I rowsort label-1379
SELECT - - 19 / - - 7 + 39
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT 17 * COUNT( * ) * - - COUNT( * ) + - - COUNT( * ) + + 68 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-1380
SELECT 17 * COUNT ( * ) * - - COUNT ( * ) + - - COUNT ( * ) + + 68 AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1381
SELECT ALL - 97 * + COUNT( * ) + + 84 + + NULLIF ( - 29, COUNT( DISTINCT 62 ) ) DIV 13
----
-15

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL - 97 * + COUNT ( * ) + + 84 + + NULLIF ( - 29, COUNT ( DISTINCT 62 ) ) / 13
----
-15

query II rowsort
SELECT 91 AS col0, 55 + 48
----
91
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT ALL + ( + - MAX( DISTINCT 30 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL + ( + - MAX ( DISTINCT 30 ) ) AS col1
----
-30

query I rowsort
SELECT - - 31 + 22 AS col0
----
53

query II rowsort
SELECT DISTINCT + 20 * - + 92 AS col1, + 17 col2
----
-1840
17

query I rowsort
SELECT ALL + NULLIF ( 84, + + 26 ) AS col2
----
84

query I rowsort
SELECT ALL + 4 * + 30 + 26 - - 20
----
166

query I rowsort
SELECT - 20 * - 37
----
740

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT DISTINCT + + CASE WHEN NOT COALESCE ( 67, - 2 + - 62 * + 90 ) NOT BETWEEN ( - 39 ) AND 38 * 50 + - 12 * + 8 THEN NULL WHEN NULL IN ( ( + 32 ) * + 4 ) THEN - MAX( ALL 74 ) - + COALESCE ( COALESCE ( - 3, 29 + - 35 ), 38 * - 21 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT + + CASE WHEN NOT COALESCE ( 67, - 2 + - 62 * + 90 ) NOT BETWEEN ( - 39 ) AND 38 * 50 + - 12 * + 8 THEN NULL WHEN NULL IN ( ( + 32 ) * + 4 ) THEN - MAX ( ALL 74 ) - + COALESCE ( COALESCE ( - 3, 29 + - 35 ), 38 * - 21 ) END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1391
SELECT + 43 AS col1, COUNT( DISTINCT 10 ) DIV - 95 AS col1, - 80
----
43
0
-80

skipif mysql # not compatible
query III rowsort label-1391
SELECT + 43 AS col1, COUNT ( DISTINCT 10 ) / - 95 AS col1, - 80
----
43
0
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT - + 4 * - 88 * - - 40 * - 65 * + + COALESCE ( + COUNT( * ), 47 ) AS col2
----
-915200

skipif mysql # not compatible
query I rowsort label-1392
SELECT - + 4 * - 88 * - - 40 * - 65 * + + COALESCE ( + COUNT ( * ), 47 ) AS col2
----
-915200

query II rowsort
SELECT + 93, - 56 * + 0 col2
----
93
0

query I rowsort
SELECT ALL + 35 - 75
----
-40

query I rowsort
SELECT DISTINCT - 77 * - + 3 AS col1
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT - 74 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-1396
SELECT - 74 / + 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT ALL 85 * + 34 * COUNT( * ) AS col0
----
2890

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL 85 * + 34 * COUNT ( * ) AS col0
----
2890

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

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT - 28 / MIN ( 47 )
----
0

query I rowsort
SELECT + ( - ( + - 26 ) ) + + + 89 + 35 * + 83
----
3020

query I rowsort
SELECT + 26 * - 37 * - 48 AS col1
----
46176

query I rowsort
SELECT DISTINCT + 55 * - - 20 * + 85 AS col2
----
93500

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1403
SELECT - ( - COALESCE ( COALESCE ( - - 34, + COUNT( * ) + + + 91 * + 91 * COUNT( * ), 58 * 6 ), - 90 ) ) - + COUNT( * ) DIV - 26 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1403
SELECT - ( - COALESCE ( COALESCE ( - - 34, + COUNT ( * ) + + + 91 * + 91 * COUNT ( * ), 58 * 6 ), - 90 ) ) - + COUNT ( * ) / - 26 AS col0
----
34

query I rowsort
SELECT DISTINCT 84 + - + 67 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT + 13 + 72 + + - 39 + SUM( + 12 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1405
SELECT + 13 + 72 + + - 39 + SUM ( + 12 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT - COUNT( DISTINCT + - 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-1406
SELECT - COUNT ( DISTINCT + - 81 )
----
-1

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

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

query II rowsort
SELECT DISTINCT + 84 + - 38, - 34 AS col1
----
46
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT ALL MAX( - 34 ) + - 74 AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL MAX ( - 34 ) + - 74 AS col0
----
-108

query I rowsort
SELECT + 36 - - - 34
----
2

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

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

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

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

query I rowsort
SELECT DISTINCT 77 * + COALESCE ( 3, 74 )
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL NULLIF ( - + 69, + 49 + - 53 * COALESCE ( - COUNT( * ), + COUNT( * ) * 10, + NULLIF ( - COUNT( * ), 81 - + COUNT( * ) * 13 ) - ( 46 ) ) ) + + 46
----
-23

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL NULLIF ( - + 69, + 49 + - 53 * COALESCE ( - COUNT ( * ), + COUNT ( * ) * 10, + NULLIF ( - COUNT ( * ), 81 - + COUNT ( * ) * 13 ) - ( 46 ) ) ) + + 46
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1415
SELECT ALL - - 78 DIV + 49 + + 40
----
41

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL - - 78 / + 49 + + 40
----
41

query I rowsort
SELECT ALL + 71 * + 97 + - 84 AS col2
----
6803

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1417
SELECT DISTINCT - 57 DIV - 59 + 37 * - + 40 - - - MAX( DISTINCT + ( - 36 ) )
----
-1444

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT - 57 / - 59 + 37 * - + 40 - - - MAX ( DISTINCT + ( - 36 ) )
----
-1444

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT DISTINCT - 93 DIV - 96 - - 4
----
4

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT - 93 / - 96 - - 4
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT ALL - ( - 34 ) DIV - 75 * + - 29 * - + 21 - - + NULLIF ( - + 27, 8 + - 62 ) * - 99 AS col1
----
2673

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL - ( - 34 ) / - 75 * + - 29 * - + 21 - - + NULLIF ( - + 27, 8 + - 62 ) * - 99 AS col1
----
2673

query I rowsort
SELECT - - 94 * + + 78 AS col1
----
7332

query I rowsort
SELECT + - 25 + + 10 + + ( + 23 ) + 80 * + - 52 * + 24 AS col0
----
-99832

query I rowsort
SELECT - + 19 * + 87 AS col0
----
-1653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1423
SELECT - COALESCE ( - 21, 27, - 72 ) * 48 - - COALESCE ( - 30, CAST( + 67 AS SIGNED ) ) + - 65 col1
----
913

skipif mysql # not compatible
query I rowsort label-1423
SELECT - COALESCE ( - 21, 27, - 72 ) * 48 - - COALESCE ( - 30, CAST ( + 67 AS INTEGER ) ) + - 65 col1
----
913

query I rowsort
SELECT ALL + 39 * - - COALESCE ( + 76, + 84 )
----
2964

onlyif mysql # DIV for integer division: 
query I rowsort label-1425
SELECT + 71 DIV 25 + + 55 + + 84 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-1425
SELECT + 71 / 25 + + 55 + + 84 AS col2
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1426
SELECT + CAST( 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-1426
SELECT + CAST ( 26 AS INTEGER )
----
26

query I rowsort
SELECT + 85 * + + COALESCE ( - 74, + + 67 * + 85 * + - 41, 2 )
----
-6290

query I rowsort
SELECT DISTINCT - 47 * - + 24 - + 46 AS col0
----
1082

query I rowsort
SELECT - 50 + - 88
----
-138

onlyif mysql # aggregate syntax: 
query II rowsort label-1430
SELECT ALL 56 * - 88 * + 61 * COUNT( * ), 9 AS col1
----
-300608
9

skipif mysql # not compatible
query II rowsort label-1430
SELECT ALL 56 * - 88 * + 61 * COUNT ( * ), 9 AS col1
----
-300608
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1431
SELECT - 68 * + + ( - COALESCE ( + 87, - CASE + 78 WHEN + CAST( NULL AS DECIMAL ) * + + 27 + - 44 THEN NULL WHEN + COUNT( * ) THEN - 99 END, - COUNT( * ) - 47, - 39 ) ) AS col1
----
5916

skipif mysql # not compatible
query I rowsort label-1431
SELECT - 68 * + + ( - COALESCE ( + 87, - CASE + 78 WHEN + CAST ( NULL AS REAL ) * + + 27 + - 44 THEN NULL WHEN + COUNT ( * ) THEN - 99 END, - COUNT ( * ) - 47, - 39 ) ) AS col1
----
5916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT - ( + 67 ) + - 79 * - + CAST( 31 AS SIGNED ) AS col1
----
2382

skipif mysql # not compatible
query I rowsort label-1432
SELECT - ( + 67 ) + - 79 * - + CAST ( 31 AS INTEGER ) AS col1
----
2382

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1433
SELECT COALESCE ( - + 40, 17 * - CAST( NULL AS SIGNED ), 3 DIV - + 80 DIV + 35 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1433
SELECT COALESCE ( - + 40, 17 * - CAST ( NULL AS INTEGER ), 3 / - + 80 / + 35 ) AS col0
----
-40

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

query I rowsort
SELECT ALL 54 * + 93 + + ( + ( 47 ) ) AS col2
----
5069

query I rowsort
SELECT - 32 * - - 26 AS col2
----
-832

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1437
SELECT - ( + NULLIF ( - 37, + 44 + - CAST( NULL AS DECIMAL ) * - 66 / - + 49 - + + 90 ) ) + 62
----
99

skipif mysql # not compatible
query I rowsort label-1437
SELECT - ( + NULLIF ( - 37, + 44 + - CAST ( NULL AS REAL ) * - 66 / - + 49 - + + 90 ) ) + 62
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1438
SELECT - CAST( + 64 AS SIGNED ) * MIN( + 23 ) - - 29 + 69 DIV + 9 col2
----
-1436

skipif mysql # not compatible
query I rowsort label-1438
SELECT - CAST ( + 64 AS INTEGER ) * MIN ( + 23 ) - - 29 + 69 / + 9 col2
----
-1436

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - CASE + 74 WHEN 66 / - COALESCE ( + + 76, - COUNT( * ) ) + + 50 THEN 85 + + 52 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT - CASE + 74 WHEN 66 / - COALESCE ( + + 76, - COUNT ( * ) ) + + 50 THEN 85 + + 52 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1441
SELECT - 99, COUNT( * ) + 87 AS col1
----
-99
88

skipif mysql # not compatible
query II rowsort label-1441
SELECT - 99, COUNT ( * ) + 87 AS col1
----
-99
88

query I rowsort
SELECT 15 + 23 AS col2
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-1443
SELECT DISTINCT 3 AS col0, + 94 DIV - 92 AS col2
----
3
-1

skipif mysql # not compatible
query II rowsort label-1443
SELECT DISTINCT 3 AS col0, + 94 / - 92 AS col2
----
3
-1

query I rowsort
SELECT DISTINCT CASE 40 WHEN 4 THEN + 63 END + + 77
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1445
SELECT ALL - 7 * - - CAST( + 6 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL - 7 * - - CAST ( + 6 AS INTEGER )
----
-42

query I rowsort
SELECT 1 + - 3 col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1447
SELECT 5 * CASE - - 3 WHEN ( - - 3 ) THEN + 11 DIV COUNT( * ) WHEN + 39 * ( 36 ) THEN NULL ELSE NULL END * - NULLIF ( + 87, 29 ) AS col0
----
-4785

skipif mysql # not compatible
query I rowsort label-1447
SELECT 5 * CASE - - 3 WHEN ( - - 3 ) THEN + 11 / COUNT ( * ) WHEN + 39 * ( 36 ) THEN NULL ELSE NULL END * - NULLIF ( + 87, 29 ) AS col0
----
-4785

query I rowsort
SELECT 11 + 68 AS col0
----
79

query I rowsort
SELECT DISTINCT 56 + - + 76 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT DISTINCT COALESCE ( 53, - 34 + - COUNT( * ), + 53 * 68 )
----
53

skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT COALESCE ( 53, - 34 + - COUNT ( * ), + 53 * 68 )
----
53

query I rowsort
SELECT DISTINCT + 84 - - + 66 col1
----
150

query I rowsort
SELECT 39 + 44
----
83

query I rowsort
SELECT ALL + 29 - - + 48
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1454
SELECT + ( - - 82 ) + - + 90 + - 61 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT + ( - - 82 ) + - + 90 + - 61 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT - 2 + + COUNT( * ) + 48 * 14 AS col1
----
671

skipif mysql # not compatible
query I rowsort label-1455
SELECT - 2 + + COUNT ( * ) + 48 * 14 AS col1
----
671

query II rowsort
SELECT + 54, 29 AS col0
----
54
29

onlyif mysql # aggregate syntax: 
query II rowsort label-1457
SELECT + - COUNT( * ) * + + COUNT( * ) + + 84, 51 AS col1
----
83
51

skipif mysql # not compatible
query II rowsort label-1457
SELECT + - COUNT ( * ) * + + COUNT ( * ) + + 84, 51 AS col1
----
83
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1458
SELECT ALL + 10 * - CAST( NULL AS SIGNED ) + 83 - 54 * - 7 + + COALESCE ( - CAST( 78 AS SIGNED ), - 42 * ( + 7 * - MIN( DISTINCT + 25 ) ) ) + ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL + 10 * - CAST ( NULL AS INTEGER ) + 83 - 54 * - 7 + + COALESCE ( - CAST ( 78 AS INTEGER ), - 42 * ( + 7 * - MIN ( DISTINCT + 25 ) ) ) + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT - 60 * + 76 + + 46 + + MIN( DISTINCT 55 )
----
-4459

skipif mysql # not compatible
query I rowsort label-1459
SELECT - 60 * + 76 + + 46 + + MIN ( DISTINCT 55 )
----
-4459

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1460
SELECT + AVG ( DISTINCT 7 ) / - 5 * 16 + + - CASE - 39 WHEN - + 73 + 49 + CAST( MIN( + 45 ) AS DECIMAL ) * 31 THEN NULL WHEN 2 + 1 * - 36 THEN 81 * 29 ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1460
SELECT + AVG ( DISTINCT 7 ) / - 5 * 16 + + - CASE - 39 WHEN - + 73 + 49 + CAST ( MIN ( + 45 ) AS REAL ) * 31 THEN NULL WHEN 2 + 1 * - 36 THEN 81 * 29 ELSE NULL END + - COUNT ( * )
----
NULL

query I rowsort
SELECT + - 10 AS col2
----
-10

query I rowsort
SELECT + + 87 * + 96 + 61 + - NULLIF ( + 67, - 12 ) AS col1
----
8346

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT ALL + + 50 DIV - ( ( 38 ) ) + 99 col0
----
98

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL + + 50 / - ( ( 38 ) ) + 99 col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1464
SELECT ( 51 ) DIV 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1464
SELECT ( 51 ) / 41 AS col2
----
1

query I rowsort
SELECT DISTINCT 74 + + 93 AS col2
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-1466
SELECT ALL 9 + + + 31 DIV + 93 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL 9 + + + 31 / + 93 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT CASE + - COUNT( * ) WHEN + COUNT( * ) * - 73 + - MIN( + - 19 ) THEN + AVG ( - 71 ) * - ( 76 ) END * 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT CASE + - COUNT ( * ) WHEN + COUNT ( * ) * - 73 + - MIN ( + - 19 ) THEN + AVG ( - 71 ) * - ( 76 ) END * 7 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1468
SELECT ( + - ( + CAST( 94 AS SIGNED ) ) ) + + 74
----
-20

skipif mysql # not compatible
query I rowsort label-1468
SELECT ( + - ( + CAST ( 94 AS INTEGER ) ) ) + + 74
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT DISTINCT + COUNT( ALL - 64 ) * + 1 * - + 59 * 23 AS col1
----
-1357

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT + COUNT ( ALL - 64 ) * + 1 * - + 59 * 23 AS col1
----
-1357

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT - ( + + 82 ) * + - 11 + COUNT( * ) - 94 AS col0
----
809

skipif mysql # not compatible
query I rowsort label-1470
SELECT - ( + + 82 ) * + - 11 + COUNT ( * ) - 94 AS col0
----
809

query I rowsort
SELECT ALL + ( 75 ) + 17
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1472
SELECT DISTINCT - CAST( + 51 AS SIGNED ) + - NULLIF ( - 71, - ( - ( 47 ) ) )
----
20

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT - CAST ( + 51 AS INTEGER ) + - NULLIF ( - 71, - ( - ( 47 ) ) )
----
20

query I rowsort
SELECT DISTINCT 1 * - 70 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT ALL CASE 2 WHEN + - MIN( ( - 76 ) ) THEN + 42 * + + COUNT( DISTINCT - + 99 ) END + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL CASE 2 WHEN + - MIN ( ( - 76 ) ) THEN + 42 * + + COUNT ( DISTINCT - + 99 ) END + - 0
----
NULL

query I rowsort
SELECT NULLIF ( + - 12, - 67 - - 76 ) * + ( - - 19 ) AS col1
----
-228

query I rowsort
SELECT 5 - - 33 + - 26 AS col1
----
12

query I rowsort
SELECT 46 + - 9
----
37

query I rowsort
SELECT 50 * + + 68 * + - 86 AS col1
----
-292400

query I rowsort
SELECT 56 + + 94 AS col2
----
150

query I rowsort
SELECT ALL 59 - 43 - - 30 + 84 AS col0
----
130

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1482
SELECT DISTINCT - + 73 - 37 AS col2, - COUNT( * ) + + + 7 - + 47 AS col0
----
-110
-41

skipif mysql # not compatible
query II rowsort label-1482
SELECT DISTINCT - + 73 - 37 AS col2, - COUNT ( * ) + + + 7 - + 47 AS col0
----
-110
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT MIN( ALL 42 ) - - 6
----
48

skipif mysql # not compatible
query I rowsort label-1483
SELECT MIN ( ALL 42 ) - - 6
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT ALL SUM( DISTINCT 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL SUM ( DISTINCT 62 ) AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT + 8 DIV - - 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1485
SELECT + 8 / - - 53 AS col0
----
0

query I rowsort
SELECT ( - 49 ) + - 73
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1487
SELECT ALL - - CASE - 60 WHEN - 80 + 50 + + 42 + CAST( NULL AS SIGNED ) + 2 + - + 86 * + - 18 * + AVG ( DISTINCT 71 ) THEN NULL WHEN 44 THEN NULL WHEN 1 * 43 THEN 92 ELSE - CAST( + 5 AS SIGNED ) - - 54 END
----
49

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL - - CASE - 60 WHEN - 80 + 50 + + 42 + CAST ( NULL AS INTEGER ) + 2 + - + 86 * + - 18 * + AVG ( DISTINCT 71 ) THEN NULL WHEN 44 THEN NULL WHEN 1 * 43 THEN 92 ELSE - CAST ( + 5 AS INTEGER ) - - 54 END
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT - 44 * COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1488
SELECT - 44 * COUNT ( * ) AS col0
----
-44

query I rowsort
SELECT DISTINCT - + 56 * - 24
----
1344

query I rowsort
SELECT - 58 * - 41 AS col0
----
2378

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1491
SELECT ALL - CASE COUNT( DISTINCT - - 75 ) WHEN 84 THEN - 39 WHEN - CASE MIN( ALL - - 91 ) WHEN + 50 - + 42 THEN CASE 61 WHEN 54 + 99 THEN - 36 WHEN 71 THEN NULL END WHEN COUNT( * ) THEN + 79 ELSE 12 + 97 * - CAST( NULL AS DECIMAL ) END / + 89 THEN NULL ELSE - NULLIF ( CASE WHEN NOT ( COUNT( * ) ) >= 20 THEN - ( 63 ) ELSE NULL END, - 32 ) * 58 END AS col2
----
-3654

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL - CASE COUNT ( DISTINCT - - 75 ) WHEN 84 THEN - 39 WHEN - CASE MIN ( ALL - - 91 ) WHEN + 50 - + 42 THEN CASE 61 WHEN 54 + 99 THEN - 36 WHEN 71 THEN NULL END WHEN COUNT ( * ) THEN + 79 ELSE 12 + 97 * - CAST ( NULL AS REAL ) END / + 89 THEN NULL ELSE - NULLIF ( CASE WHEN NOT ( COUNT ( * ) ) >= 20 THEN - ( 63 ) ELSE NULL END, - 32 ) * 58 END AS col2
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT ALL - 98 * 13 * CASE 45 WHEN COUNT( * ) + - 75 + + - 37 + - ( - 21 ) * + 29 THEN + 42 * - ( - COUNT( * ) ) END - - ( 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL - 98 * 13 * CASE 45 WHEN COUNT ( * ) + - 75 + + - 37 + - ( - 21 ) * + 29 THEN + 42 * - ( - COUNT ( * ) ) END - - ( 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT + 94 * - MAX( + 52 )
----
-4888

skipif mysql # not compatible
query I rowsort label-1493
SELECT + 94 * - MAX ( + 52 )
----
-4888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1494
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), 67, - 28 * - + COUNT( - 88 ) * - ( - NULLIF ( 0, 65 + 47 ) ) + COUNT( * ) ) * 55 + - COUNT( * ) * + 71
----
3614

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), 67, - 28 * - + COUNT ( - 88 ) * - ( - NULLIF ( 0, 65 + 47 ) ) + COUNT ( * ) ) * 55 + - COUNT ( * ) * + 71
----
3614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1495
SELECT + CAST( - 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-1495
SELECT + CAST ( - 23 AS INTEGER )
----
-23

query I rowsort
SELECT 70 + 63
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT COUNT( ALL - + 43 ) + 71 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-1497
SELECT COUNT ( ALL - + 43 ) + 71 AS col0
----
72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1499
SELECT ( + 45 ) * 65 DIV - + 30 + + 32 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1499
SELECT ( + 45 ) * 65 / - + 30 + + 32 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT MAX( 55 )
----
55

skipif mysql # not compatible
query I rowsort label-1500
SELECT MAX ( 55 )
----
55

query I rowsort
SELECT DISTINCT + 97 + - - 52 - + - 76 AS col2
----
225

query I rowsort
SELECT ALL ( 90 ) + + - 37
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-1503
SELECT - 76 * 63 - - 26 - + COUNT( ALL - 10 ) AS col1, - MAX( - 98 ) AS col2
----
-4763
98

skipif mysql # not compatible
query II rowsort label-1503
SELECT - 76 * 63 - - 26 - + COUNT ( ALL - 10 ) AS col1, - MAX ( - 98 ) AS col2
----
-4763
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL SUM( ALL - 84 ) * - 60 AS col0
----
5040

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL SUM ( ALL - 84 ) * - 60 AS col0
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT MIN( - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-1505
SELECT MIN ( - 77 )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1506
SELECT + 13 + - 63 DIV + 70 * + 79 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-1506
SELECT + 13 + - 63 / + 70 * + 79 AS col2
----
13

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

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

query I rowsort
SELECT + 1 + - 18 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT DISTINCT 6 * - 73 * + - 0 * + CASE + COUNT( * ) WHEN - - 48 THEN - 56 * + + COALESCE ( - + 70, - + 22 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT 6 * - 73 * + - 0 * + CASE + COUNT ( * ) WHEN - - 48 THEN - 56 * + + COALESCE ( - + 70, - + 22 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1510
SELECT DISTINCT 18 DIV - CAST( - 46 AS SIGNED ) * - - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT 18 / - CAST ( - 46 AS INTEGER ) * - - 29 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1511
SELECT + 47 + - 25 - - 97 + + CAST( NULL AS SIGNED ) * 17 * + 29 * + - 45 + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1511
SELECT + 47 + - 25 - - 97 + + CAST ( NULL AS INTEGER ) * 17 * + 29 * + - 45 + 9 AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT + 25 * 3 - - 19 AS col2
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT + COUNT( DISTINCT ( 86 ) ) + + + MIN( DISTINCT - 13 )
----
-12

skipif mysql # not compatible
query I rowsort label-1515
SELECT + COUNT ( DISTINCT ( 86 ) ) + + + MIN ( DISTINCT - 13 )
----
-12

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

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

query I rowsort
SELECT - 89 + - 76
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-1518
SELECT DISTINCT 22 AS col1, 66 * + 28 * - COUNT( * ) AS col0
----
22
-1848

skipif mysql # not compatible
query II rowsort label-1518
SELECT DISTINCT 22 AS col1, 66 * + 28 * - COUNT ( * ) AS col0
----
22
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT - + 46 + COUNT( ALL + + 58 ) - + - COUNT( * ) - + + 90 + + - 73 * 46 * - 75 AS col1
----
251716

skipif mysql # not compatible
query I rowsort label-1519
SELECT - + 46 + COUNT ( ALL + + 58 ) - + - COUNT ( * ) - + + 90 + + - 73 * 46 * - 75 AS col1
----
251716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1520
SELECT - + 88 DIV SUM( 6 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-1520
SELECT - + 88 / SUM ( 6 ) AS col1
----
-14

query I rowsort
SELECT DISTINCT + 49 + 24 AS col0
----
73

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

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

query I rowsort
SELECT - 78 + + 49 AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1524
SELECT ALL 91 DIV 23 * + CAST( + 25 AS SIGNED ) + + + 4 + + + 33 DIV - 96 + - ( 79 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL 91 / 23 * + CAST ( + 25 AS INTEGER ) + + + 4 + + + 33 / - 96 + - ( 79 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT - 17 * 79 + - 65 - + - MAX( 50 ) * 14
----
-708

skipif mysql # not compatible
query I rowsort label-1525
SELECT - 17 * 79 + - 65 - + - MAX ( 50 ) * 14
----
-708

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1526
SELECT - + 30 + + 71 DIV - 84 + + 54 DIV COUNT( * ) * - MIN( - 92 )
----
4938

skipif mysql # not compatible
query I rowsort label-1526
SELECT - + 30 + + 71 / - 84 + + 54 / COUNT ( * ) * - MIN ( - 92 )
----
4938

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT ALL + + 78 * 85 + - - COUNT( * ) * 38 AS col2
----
6668

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL + + 78 * 85 + - - COUNT ( * ) * 38 AS col2
----
6668

query I rowsort
SELECT ALL + - 75 AS col2
----
-75

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

skipif mysql # not compatible
query I rowsort label-1529
SELECT - 91 / - COUNT ( * ) AS col0
----
91

query I rowsort
SELECT 83 * - 44 * 14 + - 14 AS col0
----
-51142

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

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

query I rowsort
SELECT ( 55 ) AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1533
SELECT + NULLIF ( - MAX( + 47 ), CAST( - + 61 AS SIGNED ) + - + 86 )
----
-47

skipif mysql # not compatible
query I rowsort label-1533
SELECT + NULLIF ( - MAX ( + 47 ), CAST ( - + 61 AS INTEGER ) + - + 86 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1534
SELECT - 1 * 69 * 27 DIV 9 AS col2, CASE + + COALESCE ( + + 81, - - ( - - AVG ( + CAST( NULL AS SIGNED ) ) ) * + - 39 ) WHEN - AVG ( ALL + 81 ) - COUNT( * ) * + 76 THEN NULL WHEN 27 THEN NULL WHEN + 73 THEN - AVG ( - 25 ) + - 1 WHEN NULLIF ( 51, + COUNT( * ) + + ( COUNT( DISTINCT + 34 ) ) ) * - 7 THEN NULL END
----
-207
NULL

skipif mysql # not compatible
query II rowsort label-1534
SELECT - 1 * 69 * 27 / 9 AS col2, CASE + + COALESCE ( + + 81, - - ( - - AVG ( + CAST ( NULL AS INTEGER ) ) ) * + - 39 ) WHEN - AVG ( ALL + 81 ) - COUNT ( * ) * + 76 THEN NULL WHEN 27 THEN NULL WHEN + 73 THEN - AVG ( - 25 ) + - 1 WHEN NULLIF ( 51, + COUNT ( * ) + + ( COUNT ( DISTINCT + 34 ) ) ) * - 7 THEN NULL END
----
-207
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1537
SELECT COUNT ( * ) * + - ( + + COUNT ( * ) ) + - 85 AS col1
----
-86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1539
SELECT ALL - NULLIF ( + 28, - + 46 ) * + COALESCE ( 26, - - CAST( + 67 AS SIGNED ), + COUNT( ALL 23 ) ) + 92 AS col2
----
-636

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL - NULLIF ( + 28, - + 46 ) * + COALESCE ( 26, - - CAST ( + 67 AS INTEGER ), + COUNT ( ALL 23 ) ) + 92 AS col2
----
-636

onlyif mysql # aggregate syntax: 
query II rowsort label-1540
SELECT MIN( 67 ) AS col0, 1
----
67
1

skipif mysql # not compatible
query II rowsort label-1540
SELECT MIN ( 67 ) AS col0, 1
----
67
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1541
SELECT DISTINCT 62 col1, ( 61 ) * - CAST( NULL AS SIGNED ) / + COUNT( * ) * - 73 AS col1
----
62
NULL

skipif mysql # not compatible
query II rowsort label-1541
SELECT DISTINCT 62 col1, ( 61 ) * - CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - 73 AS col1
----
62
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1542
SELECT + CAST( 77 AS SIGNED ) - - ( + ( 58 ) ) col1
----
135

skipif mysql # not compatible
query I rowsort label-1542
SELECT + CAST ( 77 AS INTEGER ) - - ( + ( 58 ) ) col1
----
135

query II rowsort
SELECT + 0, - 29 AS col1
----
0
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-1544
SELECT ALL - 72 DIV - 31 + + 1 * - 41, 42 AS col1
----
-39
42

skipif mysql # not compatible
query II rowsort label-1544
SELECT ALL - 72 / - 31 + + 1 * - 41, 42 AS col1
----
-39
42

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

skipif mysql # not compatible
query I rowsort label-1545
SELECT + - 66 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT - + SUM( - + 59 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-1546
SELECT - + SUM ( - + 59 ) AS col2
----
59

query I rowsort
SELECT + + 92 * + 84 col0
----
7728

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1549
SELECT ALL 96 DIV 29
----
3

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL 96 / 29
----
3

query II rowsort
SELECT - 73 AS col2, 58 * + 76
----
-73
4408

query I rowsort
SELECT ALL + - 56 + 12 + 78 * - ( - 82 )
----
6352

query I rowsort
SELECT + 49 * + 41
----
2009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1553
SELECT + + 40 - - + CASE - 71 WHEN - 98 + + - 24 THEN 58 ELSE - + 6 * - 56 + - + MIN( ALL + + CASE + - 44 WHEN - 83 * - 2 + 13 THEN 83 ELSE NULL END ) + 13 * CAST( 27 / + 49 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1553
SELECT + + 40 - - + CASE - 71 WHEN - 98 + + - 24 THEN 58 ELSE - + 6 * - 56 + - + MIN ( ALL + + CASE + - 44 WHEN - 83 * - 2 + 13 THEN 83 ELSE NULL END ) + 13 * CAST ( 27 / + 49 AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT + - 65 * + - 37
----
2405

query I rowsort
SELECT - - 59 * 60 AS col2
----
3540

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1556
SELECT ALL + 52 / + COUNT( * ) * + + NULLIF ( + + MAX( DISTINCT - 81 ), - + 88 / + 90 + + 33 ) + - 22 + ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL + 52 / + COUNT ( * ) * + + NULLIF ( + + MAX ( DISTINCT - 81 ), - + 88 / + 90 + + 33 ) + - 22 + ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1557
SELECT CAST( NULL AS SIGNED ) * + 4 - + 26 * 71 + 41 * 51 * ( - + 19 ) * - 17 - - ( - + AVG ( - 9 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1557
SELECT CAST ( NULL AS INTEGER ) * + 4 - + 26 * 71 + 41 * 51 * ( - + 19 ) * - 17 - - ( - + AVG ( - 9 ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1558
SELECT ALL - 52 - - 45 * - 22 * COALESCE ( 38, - + 87 * - - 9 ) + - - 44 DIV - 73 * + + 76 + + NULLIF ( + 78, - 43 ) * 63
----
-32758

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL - 52 - - 45 * - 22 * COALESCE ( 38, - + 87 * - - 9 ) + - - 44 / - 73 * + + 76 + + NULLIF ( + 78, - 43 ) * 63
----
-32758

query II rowsort
SELECT 52 * + 85 * 57 * + - 30 * + ( + 27 ) - - + 41 AS col1, + 13 / - + ( - 66 ) * + 88 * + - 92 + - CASE - 53 + 36 WHEN - 90 THEN 9 + 18 * 71 END * 97 AS col0
----
-204071359
NULL

query I rowsort
SELECT 62 * + - 28 + - 98
----
-1834

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT ALL - 62 * MIN( ALL 79 )
----
-4898

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL - 62 * MIN ( ALL 79 )
----
-4898

query I rowsort
SELECT 90 * 83 * 42 + - 12 AS col1
----
313728

query I rowsort
SELECT 49 + 97 AS col0
----
146

query II rowsort
SELECT 59 + 1 col1, - 87 AS col1
----
60
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1566
SELECT SUM( + 37 ) + - + 36 * + CAST( NULL AS SIGNED ) + 8 + - NULLIF ( - 3, + + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1566
SELECT SUM ( + 37 ) + - + 36 * + CAST ( NULL AS INTEGER ) + 8 + - NULLIF ( - 3, + + 45 )
----
NULL

query I rowsort
SELECT - + NULLIF ( - - 49, 22 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1568
SELECT DISTINCT - + 41 + + ( 73 ) - - MIN( DISTINCT 48 ) DIV - - 73
----
32

skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT - + 41 + + ( 73 ) - - MIN ( DISTINCT 48 ) / - - 73
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT + 88 + + SUM( DISTINCT + 46 ) + + 66 + - MAX( ALL + 26 ) col0
----
174

skipif mysql # not compatible
query I rowsort label-1569
SELECT + 88 + + SUM ( DISTINCT + 46 ) + + 66 + - MAX ( ALL + 26 ) col0
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1570
SELECT ALL - COALESCE ( - 0, - - COUNT( * ) + + SUM( DISTINCT 49 ) * - + SUM( - ( - 16 ) ) * - 51 + 2 DIV + 9 ) + + 80 + 20
----
100

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL - COALESCE ( - 0, - - COUNT ( * ) + + SUM ( DISTINCT 49 ) * - + SUM ( - ( - 16 ) ) * - 51 + 2 / + 9 ) + + 80 + 20
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT ALL 41 + 78 + - COUNT( * ) + - 11 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL 41 + 78 + - COUNT ( * ) + - 11 AS col2
----
107

query I rowsort
SELECT DISTINCT + 93 * + 14 * + 11 * - 69
----
-988218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1573
SELECT DISTINCT - MIN( DISTINCT + 64 ) + + CAST( 59 AS SIGNED ) * + 42
----
2414

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT - MIN ( DISTINCT + 64 ) + + CAST ( 59 AS INTEGER ) * + 42
----
2414

query II rowsort
SELECT 31 + 16, 4 AS col1
----
47
4

query I rowsort
SELECT ALL - - 99 + + 22
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT COUNT( * ) * - + 17 * + + 40
----
-680

skipif mysql # not compatible
query I rowsort label-1576
SELECT COUNT ( * ) * - + 17 * + + 40
----
-680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1577
SELECT - CAST( COUNT( * ) AS SIGNED ) col1, 32 * 52 col2
----
-1
1664

skipif mysql # not compatible
query II rowsort label-1577
SELECT - CAST ( COUNT ( * ) AS INTEGER ) col1, 32 * 52 col2
----
-1
1664

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT ALL CASE - + ( + NULLIF ( + + 27, - 58 * - 90 + 53 - + + ( - - 33 ) - + 69 + - CASE - - 19 WHEN - COUNT( * ) * + 44 - 0 THEN NULL WHEN - 88 THEN NULL WHEN 79 THEN ( + 63 ) END ) ) WHEN 73 - - 77 THEN NULL ELSE - COALESCE ( - 69, 36 + 82, 32 ) * - 84 + 59 END AS col2
----
-5737

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL CASE - + ( + NULLIF ( + + 27, - 58 * - 90 + 53 - + + ( - - 33 ) - + 69 + - CASE - - 19 WHEN - COUNT ( * ) * + 44 - 0 THEN NULL WHEN - 88 THEN NULL WHEN 79 THEN ( + 63 ) END ) ) WHEN 73 - - 77 THEN NULL ELSE - COALESCE ( - 69, 36 + 82, 32 ) * - 84 + 59 END AS col2
----
-5737

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

skipif mysql # not compatible
query I rowsort label-1579
SELECT 41 + COUNT ( * ) - + COUNT ( * ) / + 14 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1580
SELECT - CAST( + 43 AS SIGNED ) - - COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-1580
SELECT - CAST ( + 43 AS INTEGER ) - - COUNT ( * ) AS col2
----
-42

query I rowsort
SELECT - - 0 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1582
SELECT - COUNT ( * ) + 23 AS col0
----
22

query I rowsort
SELECT 31 * - COALESCE ( + + 15, + 4 )
----
-465

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1584
SELECT ALL + + COUNT( * ) DIV - 86 + + 95, + COUNT( * ) DIV 63 AS col2
----
95
0

skipif mysql # not compatible
query II rowsort label-1584
SELECT ALL + + COUNT ( * ) / - 86 + + 95, + COUNT ( * ) / 63 AS col2
----
95
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT DISTINCT - COUNT( * ) * - - 63
----
-63

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT - COUNT ( * ) * - - 63
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT DISTINCT 9 DIV 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT 9 / 42 AS col0
----
0

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

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

query I rowsort
SELECT DISTINCT 3 * - - 45 col0
----
135

query I rowsort
SELECT 24 + + 5 AS col1
----
29

query I rowsort
SELECT 31 * + 57
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT 37 * COUNT( * ) * - 27 * - - 57 AS col0
----
-56943

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT 37 * COUNT ( * ) * - 27 * - - 57 AS col0
----
-56943

query II rowsort
SELECT ALL - 69 col0, 8 + 23
----
-69
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT 40 + - 49 + 75 + + COUNT( * ) * + - 58
----
8

skipif mysql # not compatible
query I rowsort label-1594
SELECT 40 + - 49 + 75 + + COUNT ( * ) * + - 58
----
8

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

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

query I rowsort
SELECT DISTINCT 2 * 26
----
52

query II rowsort
SELECT 92 AS col0, - 38 AS col1
----
92
-38

query I rowsort
SELECT DISTINCT - ( 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT DISTINCT - COUNT( ALL + 53 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT - COUNT ( ALL + 53 ) col0
----
-1

query I rowsort
SELECT DISTINCT + 76 * 9
----
684

query I rowsort
SELECT 59 * 4
----
236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1602
SELECT ALL - 31 + - 29 + - NULLIF ( 3, MIN( DISTINCT 45 ) * + NULLIF ( + + ( 5 ), + 97 * + 73 ) + + 36 + - + 39 + COALESCE ( + MAX( ALL - ( 4 ) ), 48 ) * - 38 DIV - COUNT( * ) ) DIV 79 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL - 31 + - 29 + - NULLIF ( 3, MIN ( DISTINCT 45 ) * + NULLIF ( + + ( 5 ), + 97 * + 73 ) + + 36 + - + 39 + COALESCE ( + MAX ( ALL - ( 4 ) ), 48 ) * - 38 / - COUNT ( * ) ) / 79 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-1603
SELECT + COUNT( * ), 40 * 81 AS col1
----
1
3240

skipif mysql # not compatible
query II rowsort label-1603
SELECT + COUNT ( * ), 40 * 81 AS col1
----
1
3240

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

query I rowsort
SELECT - 42 * + + 8 AS col2
----
-336

query II rowsort
SELECT ALL - - COALESCE ( - 4, - + 89 ) AS col2, + 51 + + 38
----
-4
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1607
SELECT ALL 55 + - + 53 DIV + ( 16 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL 55 + - + 53 / + ( 16 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1608
SELECT + COUNT( * ) col2, - 83 + + + 59 AS col1
----
1
-24

skipif mysql # not compatible
query II rowsort label-1608
SELECT + COUNT ( * ) col2, - 83 + + + 59 AS col1
----
1
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-1609
SELECT DISTINCT - - COUNT( * ) + + + ( - 13 ) AS col1, + 82 * - ( - + 13 ) + SUM( DISTINCT - - 35 ) * - 68 * + 18
----
-12
-41774

skipif mysql # not compatible
query II rowsort label-1609
SELECT DISTINCT - - COUNT ( * ) + + + ( - 13 ) AS col1, + 82 * - ( - + 13 ) + SUM ( DISTINCT - - 35 ) * - 68 * + 18
----
-12
-41774

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT DISTINCT - 70 + - CASE WHEN 46 NOT BETWEEN + MIN( - COALESCE ( - 12, - 48 ) ) AND ( - 41 * 71 / 29 ) THEN + 29 WHEN NOT - 24 IS NULL THEN NULL END
----
-99

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT - 70 + - CASE WHEN 46 NOT BETWEEN + MIN ( - COALESCE ( - 12, - 48 ) ) AND ( - 41 * 71 / 29 ) THEN + 29 WHEN NOT - 24 IS NULL THEN NULL END
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1612
SELECT ( + 9 ) + - 17 + + 13 * COUNT( * ) + COUNT( * ) DIV - MAX( + 17 ) * 18 * + 10 - 96 * + SUM( 23 ) DIV COUNT( DISTINCT 33 * - 3 )
----
-2203

skipif mysql # not compatible
query I rowsort label-1612
SELECT ( + 9 ) + - 17 + + 13 * COUNT ( * ) + COUNT ( * ) / - MAX ( + 17 ) * 18 * + 10 - 96 * + SUM ( 23 ) / COUNT ( DISTINCT 33 * - 3 )
----
-2203

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT ALL - 37 - - MAX( - 79 ) + 54 + + 73 + - COUNT( * ) * - 25 * 14 * + + 13
----
4561

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL - 37 - - MAX ( - 79 ) + 54 + + 73 + - COUNT ( * ) * - 25 * 14 * + + 13
----
4561

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

query I rowsort
SELECT ALL + 77 - + - 25 + 38 AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT DISTINCT - COUNT( ALL 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT - COUNT ( ALL 75 )
----
-1

query I rowsort
SELECT - ( - + ( - 47 ) ) * - 95 * 74 * - 33
----
-10903530

query I rowsort
SELECT + 15 * + 98 AS col2
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT - ( CASE - - 98 WHEN + 8 - + + 40 THEN + MIN( - + 95 ) WHEN + COUNT( * ) THEN 97 ELSE NULL END ) - - 67 + + 29 + + + 35 / + ( + 47 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT - ( CASE - - 98 WHEN + 8 - + + 40 THEN + MIN ( - + 95 ) WHEN + COUNT ( * ) THEN 97 ELSE NULL END ) - - 67 + + 29 + + + 35 / + ( + 47 ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1620
SELECT + 32 DIV - - 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1620
SELECT + 32 / - - 85 AS col0
----
0

query I rowsort
SELECT - 79 * - NULLIF ( + 73, + ( 65 ) )
----
5767

onlyif mysql # DIV for integer division: 
query I rowsort label-1622
SELECT + 96 DIV + + 16 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1622
SELECT + 96 / + + 16 AS col0
----
6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT DISTINCT + 7 DIV + 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT + 7 / + 36 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1625
SELECT + COUNT( * ) DIV 94, - 15 AS col1
----
0
-15

skipif mysql # not compatible
query II rowsort label-1625
SELECT + COUNT ( * ) / 94, - 15 AS col1
----
0
-15

query II rowsort
SELECT ALL 43 * + 83 col0, + 74 col1
----
3569
74

query I rowsort
SELECT ALL 36 * - 89
----
-3204

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT 26 DIV 93 + 52 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1628
SELECT 26 / 93 + 52 AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1629
SELECT ALL CAST( NULL AS SIGNED ) * + - 58 + + 76 * - + COUNT( * ) + - 98 + - + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL CAST ( NULL AS INTEGER ) * + - 58 + + 76 * - + COUNT ( * ) + - 98 + - + 88
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1630
SELECT + 40 / - 48 - - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT CASE + - COALESCE ( 70, + - 40 * + - 60 + - - 92 * + + 0 + + + 18 ) WHEN + 68 - - 57 + - + 46 * + COUNT( * ) * 96 * - 47 THEN COUNT( DISTINCT 52 ) + 20 WHEN 38 + + 74 THEN CASE - 40 WHEN NULLIF ( + ( + 99 ), 61 + COUNT( * ) * + 21 ) THEN + COUNT( * ) END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1631
SELECT CASE + - COALESCE ( 70, + - 40 * + - 60 + - - 92 * + + 0 + + + 18 ) WHEN + 68 - - 57 + - + 46 * + COUNT ( * ) * 96 * - 47 THEN COUNT ( DISTINCT 52 ) + 20 WHEN 38 + + 74 THEN CASE - 40 WHEN NULLIF ( + ( + 99 ), 61 + COUNT ( * ) * + 21 ) THEN + COUNT ( * ) END END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1632
SELECT COUNT( * ) * 0 * - 48 + + - CASE 81 WHEN - 69 THEN NULL WHEN COUNT( * ) * + + 14 + + - 68 - + NULLIF ( 35, + + CAST( + NULLIF ( - COUNT( * ), 47 - 71 * - COUNT( * ) ) AS SIGNED ) ) THEN CAST( COUNT( * ) AS SIGNED ) END + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1632
SELECT COUNT ( * ) * 0 * - 48 + + - CASE 81 WHEN - 69 THEN NULL WHEN COUNT ( * ) * + + 14 + + - 68 - + NULLIF ( 35, + + CAST ( + NULLIF ( - COUNT ( * ), 47 - 71 * - COUNT ( * ) ) AS INTEGER ) ) THEN CAST ( COUNT ( * ) AS INTEGER ) END + 86 AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - - 69, - 49 * 35 * - + 64 )
----
69

query I rowsort
SELECT ALL 58 * 48 + + 14
----
2798

query I rowsort
SELECT CASE + - 13 WHEN + 25 THEN - + 93 END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1637
SELECT ALL 61 * - CASE - ( + 65 ) WHEN + - ( - + NULLIF ( - 9, + - 69 + + CAST( COUNT( ALL 22 ) AS SIGNED ) - + + ( CAST( NULL AS SIGNED ) ) ) ) THEN 35 ELSE NULL END + CASE - COALESCE ( 13, - 97 + 83, + COALESCE ( + MIN( 61 ), - 19, 51 ) ) WHEN 57 * 47 THEN NULL WHEN 1 THEN + 54 WHEN - 38 / ( - 74 ) + COUNT( * ) THEN + 92 * 83 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL 61 * - CASE - ( + 65 ) WHEN + - ( - + NULLIF ( - 9, + - 69 + + CAST ( COUNT ( ALL 22 ) AS INTEGER ) - + + ( CAST ( NULL AS INTEGER ) ) ) ) THEN 35 ELSE NULL END + CASE - COALESCE ( 13, - 97 + 83, + COALESCE ( + MIN ( 61 ), - 19, 51 ) ) WHEN 57 * 47 THEN NULL WHEN 1 THEN + 54 WHEN - 38 / ( - 74 ) + COUNT ( * ) THEN + 92 * 83 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT - + 55 + + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-1639
SELECT - + 55 + + COUNT ( * )
----
-54

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

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

query I rowsort
SELECT - 42 * + + 1 + 86 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT DISTINCT - 39 * - 13 * + NULLIF ( + 88, - COUNT( * ) / + 18 )
----
44616

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT - 39 * - 13 * + NULLIF ( + 88, - COUNT ( * ) / + 18 )
----
44616

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1643
SELECT ALL - - 57 DIV - 60, - CAST( + 60 AS SIGNED ) AS col0
----
0
-60

skipif mysql # not compatible
query II rowsort label-1643
SELECT ALL - - 57 / - 60, - CAST ( + 60 AS INTEGER ) AS col0
----
0
-60

query I rowsort
SELECT - + 53 * - - 4 + - 37 + - - 14 + - 58
----
-293

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

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

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

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

query I rowsort
SELECT - - 51 + 81
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT - 91 * - ( - 68 ) * + ( + + CASE - - 38 WHEN - 1 - 37 + + MIN( ALL 32 ) * COUNT( * ) + - ( 4 ) THEN NULL WHEN - 52 * + - 73 * + 77 + COUNT( * ) THEN NULL WHEN - 60 + 59 THEN NULL ELSE ( - 75 ) END ) AS col1
----
464100

skipif mysql # not compatible
query I rowsort label-1648
SELECT - 91 * - ( - 68 ) * + ( + + CASE - - 38 WHEN - 1 - 37 + + MIN ( ALL 32 ) * COUNT ( * ) + - ( 4 ) THEN NULL WHEN - 52 * + - 73 * + 77 + COUNT ( * ) THEN NULL WHEN - 60 + 59 THEN NULL ELSE ( - 75 ) END ) AS col1
----
464100

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT - 3 + + 61 * MIN( DISTINCT - 75 ) * 98 + + 24 col2
----
-448329

skipif mysql # not compatible
query I rowsort label-1649
SELECT - 3 + + 61 * MIN ( DISTINCT - 75 ) * 98 + + 24 col2
----
-448329

onlyif mysql # aggregate syntax: 
query II rowsort label-1650
SELECT - 8 - + - ( - + COUNT( + - ( 39 ) ) ) * - 93 * + + SUM( DISTINCT - 67 ) AS col0, - 94 AS col1
----
-6239
-94

skipif mysql # not compatible
query II rowsort label-1650
SELECT - 8 - + - ( - + COUNT ( + - ( 39 ) ) ) * - 93 * + + SUM ( DISTINCT - 67 ) AS col0, - 94 AS col1
----
-6239
-94

query I rowsort
SELECT - 79 + - 85 AS col1
----
-164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1652
SELECT ALL + COALESCE ( MIN( DISTINCT 14 ), - + CAST( NULL AS SIGNED ) * - + 53 + 68 DIV 8 + + 18 + 91, 45 * COALESCE ( + 63, 74 ) + + 6 ) * + + 71 * COUNT( 27 ) AS col2
----
994

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL + COALESCE ( MIN ( DISTINCT 14 ), - + CAST ( NULL AS INTEGER ) * - + 53 + 68 / 8 + + 18 + 91, 45 * COALESCE ( + 63, 74 ) + + 6 ) * + + 71 * COUNT ( 27 ) AS col2
----
994

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

query I rowsort
SELECT DISTINCT COALESCE ( + 92, - 74 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT DISTINCT + NULLIF ( + + 72, 94 * + 61 + ( + + 49 ) + - 70 ) * + COUNT( ALL - 93 ) * - - COUNT( * ) * - NULLIF ( - - 10, 92 )
----
-720

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT + NULLIF ( + + 72, 94 * + 61 + ( + + 49 ) + - 70 ) * + COUNT ( ALL - 93 ) * - - COUNT ( * ) * - NULLIF ( - - 10, 92 )
----
-720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1656
SELECT ALL 43 + - CASE - COALESCE ( + CASE - 64 WHEN + + 14 THEN - CAST( + SUM( + - 42 ) AS DECIMAL ) * 22 / - 97 * - + NULLIF ( - 82, + 25 / - + 76 * 67 + + 57 / + 4 ) END, ( + 77 ), + 37 / 91 - AVG ( + 85 + - 38 ) / 51 ) WHEN 57 THEN + NULLIF ( - 99, 94 * COUNT( * ) ) / 36 WHEN 13 THEN NULL WHEN 89 / - 91 THEN NULL ELSE + COUNT( * ) END - CASE COALESCE ( + COALESCE ( 68, - 57 / + COALESCE ( + MAX( - 73 ), 75, - 79 ) ), - CASE 25 WHEN - 45 THEN + 45 WHEN 91 THEN NULL ELSE NULL END - + 2 * NULLIF ( ( + 37 ), 61 + AVG ( - 92 ) * - COUNT( * ) ), 79 ) WHEN + CAST( 46 AS SIGNED ) THEN 99 WHEN + COUNT( * ) THEN 48 WHEN 75 - - 11 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL 43 + - CASE - COALESCE ( + CASE - 64 WHEN + + 14 THEN - CAST ( + SUM ( + - 42 ) AS REAL ) * 22 / - 97 * - + NULLIF ( - 82, + 25 / - + 76 * 67 + + 57 / + 4 ) END, ( + 77 ), + 37 / 91 - AVG ( + 85 + - 38 ) / 51 ) WHEN 57 THEN + NULLIF ( - 99, 94 * COUNT ( * ) ) / 36 WHEN 13 THEN NULL WHEN 89 / - 91 THEN NULL ELSE + COUNT ( * ) END - CASE COALESCE ( + COALESCE ( 68, - 57 / + COALESCE ( + MAX ( - 73 ), 75, - 79 ) ), - CASE 25 WHEN - 45 THEN + 45 WHEN 91 THEN NULL ELSE NULL END - + 2 * NULLIF ( ( + 37 ), 61 + AVG ( - 92 ) * - COUNT ( * ) ), 79 ) WHEN + CAST ( 46 AS INTEGER ) THEN 99 WHEN + COUNT ( * ) THEN 48 WHEN 75 - - 11 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - 49 + 77 AS col0
----
28

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

query I rowsort
SELECT ALL + 3 * + 2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT DISTINCT - ( + 96 ) + + 37 + + + MIN( ALL 98 ) * COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT - ( + 96 ) + + 37 + + + MIN ( ALL 98 ) * COUNT ( * ) AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1661
SELECT ALL - 51 / - CAST( NULL AS SIGNED ) + + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL - 51 / - CAST ( NULL AS INTEGER ) + + - 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1662
SELECT CAST( + - AVG ( + 19 ) AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-1662
SELECT CAST ( + - AVG ( + 19 ) AS INTEGER )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1663
SELECT - MAX( ALL + ( + + 42 ) ) * 65 * + 84 col0, + ( - CAST( NULL AS SIGNED ) ) AS col0
----
-229320
NULL

skipif mysql # not compatible
query II rowsort label-1663
SELECT - MAX ( ALL + ( + + 42 ) ) * 65 * + 84 col0, + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
-229320
NULL

query I rowsort
SELECT + 73 * + - 2 + + 66 AS col2
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-1665
SELECT ALL - 59 DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL - 59 / - 83 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1666
SELECT ALL - 37 DIV + 88 + - 86 * + 71
----
-6106

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL - 37 / + 88 + - 86 * + 71
----
-6106

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT + MIN( + + 34 ) * - 21 - - COUNT( * ) AS col2
----
-713

skipif mysql # not compatible
query I rowsort label-1667
SELECT + MIN ( + + 34 ) * - 21 - - COUNT ( * ) AS col2
----
-713

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1669
SELECT - SUM( + COALESCE ( 32, - + 51 * - 15 ) ) AS col0, + 2 AS col2
----
-32
2

skipif mysql # not compatible
query II rowsort label-1669
SELECT - SUM ( + COALESCE ( 32, - + 51 * - 15 ) ) AS col0, + 2 AS col2
----
-32
2

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

query I rowsort
SELECT ALL + 8 * 38 - - 8
----
312

query I rowsort
SELECT - 43 - - - 71 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT + + MIN( - - COALESCE ( - 53, 69, + - 21 + 32 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-1673
SELECT + + MIN ( - - COALESCE ( - 53, 69, + - 21 + 32 ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT ALL + + CASE + 3 WHEN + 98 * + - 80 THEN NULL WHEN - COUNT( * ) + - 51 THEN + MAX( ALL - + 7 ) * + 54 ELSE - COUNT( - 7 ) * - 0 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL + + CASE + 3 WHEN + 98 * + - 80 THEN NULL WHEN - COUNT ( * ) + - 51 THEN + MAX ( ALL - + 7 ) * + 54 ELSE - COUNT ( - 7 ) * - 0 END AS col0
----
0

query I rowsort
SELECT + 35 + - 45
----
-10

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

query I rowsort
SELECT DISTINCT 58 - 93 col1
----
-35

query I rowsort
SELECT ALL - - 62 AS col2
----
62

query II rowsort
SELECT ALL 65 col1, + 6
----
65
6

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

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

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

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

query I rowsort
SELECT - NULLIF ( + 42, 41 + + 74 ) AS col2
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-1683
SELECT ALL NULLIF ( - 28, - 62 ) DIV + 86 + + + 36, - 27 AS col1
----
36
-27

skipif mysql # not compatible
query II rowsort label-1683
SELECT ALL NULLIF ( - 28, - 62 ) / + 86 + + + 36, - 27 AS col1
----
36
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1684
SELECT CASE 17 WHEN - - COUNT( * ) THEN NULL ELSE - 73 * + 60 * + - 75 END / + - 60 / - CAST( NULL AS SIGNED ) AS col1, 51 col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-1684
SELECT CASE 17 WHEN - - COUNT ( * ) THEN NULL ELSE - 73 * + 60 * + - 75 END / + - 60 / - CAST ( NULL AS INTEGER ) AS col1, 51 col2
----
NULL
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT + 82 * - 99 * - MAX( - - 23 )
----
186714

skipif mysql # not compatible
query I rowsort label-1685
SELECT + 82 * - 99 * - MAX ( - - 23 )
----
186714

query I rowsort
SELECT DISTINCT 15 * - 29 AS col2
----
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT 50 + 88 * - COUNT( * ) * - 60 * + 29 * + 92
----
14087090

skipif mysql # not compatible
query I rowsort label-1687
SELECT 50 + 88 * - COUNT ( * ) * - 60 * + 29 * + 92
----
14087090

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL 44 * + MAX( - 89 ) AS col2
----
-3916

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL 44 * + MAX ( - 89 ) AS col2
----
-3916

onlyif mysql # DIV for integer division: 
query I rowsort label-1689
SELECT 24 DIV - + 1 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-1689
SELECT 24 / - + 1 AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1690
SELECT ALL - ( - CASE - 2 WHEN + COUNT( ALL + 69 ) THEN NULL ELSE 53 + + 36 + - COALESCE ( CAST( NULL AS SIGNED ), - - NULLIF ( + - COUNT( * ), + COALESCE ( + - 59, - CAST( NULL AS SIGNED ) ) + COUNT( * ) + - + 12 + CAST( 78 AS SIGNED ) DIV COUNT( * ) * COUNT( ALL 69 ) ) - + 66 * + 83, + COUNT( * ) ) + - COUNT( * ) * - CAST( 98 + 30 AS SIGNED ) DIV 29 * - 93 END ) + 28 AS col1
----
5224

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL - ( - CASE - 2 WHEN + COUNT ( ALL + 69 ) THEN NULL ELSE 53 + + 36 + - COALESCE ( CAST ( NULL AS INTEGER ), - - NULLIF ( + - COUNT ( * ), + COALESCE ( + - 59, - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + - + 12 + CAST ( 78 AS INTEGER ) / COUNT ( * ) * COUNT ( ALL 69 ) ) - + 66 * + 83, + COUNT ( * ) ) + - COUNT ( * ) * - CAST ( 98 + 30 AS INTEGER ) / 29 * - 93 END ) + 28 AS col1
----
5224

query I rowsort
SELECT DISTINCT 79 * - 71
----
-5609

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL - 62 + + COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL - 62 + + COUNT ( * ) AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1693
SELECT COUNT( * ) - + 82 + - + 84 * + - CASE - 83 WHEN 15 THEN NULL ELSE NULLIF ( + - 8, 27 ) END * + 19 * - - 60 + - - 44 + + 10 * CAST( - 77 AS SIGNED ) AS col2
----
-766887

skipif mysql # not compatible
query I rowsort label-1693
SELECT COUNT ( * ) - + 82 + - + 84 * + - CASE - 83 WHEN 15 THEN NULL ELSE NULLIF ( + - 8, 27 ) END * + 19 * - - 60 + - - 44 + + 10 * CAST ( - 77 AS INTEGER ) AS col2
----
-766887

query II rowsort
SELECT 89 AS col2, 73 AS col2
----
89
73

query I rowsort
SELECT 59 * - 10
----
-590

query I rowsort
SELECT ALL + 99 + + 95
----
194

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

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

query II rowsort
SELECT 32, - 23 AS col0
----
32
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1699
SELECT - 43 col2, - 4 + - COALESCE ( NULLIF ( - - 50, - NULLIF ( COUNT( * ), 85 / + 48 - - + 68 ) ), + CAST( NULL AS SIGNED ), 9 * - 69 + COALESCE ( - - 26, - 13, - 16 - 66 * CAST( - 22 + - 93 * - 31 AS SIGNED ) ) ) + ( 7 ) * ( - CASE - 87 WHEN 77 THEN - ( COUNT( * ) ) + - ( + 25 + + 60 ) * - 94 WHEN 41 THEN 69 + + 25 END ) col2
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-1699
SELECT - 43 col2, - 4 + - COALESCE ( NULLIF ( - - 50, - NULLIF ( COUNT ( * ), 85 / + 48 - - + 68 ) ), + CAST ( NULL AS INTEGER ), 9 * - 69 + COALESCE ( - - 26, - 13, - 16 - 66 * CAST ( - 22 + - 93 * - 31 AS INTEGER ) ) ) + ( 7 ) * ( - CASE - 87 WHEN 77 THEN - ( COUNT ( * ) ) + - ( + 25 + + 60 ) * - 94 WHEN 41 THEN 69 + + 25 END ) col2
----
-43
NULL

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

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

query I rowsort
SELECT ALL + 0 + 69 + + + 94 * + 25 * + + 26 AS col2
----
61169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1702
SELECT + COUNT( * ) DIV - MIN( + - 89 ) * - 96 - + - 54 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-1702
SELECT + COUNT ( * ) / - MIN ( + - 89 ) * - 96 - + - 54 AS col2
----
54

query I rowsort
SELECT ALL - 73 * - 69
----
5037

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT 74 - - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-1704
SELECT 74 - - COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT DISTINCT - NULLIF ( + ( - 14 ), - CASE + COUNT( 71 ) WHEN - COUNT( * ) + + - 83 THEN 76 + 87 + NULLIF ( - 43, - 4 + 55 * - MIN( - 89 ) ) END + 74 )
----
14

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT - NULLIF ( + ( - 14 ), - CASE + COUNT ( 71 ) WHEN - COUNT ( * ) + + - 83 THEN 76 + 87 + NULLIF ( - 43, - 4 + 55 * - MIN ( - 89 ) ) END + 74 )
----
14

query I rowsort
SELECT DISTINCT - + 40 * - - 7
----
-280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT + NULLIF ( - CAST( - 32 AS SIGNED ), - - 41 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1707
SELECT + NULLIF ( - CAST ( - 32 AS INTEGER ), - - 41 ) AS col2
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-1708
SELECT + + 97 AS col0, 97 DIV + + ( - 1 ) + + 38
----
97
-59

skipif mysql # not compatible
query II rowsort label-1708
SELECT + + 97 AS col0, 97 / + + ( - 1 ) + + 38
----
97
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT + 97 * - MIN( 39 )
----
-3783

skipif mysql # not compatible
query I rowsort label-1709
SELECT + 97 * - MIN ( 39 )
----
-3783

query II rowsort
SELECT ALL - - 80, + 88 AS col1
----
80
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT + COUNT( * ) * - 23 + 40
----
17

skipif mysql # not compatible
query I rowsort label-1711
SELECT + COUNT ( * ) * - 23 + 40
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1712
SELECT DISTINCT COUNT( * ) DIV + + 3 - 2 col0
----
-2

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT COUNT ( * ) / + + 3 - 2 col0
----
-2

query I rowsort
SELECT 54 * + 75
----
4050

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1715
SELECT DISTINCT - - 23 DIV + ( 78 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT - - 23 / + ( 78 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT DISTINCT - 58 * - CAST( + 50 AS SIGNED ) + - + 70
----
2830

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT - 58 * - CAST ( + 50 AS INTEGER ) + - + 70
----
2830

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

skipif mysql # not compatible
query I rowsort label-1717
SELECT COUNT ( * ) * 81 - + COUNT ( * ) AS col1
----
80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT + CAST( NULL AS SIGNED ) * + ( - - 78 ) * + + NULLIF ( 3, + 46 ) + - ( - + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT + CAST ( NULL AS INTEGER ) * + ( - - 78 ) * + + NULLIF ( 3, + 46 ) + - ( - + 91 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT ALL - + MIN( DISTINCT + COALESCE ( - 0, - CASE CASE - ( + + 45 ) WHEN - 23 THEN - + 72 / 54 * - 46 END WHEN - + COALESCE ( 12, - + 76, + 65 * - 22 - - 43 / - 57 ) + - 65 THEN + 27 END ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL - + MIN ( DISTINCT + COALESCE ( - 0, - CASE CASE - ( + + 45 ) WHEN - 23 THEN - + 72 / 54 * - 46 END WHEN - + COALESCE ( 12, - + 76, + 65 * - 22 - - 43 / - 57 ) + - 65 THEN + 27 END ) ) AS col2
----
0

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

query I rowsort
SELECT CASE - 35 WHEN + + 34 * - 81 THEN 23 WHEN - 99 + + 69 + + 94 - 27 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1724
SELECT + COUNT( * ) * COUNT( * ) / + CAST( NULL AS SIGNED ) * + 68 + - + 36 + 26 + + CAST( + 12 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1724
SELECT + COUNT ( * ) * COUNT ( * ) / + CAST ( NULL AS INTEGER ) * + 68 + - + 36 + 26 + + CAST ( + 12 AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL 10 * - + 87
----
-870

query I rowsort
SELECT - 79 * - 16 + + 35 AS col0
----
1299

query I rowsort
SELECT 0 * + NULLIF ( COALESCE ( - 94, 18 ), - - 78 ) + - + 46 * - 74
----
3404

query I rowsort
SELECT ALL + 95 + - 99
----
-4

query I rowsort
SELECT DISTINCT - 21 * + - 93 AS col0
----
1953

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL ( 14 ) + - 52 * + + COALESCE ( 1, - COUNT( * ) )
----
-38

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL ( 14 ) + - 52 * + + COALESCE ( 1, - COUNT ( * ) )
----
-38

query I rowsort
SELECT DISTINCT 61 * + 98 * + + 78 AS col2
----
466284

query I rowsort
SELECT DISTINCT 73 + + + 58 - - 75 * 81 * 3 AS col2
----
18356

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

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL ( - + 86 ) + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT 30 + 3 + + 50 AS col0
----
83

query I rowsort
SELECT ( 56 ) + - + 50 * + CASE + + 75 WHEN - 51 THEN NULL ELSE 79 * 33 END AS col1
----
-130294

query I rowsort
SELECT 78 * + - 7 * + 36 * + 26 AS col2
----
-511056

query I rowsort
SELECT ALL 60 * - 68
----
-4080

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT COUNT( * ) + 8 + - 46
----
-37

skipif mysql # not compatible
query I rowsort label-1738
SELECT COUNT ( * ) + 8 + - 46
----
-37

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

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 67 + - AVG ( - + 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT ALL + 68 - + - COUNT( * ) col1
----
69

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + 68 - + - COUNT ( * ) col1
----
69

query I rowsort
SELECT ALL 65 * + 10 col2
----
650

query I rowsort
SELECT DISTINCT 83 * - + 54 AS col1
----
-4482

onlyif mysql # DIV for integer division: 
query I rowsort label-1743
SELECT ALL + 96 DIV - + ( + 26 )
----
-3

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL + 96 / - + ( + 26 )
----
-3

query I rowsort
SELECT 84 + + + 68 AS col2
----
152

query I rowsort
SELECT 55 * - 62 AS col2
----
-3410

onlyif mysql # aggregate syntax: 
query II rowsort label-1746
SELECT + MIN( DISTINCT - - 38 ) col2, 83 col0
----
38
83

skipif mysql # not compatible
query II rowsort label-1746
SELECT + MIN ( DISTINCT - - 38 ) col2, 83 col0
----
38
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT 93 + + 36 + 84 - + CASE + 44 WHEN - 12 / - SUM( + 43 ) THEN NULL WHEN - + COUNT( * ) THEN + - COUNT( * ) END * + COUNT( * ) * - 85 * + + COALESCE ( + 74, - + 42 + + + 43 + + 46 * COUNT( * ) ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1747
SELECT 93 + + 36 + 84 - + CASE + 44 WHEN - 12 / - SUM ( + 43 ) THEN NULL WHEN - + COUNT ( * ) THEN + - COUNT ( * ) END * + COUNT ( * ) * - 85 * + + COALESCE ( + 74, - + 42 + + + 43 + + 46 * COUNT ( * ) ) / COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 88 * - ( - - 7 ) - + 80 AS col0
----
-696

query I rowsort
SELECT + + COALESCE ( + 36, + 27 + - + 44 + + + 61 )
----
36

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

query I rowsort
SELECT - 34 * - - 79
----
-2686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1752
SELECT - CAST( - COALESCE ( + 20, - + 41 + + + 74 ) AS SIGNED ) * - ( - NULLIF ( + 48, - 73 ) ) + - + 88 col2
----
872

skipif mysql # not compatible
query I rowsort label-1752
SELECT - CAST ( - COALESCE ( + 20, - + 41 + + + 74 ) AS INTEGER ) * - ( - NULLIF ( + 48, - 73 ) ) + - + 88 col2
----
872

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

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL - CAST ( NULL AS INTEGER ) * 11 AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT + + 19 col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1756
SELECT - - 66 * - 43 * + + SUM( ALL + ( + - 83 ) ), + 66 AS col0
----
235554
66

skipif mysql # not compatible
query II rowsort label-1756
SELECT - - 66 * - 43 * + + SUM ( ALL + ( + - 83 ) ), + 66 AS col0
----
235554
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1757
SELECT - 97 / + 95 * - 39 + CASE 16 WHEN CASE - + 77 WHEN + CASE - 39 WHEN - + 12 * - + 14 - - + 91 + - 84 * - + COUNT( * ) + + - 56 THEN NULL WHEN - - 57 - - - 71 THEN - 63 WHEN + NULLIF ( 60, + 27 * 50 + CAST( - ( - 14 ) AS SIGNED ) ) / + COUNT( ALL 10 ) + COALESCE ( - 47 + - 68, - MAX( ALL - 85 ), 99 + - CASE - 63 WHEN 61 * 21 THEN COUNT( * ) * - NULLIF ( 19 * 20, + 92 / NULLIF ( ( ( - 22 ) ) * 50, 6 ) ) + + 62 ELSE + 26 END / SUM( ALL - 71 ) ) THEN - CAST( - 31 AS SIGNED ) END THEN - ( + 23 ) - 39 END THEN 12 * + 53 END + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT - 97 / + 95 * - 39 + CASE 16 WHEN CASE - + 77 WHEN + CASE - 39 WHEN - + 12 * - + 14 - - + 91 + - 84 * - + COUNT ( * ) + + - 56 THEN NULL WHEN - - 57 - - - 71 THEN - 63 WHEN + NULLIF ( 60, + 27 * 50 + CAST ( - ( - 14 ) AS INTEGER ) ) / + COUNT ( ALL 10 ) + COALESCE ( - 47 + - 68, - MAX ( ALL - 85 ), 99 + - CASE - 63 WHEN 61 * 21 THEN COUNT ( * ) * - NULLIF ( 19 * 20, + 92 / NULLIF ( ( ( - 22 ) ) * 50, 6 ) ) + + 62 ELSE + 26 END / SUM ( ALL - 71 ) ) THEN - CAST ( - 31 AS INTEGER ) END THEN - ( + 23 ) - 39 END THEN 12 * + 53 END + 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT ( + + CASE 26 WHEN - - 24 THEN NULL WHEN - - ( - 32 ) THEN + COUNT( - - 43 ) ELSE + ( - ( - COUNT( * ) ) ) + - COUNT( * ) * 13 END )
----
-12

skipif mysql # not compatible
query I rowsort label-1758
SELECT ( + + CASE 26 WHEN - - 24 THEN NULL WHEN - - ( - 32 ) THEN + COUNT ( - - 43 ) ELSE + ( - ( - COUNT ( * ) ) ) + - COUNT ( * ) * 13 END )
----
-12

query II rowsort
SELECT DISTINCT + - ( - + 69 ) * - 60 + - + 89 * 90 AS col0, 69 AS col1
----
-12150
69

query I rowsort
SELECT COALESCE ( - + ( + ( + + ( - CASE + 23 WHEN - 15 THEN NULL ELSE + 27 END ) ) ), + 28 * + + 66 * 15 - - 66 ) * - 56 * ( + - 28 ) + - 39 - + - 17 AS col0
----
42314

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT + + 83 + + 24 + - ( + MAX( + 37 ) ) * 56 AS col1
----
-1965

skipif mysql # not compatible
query I rowsort label-1761
SELECT + + 83 + + 24 + - ( + MAX ( + 37 ) ) * 56 AS col1
----
-1965

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1762
SELECT ALL + 70 * - - 81 + + - 69 DIV COUNT( * ) - + 8 + 91 AS col2
----
5684

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL + 70 * - - 81 + + - 69 / COUNT ( * ) - + 8 + 91 AS col2
----
5684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT ALL NULLIF ( + + 8, + 32 * - 70 * 83 * - 81 ) + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL NULLIF ( + + 8, + 32 * - 70 * 83 * - 81 ) + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1764
SELECT COUNT( * ) AS col0, COUNT( * ) * + + 29 DIV + 78 * ( - 81 ) + - 61
----
1
-61

skipif mysql # not compatible
query II rowsort label-1764
SELECT COUNT ( * ) AS col0, COUNT ( * ) * + + 29 / + 78 * ( - 81 ) + - 61
----
1
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-1765
SELECT ALL + 71 DIV + + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL + 71 / + + 99 AS col2
----
0

query I rowsort
SELECT DISTINCT - ( - + 91 ) + 35
----
126

query I rowsort
SELECT ALL 20 * + + 3 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL - 99 + + COUNT( * ) + + - 66
----
-164

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL - 99 + + COUNT ( * ) + + - 66
----
-164

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1769
SELECT ALL + CAST( NULL AS DECIMAL ) + 59 * - 80 + 95 * ( + 44 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL + CAST ( NULL AS REAL ) + 59 * - 80 + 95 * ( + 44 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1770
SELECT - 96 * + 4 * + 92 * - + NULLIF ( + + 43, NULLIF ( CAST( NULL AS SIGNED ), - COUNT( * ) / + 54 * - 50 ) ) AS col0
----
1519104

skipif mysql # not compatible
query I rowsort label-1770
SELECT - 96 * + 4 * + 92 * - + NULLIF ( + + 43, NULLIF ( CAST ( NULL AS INTEGER ), - COUNT ( * ) / + 54 * - 50 ) ) AS col0
----
1519104

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

skipif mysql # not compatible
query I rowsort label-1771
SELECT - MIN ( + 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT - 72 + - + COUNT( * ) * - - COUNT( ALL + - 85 ) col2
----
-73

skipif mysql # not compatible
query I rowsort label-1772
SELECT - 72 + - + COUNT ( * ) * - - COUNT ( ALL + - 85 ) col2
----
-73

query I rowsort
SELECT ALL 84 * - + 34 col2
----
-2856

query I rowsort
SELECT + 96 + - 84 + - + 82 * 22 col2
----
-1792

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT - MIN( DISTINCT - ( 85 ) ) col2
----
85

skipif mysql # not compatible
query I rowsort label-1775
SELECT - MIN ( DISTINCT - ( 85 ) ) col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT ALL 78 - 55 DIV ( - 69 ) * 7
----
78

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL 78 - 55 / ( - 69 ) * 7
----
78

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

query I rowsort
SELECT + 60 * 4
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1779
SELECT DISTINCT 45, - 19 * + - 7 * + - CAST( - 78 AS SIGNED ) - - 64 + + 6 AS col2
----
45
10444

skipif mysql # not compatible
query II rowsort label-1779
SELECT DISTINCT 45, - 19 * + - 7 * + - CAST ( - 78 AS INTEGER ) - - 64 + + 6 AS col2
----
45
10444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1780
SELECT ALL 42 - + 93 + - + MAX( 59 ) + 7 DIV - 74 AS col0, - 98 * - 11 + - + 47 + MAX( ( 33 ) ) * + CAST( 60 AS SIGNED ) + + - 16
----
-110
2995

skipif mysql # not compatible
query II rowsort label-1780
SELECT ALL 42 - + 93 + - + MAX ( 59 ) + 7 / - 74 AS col0, - 98 * - 11 + - + 47 + MAX ( ( 33 ) ) * + CAST ( 60 AS INTEGER ) + + - 16
----
-110
2995

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

query I rowsort
SELECT + 0 - - 37 - 20
----
17

query I rowsort
SELECT - ( + - 97 ) AS col0
----
97

query I rowsort
SELECT + 65 * - 75 * - 42
----
204750

query I rowsort
SELECT ALL 70 * 97
----
6790

query I rowsort
SELECT + 9 + + + 81
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT ALL - 25 * 63 + + COUNT( ALL - 81 ) AS col1
----
-1574

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL - 25 * 63 + + COUNT ( ALL - 81 ) AS col1
----
-1574

query I rowsort
SELECT + - 19 * 23 AS col1
----
-437

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT DISTINCT 24 * + COUNT( ALL + 71 ) + 12
----
36

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT 24 * + COUNT ( ALL + 71 ) + 12
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1791
SELECT - + ( + + CAST( NULL AS SIGNED ) ) * 76 * + SUM( + 63 ) + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT - + ( + + CAST ( NULL AS INTEGER ) ) * 76 * + SUM ( + 63 ) + - 36
----
NULL

query II rowsort
SELECT ALL + - 42 AS col1, 29
----
-42
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1793
SELECT ALL - + 15 DIV + 30 + 51 + - NULLIF ( + 23, NULLIF ( - 44, 25 ) ) * 25 + - SUM( ALL - 54 ) AS col2
----
-470

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL - + 15 / + 30 + 51 + - NULLIF ( + 23, NULLIF ( - 44, 25 ) ) * 25 + - SUM ( ALL - 54 ) AS col2
----
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT + 25 + - COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1794
SELECT + 25 + - COUNT ( * ) AS col2
----
24

query I rowsort
SELECT + + 92 * ( 74 ) AS col2
----
6808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1796
SELECT + ( - 87 ) + + 21 + SUM( DISTINCT - + CASE - 1 WHEN + 22 THEN - 4 END ) - SUM( ALL + CAST( + 39 AS SIGNED ) ) * COUNT( * ) / 28 * COUNT( * ) + + 3 / - 39 + 93 * + COUNT( * ) + - SUM( - 90 ) * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT + ( - 87 ) + + 21 + SUM ( DISTINCT - + CASE - 1 WHEN + 22 THEN - 4 END ) - SUM ( ALL + CAST ( + 39 AS INTEGER ) ) * COUNT ( * ) / 28 * COUNT ( * ) + + 3 / - 39 + 93 * + COUNT ( * ) + - SUM ( - 90 ) * 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT - 9 - - COUNT( * ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-1797
SELECT - 9 - - COUNT ( * ) col2
----
-8

query II rowsort
SELECT 72, - 99 AS col2
----
72
-99

query I rowsort
SELECT 59 * - + 74 * - - 75 + - + 82
----
-327532

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL + - 18 * - COUNT( * ) / + ( + + 88 ) + + CASE - 53 WHEN 10 * + ( 49 ) + + 21 THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL + - 18 * - COUNT ( * ) / + ( + + 88 ) + + CASE - 53 WHEN 10 * + ( 49 ) + + 21 THEN - COUNT ( * ) END AS col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT DISTINCT + 4 * + CASE - - 2 WHEN 91 + + 52 * + + 35 * + - MAX( DISTINCT - 62 ) - + 2 THEN + - 73 + - 81 + + 35 ELSE NULL END * - - 6 * - 33 + + 38 + 35 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT + 4 * + CASE - - 2 WHEN 91 + + 52 * + + 35 * + - MAX ( DISTINCT - 62 ) - + 2 THEN + - 73 + - 81 + + 35 ELSE NULL END * - - 6 * - 33 + + 38 + 35 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT DISTINCT + - 65 * + 19 + + COUNT( * ) * + 81 * + + 2 + COUNT( * ) * + + 57 AS col1
----
-1016

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT + - 65 * + 19 + + COUNT ( * ) * + 81 * + + 2 + COUNT ( * ) * + + 57 AS col1
----
-1016

query I rowsort
SELECT - 85 + 43 * + 72 AS col1
----
3011

query I rowsort
SELECT ALL + 41 * 16 * + 43 + + 10 + 67
----
28285

query I rowsort
SELECT 67 * + + ( - 82 ) + + 80
----
-5414

query I rowsort
SELECT - 73 * 90 AS col1
----
-6570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1809
SELECT - CASE + CAST( - 98 AS SIGNED ) WHEN 99 + 84 - + 91 THEN - SUM( DISTINCT + 78 ) WHEN - + 40 * + 67 THEN NULL END * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT - CASE + CAST ( - 98 AS INTEGER ) WHEN 99 + 84 - + 91 THEN - SUM ( DISTINCT + 78 ) WHEN - + 40 * + 67 THEN NULL END * - 21
----
NULL

query I rowsort
SELECT DISTINCT 89 * - 63 - - + 71 AS col1
----
-5536

query I rowsort
SELECT NULLIF ( + - 33, 12 / + + 73 * - 93 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT - COALESCE ( - + 90, + + 3 + + + 29 * + + 83, COUNT( * ) ) * + 29 AS col1
----
2610

skipif mysql # not compatible
query I rowsort label-1812
SELECT - COALESCE ( - + 90, + + 3 + + + 29 * + + 83, COUNT ( * ) ) * + 29 AS col1
----
2610

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL ( - MAX( + - CASE WHEN NOT NULL <= ( NULL ) THEN + 30 ELSE - ( + 18 ) END ) )
----
-18

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL ( - MAX ( + - CASE WHEN NOT NULL <= ( NULL ) THEN + 30 ELSE - ( + 18 ) END ) )
----
-18

query I rowsort
SELECT DISTINCT ( + + 23 )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1815
SELECT - ( ( 8 ) ) DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-1815
SELECT - ( ( 8 ) ) / + 37
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1816
SELECT ALL + 14 DIV + COUNT( * ) AS col2, 39 * - 10 - - COUNT( * )
----
14
-389

skipif mysql # not compatible
query II rowsort label-1816
SELECT ALL + 14 / + COUNT ( * ) AS col2, 39 * - 10 - - COUNT ( * )
----
14
-389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1817
SELECT - CAST( NULL AS SIGNED ) + + 56 * + 0 + - + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT - CAST ( NULL AS INTEGER ) + + 56 * + 0 + - + 66 AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( - 14, 86 * + 19 ) + + 19 AS col2
----
33

query I rowsort
SELECT - 83 * 41 * 52
----
-176956

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT - COUNT( * ) + 99 - + 42 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-1820
SELECT - COUNT ( * ) + 99 - + 42 AS col2
----
56

query II rowsort
SELECT + 6 - - - 48 + + 9 * 72 * - 78 + + - 97 + + + 12 AS col2, 83 + + + 80 + - - 29
----
-50671
192

query I rowsort
SELECT - ( - 78 ) AS col0
----
78

query I rowsort
SELECT 74 + + 74 + - 19 AS col0
----
129

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

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

query I rowsort
SELECT 83 * + + 53
----
4399

onlyif mysql # aggregate syntax: 
query II rowsort label-1826
SELECT DISTINCT COUNT( DISTINCT + - 68 ) AS col2, 9
----
1
9

skipif mysql # not compatible
query II rowsort label-1826
SELECT DISTINCT COUNT ( DISTINCT + - 68 ) AS col2, 9
----
1
9

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1829
SELECT ALL AVG ( DISTINCT - - ( - - CAST( NULL AS SIGNED ) ) ) + + MAX( + 83 ) + + 88 / 36 - + - SUM( - + 20 ) + CAST( NULL AS SIGNED ) + - CAST( - 75 AS SIGNED ) * 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL AVG ( DISTINCT - - ( - - CAST ( NULL AS INTEGER ) ) ) + + MAX ( + 83 ) + + 88 / 36 - + - SUM ( - + 20 ) + CAST ( NULL AS INTEGER ) + - CAST ( - 75 AS INTEGER ) * 78 AS col0
----
NULL

query I rowsort
SELECT - 57 + 12 + 32 AS col0
----
-13

query I rowsort
SELECT - CASE WHEN ( NULL ) IS NOT NULL THEN NULL WHEN NOT + 43 <= - 56 THEN - 93 END
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1832
SELECT 85 * COUNT( * ) + CAST( - 19 AS SIGNED ), - 98 AS col2
----
66
-98

skipif mysql # not compatible
query II rowsort label-1832
SELECT 85 * COUNT ( * ) + CAST ( - 19 AS INTEGER ), - 98 AS col2
----
66
-98

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT + + CAST( + 38 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-1835
SELECT + + CAST ( + 38 AS INTEGER )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1836
SELECT 77 DIV - CAST( 93 AS SIGNED ) * + COALESCE ( CAST( - - 95 AS SIGNED ), + ( - 64 ) * - + 76 * COALESCE ( + - 41, 46 ) + + + 57, - 7 ) * + COUNT( * ) + - - 12 * + + 80 + 42 + + + 15 DIV COALESCE ( + 98, + MAX( + 50 ) ) AS col1
----
1002

skipif mysql # not compatible
query I rowsort label-1836
SELECT 77 / - CAST ( 93 AS INTEGER ) * + COALESCE ( CAST ( - - 95 AS INTEGER ), + ( - 64 ) * - + 76 * COALESCE ( + - 41, 46 ) + + + 57, - 7 ) * + COUNT ( * ) + - - 12 * + + 80 + 42 + + + 15 / COALESCE ( + 98, + MAX ( + 50 ) ) AS col1
----
1002

query I rowsort
SELECT ALL + 8 + + + 96 AS col0
----
104

query I rowsort
SELECT DISTINCT + 50 + + 40 * - 30 + 92 AS col2
----
-1058

query I rowsort
SELECT ALL - - 99 col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1840
SELECT - 73 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-1840
SELECT - 73 / 89
----
0

query I rowsort
SELECT ALL 43 + - 55 AS col1
----
-12

query II rowsort
SELECT DISTINCT + 58 * 82 * - 82 * + 0 AS col1, - 74
----
0
-74

query II rowsort
SELECT 47 * - 49 AS col1, 90
----
-2303
90

query I rowsort
SELECT NULLIF ( - 49, + 71 * - ( - 25 ) )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1845
SELECT ALL 67 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL 67 / - 98
----
0

query II rowsort
SELECT 10, 33 AS col2
----
10
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1847
SELECT - 60 * - 18 * - 69 * 56 - + - CASE 86 WHEN 34 THEN NULL WHEN - CAST( 10 AS DECIMAL ) * COUNT( DISTINCT - 41 ) + + COUNT( * ) + + 36 + - 6 + + 52 THEN 32 + + + MIN( DISTINCT - 32 ) + ( 43 ) + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT - 60 * - 18 * - 69 * 56 - + - CASE 86 WHEN 34 THEN NULL WHEN - CAST ( 10 AS REAL ) * COUNT ( DISTINCT - 41 ) + + COUNT ( * ) + + 36 + - 6 + + 52 THEN 32 + + + MIN ( DISTINCT - 32 ) + ( 43 ) + 66 END
----
NULL

query I rowsort
SELECT 78 * + - 36 AS col1
----
-2808

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1849
SELECT ALL - 81 - + 8 DIV - + 92 + + 53 + 67 AS col1, - CAST( NULL AS SIGNED )
----
39
NULL

skipif mysql # not compatible
query II rowsort label-1849
SELECT ALL - 81 - + 8 / - + 92 + + 53 + 67 AS col1, - CAST ( NULL AS INTEGER )
----
39
NULL

query I rowsort
SELECT DISTINCT + 27 * + 80
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT DISTINCT 66 - 79 + - + 3 - 63 * - MIN( DISTINCT - 49 ) AS col2
----
-3103

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT 66 - 79 + - + 3 - 63 * - MIN ( DISTINCT - 49 ) AS col2
----
-3103

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

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL + 9 * COUNT ( * ) AS col1
----
9

query I rowsort
SELECT ALL 42 * - 49
----
-2058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1854
SELECT CAST( + 79 AS SIGNED ) * COUNT( * ) * - + COUNT( * ) + + 40 + + + 72
----
33

skipif mysql # not compatible
query I rowsort label-1854
SELECT CAST ( + 79 AS INTEGER ) * COUNT ( * ) * - + COUNT ( * ) + + 40 + + + 72
----
33

query I rowsort
SELECT ALL + 9 * + 91
----
819

query II rowsort
SELECT 96 AS col2, 63 col2
----
96
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT COUNT( * ) + - 51
----
-50

skipif mysql # not compatible
query I rowsort label-1857
SELECT COUNT ( * ) + - 51
----
-50

query II rowsort
SELECT 4, 82 * 73 * - + 43 AS col2
----
4
-257398

onlyif mysql # aggregate syntax: 
query II rowsort label-1859
SELECT 9 + COUNT( 91 ) * - 4 + - 50 AS col1, 90 + + 39 AS col0
----
-45
129

skipif mysql # not compatible
query II rowsort label-1859
SELECT 9 + COUNT ( 91 ) * - 4 + - 50 AS col1, 90 + + 39 AS col0
----
-45
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT 83 * - - COUNT( * ) * + CAST( - + 2 AS SIGNED )
----
-166

skipif mysql # not compatible
query I rowsort label-1860
SELECT 83 * - - COUNT ( * ) * + CAST ( - + 2 AS INTEGER )
----
-166

query I rowsort
SELECT ALL 59 + - 97 + + 23 + - 20 * - 72 * 21
----
30225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1862
SELECT DISTINCT - CASE + CAST( NULL AS SIGNED ) WHEN 69 THEN NULL WHEN + 0 DIV - MIN( DISTINCT - 23 ) THEN COUNT( * ) END DIV ( - 17 ) + + + 62 col1, 47 DIV + CAST( + 31 AS SIGNED )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1862
SELECT DISTINCT - CASE + CAST ( NULL AS INTEGER ) WHEN 69 THEN NULL WHEN + 0 / - MIN ( DISTINCT - 23 ) THEN COUNT ( * ) END / ( - 17 ) + + + 62 col1, 47 / + CAST ( + 31 AS INTEGER )
----
NULL
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT - MAX( + 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1864
SELECT - MAX ( + 31 ) AS col1
----
-31

query I rowsort
SELECT ALL - 33 + 99 AS col0
----
66

query I rowsort
SELECT 74 * 44 AS col2
----
3256

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT ALL - 22 + - + ( - 5 ) + 79 DIV - + 17 + ( - 27 ) + + + ( + 71 ) + 42 * + 29 * 92 AS col1
----
112079

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL - 22 + - + ( - 5 ) + 79 / - + 17 + ( - 27 ) + + + ( + 71 ) + 42 * + 29 * 92 AS col1
----
112079

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT NULLIF ( + 58, - 88 ) * + 96 * - + 40 col0, COUNT( * ) AS col1
----
-222720
1

skipif mysql # not compatible
query II rowsort label-1868
SELECT NULLIF ( + 58, - 88 ) * + 96 * - + 40 col0, COUNT ( * ) AS col1
----
-222720
1

query I rowsort
SELECT + 80 - + 66 - + 72 AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1870
SELECT + 23, - ( CAST( NULL AS SIGNED ) ) * - 30 + - + 84 AS col0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-1870
SELECT + 23, - ( CAST ( NULL AS INTEGER ) ) * - 30 + - + 84 AS col0
----
23
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT 0 + - 73 - COUNT( * ) + + 57
----
-17

skipif mysql # not compatible
query I rowsort label-1873
SELECT 0 + - 73 - COUNT ( * ) + + 57
----
-17

query I rowsort
SELECT DISTINCT + + ( 37 ) * + 4 + + ( + 27 )
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT - + MAX( - + 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-1875
SELECT - + MAX ( - + 89 ) AS col0
----
89

query I rowsort
SELECT ALL + 37 * + - 51 * - 12 + 87 AS col1
----
22731

query I rowsort
SELECT ALL - - 65 * 80 * + 79 + 49 + + + 1 + 56 AS col0
----
410906

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1878
SELECT - 68 DIV + + 56 - + + COUNT( * ) AS col0, + 98
----
-2
98

skipif mysql # not compatible
query II rowsort label-1878
SELECT - 68 / + + 56 - + + COUNT ( * ) AS col0, + 98
----
-2
98

query I rowsort
SELECT ALL + + 59 * - NULLIF ( - + 43, - 96 )
----
2537

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT MIN( DISTINCT - 41 ) - - 25 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1880
SELECT MIN ( DISTINCT - 41 ) - - 25 AS col2
----
-16

query I rowsort
SELECT + COALESCE ( + ( + + 0 ), 75 ) col1
----
0

query I rowsort
SELECT ALL - + 54 col1
----
-54

query I rowsort
SELECT 48 + - - 40 AS col2
----
88

query I rowsort
SELECT + - 92 col1
----
-92

query I rowsort
SELECT 85 * + 30 + - 62
----
2488

query I rowsort
SELECT 78 - + 60
----
18

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

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL 61 * - CAST ( NULL AS INTEGER ) * + - 7
----
NULL

query I rowsort
SELECT 49 * + + 50
----
2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1889
SELECT ALL - ( + ( + 7 ) ) DIV + COALESCE ( - 21, ( + 33 ) DIV - + 23 + - CASE 81 WHEN 84 THEN - 40 WHEN - + 51 THEN - 41 ELSE + + CAST( + COUNT( * ) AS SIGNED ) END + - - 13 DIV - + 44, COALESCE ( 87, 2 ) - - CAST( 24 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL - ( + ( + 7 ) ) / + COALESCE ( - 21, ( + 33 ) / - + 23 + - CASE 81 WHEN 84 THEN - 40 WHEN - + 51 THEN - 41 ELSE + + CAST ( + COUNT ( * ) AS INTEGER ) END + - - 13 / - + 44, COALESCE ( 87, 2 ) - - CAST ( 24 AS INTEGER ) )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1891
SELECT + MIN( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1891
SELECT + MIN ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

query II rowsort
SELECT ALL - 29 AS col2, + 87 * 9 AS col2
----
-29
783

query I rowsort
SELECT ALL 25 * ( + 25 )
----
625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1894
SELECT COUNT( * ) * - CAST( NULL AS DECIMAL ) * + + ( - CAST( 41 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1894
SELECT COUNT ( * ) * - CAST ( NULL AS REAL ) * + + ( - CAST ( 41 AS INTEGER ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1895
SELECT COUNT ( ALL + - 38 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1896
SELECT COUNT( 59 ) DIV COUNT( * ) + - 13
----
-12

skipif mysql # not compatible
query I rowsort label-1896
SELECT COUNT ( 59 ) / COUNT ( * ) + - 13
----
-12

query II rowsort
SELECT ALL - 29 col1, + 20 + 22
----
-29
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT 41 * - 27 * 6 + + 4 * - 6 * 26 * COUNT( * ) AS col2
----
-7266

skipif mysql # not compatible
query I rowsort label-1898
SELECT 41 * - 27 * 6 + + 4 * - 6 * 26 * COUNT ( * ) AS col2
----
-7266

onlyif mysql # DIV for integer division: 
query II rowsort label-1899
SELECT 68 AS col2, - 70 DIV - 77 AS col1
----
68
0

skipif mysql # not compatible
query II rowsort label-1899
SELECT 68 AS col2, - 70 / - 77 AS col1
----
68
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1900
SELECT + 90, COALESCE ( + + NULLIF ( - COALESCE ( + ( + + 29 ), + + COUNT( DISTINCT + 84 ) * + 28 + + + 83 - + - 67 + + 42 DIV - 47, 48 ), 14 ), + 62, + + 23 ) AS col1
----
90
-29

skipif mysql # not compatible
query II rowsort label-1900
SELECT + 90, COALESCE ( + + NULLIF ( - COALESCE ( + ( + + 29 ), + + COUNT ( DISTINCT + 84 ) * + 28 + + + 83 - + - 67 + + 42 / - 47, 48 ), 14 ), + 62, + + 23 ) AS col1
----
90
-29

query I rowsort
SELECT + ( + + 78 ) + - + 94 AS col1
----
-16

query II rowsort
SELECT 81, 10 AS col0
----
81
10

query I rowsort
SELECT ALL 59 + + 38
----
97

query I rowsort
SELECT DISTINCT 18 + + + 28
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT - COALESCE ( - + NULLIF ( + 12, - + CAST( NULL AS SIGNED ) ), - COALESCE ( 9, - 57 ), - 5 ) col2
----
12

skipif mysql # not compatible
query I rowsort label-1905
SELECT - COALESCE ( - + NULLIF ( + 12, - + CAST ( NULL AS INTEGER ) ), - COALESCE ( 9, - 57 ), - 5 ) col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-1906
SELECT ALL - 78 + - 72, 30 - COUNT( * ) AS col1
----
-150
29

skipif mysql # not compatible
query II rowsort label-1906
SELECT ALL - 78 + - 72, 30 - COUNT ( * ) AS col1
----
-150
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT DISTINCT 53 + - CAST( - COUNT( ALL - 59 ) AS SIGNED ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT 53 + - CAST ( - COUNT ( ALL - 59 ) AS INTEGER ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT ALL - 93 * 32 * + MAX( 91 )
----
-270816

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL - 93 * 32 * + MAX ( 91 )
----
-270816

query I rowsort
SELECT - + 46 AS col2
----
-46

query I rowsort
SELECT - - 82 + + 80 col1
----
162

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

query I rowsort
SELECT + 78 + - 80 + + - 21 AS col1
----
-23

query I rowsort
SELECT - 61 + ( - 68 )
----
-129

query II rowsort
SELECT DISTINCT + ( - 98 ) AS col1, + 41 + + 30
----
-98
71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT - + 55 + + - CASE + 83 WHEN + 65 * + 2 + 65 THEN + - COUNT( * ) * + + COUNT( * ) WHEN - + 53 + + 94 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT - + 55 + + - CASE + 83 WHEN + 65 * + 2 + 65 THEN + - COUNT ( * ) * + + COUNT ( * ) WHEN - + 53 + + 94 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT DISTINCT - + 69 DIV 37 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - + 69 / 37 AS col1
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1919
SELECT - + COALESCE ( 75, + - 99 + + 98 + CASE WHEN NOT ( NULL ) IS NULL THEN - CASE MAX( - - COALESCE ( + 89, - 96 ) ) WHEN - 30 THEN + - 24 WHEN - + ( COUNT( * ) ) THEN - 46 ELSE NULL END END, - COUNT( + ( - - 26 ) ) ) + NULLIF ( CAST( NULL AS SIGNED ), 18 ) * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1919
SELECT - + COALESCE ( 75, + - 99 + + 98 + CASE WHEN NOT ( NULL ) IS NULL THEN - CASE MAX ( - - COALESCE ( + 89, - 96 ) ) WHEN - 30 THEN + - 24 WHEN - + ( COUNT ( * ) ) THEN - 46 ELSE NULL END END, - COUNT ( + ( - - 26 ) ) ) + NULLIF ( CAST ( NULL AS INTEGER ), 18 ) * 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1920
SELECT ALL - 0 DIV CAST( + ( + AVG ( ( - 62 ) ) ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL - 0 / CAST ( + ( + AVG ( ( - 62 ) ) ) AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT - ( - + ( + 43 ) ) * - 36 - + - 11 AS col1
----
-1537

query I rowsort
SELECT ALL - - 32 * - - 67 + + ( 92 ) + + 96
----
2332

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT + - MAX( 22 ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-1923
SELECT + - MAX ( 22 ) col2
----
-22

query II rowsort
SELECT DISTINCT + ( + + 55 ), - 36 col2
----
55
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1925
SELECT DISTINCT - 36 * NULLIF ( - MAX( + - CAST( 69 AS SIGNED ) ), - - 17 / - - 70 - - + COUNT( * ) ) AS col0
----
-2484

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT - 36 * NULLIF ( - MAX ( + - CAST ( 69 AS INTEGER ) ), - - 17 / - - 70 - - + COUNT ( * ) ) AS col0
----
-2484

query II rowsort
SELECT DISTINCT - 27 * + 6 AS col0, 92 AS col1
----
-162
92

query I rowsort
SELECT - 8 * + + 27 AS col2
----
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1928
SELECT + 13 * + 82 * + CASE - + 11 WHEN MIN( ALL - 38 ) THEN - + 35 * 27 * + ( - + 69 ) * + + CAST( + 0 AS SIGNED ) * - 80 * CAST( - 21 AS SIGNED ) ELSE - 69 END
----
-73554

skipif mysql # not compatible
query I rowsort label-1928
SELECT + 13 * + 82 * + CASE - + 11 WHEN MIN ( ALL - 38 ) THEN - + 35 * 27 * + ( - + 69 ) * + + CAST ( + 0 AS INTEGER ) * - 80 * CAST ( - 21 AS INTEGER ) ELSE - 69 END
----
-73554

query I rowsort
SELECT COALESCE ( - - 95, - 6 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT COALESCE ( - - MAX( DISTINCT 60 ), - - 90 + 16 * - 72 )
----
60

skipif mysql # not compatible
query I rowsort label-1930
SELECT COALESCE ( - - MAX ( DISTINCT 60 ), - - 90 + 16 * - 72 )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1931
SELECT ALL 72 DIV - - 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL 72 / - - 57 AS col2
----
1

query I rowsort
SELECT ALL + 34 * + 62 + - 51
----
2057

onlyif mysql # aggregate syntax: 
query II rowsort label-1933
SELECT ALL - MAX( + 11 ) * 37 + ( + - 43 ) * 30 + COUNT( * ) AS col1, ( - 38 ) AS col1
----
-1696
-38

skipif mysql # not compatible
query II rowsort label-1933
SELECT ALL - MAX ( + 11 ) * 37 + ( + - 43 ) * 30 + COUNT ( * ) AS col1, ( - 38 ) AS col1
----
-1696
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT DISTINCT COUNT( * ) * 78 + 97 + + 8 * + 12
----
271

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT COUNT ( * ) * 78 + 97 + + 8 * + 12
----
271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1935
SELECT - CAST( + 82 AS SIGNED ) * - COUNT( - 34 ) + + 21 - 25 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT - CAST ( + 82 AS INTEGER ) * - COUNT ( - 34 ) + + 21 - 25 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT ALL - 7 * COUNT( * ) + 70
----
63

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL - 7 * COUNT ( * ) + 70
----
63

query I rowsort
SELECT + 49 * - ( - 69 ) AS col1
----
3381

query I rowsort
SELECT - 68 * - - 92 + + 82 + - - 80 AS col0
----
-6094

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT - - COUNT( * ) + - + 10 * 86
----
-859

skipif mysql # not compatible
query I rowsort label-1939
SELECT - - COUNT ( * ) + - + 10 * 86
----
-859

query I rowsort
SELECT ALL CASE + 97 WHEN - 30 + - + 7 * + 10 THEN 41 + + + 31 / + 73 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT ALL + 65 - 96 - + 10 DIV + - 72 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + 65 - 96 - + 10 / + - 72 AS col0
----
-31

query I rowsort
SELECT + - 59 * + 19 + + + 37 + 59
----
-1025

onlyif mysql # DIV for integer division: 
query I rowsort label-1943
SELECT DISTINCT - - 34 - + 54 + - + 63 DIV - 69 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT - - 34 - + 54 + - + 63 / - 69 AS col0
----
-20

query I rowsort
SELECT + 65 * + 45 * + 50
----
146250

query I rowsort
SELECT - 53 * - + 44 * - - 68 * - 20 AS col1
----
-3171520

query I rowsort
SELECT + 92 + - 11 AS col1
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-1947
SELECT - 62 DIV + 96 * 7, + 39 AS col2
----
0
39

skipif mysql # not compatible
query II rowsort label-1947
SELECT - 62 / + 96 * 7, + 39 AS col2
----
0
39

query I rowsort
SELECT ALL - 38 * + ( + - 13 ) * + + 17 - + 69 AS col1
----
8329

query I rowsort
SELECT + 6 + + 93 AS col2
----
99

query I rowsort
SELECT + CASE WHEN NOT + 0 <= + + 30 THEN + 60 END
----
NULL

query II rowsort
SELECT ALL - 94 * - ( + 39 ) AS col1, 67 * - ( - 16 ) col2
----
3666
1072

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT - 20 - 1 DIV - - 82 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1954
SELECT - 20 - 1 / - - 82 AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1955
SELECT - ( - NULLIF ( + 79, - + 30 DIV 74 + - + ( - 12 ) DIV - - CAST( NULL AS SIGNED ) + 9 + + 84 ) ) DIV - 24
----
-3

skipif mysql # not compatible
query I rowsort label-1955
SELECT - ( - NULLIF ( + 79, - + 30 / 74 + - + ( - 12 ) / - - CAST ( NULL AS INTEGER ) + 9 + + 84 ) ) / - 24
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1956
SELECT ALL 16 DIV MAX( 22 ) + COUNT( * ) + 8 * + 20 * 56 * + 4 + + COUNT( * )
----
35842

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL 16 / MAX ( 22 ) + COUNT ( * ) + 8 * + 20 * 56 * + 4 + + COUNT ( * )
----
35842

query II rowsort
SELECT + 23 AS col1, 77
----
23
77

query II rowsort
SELECT + 77, 18 AS col0
----
77
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1959
SELECT ALL + 50 * - - CASE 77 WHEN - + 75 + 30 THEN NULL WHEN - COUNT( * ) - + - COUNT( * ) THEN NULL WHEN 76 * 2 * CASE + COUNT( * ) WHEN + + CAST( - 0 AS SIGNED ) THEN 66 ELSE NULL END + + 25 - 65 * + + 10 + - MAX( + 88 ) THEN - 30 + - CAST( - CAST( 87 AS SIGNED ) AS SIGNED ) + 60 * - MAX( 69 + - 32 ) WHEN + 54 * 43 + 47 THEN 36 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL + 50 * - - CASE 77 WHEN - + 75 + 30 THEN NULL WHEN - COUNT ( * ) - + - COUNT ( * ) THEN NULL WHEN 76 * 2 * CASE + COUNT ( * ) WHEN + + CAST ( - 0 AS INTEGER ) THEN 66 ELSE NULL END + + 25 - 65 * + + 10 + - MAX ( + 88 ) THEN - 30 + - CAST ( - CAST ( 87 AS INTEGER ) AS INTEGER ) + 60 * - MAX ( 69 + - 32 ) WHEN + 54 * 43 + 47 THEN 36 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1960
SELECT 74 DIV - - 63 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1960
SELECT 74 / - - 63 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1961
SELECT MIN( + 88 ) * - CASE + - CASE 49 WHEN 25 THEN + + COALESCE ( 54, + 64 + - - 60 * 98 * - 94 + - + 23, 47 ) ELSE NULL END WHEN - 95 + - + ( - 10 ) THEN - - COUNT( * ) END * - 54 + 64 + + 86 AS col2, 30 AS col1
----
NULL
30

skipif mysql # not compatible
query II rowsort label-1961
SELECT MIN ( + 88 ) * - CASE + - CASE 49 WHEN 25 THEN + + COALESCE ( 54, + 64 + - - 60 * 98 * - 94 + - + 23, 47 ) ELSE NULL END WHEN - 95 + - + ( - 10 ) THEN - - COUNT ( * ) END * - 54 + 64 + + 86 AS col2, 30 AS col1
----
NULL
30

query I rowsort
SELECT ALL + 24 + + 17 col2
----
41

query I rowsort
SELECT ALL - NULLIF ( + 23, + 38 )
----
-23

query I rowsort
SELECT ALL 1 + 91 * 90 + + 92
----
8283

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT 3 + + - 65 + 38 / - + 80 * 87 - + CASE 9 WHEN - 30 THEN NULL WHEN 0 * - COUNT( * ) - + 96 + - 15 / 53 THEN 16 WHEN + - 86 + + COUNT( * ) THEN - 2 ELSE NULL END * - 20 + + 79 + + CASE WHEN NOT - 46 IN ( 51 ) THEN 32 END * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1965
SELECT 3 + + - 65 + 38 / - + 80 * 87 - + CASE 9 WHEN - 30 THEN NULL WHEN 0 * - COUNT ( * ) - + 96 + - 15 / 53 THEN 16 WHEN + - 86 + + COUNT ( * ) THEN - 2 ELSE NULL END * - 20 + + 79 + + CASE WHEN NOT - 46 IN ( 51 ) THEN 32 END * + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL - 88 * COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL - 88 * COUNT ( * ) AS col2
----
-88

query I rowsort
SELECT 9 * - 71 AS col1
----
-639

query I rowsort
SELECT ALL - 79 + - 96 col2
----
-175

query I rowsort
SELECT ALL - 15 + + 71
----
56

query I rowsort
SELECT 89 + + + 4
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT 93 * - + COALESCE ( + + NULLIF ( + + 89, + - MIN( DISTINCT 21 ) ), - 30 * 36 ) AS col0
----
-8277

skipif mysql # not compatible
query I rowsort label-1971
SELECT 93 * - + COALESCE ( + + NULLIF ( + + 89, + - MIN ( DISTINCT 21 ) ), - 30 * 36 ) AS col0
----
-8277

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT COUNT( * ) * + 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1972
SELECT COUNT ( * ) * + 40 AS col2
----
40

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

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL - + COUNT ( ALL ( - + CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1974
SELECT + 60 + 76 * CAST( + COUNT( * ) AS SIGNED ) + + 29 + - 43 + + 46
----
168

skipif mysql # not compatible
query I rowsort label-1974
SELECT + 60 + 76 * CAST ( + COUNT ( * ) AS INTEGER ) + + 29 + - 43 + + 46
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-1975
SELECT ALL + 16 - + ( - 50 ) DIV + 60 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL + 16 - + ( - 50 ) / + 60 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1976
SELECT MAX( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

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

query I rowsort
SELECT ALL 13 * - - 96 * - 69 * 94 AS col1
----
-8094528

query I rowsort
SELECT 29 + 46
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT - NULLIF ( + - COUNT( * ), + 29 + + 62 - 2 ) + + COALESCE ( - - SUM( - 68 ), 78 )
----
-67

skipif mysql # not compatible
query I rowsort label-1979
SELECT - NULLIF ( + - COUNT ( * ), + 29 + + 62 - 2 ) + + COALESCE ( - - SUM ( - 68 ), 78 )
----
-67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1981
SELECT + NULLIF ( - - 81, ( 32 ) + - 28 - - SUM( DISTINCT - COALESCE ( - 64, + + CAST( NULL AS SIGNED ) - 16, + ( + 45 ) * - 12 ) ) ) DIV + ( - - 22 )
----
3

skipif mysql # not compatible
query I rowsort label-1981
SELECT + NULLIF ( - - 81, ( 32 ) + - 28 - - SUM ( DISTINCT - COALESCE ( - 64, + + CAST ( NULL AS INTEGER ) - 16, + ( + 45 ) * - 12 ) ) ) / + ( - - 22 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1982
SELECT - 23 + CAST( + ( + ( - 85 ) ) AS SIGNED ) * 91 - - + 48 * + + 30 + + - 64 + - 5
----
-6387

skipif mysql # not compatible
query I rowsort label-1982
SELECT - 23 + CAST ( + ( + ( - 85 ) ) AS INTEGER ) * 91 - - + 48 * + + 30 + + - 64 + - 5
----
-6387

query I rowsort
SELECT 8 + 63 * - 19 + 96 AS col1
----
-1093

onlyif mysql # aggregate syntax: 
query II rowsort label-1984
SELECT + 32 * MIN( - - 12 ) * COUNT( * ), 42 * - 5 + - 44 AS col0
----
384
-254

skipif mysql # not compatible
query II rowsort label-1984
SELECT + 32 * MIN ( - - 12 ) * COUNT ( * ), 42 * - 5 + - 44 AS col0
----
384
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT COUNT( - 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT COUNT ( - 75 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1986
SELECT CAST( 50 AS SIGNED ) + - 32 - 14 AS col0, + 75 AS col0
----
4
75

skipif mysql # not compatible
query II rowsort label-1986
SELECT CAST ( 50 AS INTEGER ) + - 32 - 14 AS col0, + 75 AS col0
----
4
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT - 26 + + MAX( NULLIF ( - 51, + 74 + 15 ) ) + - 47 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-1987
SELECT - 26 + + MAX ( NULLIF ( - 51, + 74 + 15 ) ) + - 47 AS col1
----
-124

query I rowsort
SELECT ALL + - 64 * + + 97 AS col2
----
-6208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL - COUNT( * ) + ( + MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) ) + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL - COUNT ( * ) + ( + MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) ) + - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT SUM( ALL - ( - 32 ) ) * + + 90 * + 43 + - COUNT( * )
----
123839

skipif mysql # not compatible
query I rowsort label-1990
SELECT SUM ( ALL - ( - 32 ) ) * + + 90 * + 43 + - COUNT ( * )
----
123839

query I rowsort
SELECT ( - 13 ) * + + ( - + 36 ) * - - 25
----
11700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1992
SELECT ALL 43 + - - 17 DIV - 18 + + + COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL 43 + - - 17 / - 18 + + + COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1993
SELECT DISTINCT 95 + SUM( ALL - 25 ) * NULLIF ( + 6, 77 ) DIV + + 68
----
93

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT 95 + SUM ( ALL - 25 ) * NULLIF ( + 6, 77 ) / + + 68
----
93

query I rowsort
SELECT 3 * + 26 AS col0
----
78

query I rowsort
SELECT ALL 89 + 52 * 42 AS col1
----
2273

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL - MIN( DISTINCT + 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL - MIN ( DISTINCT + 58 ) AS col1
----
-58

query I rowsort
SELECT DISTINCT - 2 * - 95 col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT DISTINCT - - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT - - COUNT ( * ) col0
----
1

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

skipif mysql # not compatible
query I rowsort label-2000
SELECT - 72 * - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL + 54 * - CASE + 24 WHEN - 98 - 75 + - COALESCE ( + 79, + 92 + + + 25 + 93 + + 13 ) * - 68 / - 72 THEN + COUNT( DISTINCT 82 ) - - 20 + - ( + AVG ( + 15 ) ) + COUNT( * ) * - 63 + - COUNT( * ) END + + COUNT( * ) * - 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL + 54 * - CASE + 24 WHEN - 98 - 75 + - COALESCE ( + 79, + 92 + + + 25 + 93 + + 13 ) * - 68 / - 72 THEN + COUNT ( DISTINCT 82 ) - - 20 + - ( + AVG ( + 15 ) ) + COUNT ( * ) * - 63 + - COUNT ( * ) END + + COUNT ( * ) * - 34 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2002
SELECT 13 - - - 38 + 83 - + NULLIF ( + + 43, - - 72 ) + MAX( DISTINCT 94 ) - + 26 + - + 43 DIV COUNT( * ) + - 10 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2002
SELECT 13 - - - 38 + 83 - + NULLIF ( + + 43, - - 72 ) + MAX ( DISTINCT 94 ) - + 26 + - + 43 / COUNT ( * ) + - 10 AS col2
----
30

query I rowsort
SELECT ALL - - 25 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2004
SELECT - 38 * - 43 + - - COUNT( * ) - + 55 * - CAST( NULL AS SIGNED ) + 71 + - - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT - 38 * - 43 + - - COUNT ( * ) - + 55 * - CAST ( NULL AS INTEGER ) + 71 + - - 39
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2005
SELECT - + CAST( - 35 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-2005
SELECT - + CAST ( - 35 AS INTEGER )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT ALL + - 50 DIV - + 63 + + 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL + - 50 / - + 63 + + 61 AS col1
----
61

query I rowsort
SELECT + ( + + 55 ) * - + 64
----
-3520

query I rowsort
SELECT ALL + 21 * + 47 * 53 * 44 col2
----
2301684

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2010
SELECT 61 DIV 29 * - MAX( + 32 ) * - + 30 + 91 AS col2
----
2011

skipif mysql # not compatible
query I rowsort label-2010
SELECT 61 / 29 * - MAX ( + 32 ) * - + 30 + 91 AS col2
----
2011

onlyif mysql # DIV for integer division: 
query I rowsort label-2011
SELECT ALL + 77 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL + 77 / - 78
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT DISTINCT - 19 + + + 47 + + - 0 DIV ( + 39 )
----
28

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT - 19 + + + 47 + + - 0 / ( + 39 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2013
SELECT ALL ( CAST( - 33 AS SIGNED ) ) + ( + 56 ) - + 7 + + - 11 * 42 * - - 81
----
-37406

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL ( CAST ( - 33 AS INTEGER ) ) + ( + 56 ) - + 7 + + - 11 * 42 * - - 81
----
-37406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2014
SELECT ALL + + CAST( NULL AS SIGNED ) + + COALESCE ( MIN( ALL CAST( NULL AS SIGNED ) ), - 82, - 16 / - + COUNT( * ) ) + 84 + + + 69 * + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL + + CAST ( NULL AS INTEGER ) + + COALESCE ( MIN ( ALL CAST ( NULL AS INTEGER ) ), - 82, - 16 / - + COUNT ( * ) ) + 84 + + + 69 * + 68 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2015
SELECT - ( + ( COALESCE ( COALESCE ( + 64, + 71 ), COUNT( * ) * CAST( - 5 AS SIGNED ) + + + 22, + - ( - - 91 ), + CAST( 94 AS SIGNED ) ) ) ) AS col1, + 5
----
-64
5

skipif mysql # not compatible
query II rowsort label-2015
SELECT - ( + ( COALESCE ( COALESCE ( + 64, + 71 ), COUNT ( * ) * CAST ( - 5 AS INTEGER ) + + + 22, + - ( - - 91 ), + CAST ( 94 AS INTEGER ) ) ) ) AS col1, + 5
----
-64
5

query I rowsort
SELECT - COALESCE ( - 19, + 14 ) AS col1
----
19

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2018
SELECT ALL 55 + - 4 DIV ( 23 ) DIV 74 * CAST( + 91 AS SIGNED ) * - ( - 3 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL 55 + - 4 / ( 23 ) / 74 * CAST ( + 91 AS INTEGER ) * - ( - 3 ) AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2019
SELECT ALL 31 DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL 31 / + 54
----
0

query I rowsort
SELECT ALL 49 + + + 70
----
119

query I rowsort
SELECT + 55 * - NULLIF ( 26, - - 48 ) AS col1
----
-1430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL NULLIF ( - + CAST( NULL AS SIGNED ), 8 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL NULLIF ( - + CAST ( NULL AS INTEGER ), 8 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT - COUNT( + 67 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2023
SELECT - COUNT ( + 67 ) AS col2
----
-1

query II rowsort
SELECT ALL + 74, + 86 + + + 39 + - ( 61 ) * 48 AS col1
----
74
-2803

query I rowsort
SELECT + NULLIF ( 63, + + NULLIF ( + 42, - 2 ) ) AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2026
SELECT - CAST( + 87 AS SIGNED ) * + - COUNT( + 5 ) + + 66 - + + 32 + - - 7
----
128

skipif mysql # not compatible
query I rowsort label-2026
SELECT - CAST ( + 87 AS INTEGER ) * + - COUNT ( + 5 ) + + 66 - + + 32 + - - 7
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT ALL CASE + 65 WHEN 44 THEN - ( - 70 ) END * + 74 * MAX( DISTINCT - ( + - 25 ) ) - ( + ( 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL CASE + 65 WHEN 44 THEN - ( - 70 ) END * + 74 * MAX ( DISTINCT - ( + - 25 ) ) - ( + ( 13 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT + CAST( - ( 30 ) AS SIGNED ) * - MAX( - 58 ) * - SUM( + - 90 ) * + - ( + ( + 52 ) ) + + NULLIF ( 67, 95 * - 71 * + 60 * ( - 86 ) ) + - + 31
----
8143236

skipif mysql # not compatible
query I rowsort label-2028
SELECT + CAST ( - ( 30 ) AS INTEGER ) * - MAX ( - 58 ) * - SUM ( + - 90 ) * + - ( + ( + 52 ) ) + + NULLIF ( 67, 95 * - 71 * + 60 * ( - 86 ) ) + - + 31
----
8143236

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT CASE + - 87 WHEN + 63 THEN + 54 + + ( + 20 ) * + 33 + - 1 + - COUNT( * ) + - NULLIF ( + + 56, - + 32 ) / 96 WHEN + MAX( DISTINCT 65 ) THEN - COUNT( * ) ELSE + 89 + - 75 END col0
----
14

skipif mysql # not compatible
query I rowsort label-2029
SELECT CASE + - 87 WHEN + 63 THEN + 54 + + ( + 20 ) * + 33 + - 1 + - COUNT ( * ) + - NULLIF ( + + 56, - + 32 ) / 96 WHEN + MAX ( DISTINCT 65 ) THEN - COUNT ( * ) ELSE + 89 + - 75 END col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2030
SELECT 33 * + NULLIF ( ( - 80 ), - - MIN( - 44 ) - - CAST( NULL AS SIGNED ) ) * - - 27 + - 50 + - 85 * 12 + COUNT( * ) - + 42
----
-72391

skipif mysql # not compatible
query I rowsort label-2030
SELECT 33 * + NULLIF ( ( - 80 ), - - MIN ( - 44 ) - - CAST ( NULL AS INTEGER ) ) * - - 27 + - 50 + - 85 * 12 + COUNT ( * ) - + 42
----
-72391

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2031
SELECT + 47 + 33 + - 7 DIV - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-2031
SELECT + 47 + 33 + - 7 / - COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT CASE - 83 WHEN - 82 THEN 77 * - - 75 WHEN - COUNT( * ) - 13 THEN + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT CASE - 83 WHEN - 82 THEN 77 * - - 75 WHEN - COUNT ( * ) - 13 THEN + 86 END
----
NULL

query I rowsort
SELECT DISTINCT 88 * 54 AS col1
----
4752

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2036
SELECT ALL + + COALESCE ( + + 80, + + 43 * - - 11 + 53 + - CAST( + 22 AS SIGNED ) - - 41 + + 62 DIV + SUM( ALL 60 ), - 2 )
----
80

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + + COALESCE ( + + 80, + + 43 * - - 11 + 53 + - CAST ( + 22 AS INTEGER ) - - 41 + + 62 / + SUM ( ALL 60 ), - 2 )
----
80

query I rowsort
SELECT ALL + + ( + 28 ) AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2038
SELECT + - 28 DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-2038
SELECT + - 28 / 54
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2039
SELECT - - COALESCE ( + 72, + 90, NULLIF ( + 29, 41 * + + AVG ( ALL + 39 ) + - 4 ) * + + 4 DIV - COUNT( * ) + + 19 + 4 + - COUNT( - + 12 ) ) * + + 74 * + 70
----
372960

skipif mysql # not compatible
query I rowsort label-2039
SELECT - - COALESCE ( + 72, + 90, NULLIF ( + 29, 41 * + + AVG ( ALL + 39 ) + - 4 ) * + + 4 / - COUNT ( * ) + + 19 + 4 + - COUNT ( - + 12 ) ) * + + 74 * + 70
----
372960

query I rowsort
SELECT + 31 + - 33 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2041
SELECT - + 47 * 32 * MAX( DISTINCT - + CAST( - - 65 AS SIGNED ) ) DIV + - CAST( 85 AS SIGNED ) + - + NULLIF ( - + CAST( COUNT( * ) AS SIGNED ), + - 46 ) + + 33 * + - COUNT( * ) * + - 31 AS col0
----
-126

skipif mysql # not compatible
query I rowsort label-2041
SELECT - + 47 * 32 * MAX ( DISTINCT - + CAST ( - - 65 AS INTEGER ) ) / + - CAST ( 85 AS INTEGER ) + - + NULLIF ( - + CAST ( COUNT ( * ) AS INTEGER ), + - 46 ) + + 33 * + - COUNT ( * ) * + - 31 AS col0
----
-126

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

query I rowsort
SELECT ALL + - 23 * + 14 * - 95 AS col1
----
30590

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2044
SELECT - CAST( + + 12 AS DECIMAL ) * - - CASE - 6 WHEN + 18 + - + 77 THEN 28 / + 80 + - COUNT( * ) WHEN - 22 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT - CAST ( + + 12 AS REAL ) * - - CASE - 6 WHEN + 18 + - + 77 THEN 28 / + 80 + - COUNT ( * ) WHEN - 22 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT DISTINCT + NULLIF ( 63, - 29 * COUNT( * ) + ( - + 93 ) * - - 65 * - 29 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT + NULLIF ( 63, - 29 * COUNT ( * ) + ( - + 93 ) * - - 65 * - 29 ) AS col1
----
63

query I rowsort
SELECT ALL - - 10 + - - 2 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT - + ( 34 ) + - + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-2047
SELECT - + ( 34 ) + - + COUNT ( * )
----
-35

query II rowsort
SELECT ALL - - ( 86 ) + + 41 + + 81 * 68 col0, 16 * + 29
----
5635
464

query I rowsort
SELECT + - 26 * + 1 / - CASE + 74 WHEN 10 THEN NULL WHEN + 93 THEN + 99 + + - 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT - - COALESCE ( - - COUNT( * ), + COUNT( * ) * - 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2050
SELECT - - COALESCE ( - - COUNT ( * ), + COUNT ( * ) * - 99 ) AS col1
----
1

query II rowsort
SELECT + 12 AS col0, - 97 AS col1
----
12
-97

query I rowsort
SELECT ALL - 64 + 97 AS col2
----
33

query I rowsort
SELECT - 61 * 59 * - - 87
----
-313113

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT DISTINCT - COUNT( * ) + 1
----
0

skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT - COUNT ( * ) + 1
----
0

query I rowsort
SELECT ALL + 91 + - 34 col2
----
57

query I rowsort
SELECT DISTINCT - 37 * + 99
----
-3663

query II rowsort
SELECT ALL NULLIF ( - - 61, 24 + 18 ), 47 AS col1
----
61
47

query I rowsort
SELECT - 31 * + 6
----
-186

query I rowsort
SELECT DISTINCT 43 * 79 * 56 AS col0
----
190232

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT DISTINCT - 46 - + 71 + ( - ( 36 ) ) DIV + 67 col1
----
-117

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT - 46 - + 71 + ( - ( 36 ) ) / + 67 col1
----
-117

query I rowsort
SELECT ALL - COALESCE ( + NULLIF ( + 48, - - 4 + 78 ), 78 ) - 12 AS col1
----
-60

query II rowsort
SELECT - 95 * - 49 AS col1, - ( - 28 )
----
4655
28

query I rowsort
SELECT + 1 * - 16 AS col2
----
-16

query I rowsort
SELECT DISTINCT - 20 * 84
----
-1680

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

query I rowsort
SELECT + 41 * + 62 AS col0
----
2542

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2068
SELECT ALL + CASE - - 8 WHEN + + 66 THEN - - 87 + + 55 + - 19 + + + 13 * + 4 + - - CAST( COALESCE ( - - 92, + 53, 14, + - ( + 22 ) ) AS SIGNED ) + CAST( NULL AS SIGNED ) * - + ( - ( + - 15 ) ) * - 40 + - 17 + - 48 * 61 * + 61 + - 72 * - ( ( 25 ) ) WHEN 40 THEN - CASE - COUNT( * ) WHEN + 47 * 31 + 26 THEN 26 END + 78 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL + CASE - - 8 WHEN + + 66 THEN - - 87 + + 55 + - 19 + + + 13 * + 4 + - - CAST ( COALESCE ( - - 92, + 53, 14, + - ( + 22 ) ) AS INTEGER ) + CAST ( NULL AS INTEGER ) * - + ( - ( + - 15 ) ) * - 40 + - 17 + - 48 * 61 * + 61 + - 72 * - ( ( 25 ) ) WHEN 40 THEN - CASE - COUNT ( * ) WHEN + 47 * 31 + 26 THEN 26 END + 78 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2069
SELECT CAST( 81 AS SIGNED ) AS col2, 32 + + + 39
----
81
71

skipif mysql # not compatible
query II rowsort label-2069
SELECT CAST ( 81 AS INTEGER ) AS col2, 32 + + + 39
----
81
71

query II rowsort
SELECT ALL + 99, 9 * + 90 AS col1
----
99
810

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT NULLIF ( + + COUNT( - + 1 ), - ( ( + + 14 ) ) - - 34 ) * + MAX( ALL + 90 ) * + 14 + 15 + - 6 + - + 13 + + - NULLIF ( NULLIF ( 78, - 94 * + 53 + COUNT( * ) ), - - 69 + 4 ) - 7 * - 96 + + 11
----
1861

skipif mysql # not compatible
query I rowsort label-2071
SELECT NULLIF ( + + COUNT ( - + 1 ), - ( ( + + 14 ) ) - - 34 ) * + MAX ( ALL + 90 ) * + 14 + 15 + - 6 + - + 13 + + - NULLIF ( NULLIF ( 78, - 94 * + 53 + COUNT ( * ) ), - - 69 + 4 ) - 7 * - 96 + + 11
----
1861

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

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

query II rowsort
SELECT ALL + + 37 AS col0, + 96
----
37
96

query III rowsort
SELECT 2 AS col1, - 63, - - 7 AS col1
----
2
-63
7

query II rowsort
SELECT + + 27 AS col0, + 3 AS col0
----
27
3

query I rowsort
SELECT ALL + - ( ( - 53 ) ) AS col0
----
53

query I rowsort
SELECT + 90 * + - 32 AS col2
----
-2880

query I rowsort
SELECT + + 60 + + 53 col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT DISTINCT + MAX( DISTINCT - 9 ) * + 20 * + 5
----
-900

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT + MAX ( DISTINCT - 9 ) * + 20 * + 5
----
-900

query I rowsort
SELECT DISTINCT + 43 * + ( - 92 )
----
-3956

query II rowsort
SELECT ALL + - 87, - 40 col0
----
-87
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2082
SELECT DISTINCT 8 * + 98 / - MAX( - CAST( NULL AS SIGNED ) ) + 56 + + 57 / 49 / COUNT( * ) + 2 + - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT 8 * + 98 / - MAX ( - CAST ( NULL AS INTEGER ) ) + 56 + + 57 / 49 / COUNT ( * ) + 2 + - + 12
----
NULL

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

query II rowsort
SELECT + 24 AS col2, - 65 AS col1
----
24
-65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT ALL SUM( ALL - 23 ) + 99
----
76

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL SUM ( ALL - 23 ) + 99
----
76

query II rowsort
SELECT + 57, 38 AS col1
----
57
38

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2088
SELECT + 85 AS col2, 61 DIV CAST( - 24 AS SIGNED ) AS col0
----
85
-2

skipif mysql # not compatible
query II rowsort label-2088
SELECT + 85 AS col2, 61 / CAST ( - 24 AS INTEGER ) AS col0
----
85
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2089
SELECT ALL 89 DIV + 90 col0
----
0

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL 89 / + 90 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2090
SELECT + 28 DIV + - 76 * 96
----
0

skipif mysql # not compatible
query I rowsort label-2090
SELECT + 28 / + - 76 * 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL + SUM( ALL - 73 ) * + 76 * + 37
----
-205276

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL + SUM ( ALL - 73 ) * + 76 * + 37
----
-205276

onlyif mysql # DIV for integer division: 
query I rowsort label-2092
SELECT DISTINCT + 67 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT + 67 / 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2093
SELECT ALL + 5 * 15 AS col1, - 44 * + - 66 * MAX( ALL + - 82 ) AS col1
----
75
-238128

skipif mysql # not compatible
query II rowsort label-2093
SELECT ALL + 5 * 15 AS col1, - 44 * + - 66 * MAX ( ALL + - 82 ) AS col1
----
75
-238128

query I rowsort
SELECT DISTINCT 78 - - 57
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL 13 - - COUNT( * ) + + - 9 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL 13 - - COUNT ( * ) + + - 9 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ( 12 ) + + 43 + - 7 * + COUNT( * ) + - + 44 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2096
SELECT ( 12 ) + + 43 + - 7 * + COUNT ( * ) + - + 44 AS col2
----
4

query I rowsort
SELECT 2 + 35
----
37

query I rowsort
SELECT 12 + 38 AS col2
----
50

query II rowsort
SELECT 18 * 57, 82 AS col0
----
1026
82

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2102
SELECT 8 DIV + 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2102
SELECT 8 / + 25 AS col2
----
0

query I rowsort
SELECT 44 * 51 * + 89
----
199716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT AVG ( CASE 85 WHEN + 30 THEN + ( + 31 ) * 91 WHEN + - 92 THEN NULL END ) * - 51 + - + COUNT( DISTINCT - CAST( - 51 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT AVG ( CASE 85 WHEN + 30 THEN + ( + 31 ) * 91 WHEN + - 92 THEN NULL END ) * - 51 + - + COUNT ( DISTINCT - CAST ( - 51 AS INTEGER ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2106
SELECT ALL - 75 + COUNT( * ) AS col0, + 85 + 12
----
-74
97

skipif mysql # not compatible
query II rowsort label-2106
SELECT ALL - 75 + COUNT ( * ) AS col0, + 85 + 12
----
-74
97

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT CAST( NULL AS SIGNED ) / 99 + - - 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT CAST ( NULL AS INTEGER ) / 99 + - - 55 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - ( + - 31 ) * + 99 AS col2
----
3069

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL - - 14 + + COALESCE ( - COUNT( * ), + - COUNT( + 12 ) * 23, ( 31 ) ) * + 3
----
11

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL - - 14 + + COALESCE ( - COUNT ( * ), + - COUNT ( + 12 ) * 23, ( 31 ) ) * + 3
----
11

query I rowsort
SELECT ALL + CASE - NULLIF ( 32, + 76 ) WHEN - ( - + 47 ) THEN 5 WHEN - - 99 + - - 90 + 50 + 10 THEN + 69 - + 26 END / 67 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 75 AS col1
----
75

query I rowsort
SELECT ALL 80 + + 22 AS col0
----
102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL CASE - + ( + 49 ) WHEN 2 THEN - 90 + - COALESCE ( 14, 96 ) WHEN 3 THEN NULL ELSE NULL END + MAX( - - ( + 52 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL CASE - + ( + 49 ) WHEN 2 THEN - 90 + - COALESCE ( 14, 96 ) WHEN 3 THEN NULL ELSE NULL END + MAX ( - - ( + 52 ) ) AS col1
----
NULL

query II rowsort
SELECT 98 * + 73 AS col0, - 48
----
7154
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT 93 * + 29 + + + ( + COUNT( + 64 ) )
----
2698

skipif mysql # not compatible
query I rowsort label-2117
SELECT 93 * + 29 + + + ( + COUNT ( + 64 ) )
----
2698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2118
SELECT + 43 * - 7 + - CAST( NULL AS SIGNED ) * - + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2118
SELECT + 43 * - 7 + - CAST ( NULL AS INTEGER ) * - + 79 AS col2
----
NULL

query I rowsort
SELECT ( 92 ) - + 43 + - ( - 49 ) + + 21
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT + 7 + + CASE - SUM( DISTINCT - - 55 ) WHEN - 8 * - - 8 THEN 97 WHEN - - 13 + - COUNT( * ) / - - 9 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + 7 + + CASE - SUM ( DISTINCT - - 55 ) WHEN - 8 * - - 8 THEN 97 WHEN - - 13 + - COUNT ( * ) / - - 9 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 49 * + 3 + 96
----
-51

query I rowsort
SELECT 69 + - 90 AS col0
----
-21

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

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL + 38 * - COUNT ( * ) AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2124
SELECT ALL CASE - - 73 WHEN + + 99 + ( 1 ) + - 46 + + 52 * + 2 THEN - CAST( - 49 AS SIGNED ) * + - 87 WHEN + - 67 + + + 46 THEN NULL ELSE - 25 * COUNT( * ) END AS col0, 80 * - - COUNT( * ) AS col0
----
-25
80

skipif mysql # not compatible
query II rowsort label-2124
SELECT ALL CASE - - 73 WHEN + + 99 + ( 1 ) + - 46 + + 52 * + 2 THEN - CAST ( - 49 AS INTEGER ) * + - 87 WHEN + - 67 + + + 46 THEN NULL ELSE - 25 * COUNT ( * ) END AS col0, 80 * - - COUNT ( * ) AS col0
----
-25
80

query I rowsort
SELECT DISTINCT 79 - + - 66
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2126
SELECT NULLIF ( + + 38, + CAST( NULL AS SIGNED ) ) + - SUM( - + 86 ) + + COUNT( ALL + 59 )
----
125

skipif mysql # not compatible
query I rowsort label-2126
SELECT NULLIF ( + + 38, + CAST ( NULL AS INTEGER ) ) + - SUM ( - + 86 ) + + COUNT ( ALL + 59 )
----
125

query I rowsort
SELECT 12 + NULLIF ( 63, + - 73 ) + - 42
----
33

query I rowsort
SELECT ( - + 74 ) + + 78
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2129
SELECT - 71 AS col1, 57 + + CAST( NULL AS SIGNED )
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-2129
SELECT - 71 AS col1, 57 + + CAST ( NULL AS INTEGER )
----
-71
NULL

query I rowsort
SELECT 28 + + ( - 85 ) AS col2
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2131
SELECT DISTINCT COALESCE ( - 2, - + 71 * + ( + 14 ) + - 64 ) * 64 * + - 41 DIV - + COUNT( * ) + - COALESCE ( 56, + + 27 + + COUNT( * ) ), 55 * - 88 * - + 60 * - + 79 AS col1
----
-5304
-22941600

skipif mysql # not compatible
query II rowsort label-2131
SELECT DISTINCT COALESCE ( - 2, - + 71 * + ( + 14 ) + - 64 ) * 64 * + - 41 / - + COUNT ( * ) + - COALESCE ( 56, + + 27 + + COUNT ( * ) ), 55 * - 88 * - + 60 * - + 79 AS col1
----
-5304
-22941600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2132
SELECT DISTINCT 30, - 80 + + MAX( DISTINCT + - 87 ) * + + CAST( NULL AS SIGNED ) + 69 + - COUNT( * ) * + COALESCE ( - 96, - ( MIN( DISTINCT + 99 ) ) ) - + 94 AS col0
----
30
NULL

skipif mysql # not compatible
query II rowsort label-2132
SELECT DISTINCT 30, - 80 + + MAX ( DISTINCT + - 87 ) * + + CAST ( NULL AS INTEGER ) + 69 + - COUNT ( * ) * + COALESCE ( - 96, - ( MIN ( DISTINCT + 99 ) ) ) - + 94 AS col0
----
30
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2134
SELECT ALL 39 AS col0, 15 * COUNT( * ) AS col2
----
39
15

skipif mysql # not compatible
query II rowsort label-2134
SELECT ALL 39 AS col0, 15 * COUNT ( * ) AS col2
----
39
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT COUNT( * ) * + NULLIF ( - 49, 41 * - 16 ) * + 70 AS col2
----
-3430

skipif mysql # not compatible
query I rowsort label-2135
SELECT COUNT ( * ) * + NULLIF ( - 49, 41 * - 16 ) * + 70 AS col2
----
-3430

onlyif mysql # aggregate syntax: 
query III rowsort label-2136
SELECT 15, ( COUNT( ALL + 9 ) ) col2, - - MIN( - 45 ) AS col1
----
15
1
-45

skipif mysql # not compatible
query III rowsort label-2136
SELECT 15, ( COUNT ( ALL + 9 ) ) col2, - - MIN ( - 45 ) AS col1
----
15
1
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-2137
SELECT - 50 AS col2, SUM( 47 )
----
-50
47

skipif mysql # not compatible
query II rowsort label-2137
SELECT - 50 AS col2, SUM ( 47 )
----
-50
47

query II rowsort
SELECT 28, - 8 AS col1
----
28
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT NULLIF ( - 24, + + SUM( ALL 17 ) ) * - 43 * + 56
----
57792

skipif mysql # not compatible
query I rowsort label-2139
SELECT NULLIF ( - 24, + + SUM ( ALL 17 ) ) * - 43 * + 56
----
57792

query II rowsort
SELECT + 90 AS col2, - COALESCE ( + 84, 34 )
----
90
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2141
SELECT ALL - + 41 * CASE - 48 WHEN + 80 THEN - + 2 * - - 37 ELSE NULL END - + - 73 + CAST( NULL AS DECIMAL ) col0, + 74 AS col0
----
NULL
74

skipif mysql # not compatible
query II rowsort label-2141
SELECT ALL - + 41 * CASE - 48 WHEN + 80 THEN - + 2 * - - 37 ELSE NULL END - + - 73 + CAST ( NULL AS REAL ) col0, + 74 AS col0
----
NULL
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT DISTINCT + + 41 * + + MIN( DISTINCT 17 )
----
697

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT + + 41 * + + MIN ( DISTINCT 17 )
----
697

query II rowsort
SELECT - 13, 14 col0
----
-13
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2144
SELECT + COUNT( * ) + - - 66 + 90 DIV + 94 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2144
SELECT + COUNT ( * ) + - - 66 + 90 / + 94 AS col1
----
67

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

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

query I rowsort
SELECT ALL - 30 * + - 8 + - 36
----
204

query I rowsort
SELECT - - 39 * + 33
----
1287

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + + SUM( - + 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2148
SELECT + + SUM ( - + 17 ) AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2149
SELECT - + 22 DIV + + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2149
SELECT - + 22 / + + 60 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT + 28 * 14 + - + ( - COUNT( * ) ) col2
----
393

skipif mysql # not compatible
query I rowsort label-2150
SELECT + 28 * 14 + - + ( - COUNT ( * ) ) col2
----
393

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2151
SELECT ALL + 71 AS col0, - CAST( - 49 AS SIGNED )
----
71
49

skipif mysql # not compatible
query II rowsort label-2151
SELECT ALL + 71 AS col0, - CAST ( - 49 AS INTEGER )
----
71
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2152
SELECT + CASE - + CAST( NULL AS DECIMAL ) WHEN COUNT( * ) THEN NULL WHEN + 18 / + COUNT( * ) + - - 75 THEN NULL ELSE + 84 END col2
----
84

skipif mysql # not compatible
query I rowsort label-2152
SELECT + CASE - + CAST ( NULL AS REAL ) WHEN COUNT ( * ) THEN NULL WHEN + 18 / + COUNT ( * ) + - - 75 THEN NULL ELSE + 84 END col2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT - 68 DIV + 18
----
-3

skipif mysql # not compatible
query I rowsort label-2153
SELECT - 68 / + 18
----
-3

query I rowsort
SELECT ALL + ( + 70 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-2155
SELECT - 72 - 6 AS col2, - MAX( + 56 )
----
-78
-56

skipif mysql # not compatible
query II rowsort label-2155
SELECT - 72 - 6 AS col2, - MAX ( + 56 )
----
-78
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT - NULLIF ( - COALESCE ( + 37, - MIN( - + 7 ) ), - - 1 * + 11 / + 56 + + - COUNT( * ) - - 55 )
----
37

skipif mysql # not compatible
query I rowsort label-2156
SELECT - NULLIF ( - COALESCE ( + 37, - MIN ( - + 7 ) ), - - 1 * + 11 / + 56 + + - COUNT ( * ) - - 55 )
----
37

query I rowsort
SELECT DISTINCT 17 col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT DISTINCT ( 85 ) * - + 33 + - COALESCE ( + 76, + - 15 * + COUNT( * ) * COUNT( * ) ) AS col1
----
-2881

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT ( 85 ) * - + 33 + - COALESCE ( + 76, + - 15 * + COUNT ( * ) * COUNT ( * ) ) AS col1
----
-2881

query I rowsort
SELECT DISTINCT + COALESCE ( 32, 34, - 68 ) * 66
----
2112

onlyif mysql # DIV for integer division: 
query I rowsort label-2160
SELECT + 1 * 62 DIV 46 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2160
SELECT + 1 * 62 / 46 AS col1
----
1

query I rowsort
SELECT + 18 - 52
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT + CASE + 49 WHEN - ( + 65 ) * + 29 * - - 95 THEN + - SUM( ALL + 57 ) END * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT + CASE + 49 WHEN - ( + 65 ) * + 29 * - - 95 THEN + - SUM ( ALL + 57 ) END * + 12
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2164
SELECT ALL CAST( + 60 AS SIGNED ) + + 73 col1
----
133

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL CAST ( + 60 AS INTEGER ) + + 73 col1
----
133

query I rowsort
SELECT - ( - - 36 )
----
-36

query I rowsort
SELECT + 35 + + 22 - - 24 AS col2
----
81

query I rowsort
SELECT COALESCE ( + 5, 22 ) AS col1
----
5

query I rowsort
SELECT + 0 + + - 40
----
-40

query I rowsort
SELECT + 23 + - 5
----
18

query I rowsort
SELECT ALL + COALESCE ( - 90, - 94 ) * 40 * + 75
----
-270000

query I rowsort
SELECT DISTINCT + 63 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT - - 54 + + 26 + + 82 * - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2172
SELECT - - 54 + + 26 + + 82 * - COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT DISTINCT 15 * + 27 + - 81 AS col0
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT - COUNT( ALL + 44 ) * + ( CASE + - 57 WHEN - 76 * - + COUNT( * ) THEN - + 33 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT - COUNT ( ALL + 44 ) * + ( CASE + - 57 WHEN - 76 * - + COUNT ( * ) THEN - + 33 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2175
SELECT ALL + + CASE WHEN NOT + CAST( NULL AS DECIMAL ) BETWEEN - MIN( ALL 56 ) AND NULL THEN - 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL + + CASE WHEN NOT + CAST ( NULL AS REAL ) BETWEEN - MIN ( ALL 56 ) AND NULL THEN - 47 END
----
NULL

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

query I rowsort
SELECT ALL + - 71 * + - 49
----
3479

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT + - 18 * - COUNT( * ) - + + 19 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2178
SELECT + - 18 * - COUNT ( * ) - + + 19 col0
----
-1

query I rowsort
SELECT DISTINCT + ( + 0 ) * 42 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT DISTINCT + + 29 DIV - NULLIF ( + + 14, + - 81 ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT + + 29 / - NULLIF ( + + 14, + - 81 ) col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2181
SELECT ALL - 55 * - 75 + + COUNT( * ) + - + 26 * + 27 * - - CAST( + 9 AS SIGNED ) * + COUNT( * ) + + 20
----
-2172

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL - 55 * - 75 + + COUNT ( * ) + - + 26 * + 27 * - - CAST ( + 9 AS INTEGER ) * + COUNT ( * ) + + 20
----
-2172

query I rowsort
SELECT + 96 + - 22 AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2183
SELECT COALESCE ( - 48, + 46, 68 DIV 22 + 7 + 40 * - - ( + 74 ) * - MIN( ALL - + 67 ) + 4 DIV + 28 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-2183
SELECT COALESCE ( - 48, + 46, 68 / 22 + 7 + 40 * - - ( + 74 ) * - MIN ( ALL - + 67 ) + 4 / + 28 ) AS col1
----
-48

query I rowsort
SELECT ALL - 2 * - 12
----
24

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

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

query I rowsort
SELECT - 25 + - CASE - 30 WHEN - 90 THEN NULL ELSE + 61 + + + 86 * - + 37 END AS col2
----
3096

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

query I rowsort
SELECT DISTINCT + 29 * - 88 AS col1
----
-2552

query I rowsort
SELECT ALL - 56 * 34 + - - 55
----
-1849

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

skipif mysql # not compatible
query I rowsort label-2190
SELECT - 19 + + COUNT ( * ) AS col2
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL ( - MAX( 11 ) ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL ( - MAX ( 11 ) ) AS col1
----
-11

query I rowsort
SELECT DISTINCT - 12 * + 81 * + - 36 + + - 54
----
34938

query I rowsort
SELECT + 71 + - 11 * - - 44 + + - 45 AS col2
----
-458

query I rowsort
SELECT - COALESCE ( - 84, 83 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT + NULLIF ( + COUNT( * ), - 32 ) + MIN( ALL + 57 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2196
SELECT + NULLIF ( + COUNT ( * ), - 32 ) + MIN ( ALL + 57 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT - 59 * - COALESCE ( MAX( DISTINCT 12 ), - COUNT( * ) )
----
708

skipif mysql # not compatible
query I rowsort label-2197
SELECT - 59 * - COALESCE ( MAX ( DISTINCT 12 ), - COUNT ( * ) )
----
708

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

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

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

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL - COUNT ( * ) + - + 4 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT - NULLIF ( - MAX( 14 ), 94 )
----
14

skipif mysql # not compatible
query I rowsort label-2200
SELECT - NULLIF ( - MAX ( 14 ), 94 )
----
14

query I rowsort
SELECT ALL - + 7 * 45
----
-315

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT DISTINCT MAX( ALL + - 90 ) - + - ( 59 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT MAX ( ALL + - 90 ) - + - ( 59 ) AS col2
----
-31

query I rowsort
SELECT 6 * + 35 * + 2
----
420

query I rowsort
SELECT ALL - 2 - + 18 * + 68
----
-1226

query I rowsort
SELECT 42 * - - 96
----
4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2207
SELECT ALL 26 DIV - COALESCE ( - + SUM( ALL - + 37 ), CAST( - - SUM( ALL - 18 ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL 26 / - COALESCE ( - + SUM ( ALL - + 37 ), CAST ( - - SUM ( ALL - 18 ) AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT ALL + + MIN( - + 81 ) - 58 - + 22 * + 79 AS col2
----
-1877

skipif mysql # not compatible
query I rowsort label-2208
SELECT ALL + + MIN ( - + 81 ) - 58 - + 22 * + 79 AS col2
----
-1877

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT ALL - MIN( ALL - 30 ) - 67 * 15 * - - 4 AS col0
----
-3990

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL - MIN ( ALL - 30 ) - 67 * 15 * - - 4 AS col0
----
-3990

onlyif mysql # DIV for integer division: 
query I rowsort label-2211
SELECT 21 DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2211
SELECT 21 / + 94 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT ALL - ( + 68 ) / + + ( + CAST( NULL AS SIGNED ) ) * - 10 * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - ( + 68 ) / + + ( + CAST ( NULL AS INTEGER ) ) * - 10 * + 82
----
NULL

query I rowsort
SELECT DISTINCT - 17 * - 48 col0
----
816

query I rowsort
SELECT DISTINCT 15 * - + 3 - + 41
----
-86

query I rowsort
SELECT 91 * - 47 col1
----
-4277

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT 12 * COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2217
SELECT 12 * COUNT ( * ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL - COUNT( DISTINCT - + 38 ) + - 11 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - COUNT ( DISTINCT - + 38 ) + - 11 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL COUNT( * ) + 2 + 83 * 41 col0
----
3406

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL COUNT ( * ) + 2 + 83 * 41 col0
----
3406

query I rowsort
SELECT ALL - 43 + + - 13 + - - 89 * - 50 * 90 * + 51 AS col2
----
-20425556

query I rowsort
SELECT ALL - 71 + ( 66 ) + - 5
----
-10

query I rowsort
SELECT - ( - 79 ) * + - 70 - + 59 AS col0
----
-5589

query II rowsort
SELECT - 32 AS col0, + 86
----
-32
86

query I rowsort
SELECT 63 * + 7 col1
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT COUNT( * ) * - MIN( - + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT COUNT ( * ) * - MIN ( - + 10 )
----
10

query I rowsort
SELECT 53 * + 87
----
4611

query II rowsort
SELECT 25 AS col0, 8 AS col0
----
25
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2228
SELECT ALL 98 col2, COUNT( 51 )
----
98
1

skipif mysql # not compatible
query II rowsort label-2228
SELECT ALL 98 col2, COUNT ( 51 )
----
98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT 62 - - CASE + - 53 WHEN 32 THEN NULL WHEN COUNT( * ) THEN - + NULLIF ( - 10, + 55 * AVG ( ALL + 0 ) * + 67 * - 9 + - 59 + COUNT( * ) ) END + + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2229
SELECT 62 - - CASE + - 53 WHEN 32 THEN NULL WHEN COUNT ( * ) THEN - + NULLIF ( - 10, + 55 * AVG ( ALL + 0 ) * + 67 * - 9 + - 59 + COUNT ( * ) ) END + + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT + 35 + - + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-2230
SELECT + 35 + - + COUNT ( * )
----
34

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

skipif mysql # not compatible
query I rowsort label-2231
SELECT - COUNT ( * ) * - 28 - + + 25 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT COUNT( * ) * MIN( + 84 ) - - + 15 + - 10 + - 18 + MAX( + 61 ) * + COUNT( * )
----
132

skipif mysql # not compatible
query I rowsort label-2232
SELECT COUNT ( * ) * MIN ( + 84 ) - - + 15 + - 10 + - 18 + MAX ( + 61 ) * + COUNT ( * )
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-2233
SELECT ALL - 8 AS col1, - COUNT( * ) + + 56 + - - 52 + - 75 * - - COUNT( * ) * + + CASE - COALESCE ( + + 0, 41 ) WHEN + 56 THEN - 13 * + COUNT( * ) * + - 68 + 10 + - 79 / + + 60 WHEN + 84 THEN 85 + - ( + - COUNT( * ) ) - 71 END col0
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-2233
SELECT ALL - 8 AS col1, - COUNT ( * ) + + 56 + - - 52 + - 75 * - - COUNT ( * ) * + + CASE - COALESCE ( + + 0, 41 ) WHEN + 56 THEN - 13 * + COUNT ( * ) * + - 68 + 10 + - 79 / + + 60 WHEN + 84 THEN 85 + - ( + - COUNT ( * ) ) - 71 END col0
----
-8
NULL

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

skipif mysql # not compatible
query I rowsort label-2234
SELECT 67 + + CAST ( NULL AS INTEGER ) * + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT + COUNT( ALL ( + 46 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2235
SELECT + COUNT ( ALL ( + 46 ) ) AS col2
----
1

query I rowsort
SELECT + 85 + + + 73 + - 99
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2237
SELECT DISTINCT + 72 AS col2, COUNT( + - 79 ) * - - 42 - - + COUNT( * )
----
72
43

skipif mysql # not compatible
query II rowsort label-2237
SELECT DISTINCT + 72 AS col2, COUNT ( + - 79 ) * - - 42 - - + COUNT ( * )
----
72
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT COUNT( - 90 ) + + CASE - 92 WHEN + - 63 * - - 47 THEN + - 55 ELSE - 0 * + 22 + + 53 + - NULLIF ( - + 52, - - 69 ) * + 84 END
----
4422

skipif mysql # not compatible
query I rowsort label-2238
SELECT COUNT ( - 90 ) + + CASE - 92 WHEN + - 63 * - - 47 THEN + - 55 ELSE - 0 * + 22 + + 53 + - NULLIF ( - + 52, - - 69 ) * + 84 END
----
4422

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT ALL MIN( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL MIN ( 35 )
----
35

query II rowsort
SELECT - 88 AS col0, 43
----
-88
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL - COUNT( * ) * + 96 + + 42 col0
----
-54

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL - COUNT ( * ) * + 96 + + 42 col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-2242
SELECT COUNT( * ) + - 16 AS col2, 6 * + + 38
----
-15
228

skipif mysql # not compatible
query II rowsort label-2242
SELECT COUNT ( * ) + - 16 AS col2, 6 * + + 38
----
-15
228

onlyif mysql # aggregate syntax: 
query II rowsort label-2243
SELECT ALL 60, + MAX( + 81 ) AS col2
----
60
81

skipif mysql # not compatible
query II rowsort label-2243
SELECT ALL 60, + MAX ( + 81 ) AS col2
----
60
81

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

query I rowsort
SELECT 61 * + 77 + 43
----
4740

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

skipif mysql # not compatible
query I rowsort label-2246
SELECT MIN ( ALL - - 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT COUNT( * ) * CASE + 4 WHEN - - 34 * - + 45 * 92 THEN + + 52 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT COUNT ( * ) * CASE + 4 WHEN - - 34 * - + 45 * 92 THEN + + 52 END AS col1
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - - 26, + 1 ) col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2249
SELECT COUNT( * ) DIV NULLIF ( - 81, + 54 ) * 88 * - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2249
SELECT COUNT ( * ) / NULLIF ( - 81, + 54 ) * 88 * - COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2250
SELECT ALL 96 + - 9 DIV - 43 + - MAX( + + 37 ) + + 37 * - ( - + 51 ) AS col0
----
1946

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL 96 + - 9 / - 43 + - MAX ( + + 37 ) + + 37 * - ( - + 51 ) AS col0
----
1946

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT DISTINCT MIN( DISTINCT NULLIF ( + 9, + 2 ) ) + + 25 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT MIN ( DISTINCT NULLIF ( + 9, + 2 ) ) + + 25 AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2252
SELECT - CAST( NULL AS SIGNED ) * - CAST( - 48 AS SIGNED ) + 71 + - - 11 * 48 + + + ( - + MAX( DISTINCT - - 64 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( - 48 AS INTEGER ) + 71 + - - 11 * 48 + + + ( - + MAX ( DISTINCT - - 64 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT ALL NULLIF ( - ( CASE + - 65 WHEN - 79 - + COUNT( * ) + - AVG ( - 93 ) + - - 98 * + - ( - COUNT( * ) ) * - ( + 57 ) - - CASE - + AVG ( ALL - + 76 ) WHEN + 41 * - + 87 THEN + - 68 WHEN - - 63 - 49 + - 86 - + + 99 + - + COUNT( ALL - 53 ) * - 20 * 36 THEN NULL ELSE NULL END THEN NULL WHEN + 39 THEN - 61 * - CASE + - 41 WHEN + 52 THEN COUNT( * ) WHEN - 53 THEN - 40 ELSE NULL END ELSE NULL END ), 37 / - COUNT( * ) ) + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL NULLIF ( - ( CASE + - 65 WHEN - 79 - + COUNT ( * ) + - AVG ( - 93 ) + - - 98 * + - ( - COUNT ( * ) ) * - ( + 57 ) - - CASE - + AVG ( ALL - + 76 ) WHEN + 41 * - + 87 THEN + - 68 WHEN - - 63 - 49 + - 86 - + + 99 + - + COUNT ( ALL - 53 ) * - 20 * 36 THEN NULL ELSE NULL END THEN NULL WHEN + 39 THEN - 61 * - CASE + - 41 WHEN + 52 THEN COUNT ( * ) WHEN - 53 THEN - 40 ELSE NULL END ELSE NULL END ), 37 / - COUNT ( * ) ) + 51
----
NULL

query I rowsort
SELECT ALL 60 * - + 34
----
-2040

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT MAX( - - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-2255
SELECT MAX ( - - 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + MAX( + + ( 68 ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-2256
SELECT + MAX ( + + ( 68 ) ) AS col1
----
68

query I rowsort
SELECT 37 + - - 95 + - - 31 + + 21 + 38 + + - ( + 54 ) col2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT DISTINCT SUM( + 30 ) * - 4
----
-120

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT SUM ( + 30 ) * - 4
----
-120

query I rowsort
SELECT - 6 + 85 AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT DISTINCT - 4 * + COUNT( * ) AS col2, + 80 + 75 * 69 + - 66 * + COUNT( * )
----
-4
5189

skipif mysql # not compatible
query II rowsort label-2260
SELECT DISTINCT - 4 * + COUNT ( * ) AS col2, + 80 + 75 * 69 + - 66 * + COUNT ( * )
----
-4
5189

query I rowsort
SELECT + 34 * + 10 + - 28 + NULLIF ( + 23, + + 14 )
----
335

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2262
SELECT DISTINCT 46 DIV + 69 col1, + COUNT( * ) * + 30 * + ( - + 16 )
----
0
-480

skipif mysql # not compatible
query II rowsort label-2262
SELECT DISTINCT 46 / + 69 col1, + COUNT ( * ) * + 30 * + ( - + 16 )
----
0
-480

query I rowsort
SELECT + 52 * - + 26 AS col0
----
-1352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2264
SELECT - 2 + - ( - - NULLIF ( - CASE WHEN 17 = - 19 / + 91 + - 53 THEN NULL ELSE 95 END, 54 + 82 * + 41 + - + 32 ) ) + + - NULLIF ( + 27, 10 + 41 / - COUNT( * ) ) + CASE ( - ( - 54 ) ) WHEN - 59 THEN + COUNT( * ) * + - COUNT( - - 67 ) + - + 53 END + + NULLIF ( - 24, - ( - - ( - 46 ) ) ) * + CAST( NULL AS SIGNED ) * + CAST( - 71 / 66 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT - 2 + - ( - - NULLIF ( - CASE WHEN 17 = - 19 / + 91 + - 53 THEN NULL ELSE 95 END, 54 + 82 * + 41 + - + 32 ) ) + + - NULLIF ( + 27, 10 + 41 / - COUNT ( * ) ) + CASE ( - ( - 54 ) ) WHEN - 59 THEN + COUNT ( * ) * + - COUNT ( - - 67 ) + - + 53 END + + NULLIF ( - 24, - ( - - ( - 46 ) ) ) * + CAST ( NULL AS INTEGER ) * + CAST ( - 71 / 66 AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2265
SELECT - + 50 * 92 * - 91 + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT - + 50 * 92 * - 91 + - CAST ( NULL AS INTEGER ) col1
----
NULL

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

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

query I rowsort
SELECT - - 75 + 79 * + 38 + + 5 AS col0
----
3082

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT - COUNT( ALL + + 50 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2268
SELECT - COUNT ( ALL + + 50 ) AS col0
----
-1

query I rowsort
SELECT ALL - 95 col1
----
-95

query I rowsort
SELECT - - ( + + 8 ) - - - 39 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL + 68 + - NULLIF ( 15, 1 * COUNT( * ) - - + COUNT( * ) ) * - - 57
----
-787

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + 68 + - NULLIF ( 15, 1 * COUNT ( * ) - - + COUNT ( * ) ) * - - 57
----
-787

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL - + 10 + NULLIF ( + - 79, COALESCE ( ( + - COUNT( ALL + 85 ) ), - 85 ) * - COUNT( * ) + + ( + COUNT( * ) ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL - + 10 + NULLIF ( + - 79, COALESCE ( ( + - COUNT ( ALL + 85 ) ), - 85 ) * - COUNT ( * ) + + ( + COUNT ( * ) ) ) AS col2
----
-89

query I rowsort
SELECT - 94 * + 80 AS col1
----
-7520

query I rowsort
SELECT DISTINCT + + 73 AS col2
----
73

query I rowsort
SELECT ALL + 47 * 71 * + + 61 + 80 + + 83
----
203720

query I rowsort
SELECT - 20 + 14
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ( - + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2277
SELECT ( - + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT - 84 * + 49 * + 32 * + + COUNT( * )
----
-131712

skipif mysql # not compatible
query I rowsort label-2278
SELECT - 84 * + 49 * + 32 * + + COUNT ( * )
----
-131712

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT NULLIF ( - - 20, - MIN( ALL - 97 ) + - - 5 )
----
20

skipif mysql # not compatible
query I rowsort label-2279
SELECT NULLIF ( - - 20, - MIN ( ALL - 97 ) + - - 5 )
----
20

query I rowsort
SELECT NULLIF ( + 13, 82 + - + 23 + + ( - AVG ( ALL 61 ) ) + + 23 * + + ( 35 ) )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2281
SELECT COUNT( * ) DIV - 74 * 77 + + ( + + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-2281
SELECT COUNT ( * ) / - 74 * 77 + + ( + + 76 )
----
76

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

query I rowsort
SELECT + COALESCE ( + 86, - 67 * 98 * - 28 ) AS col2
----
86

query I rowsort
SELECT ALL 0 * - 60 * - 34 * - 1 * - 73 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2285
SELECT CASE + - 69 WHEN - + 3 THEN - SUM( DISTINCT + 1 ) WHEN 10 THEN - 18 + - - 56 + + 29 + + - 4 * CAST( 3 AS DECIMAL ) / - - 95 - - 47 WHEN - + 73 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT CASE + - 69 WHEN - + 3 THEN - SUM ( DISTINCT + 1 ) WHEN 10 THEN - 18 + - - 56 + + 29 + + - 4 * CAST ( 3 AS REAL ) / - - 95 - - 47 WHEN - + 73 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 94 * - 14
----
1316

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2288
SELECT + AVG ( ALL + 18 ) * + 91 + + CAST( NULL AS DECIMAL ) - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT + AVG ( ALL + 18 ) * + 91 + + CAST ( NULL AS REAL ) - 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2289
SELECT + 76 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-2289
SELECT + 76 / - 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2290
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), 45 ) * NULLIF ( 75, + 86 ) AS col0, 62 AS col1
----
NULL
62

skipif mysql # not compatible
query II rowsort label-2290
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), 45 ) * NULLIF ( 75, + 86 ) AS col0, 62 AS col1
----
NULL
62

query II rowsort
SELECT 79 AS col1, ( + - NULLIF ( + 7, + 73 ) )
----
79
-7

query I rowsort
SELECT + 53 + - 46 AS col0
----
7

query II rowsort
SELECT - 49 AS col0, 9
----
-49
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT DISTINCT MAX( + - 56 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT MAX ( + - 56 ) AS col0
----
-56

query II rowsort
SELECT - 0, + 84 col0
----
0
84

query II rowsort
SELECT + 16, 7 * + + 51 * 22 AS col0
----
16
7854

onlyif mysql # aggregate syntax: 
query II rowsort label-2297
SELECT ALL - 30, MAX( DISTINCT - 19 ) AS col1
----
-30
-19

skipif mysql # not compatible
query II rowsort label-2297
SELECT ALL - 30, MAX ( DISTINCT - 19 ) AS col1
----
-30
-19

query I rowsort
SELECT + + ( + ( - ( - 20 ) ) ) - + 50 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT + ( + + 20 ) + ( - - COUNT( * ) ) + - 38
----
-17

skipif mysql # not compatible
query I rowsort label-2299
SELECT + ( + + 20 ) + ( - - COUNT ( * ) ) + - 38
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2300
SELECT - - 77 DIV - 56 + + 21 DIV 76 + 58
----
57

skipif mysql # not compatible
query I rowsort label-2300
SELECT - - 77 / - 56 + + 21 / 76 + 58
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT + + COUNT( * ) + + 60 + COUNT( * ) + - ( - + 26 ) * - 61 + - 15
----
-1539

skipif mysql # not compatible
query I rowsort label-2301
SELECT + + COUNT ( * ) + + 60 + COUNT ( * ) + - ( - + 26 ) * - 61 + - 15
----
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL + COALESCE ( - - 47, - COUNT( + - 55 ), - 22 ) + - 86
----
-39

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL + COALESCE ( - - 47, - COUNT ( + - 55 ), - 22 ) + - 86
----
-39

query I rowsort
SELECT + - ( - - 50 ) + ( + 86 ) col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT - 39 - + CASE + - 75 WHEN 75 THEN NULL WHEN + 88 THEN + 73 - - 65 * + 57 WHEN + 87 THEN 35 / - NULLIF ( + - SUM( + 72 ), - 81 / + + 17 ) / - 31 + - ( 50 ) * - 88 END + 6 + - 42 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2304
SELECT - 39 - + CASE + - 75 WHEN 75 THEN NULL WHEN + 88 THEN + 73 - - 65 * + 57 WHEN + 87 THEN 35 / - NULLIF ( + - SUM ( + 72 ), - 81 / + + 17 ) / - 31 + - ( 50 ) * - 88 END + 6 + - 42 col2
----
NULL

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

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

query I rowsort
SELECT - 5 * + 76
----
-380

query I rowsort
SELECT + 66 * + - 45 AS col2
----
-2970

onlyif mysql # DIV for integer division: 
query I rowsort label-2308
SELECT ALL - ( + - 24 ) DIV ( - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL - ( + - 24 ) / ( - 57 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT + MIN( - 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-2309
SELECT + MIN ( - 78 ) AS col1
----
-78

query I rowsort
SELECT + COALESCE ( + 62, CASE 39 WHEN 58 THEN NULL WHEN - 39 THEN + + 36 END * - + NULLIF ( - 34, + + 12 ) + - - ( 25 ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT DISTINCT + COUNT( DISTINCT NULLIF ( 99, - 49 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT + COUNT ( DISTINCT NULLIF ( 99, - 49 ) ) AS col1
----
1

query I rowsort
SELECT ALL + 21 * + 64 * 52 AS col0
----
69888

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT 13 * - + NULLIF ( - COUNT( * ), - 32 / + 50 + - MAX( DISTINCT 9 ) ) * - 81 + 85
----
-968

skipif mysql # not compatible
query I rowsort label-2313
SELECT 13 * - + NULLIF ( - COUNT ( * ), - 32 / + 50 + - MAX ( DISTINCT 9 ) ) * - 81 + 85
----
-968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2314
SELECT DISTINCT - 76 - + MIN( ALL + CAST( 2 AS SIGNED ) ) + - COUNT( * ) DIV - 44 * - + 19 - - - 42 * + - COUNT( * ), COUNT( * ) + + 75 AS col1
----
-36
76

skipif mysql # not compatible
query II rowsort label-2314
SELECT DISTINCT - 76 - + MIN ( ALL + CAST ( 2 AS INTEGER ) ) + - COUNT ( * ) / - 44 * - + 19 - - - 42 * + - COUNT ( * ), COUNT ( * ) + + 75 AS col1
----
-36
76

query I rowsort
SELECT ALL + 22 * + 91
----
2002

query I rowsort
SELECT 36 * + + 15 * - 54 col1
----
-29160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2317
SELECT + COUNT( DISTINCT - + 97 ) / 72 + 27 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2317
SELECT + COUNT ( DISTINCT - + 97 ) / 72 + 27 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT COUNT( * ) * - SUM( DISTINCT + 14 ) + - + 87 + 23 + + 40 * - 81 AS col1
----
-3318

skipif mysql # not compatible
query I rowsort label-2318
SELECT COUNT ( * ) * - SUM ( DISTINCT + 14 ) + - + 87 + 23 + + 40 * - 81 AS col1
----
-3318

query I rowsort
SELECT ( + - 83 ) * - ( 77 ) AS col0
----
6391

query I rowsort
SELECT + 26 * 28 * 56 + + + 59
----
40827

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2321
SELECT ( 23 ) - + - 43 * 98 AS col0, 31 * + + CAST( + 12 AS SIGNED ) * + + 34 col2
----
4237
12648

skipif mysql # not compatible
query II rowsort label-2321
SELECT ( 23 ) - + - 43 * 98 AS col0, 31 * + + CAST ( + 12 AS INTEGER ) * + + 34 col2
----
4237
12648

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT ALL 81 DIV - 47 col2
----
-1

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL 81 / - 47 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT SUM( DISTINCT - 58 ) + 29
----
-29

skipif mysql # not compatible
query I rowsort label-2323
SELECT SUM ( DISTINCT - 58 ) + 29
----
-29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT ALL + 3 + - 93 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

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

query I rowsort
SELECT + 73 + 90
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-2327
SELECT ALL - 34 * - 5 * + + 39 * + MAX( - 32 ) AS col2, - 85 * + COUNT( DISTINCT + 50 ) * - 38
----
-212160
3230

skipif mysql # not compatible
query II rowsort label-2327
SELECT ALL - 34 * - 5 * + + 39 * + MAX ( - 32 ) AS col2, - 85 * + COUNT ( DISTINCT + 50 ) * - 38
----
-212160
3230

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2328
SELECT COUNT( * ) DIV + 21 AS col1, MAX( - - 1 ) + + 4
----
0
5

skipif mysql # not compatible
query II rowsort label-2328
SELECT COUNT ( * ) / + 21 AS col1, MAX ( - - 1 ) + + 4
----
0
5

query II rowsort
SELECT 34 + + 51 AS col0, - 33
----
85
-33

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

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

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

query I rowsort
SELECT DISTINCT - 40 + - + 86 * - + 10 AS col0
----
820

query I rowsort
SELECT DISTINCT 55 + + 80 + - 16 * 71 * - + 27
----
30807

query I rowsort
SELECT + 3 * + 22 * - 42
----
-2772

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

query I rowsort
SELECT DISTINCT ( + - 28 )
----
-28

query I rowsort
SELECT ALL 53 col1
----
53

query I rowsort
SELECT ALL 37 - + - 96
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT 21 - 35 + - - MAX( DISTINCT + 64 ) * 67 * COUNT( - 25 ) * + ( NULLIF ( 13, 91 ) ) + 43 * - 50 * - + 64 * + 56 * + COUNT( * ) AS col2
----
7761330

skipif mysql # not compatible
query I rowsort label-2339
SELECT 21 - 35 + - - MAX ( DISTINCT + 64 ) * 67 * COUNT ( - 25 ) * + ( NULLIF ( 13, 91 ) ) + 43 * - 50 * - + 64 * + 56 * + COUNT ( * ) AS col2
----
7761330

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT NULLIF ( + - ( 93 ), - - COUNT( * ) ) - + ( + COUNT( * ) ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-2340
SELECT NULLIF ( + - ( 93 ), - - COUNT ( * ) ) - + ( + COUNT ( * ) ) AS col0
----
-94

query I rowsort
SELECT 40 - 11 * - ( + 73 )
----
843

query I rowsort
SELECT DISTINCT 36 * - 96
----
-3456

query I rowsort
SELECT 62 + ( - 3 ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2344
SELECT COALESCE ( - COUNT( * ), + NULLIF ( + 27, + - 33 ) + + CAST( NULL AS SIGNED ) ) * + 20 - - 71 + - 73 * 78 + - 78 + - 6 * - 11 * - ( - 60 ) * 96 AS col0
----
374439

skipif mysql # not compatible
query I rowsort label-2344
SELECT COALESCE ( - COUNT ( * ), + NULLIF ( + 27, + - 33 ) + + CAST ( NULL AS INTEGER ) ) * + 20 - - 71 + - 73 * 78 + - 78 + - 6 * - 11 * - ( - 60 ) * 96 AS col0
----
374439

query I rowsort
SELECT 37 * + 91 AS col1
----
3367

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT 72 * - MAX( - + 4 ) AS col2
----
288

skipif mysql # not compatible
query I rowsort label-2346
SELECT 72 * - MAX ( - + 4 ) AS col2
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT DISTINCT - 63 DIV + 52
----
-1

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT - 63 / + 52
----
-1

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

query II rowsort
SELECT 71 * ( + 23 ) AS col0, - 32 AS col1
----
1633
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2350
SELECT ALL 29 + + CASE - 34 WHEN + CAST( NULL AS DECIMAL ) * + - 3 THEN NULL WHEN - - COUNT( * ) THEN + ( 15 ) * - COUNT( * ) + - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL 29 + + CASE - 34 WHEN + CAST ( NULL AS REAL ) * + - 3 THEN NULL WHEN - - COUNT ( * ) THEN + ( 15 ) * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 49 col1
----
49

query I rowsort
SELECT 11 * - - 37 + 79 AS col2
----
486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2353
SELECT ALL - CAST( - 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL - CAST ( - 6 AS INTEGER )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT DISTINCT - COUNT( * ) + + + ( - 36 ) + 60 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT - COUNT ( * ) + + + ( - 36 ) + 60 AS col2
----
23

query I rowsort
SELECT - 85 * + - ( ( - 74 ) )
----
-6290

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT MAX( DISTINCT - 44 ) - - - 1 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-2356
SELECT MAX ( DISTINCT - 44 ) - - - 1 AS col0
----
-45

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

skipif mysql # not compatible
query I rowsort label-2357
SELECT + + COALESCE ( + - 78, + CAST ( NULL AS INTEGER ) * COUNT ( * ) )
----
-78

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2359
SELECT ALL - - 87 + 51 + + CAST( + CASE + - AVG ( 84 ) WHEN + ( + 19 ) * COALESCE ( + 90, + COUNT( * ), + - 95 + + - 20 ) * - 90 + + 91 * - 33 THEN NULL ELSE COUNT( * ) END AS SIGNED ) DIV - COUNT( * ) + + 69
----
206

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL - - 87 + 51 + + CAST ( + CASE + - AVG ( 84 ) WHEN + ( + 19 ) * COALESCE ( + 90, + COUNT ( * ), + - 95 + + - 20 ) * - 90 + + 91 * - 33 THEN NULL ELSE COUNT ( * ) END AS INTEGER ) / - COUNT ( * ) + + 69
----
206

query I rowsort
SELECT DISTINCT 0 * + + 71 * 97 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2361
SELECT ALL + 31 + - - 60 DIV COALESCE ( + COUNT( * ), 81 * + + 10 + - + 64 )
----
91

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL + 31 + - - 60 / COALESCE ( + COUNT ( * ), 81 * + + 10 + - + 64 )
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT 8 + + COUNT( * ) - + + NULLIF ( 25, + 82 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-2363
SELECT 8 + + COUNT ( * ) - + + NULLIF ( 25, + 82 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT - COUNT( * ) + COUNT( 6 ) + + 57
----
57

skipif mysql # not compatible
query I rowsort label-2364
SELECT - COUNT ( * ) + COUNT ( 6 ) + + 57
----
57

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

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

query I rowsort
SELECT ALL 84 * - - 40 + + 0 * - 16 + + + 96 AS col2
----
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT - COUNT( + NULLIF ( 85, - - 29 + 41 * 76 ) ) + MIN( - 0 ) + ( 85 ) * - - 80
----
6799

skipif mysql # not compatible
query I rowsort label-2367
SELECT - COUNT ( + NULLIF ( 85, - - 29 + 41 * 76 ) ) + MIN ( - 0 ) + ( 85 ) * - - 80
----
6799

onlyif mysql # aggregate syntax: 
query II rowsort label-2368
SELECT MIN( - - 78 ) * + 60 + 65 AS col2, 54
----
4745
54

skipif mysql # not compatible
query II rowsort label-2368
SELECT MIN ( - - 78 ) * + 60 + 65 AS col2, 54
----
4745
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT COUNT( * ) + - 70 + + + 44
----
-25

skipif mysql # not compatible
query I rowsort label-2369
SELECT COUNT ( * ) + - 70 + + + 44
----
-25

query I rowsort
SELECT DISTINCT - NULLIF ( + 71, 58 ) * - 71 - - 66
----
5107

query II rowsort
SELECT ALL 15, - 67 AS col0
----
15
-67

query I rowsort
SELECT + 89 * - 9 AS col1
----
-801

query II rowsort
SELECT ALL 17 AS col0, + ( 75 ) AS col1
----
17
75

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

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

query I rowsort
SELECT + CASE - 78 WHEN - ( 24 ) THEN - 12 END + 56 + - 41 / - + 69 AS col2
----
NULL

query II rowsort
SELECT 50 AS col0, 24 AS col1
----
50
24

query I rowsort
SELECT + 59 * - 19
----
-1121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2378
SELECT COUNT( * ) * + + ( - + 53 ) DIV + 61 + + 94 + + + 80 + + 53 AS col1
----
227

skipif mysql # not compatible
query I rowsort label-2378
SELECT COUNT ( * ) * + + ( - + 53 ) / + 61 + + 94 + + + 80 + + 53 AS col1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT CASE - + 90 WHEN COUNT( * ) THEN NULL ELSE - ( + COUNT( * ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2379
SELECT CASE - + 90 WHEN COUNT ( * ) THEN NULL ELSE - ( + COUNT ( * ) ) END
----
-1

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

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

query I rowsort
SELECT ALL 99 * - - ( + - 23 ) + + + 32 + + - 7
----
-2252

query I rowsort
SELECT DISTINCT 47 * - + 68 AS col0
----
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT ALL - 56 * + 64 * - - ( + 98 ) + 87 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL - 56 * + 64 * - - ( + 98 ) + 87 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

query I rowsort
SELECT ALL 82 * - 36
----
-2952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2386
SELECT + - 3 * + + ( + 47 ) + CAST( NULL AS SIGNED ) - - 22 + - NULLIF ( 18, + 32 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT + - 3 * + + ( + 47 ) + CAST ( NULL AS INTEGER ) - - 22 + - NULLIF ( 18, + 32 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2387
SELECT 5, + ( - 87 ) + + - 99 + - CAST( NULL AS SIGNED ) AS col0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-2387
SELECT 5, + ( - 87 ) + + - 99 + - CAST ( NULL AS INTEGER ) AS col0
----
5
NULL

query II rowsort
SELECT + 57 col1, 41
----
57
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL - 39 * - 12 * + 1 + NULLIF ( 74, - MAX( DISTINCT + 56 ) ) col0
----
542

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - 39 * - 12 * + 1 + NULLIF ( 74, - MAX ( DISTINCT + 56 ) ) col0
----
542

query I rowsort
SELECT + + 70 + 24
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT - 69 + + COUNT( * ) + - 35
----
-103

skipif mysql # not compatible
query I rowsort label-2391
SELECT - 69 + + COUNT ( * ) + - 35
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT + - MAX( - ( + + 20 ) ) * - COUNT( * ) + - + 77 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2392
SELECT + - MAX ( - ( + + 20 ) ) * - COUNT ( * ) + - + 77 AS col0
----
-97

query I rowsort
SELECT - + 90 - ( ( + - 95 ) ) + - - 83 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL 34 * + 75 + - COUNT( * ) + - 92 * CASE + - ( 72 ) WHEN - 78 - 65 + + 83 * ( - ( 55 ) ) THEN NULL WHEN + + CASE + 85 WHEN 24 THEN - 83 / + 2 * - 86 ELSE NULL END / - - 60 THEN - 28 + + 59 END + 19 + + - 25 + - - COALESCE ( - 63, 89 ) * 66 * MIN( + 34 ) * - 93 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL 34 * + 75 + - COUNT ( * ) + - 92 * CASE + - ( 72 ) WHEN - 78 - 65 + + 83 * ( - ( 55 ) ) THEN NULL WHEN + + CASE + 85 WHEN 24 THEN - 83 / + 2 * - 86 ELSE NULL END / - - 60 THEN - 28 + + 59 END + 19 + + - 25 + - - COALESCE ( - 63, 89 ) * 66 * MIN ( + 34 ) * - 93 col2
----
NULL

query II rowsort
SELECT ALL + + 66 AS col1, - 3 AS col0
----
66
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2396
SELECT DISTINCT + 23 AS col2, CAST( - - 81 AS SIGNED ) AS col2
----
23
81

skipif mysql # not compatible
query II rowsort label-2396
SELECT DISTINCT + 23 AS col2, CAST ( - - 81 AS INTEGER ) AS col2
----
23
81

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

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

query I rowsort
SELECT - 58 + - 10 AS col1
----
-68

query II rowsort
SELECT ALL + 87, 23 AS col2
----
87
23

query I rowsort
SELECT - + ( + + 42 ) AS col0
----
-42

query II rowsort
SELECT NULLIF ( 90, - 86 * 83 ) AS col0, 13 AS col0
----
90
13

query I rowsort
SELECT - 85 + - 75
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ALL - MIN( + + 39 ) - COALESCE ( + 45, + 40 + + CASE - 67 WHEN + 56 + + 37 THEN + 39 * - 93 ELSE + 91 END, + + 71 * 30 )
----
-84

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL - MIN ( + + 39 ) - COALESCE ( + 45, + 40 + + CASE - 67 WHEN + 56 + + 37 THEN + 39 * - 93 ELSE + 91 END, + + 71 * 30 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT - - 94 * + - 29 + + + 0 * - COUNT( * ) - + - 80 col0
----
-2646

skipif mysql # not compatible
query I rowsort label-2404
SELECT - - 94 * + - 29 + + + 0 * - COUNT ( * ) - + - 80 col0
----
-2646

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT - + CASE 15 WHEN + - 30 THEN - ( - 48 ) + - + 96 WHEN - NULLIF ( 19, + 4 - + 58 ) THEN + + 65 - - + 49 - 26 / + - COUNT( * ) END * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-2405
SELECT - + CASE 15 WHEN + - 30 THEN - ( - 48 ) + - + 96 WHEN - NULLIF ( 19, + 4 - + 58 ) THEN + + 65 - - + 49 - 26 / + - COUNT ( * ) END * - 40
----
NULL

query II rowsort
SELECT - 98 AS col1, 16
----
-98
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2407
SELECT - CAST( NULL AS SIGNED ), 1 * + 60 AS col1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-2407
SELECT - CAST ( NULL AS INTEGER ), 1 * + 60 AS col1
----
NULL
60

query I rowsort
SELECT - COALESCE ( + 2, 2 - - 21 )
----
-2

query I rowsort
SELECT ALL - - 67 - - - 66 * 41 col1
----
-2639

query I rowsort
SELECT ALL COALESCE ( + 68, - 75 )
----
68

query I rowsort
SELECT ALL 84 * - - 17 AS col1
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL ( + MIN( + + 56 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL ( + MIN ( + + 56 ) ) AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT + 83 + 92 + - - COALESCE ( + - 72, + 12 + + 94 DIV 70 ) * - 74
----
5503

skipif mysql # not compatible
query I rowsort label-2413
SELECT + 83 + 92 + - - COALESCE ( + - 72, + 12 + + 94 / 70 ) * - 74
----
5503

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2414
SELECT + COALESCE ( - 10, CAST( NULL AS SIGNED ) ) * COUNT( ALL - - 80 )
----
-10

skipif mysql # not compatible
query I rowsort label-2414
SELECT + COALESCE ( - 10, CAST ( NULL AS INTEGER ) ) * COUNT ( ALL - - 80 )
----
-10

query I rowsort
SELECT - 30 - - - 39 * - ( - - 25 ) * - 8 + 30
----
-7800

query II rowsort
SELECT ALL 42 * + - 23, - 66 AS col0
----
-966
-66

query I rowsort
SELECT - 47 * - - 53
----
-2491

query I rowsort
SELECT ALL + 63 * - - 82 AS col1
----
5166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2419
SELECT DISTINCT COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col0, + 33
----
NULL
33

skipif mysql # not compatible
query II rowsort label-2419
SELECT DISTINCT COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col0, + 33
----
NULL
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2420
SELECT ALL 32 DIV 29 * + - 31 DIV - - COUNT( * ) + - + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-2420
SELECT ALL 32 / 29 * + - 31 / - - COUNT ( * ) + - + COUNT ( * )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2421
SELECT CAST( 9 AS SIGNED ) AS col1, - 44
----
9
-44

skipif mysql # not compatible
query II rowsort label-2421
SELECT CAST ( 9 AS INTEGER ) AS col1, - 44
----
9
-44

query I rowsort
SELECT 0 * 51 - - 62 * + + 32 AS col1
----
1984

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT + 70 * + - MIN( + + ( + 49 ) )
----
-3430

skipif mysql # not compatible
query I rowsort label-2423
SELECT + 70 * + - MIN ( + + ( + 49 ) )
----
-3430

query I rowsort
SELECT ALL - 55 * + 92 + 23 * + 64 col1
----
-3588

onlyif mysql # DIV for integer division: 
query I rowsort label-2425
SELECT DISTINCT - COALESCE ( - 19, + + 51 DIV 9 ) * + 35 AS col2
----
665

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT - COALESCE ( - 19, + + 51 / 9 ) * + 35 AS col2
----
665

query I rowsort
SELECT ALL 3 * - + 54 AS col2
----
-162

query I rowsort
SELECT DISTINCT + + 82 AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2428
SELECT - 36 * - 30 * - 98 * - COALESCE ( + - 64, 0, - + 15 + + 30 * CASE COUNT( * ) WHEN - 34 THEN + ( 89 ) ELSE NULL END + - 74 * 58 ) + 44 DIV - COUNT( ALL + 54 ) AS col1, 87 AS col1
----
-6773804
87

skipif mysql # not compatible
query II rowsort label-2428
SELECT - 36 * - 30 * - 98 * - COALESCE ( + - 64, 0, - + 15 + + 30 * CASE COUNT ( * ) WHEN - 34 THEN + ( 89 ) ELSE NULL END + - 74 * 58 ) + 44 / - COUNT ( ALL + 54 ) AS col1, 87 AS col1
----
-6773804
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT + - CASE + MIN( ( + 15 ) ) WHEN - + 41 - + - 99 THEN - + CASE + 34 WHEN - + 22 THEN - - ( 55 ) END + - MIN( ALL + 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2429
SELECT + - CASE + MIN ( ( + 15 ) ) WHEN - + 41 - + - 99 THEN - + CASE + 34 WHEN - + 22 THEN - - ( 55 ) END + - MIN ( ALL + 20 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT + + 48 + COUNT( * ) + - ( 78 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-2430
SELECT + + 48 + COUNT ( * ) + - ( 78 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT - CASE 51 WHEN + - 26 THEN + 61 * - 94 * - NULLIF ( + 87, - 29 + - COALESCE ( - + 42, + + 17 + - COUNT( * ), - 26 / AVG ( DISTINCT 36 ) - - 95 ) * + 2 ) END * - CASE - 30 WHEN + 8 * 86 + + + ( + MIN( - 25 ) ) + - 18 + + + 48 - 85 - 73 THEN + + 53 WHEN COUNT( * ) THEN COUNT( * ) + - 49 + + 48 ELSE 61 END - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2431
SELECT - CASE 51 WHEN + - 26 THEN + 61 * - 94 * - NULLIF ( + 87, - 29 + - COALESCE ( - + 42, + + 17 + - COUNT ( * ), - 26 / AVG ( DISTINCT 36 ) - - 95 ) * + 2 ) END * - CASE - 30 WHEN + 8 * 86 + + + ( + MIN ( - 25 ) ) + - 18 + + + 48 - 85 - 73 THEN + + 53 WHEN COUNT ( * ) THEN COUNT ( * ) + - 49 + + 48 ELSE 61 END - 33
----
NULL

query I rowsort
SELECT + 49 + + - 73 * - + 93 AS col1
----
6838

query II rowsort
SELECT ALL 49 AS col1, - 22 AS col1
----
49
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2434
SELECT COALESCE ( - ( + 83 ), + 56 ) + CASE - + CAST( 76 AS SIGNED ) WHEN + 8 + - CAST( NULL AS SIGNED ) / - 4 * 26 THEN CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT COALESCE ( - ( + 83 ), + 56 ) + CASE - + CAST ( 76 AS INTEGER ) WHEN + 8 + - CAST ( NULL AS INTEGER ) / - 4 * 26 THEN CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT 66 + + + 26
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT COALESCE ( - COUNT( * ), - 79 ) * + 82 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2436
SELECT COALESCE ( - COUNT ( * ), - 79 ) * + 82 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT 72 * - COUNT( * ) * 51
----
-3672

skipif mysql # not compatible
query I rowsort label-2437
SELECT 72 * - COUNT ( * ) * 51
----
-3672

query II rowsort
SELECT 75 + - - 81 - 31 AS col0, 92 * + 42 AS col1
----
125
3864

query II rowsort
SELECT 32, 76 col1
----
32
76

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

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

query I rowsort
SELECT 56 + - + 32
----
24

query I rowsort
SELECT 62 * + 29
----
1798

query II rowsort
SELECT DISTINCT ( + 88 ) + 77 AS col0, + 67
----
165
67

query I rowsort
SELECT ALL 12 + - + ( - 23 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT DISTINCT + 77 * + + NULLIF ( - + COUNT( - + 38 ), + + 54 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT + 77 * + + NULLIF ( - + COUNT ( - + 38 ), + + 54 ) AS col2
----
-77

query I rowsort
SELECT 75 + - 24
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT ALL - 5 + + + COUNT( * ) + + NULLIF ( - 31, 77 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL - 5 + + + COUNT ( * ) + + NULLIF ( - 31, 77 ) AS col0
----
-35

query I rowsort
SELECT DISTINCT + 41 + 54 + - 79 + - 31
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT COUNT( * ) + 44 * - 68 * - + MIN( DISTINCT + 36 )
----
107713

skipif mysql # not compatible
query I rowsort label-2449
SELECT COUNT ( * ) + 44 * - 68 * - + MIN ( DISTINCT + 36 )
----
107713

query II rowsort
SELECT 13 AS col2, - 52 AS col2
----
13
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-2451
SELECT 48 AS col1, SUM( NULLIF ( ( - - 99 ), - + 46 * 11 ) )
----
48
99

skipif mysql # not compatible
query II rowsort label-2451
SELECT 48 AS col1, SUM ( NULLIF ( ( - - 99 ), - + 46 * 11 ) )
----
48
99

query I rowsort
SELECT 10 + + - 96 AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2453
SELECT NULLIF ( + - ( + - 84 ), + - 73 * - 62 ) * - 47 * + + SUM( + - 56 ) * + - COUNT( * ) + - - COALESCE ( 95, CAST( NULL AS SIGNED ) * + + CAST( - 20 AS SIGNED ) ) + 58 AS col2
----
-220935

skipif mysql # not compatible
query I rowsort label-2453
SELECT NULLIF ( + - ( + - 84 ), + - 73 * - 62 ) * - 47 * + + SUM ( + - 56 ) * + - COUNT ( * ) + - - COALESCE ( 95, CAST ( NULL AS INTEGER ) * + + CAST ( - 20 AS INTEGER ) ) + 58 AS col2
----
-220935

query II rowsort
SELECT ALL - CASE - + 95 WHEN + 40 THEN - 44 WHEN + 81 / + 94 * + AVG ( - + 45 ) - 54 THEN NULL ELSE + 55 END - 13 AS col2, 45 AS col0
----
-68
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL + MIN( - + 98 ) - - 67 * 1 * 33 col0
----
2113

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL + MIN ( - + 98 ) - - 67 * 1 * 33 col0
----
2113

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT + COALESCE ( 95, + - 48 + COUNT( * ) * + 20 ) * MAX( DISTINCT - 7 ) * 61 * SUM( DISTINCT 25 )
----
-1014125

skipif mysql # not compatible
query I rowsort label-2456
SELECT + COALESCE ( 95, + - 48 + COUNT ( * ) * + 20 ) * MAX ( DISTINCT - 7 ) * 61 * SUM ( DISTINCT 25 )
----
-1014125

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT - 76 * + + ( - 40 ) + - MIN( DISTINCT 38 ) + - - ( + SUM( + + 0 ) ) AS col2
----
3002

skipif mysql # not compatible
query I rowsort label-2457
SELECT - 76 * + + ( - 40 ) + - MIN ( DISTINCT 38 ) + - - ( + SUM ( + + 0 ) ) AS col2
----
3002

query I rowsort
SELECT DISTINCT - NULLIF ( - + 74, 68 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT + CASE 86 WHEN COUNT( - + 83 ) THEN NULL ELSE - 12 END * - 34
----
408

skipif mysql # not compatible
query I rowsort label-2459
SELECT + CASE 86 WHEN COUNT ( - + 83 ) THEN NULL ELSE - 12 END * - 34
----
408

query I rowsort
SELECT 3 + + - 52 * + 86 * + + 52 AS col1
----
-232541

query I rowsort
SELECT 34 + - 57 * + - 67 AS col1
----
3853

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT + MAX( + - 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-2462
SELECT + MAX ( + - 81 ) AS col1
----
-81

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

query I rowsort
SELECT DISTINCT - + 99 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL - COALESCE ( - + 56, - 33 ) * + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL - COALESCE ( - + 56, - 33 ) * + COUNT ( * )
----
56

query II rowsort
SELECT DISTINCT - 85 AS col2, + 81
----
-85
81

query I rowsort
SELECT ALL + 47 + + 76
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-2468
SELECT 30 * - - 80 AS col1, + 52 * + COUNT( * )
----
2400
52

skipif mysql # not compatible
query II rowsort label-2468
SELECT 30 * - - 80 AS col1, + 52 * + COUNT ( * )
----
2400
52

query I rowsort
SELECT CASE + 96 WHEN + + 84 THEN 25 WHEN 34 / - 67 * - 26 * - 1 THEN NULL WHEN - 58 THEN - + 44 END * - 63 + + + 26
----
NULL

query I rowsort
SELECT DISTINCT 66 + + 9 - - - 49 + + 41 * - 58 AS col2
----
-2352

query I rowsort
SELECT 56 * 90 * 31
----
156240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2472
SELECT DISTINCT - 18 + - CASE + CAST( + 63 AS SIGNED ) WHEN + 96 - - 65 THEN - + 89 WHEN + ( - + 69 ) * COUNT( * ) + + 40 THEN NULL END + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT - 18 + - CASE + CAST ( + 63 AS INTEGER ) WHEN + 96 - - 65 THEN - + 89 WHEN + ( - + 69 ) * COUNT ( * ) + + 40 THEN NULL END + 85 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2473
SELECT - SUM( 81 ), - CAST( + NULLIF ( + - 96, + - 80 + 64 ) AS SIGNED ) * - - 94 * + - 83 DIV - COUNT( * ) AS col0
----
-81
748992

skipif mysql # not compatible
query II rowsort label-2473
SELECT - SUM ( 81 ), - CAST ( + NULLIF ( + - 96, + - 80 + 64 ) AS INTEGER ) * - - 94 * + - 83 / - COUNT ( * ) AS col0
----
-81
748992

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT ALL 65 + - CASE - 53 WHEN + 62 * 35 + + COUNT( * ) * - 93 THEN NULL ELSE + 45 * + 4 * - 89 + - 83 END * ( 29 )
----
467052

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL 65 + - CASE - 53 WHEN + 62 * 35 + + COUNT ( * ) * - 93 THEN NULL ELSE + 45 * + 4 * - 89 + - 83 END * ( 29 )
----
467052

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT DISTINCT 24 + - 38 + + 30 / - NULLIF ( - 19, - + 0 ) * - CASE + + 89 WHEN 72 - + 96 THEN + - COUNT( * ) / - 26 + 23 WHEN + 66 THEN NULL END * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT 24 + - 38 + + 30 / - NULLIF ( - 19, - + 0 ) * - CASE + + 89 WHEN 72 - + 96 THEN + - COUNT ( * ) / - 26 + 23 WHEN + 66 THEN NULL END * 77
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2478
SELECT DISTINCT COUNT( * ) * ( - 0 ) * 13 * + NULLIF ( - 60, CASE + 59 WHEN 12 THEN + + MIN( DISTINCT 15 ) END + - 75 ) AS col0, + 41
----
0
41

skipif mysql # not compatible
query II rowsort label-2478
SELECT DISTINCT COUNT ( * ) * ( - 0 ) * 13 * + NULLIF ( - 60, CASE + 59 WHEN 12 THEN + + MIN ( DISTINCT 15 ) END + - 75 ) AS col0, + 41
----
0
41

query I rowsort
SELECT 10 * 98 AS col2
----
980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2480
SELECT CAST( + 69 AS SIGNED ) * - + 95 * COUNT( * ) AS col0
----
-6555

skipif mysql # not compatible
query I rowsort label-2480
SELECT CAST ( + 69 AS INTEGER ) * - + 95 * COUNT ( * ) AS col0
----
-6555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2481
SELECT ALL + 28 * ( SUM( DISTINCT 47 ) ) DIV + 15
----
87

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL + 28 * ( SUM ( DISTINCT 47 ) ) / + 15
----
87

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

query I rowsort
SELECT DISTINCT + 85 col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT DISTINCT - - 63 * 35 + + - 55 + 87 - COUNT( * ) col1
----
2236

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT - - 63 * 35 + + - 55 + 87 - COUNT ( * ) col1
----
2236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2485
SELECT - 55 * - 13 + + - CAST( - 47 AS SIGNED ) * 89 - + + COUNT( * ) + + 72 AS col0
----
4969

skipif mysql # not compatible
query I rowsort label-2485
SELECT - 55 * - 13 + + - CAST ( - 47 AS INTEGER ) * 89 - + + COUNT ( * ) + + 72 AS col0
----
4969

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT ALL - - ( + 84 ) DIV 81
----
1

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL - - ( + 84 ) / 81
----
1

query II rowsort
SELECT ALL - ( - + 75 ) AS col1, + 86 AS col2
----
75
86

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

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT - + 2 / - - COUNT ( * )
----
-2

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

skipif mysql # not compatible
query I rowsort label-2489
SELECT - ( - 53 ) / 47 - + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT 28 DIV - + 78 + 1 * + 91 * 30 + - - 15 DIV - ( 70 )
----
2730

skipif mysql # not compatible
query I rowsort label-2490
SELECT 28 / - + 78 + 1 * + 91 * 30 + - - 15 / - ( 70 )
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT 72 * - + 63 + COUNT( * ) AS col1
----
-4535

skipif mysql # not compatible
query I rowsort label-2491
SELECT 72 * - + 63 + COUNT ( * ) AS col1
----
-4535

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL + COUNT( * ) * + 33 col1
----
33

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL + COUNT ( * ) * + 33 col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT DISTINCT + + 23 * CASE + - COUNT( * ) WHEN - COUNT( * ) * - - CASE + 26 WHEN + 90 * + + CASE + 15 WHEN 44 * - - CASE COUNT( 46 ) WHEN + 5 THEN NULL WHEN + 71 + COUNT( * ) THEN - 92 * 64 + + - 28 + - + 74 ELSE NULL END + - CASE 20 WHEN + + 5 THEN - 86 + + 23 + - - 37 WHEN - 99 THEN - - 19 * - COUNT( 12 ) / COUNT( * ) ELSE + 7 * - ( + CASE + + COUNT( * ) WHEN + + AVG ( ALL - 72 ) * + + 96 THEN + COUNT( * ) / 28 WHEN + 38 + 33 THEN NULL END ) END * 69 THEN NULL WHEN + AVG ( DISTINCT + 6 ) THEN + MAX( ALL 63 ) END THEN 34 + ( + ( + 34 ) ) END + 25 * - 20 THEN NULL WHEN + NULLIF ( 61, - 76 ) * 86 THEN NULL ELSE + CASE 36 WHEN - 49 THEN NULL WHEN ( - 22 ) * 0 THEN NULL ELSE + 50 END END * COUNT( * ) AS col0
----
1150

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT + + 23 * CASE + - COUNT ( * ) WHEN - COUNT ( * ) * - - CASE + 26 WHEN + 90 * + + CASE + 15 WHEN 44 * - - CASE COUNT ( 46 ) WHEN + 5 THEN NULL WHEN + 71 + COUNT ( * ) THEN - 92 * 64 + + - 28 + - + 74 ELSE NULL END + - CASE 20 WHEN + + 5 THEN - 86 + + 23 + - - 37 WHEN - 99 THEN - - 19 * - COUNT ( 12 ) / COUNT ( * ) ELSE + 7 * - ( + CASE + + COUNT ( * ) WHEN + + AVG ( ALL - 72 ) * + + 96 THEN + COUNT ( * ) / 28 WHEN + 38 + 33 THEN NULL END ) END * 69 THEN NULL WHEN + AVG ( DISTINCT + 6 ) THEN + MAX ( ALL 63 ) END THEN 34 + ( + ( + 34 ) ) END + 25 * - 20 THEN NULL WHEN + NULLIF ( 61, - 76 ) * 86 THEN NULL ELSE + CASE 36 WHEN - 49 THEN NULL WHEN ( - 22 ) * 0 THEN NULL ELSE + 50 END END * COUNT ( * ) AS col0
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL - + 46 * + + 37 + - - COUNT( * ) AS col1
----
-1701

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL - + 46 * + + 37 + - - COUNT ( * ) AS col1
----
-1701

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL + + 48 * + 88 * - - COUNT( * )
----
4224

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL + + 48 * + 88 * - - COUNT ( * )
----
4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2497
SELECT - CAST( - + COUNT( * ) AS SIGNED ) * - 0 + - - 69 + - 42 - CASE + - 38 WHEN 51 THEN - ( - + 31 ) WHEN - - 28 THEN NULL WHEN - - 98 * + 90 THEN NULL END + + 70 * - 95 / + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) * - 0 + - - 69 + - 42 - CASE + - 38 WHEN 51 THEN - ( - + 31 ) WHEN - - 28 THEN NULL WHEN - - 98 * + 90 THEN NULL END + + 70 * - 95 / + 39 AS col1
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT 31 * + 49 + + 10 + 53 * + + COUNT( ALL - - 62 ) + - + 56 + - - 76 * + 0
----
1526

skipif mysql # not compatible
query I rowsort label-2501
SELECT 31 * + 49 + + 10 + 53 * + + COUNT ( ALL - - 62 ) + - + 56 + - - 76 * + 0
----
1526

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT + COUNT( - 95 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2502
SELECT + COUNT ( - 95 ) AS col1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT - COUNT( * ) + - 5 * + 87 * + + 93 col2
----
-40456

skipif mysql # not compatible
query I rowsort label-2504
SELECT - COUNT ( * ) + - 5 * + 87 * + + 93 col2
----
-40456

query I rowsort
SELECT + 7 + - 90
----
-83

query I rowsort
SELECT ALL 19 * 80 * - + 95 AS col1
----
-144400

onlyif mysql # DIV for integer division: 
query I rowsort label-2507
SELECT DISTINCT - 59 DIV - 40 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT - 59 / - 40 AS col2
----
1

query II rowsort
SELECT ALL + 4 + - 15 - + 84 AS col1, + 13
----
-95
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2509
SELECT - COUNT( + ( + 82 ) ), + 5 AS col0
----
-1
5

skipif mysql # not compatible
query II rowsort label-2509
SELECT - COUNT ( + ( + 82 ) ), + 5 AS col0
----
-1
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2510
SELECT DISTINCT 69 AS col0, - MAX( + 0 ) AS col0
----
69
0

skipif mysql # not compatible
query II rowsort label-2510
SELECT DISTINCT 69 AS col0, - MAX ( + 0 ) AS col0
----
69
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT DISTINCT 24 + 4 * - - 40 * - CAST( CAST( 81 AS SIGNED ) AS SIGNED ) AS col1
----
-12936

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT 24 + 4 * - - 40 * - CAST ( CAST ( 81 AS INTEGER ) AS INTEGER ) AS col1
----
-12936

query I rowsort
SELECT ALL 83 * + 50
----
4150

query II rowsort
SELECT 43, - 40 AS col2
----
43
-40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT + 29 + CAST( + 22 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-2515
SELECT + 29 + CAST ( + 22 AS INTEGER )
----
51

query I rowsort
SELECT + 41 * - - 11
----
451

query II rowsort
SELECT + 47 * ( + 81 ) AS col1, 26 AS col1
----
3807
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2518
SELECT + CAST( NULL AS SIGNED ) + + 51 * + + CAST( NULL AS SIGNED ) AS col0, + 69
----
NULL
69

skipif mysql # not compatible
query II rowsort label-2518
SELECT + CAST ( NULL AS INTEGER ) + + 51 * + + CAST ( NULL AS INTEGER ) AS col0, + 69
----
NULL
69

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

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

query I rowsort
SELECT + 11 * + 35 AS col0
----
385

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT ALL 17 DIV - + 1
----
-17

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL 17 / - + 1
----
-17

query I rowsort
SELECT ALL - 76 * - 57 AS col2
----
4332

query I rowsort
SELECT - 13 + - 61 AS col2
----
-74

query I rowsort
SELECT ALL 83 * + 20 AS col0
----
1660

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

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

query I rowsort
SELECT - - 21 * + 48 + + 59 AS col2
----
1067

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2527
SELECT ALL + COUNT( * ) * + 5 - + 61, - 75 DIV 78 AS col1
----
-56
0

skipif mysql # not compatible
query II rowsort label-2527
SELECT ALL + COUNT ( * ) * + 5 - + 61, - 75 / 78 AS col1
----
-56
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2528
SELECT - MIN( COALESCE ( + 57, - + 96, ( + 13 ) + ( - 78 ) DIV + 76 ) ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-2528
SELECT - MIN ( COALESCE ( + 57, - + 96, ( + 13 ) + ( - 78 ) / + 76 ) ) AS col0
----
-57

query I rowsort
SELECT DISTINCT + - ( - 25 )
----
25

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT + 29 * ( - - 77 ) + + - 79 + + 29 * + - COUNT( * ) AS col1
----
2125

skipif mysql # not compatible
query I rowsort label-2532
SELECT + 29 * ( - - 77 ) + + - 79 + + 29 * + - COUNT ( * ) AS col1
----
2125

onlyif mysql # DIV for integer division: 
query I rowsort label-2533
SELECT ALL - - 58 DIV 57 + + - 36 * - 85
----
3061

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL - - 58 / 57 + + - 36 * - 85
----
3061

query I rowsort
SELECT DISTINCT 95 * - - 93 + 65 AS col0
----
8900

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT - - ( 97 ) * + MIN( ALL + + 25 )
----
2425

skipif mysql # not compatible
query I rowsort label-2535
SELECT - - ( 97 ) * + MIN ( ALL + + 25 )
----
2425

onlyif mysql # aggregate syntax: 
query II rowsort label-2536
SELECT + NULLIF ( + COUNT( * ), + 18 ) AS col2, 6 + 93 col0
----
1
99

skipif mysql # not compatible
query II rowsort label-2536
SELECT + NULLIF ( + COUNT ( * ), + 18 ) AS col2, 6 + 93 col0
----
1
99

query I rowsort
SELECT - + 70 + - 78 AS col2
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT ALL 67 * + CAST( NULL AS SIGNED ) + - + 56 + 92 * 48 * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL 67 * + CAST ( NULL AS INTEGER ) + - + 56 + 92 * 48 * + 25
----
NULL

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

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

query II rowsort
SELECT DISTINCT + 98 AS col0, - 20 + + 29
----
98
9

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

skipif mysql # not compatible
query I rowsort label-2541
SELECT - COUNT ( * ) * - 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT + 27 * - COUNT( * ) * 53 AS col0
----
-1431

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT + 27 * - COUNT ( * ) * 53 AS col0
----
-1431

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT ALL + 53 * MIN( + 51 ) * + + ( 34 ) * + + ( + 43 ) * + COUNT( * ) - 40 AS col0
----
3951746

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL + 53 * MIN ( + 51 ) * + + ( 34 ) * + + ( + 43 ) * + COUNT ( * ) - 40 AS col0
----
3951746

query I rowsort
SELECT ALL + COALESCE ( 40, 17 )
----
40

query I rowsort
SELECT NULLIF ( + - 52, + NULLIF ( - ( - - 78 ), + - CASE 76 WHEN - 85 - + - 39 + 90 + + 22 * - + 84 / - 84 * 72 + 27 THEN + 23 ELSE NULL END * - 90 + + ( + 17 ) ) - 72 ) AS col1
----
-52

query I rowsort
SELECT + 53 * - + 56 col1
----
-2968

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT - NULLIF ( - COUNT( * ), AVG ( ALL + 54 ) * + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2548
SELECT - NULLIF ( - COUNT ( * ), AVG ( ALL + 54 ) * + 39 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2549
SELECT ALL 60 * - - 8 - MAX( DISTINCT + + 68 ) AS col2, - ( - 6 ) * + ( + 81 )
----
412
486

skipif mysql # not compatible
query II rowsort label-2549
SELECT ALL 60 * - - 8 - MAX ( DISTINCT + + 68 ) AS col2, - ( - 6 ) * + ( + 81 )
----
412
486

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT SUM( + 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2550
SELECT SUM ( + 9 ) AS col1
----
9

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

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

query I rowsort
SELECT DISTINCT + 42 * + 74 - 12 + + - 79 * + - 50
----
7046

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL - COUNT ( * ) / + ( COALESCE ( + 94, COUNT ( * ) ) ) AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT ALL SUM( DISTINCT - 13 ) * - + MAX( - 53 ) + + 23
----
-666

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL SUM ( DISTINCT - 13 ) * - + MAX ( - 53 ) + + 23
----
-666

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

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

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

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

query II rowsort
SELECT - 72, 51 AS col2
----
-72
51

query I rowsort
SELECT + + 6 - 31
----
-25

query I rowsort
SELECT DISTINCT - 43 + - + 80 AS col2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ALL COUNT( * ) + + 50 + - + 5 + + 53 * + + 11
----
629

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL COUNT ( * ) + + 50 + - + 5 + + 53 * + + 11
----
629

query I rowsort
SELECT 89 * - + 69 + 4 AS col2
----
-6137

query I rowsort
SELECT DISTINCT 60 + - - COALESCE ( - - CASE - + 4 WHEN - 96 + - + 59 + + 34 + 63 THEN 19 END, 39 * 15 * + 33 * - 38, + 25 ) col1
----
-733530

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT + 18 + - MIN( 20 )
----
-2

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT + 18 + - MIN ( 20 )
----
-2

query I rowsort
SELECT 68 * + - 73 AS col0
----
-4964

onlyif mysql # aggregate syntax: 
query I rowsort label-2570
SELECT + MIN( + - 1 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2570
SELECT + MIN ( + - 1 ) col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL + 69 + + + COUNT ( * ) AS col0
----
70

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

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

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

query I rowsort
SELECT - 59 * + 10 + - 55
----
-645

query II rowsort
SELECT DISTINCT - 78, + 15 + 86 + + - 95 col1
----
-78
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2576
SELECT ALL 13 + + COUNT( + + COALESCE ( + + 50, + + 54, CAST( NULL AS SIGNED ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL 13 + + COUNT ( + + COALESCE ( + + 50, + + 54, CAST ( NULL AS INTEGER ) ) )
----
14

query I rowsort
SELECT ALL 90 * 44
----
3960

query I rowsort
SELECT DISTINCT 48 - - 52 - + 8 AS col0
----
92

query I rowsort
SELECT 91 - - - 3 col1
----
88

query I rowsort
SELECT 74 + - - 7 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT COUNT( * ) * 82 + 35 + + - 25
----
92

skipif mysql # not compatible
query I rowsort label-2581
SELECT COUNT ( * ) * 82 + 35 + + - 25
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2582
SELECT 19 * 51 DIV + 89 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2582
SELECT 19 * 51 / + 89 AS col2
----
10

query I rowsort
SELECT 90 + ( 22 ) - - 88 AS col0
----
200

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

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

query I rowsort
SELECT 6 * 92 * - - 78
----
43056

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL + MAX( + - 55 ) * - COUNT( * ) * 92 col2
----
5060

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL + MAX ( + - 55 ) * - COUNT ( * ) * 92 col2
----
5060

onlyif mysql # DIV for integer division: 
query I rowsort label-2587
SELECT DISTINCT - 24 * - + 33 DIV - COALESCE ( - 3, + 3 * - - 99 )
----
264

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT - 24 * - + 33 / - COALESCE ( - 3, + 3 * - - 99 )
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ALL + CASE + 90 WHEN - - 37 THEN NULL WHEN - ( + + COUNT( * ) ) THEN + - 12 * 3 + - + 42 END * + 98 / - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL + CASE + 90 WHEN - - 37 THEN NULL WHEN - ( + + COUNT ( * ) ) THEN + - 12 * 3 + - + 42 END * + 98 / - 12 AS col2
----
NULL

query I rowsort
SELECT 96 * + - 34 AS col0
----
-3264

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT COUNT( * ) + - 8 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2590
SELECT COUNT ( * ) + - 8 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT - - CASE - + ( + 30 ) WHEN - 14 / - - MAX( - - COALESCE ( + + 31, 58 * - 33 ) ) + + 9 THEN - + COUNT( DISTINCT 92 ) + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2591
SELECT - - CASE - + ( + 30 ) WHEN - 14 / - - MAX ( - - COALESCE ( + + 31, 58 * - 33 ) ) + + 9 THEN - + COUNT ( DISTINCT 92 ) + COUNT ( * ) END
----
NULL

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

query I rowsort
SELECT - NULLIF ( + COALESCE ( + 18, - + 77 ), 42 )
----
-18

query II rowsort
SELECT 65 * 67 AS col1, 81 * - 39 * + - 52 * - 74
----
4355
-12155832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2595
SELECT DISTINCT + COUNT( ALL - - 69 ) col2, + NULLIF ( CAST( NULL AS SIGNED ), + 39 + - 29 ) - ( 72 ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2595
SELECT DISTINCT + COUNT ( ALL - - 69 ) col2, + NULLIF ( CAST ( NULL AS INTEGER ), + 39 + - 29 ) - ( 72 ) AS col0
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2596
SELECT DISTINCT + - 91 + + 17 DIV - ( + 57 )
----
-91

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT + - 91 + + 17 / - ( + 57 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT ALL - + 29 + 81 + + - CAST( NULL AS SIGNED ) col1
----
NULL

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

query II rowsort
SELECT ALL + 55 + + 36, 6 AS col0
----
91
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2599
SELECT DISTINCT + - 16 * + COUNT( * ) AS col0, - 18 AS col2
----
-16
-18

skipif mysql # not compatible
query II rowsort label-2599
SELECT DISTINCT + - 16 * + COUNT ( * ) AS col0, - 18 AS col2
----
-16
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2600
SELECT 34 - + 92 - + - 50 - + - 57 + - + 80 * 17 + ( + 85 ) - - COUNT( * ) * - COUNT( DISTINCT + - 21 ) DIV - ( + 76 ) + 22 * + - 32
----
-1930

skipif mysql # not compatible
query I rowsort label-2600
SELECT 34 - + 92 - + - 50 - + - 57 + - + 80 * 17 + ( + 85 ) - - COUNT ( * ) * - COUNT ( DISTINCT + - 21 ) / - ( + 76 ) + 22 * + - 32
----
-1930

query I rowsort
SELECT ALL + ( 30 ) * - 14
----
-420

query I rowsort
SELECT + 64 * 9 + - 3 AS col1
----
573

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT + + 90 DIV - ( 53 ) + + 60 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2603
SELECT + + 90 / - ( 53 ) + + 60 AS col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2604
SELECT DISTINCT 7 DIV 34 col0
----
0

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT 7 / 34 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2605
SELECT ALL - 20 AS col1, + ( COUNT( * ) ) DIV - ( - 14 ) AS col1
----
-20
0

skipif mysql # not compatible
query II rowsort label-2605
SELECT ALL - 20 AS col1, + ( COUNT ( * ) ) / - ( - 14 ) AS col1
----
-20
0

query I rowsort
SELECT + ( + 25 ) * + + 71 + - 16
----
1759

onlyif mysql # aggregate syntax: 
query II rowsort label-2607
SELECT ALL - 29, + CASE - ( 82 ) WHEN 96 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + 38 * + 81 END AS col0
----
-29
3078

skipif mysql # not compatible
query II rowsort label-2607
SELECT ALL - 29, + CASE - ( 82 ) WHEN 96 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + 38 * + 81 END AS col0
----
-29
3078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2608
SELECT 9 / - - 58 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT 9 / - - 58 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + 61 AS col2, 57 * + 92 * 11 AS col2
----
61
57684

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ( 11 ) + 41 + - CASE + COUNT( * ) WHEN + 5 THEN - 7 / - + NULLIF ( + COUNT( * ), 18 ) * - 48 * + + 92 - - 9 * - 31 + - 76 + 45 + - 81 * - + COUNT( * ) * + 5 END + 99 * - 98 + + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2610
SELECT ( 11 ) + 41 + - CASE + COUNT ( * ) WHEN + 5 THEN - 7 / - + NULLIF ( + COUNT ( * ), 18 ) * - 48 * + + 92 - - 9 * - 31 + - 76 + 45 + - 81 * - + COUNT ( * ) * + 5 END + 99 * - 98 + + - 26
----
NULL

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

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

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

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

query II rowsort
SELECT 83 AS col1, + 20 AS col2
----
83
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT ALL 0 * - COUNT( * ) * ( + + 3 )
----
0

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL 0 * - COUNT ( * ) * ( + + 3 )
----
0

query II rowsort
SELECT DISTINCT - 38 AS col0, + 28 AS col1
----
-38
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2616
SELECT ( - 99 ) DIV - - 27 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2616
SELECT ( - 99 ) / - - 27 AS col2
----
-3

query II rowsort
SELECT 78, 14 col1
----
78
14

query I rowsort
SELECT 44 * + 0 AS col0
----
0

query I rowsort
SELECT ALL + 47 + - - 57 AS col1
----
104

query I rowsort
SELECT ALL + + 93 + - 92 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL NULLIF ( + 79, + 96 + - + COALESCE ( - + MIN( DISTINCT - + 61 ), + + ( + ( - 60 ) ) + 75 - + SUM( + + 33 ), 82 ) * - 62 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL NULLIF ( + 79, + 96 + - + COALESCE ( - + MIN ( DISTINCT - + 61 ), + + ( + ( - 60 ) ) + 75 - + SUM ( + + 33 ), 82 ) * - 62 ) AS col0
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT DISTINCT + 43 + - COUNT( * ) + ( 20 ) + + 55
----
117

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT + 43 + - COUNT ( * ) + ( 20 ) + + 55
----
117

query I rowsort
SELECT - + ( - 84 ) col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL + COUNT( * ) + + 61 + 94 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL + COUNT ( * ) + + 61 + 94 AS col1
----
156

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

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL + - COUNT ( * ) * - - 48 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT DISTINCT - - 51 + 33 * + COUNT( * ) col1
----
84

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT - - 51 + 33 * + COUNT ( * ) col1
----
84

query I rowsort
SELECT - + 24 - - + 48
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT DISTINCT - NULLIF ( + + 69, + CAST( NULL AS SIGNED ) ) + - - 45 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT - NULLIF ( + + 69, + CAST ( NULL AS INTEGER ) ) + - - 45 AS col2
----
-24

query I rowsort
SELECT DISTINCT + 61 - - - 67 AS col0
----
-6

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2633
SELECT - + ( - 94 ) * 84 * + + ( - 20 ) * - 27 * 68 * + CASE - 35 WHEN 58 THEN - CAST( NULL AS SIGNED ) WHEN - 10 THEN - + MAX( DISTINCT - 34 ) * + - 92 / - - 5 * + ( 65 ) WHEN ( + NULLIF ( 48, 9 * NULLIF ( + 56, 12 ) ) ) THEN + ( - CAST( - 6 AS SIGNED ) ) * - + 5 + 18 + - 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT - + ( - 94 ) * 84 * + + ( - 20 ) * - 27 * 68 * + CASE - 35 WHEN 58 THEN - CAST ( NULL AS INTEGER ) WHEN - 10 THEN - + MAX ( DISTINCT - 34 ) * + - 92 / - - 5 * + ( 65 ) WHEN ( + NULLIF ( 48, 9 * NULLIF ( + 56, 12 ) ) ) THEN + ( - CAST ( - 6 AS INTEGER ) ) * - + 5 + 18 + - 29 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 17 * 28 + - - 61
----
537

query I rowsort
SELECT ALL + COALESCE ( + 58, + 71, 42 * + 85 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT ALL - 87 * + 16 * + COUNT( * )
----
-1392

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL - 87 * + 16 * + COUNT ( * )
----
-1392

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - 25 * - - 77 * - COUNT( * )
----
1925

skipif mysql # not compatible
query I rowsort label-2637
SELECT - 25 * - - 77 * - COUNT ( * )
----
1925

query I rowsort
SELECT + 31 * + 4
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT COALESCE ( + CASE + 52 WHEN - ( 60 ) THEN + + 62 + 0 END, + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-2639
SELECT COALESCE ( + CASE + 52 WHEN - ( 60 ) THEN + + 62 + 0 END, + + COUNT ( * ) )
----
1

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

skipif mysql # not compatible
query I rowsort label-2640
SELECT COALESCE ( - COUNT ( * ), + - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 42 * - 88 AS col1
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT + 95 * + NULLIF ( - + 37, + - COUNT( * ) ) AS col2
----
-3515

skipif mysql # not compatible
query I rowsort label-2642
SELECT + 95 * + NULLIF ( - + 37, + - COUNT ( * ) ) AS col2
----
-3515

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT ALL 6 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL 6 / - 81
----
0

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

skipif mysql # not compatible
query II rowsort label-2644
SELECT + 47 / + + COUNT ( * ), 58 AS col2
----
47
58

query I rowsort
SELECT + 64 - + 26
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-2646
SELECT NULLIF ( + + 20, + - MIN( + 83 ) ) AS col2, + 85 AS col2
----
20
85

skipif mysql # not compatible
query II rowsort label-2646
SELECT NULLIF ( + + 20, + - MIN ( + 83 ) ) AS col2, + 85 AS col2
----
20
85

query I rowsort
SELECT ALL - 50 * - 76 + + 54
----
3854

query I rowsort
SELECT CASE - + 81 WHEN 49 * - - ( - - 95 ) - 58 THEN + 63 WHEN 32 THEN NULL WHEN CASE 44 WHEN - + 76 THEN - 17 / AVG ( 89 ) END THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT + ( + COALESCE ( - COUNT( DISTINCT + 29 ), - - ( + 79 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2649
SELECT + ( + COALESCE ( - COUNT ( DISTINCT + 29 ), - - ( + 79 ) ) )
----
-1

query II rowsort
SELECT + 29 + 45 + 30 * + 5 * - 9 * 57 * + 18 AS col2, ( 45 ) * + + 4 + + 3 AS col1
----
-1385026
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2651
SELECT ALL + 51 * - CAST( NULL AS SIGNED ) + + - 49 + SUM( DISTINCT - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL + 51 * - CAST ( NULL AS INTEGER ) + + - 49 + SUM ( DISTINCT - 97 )
----
NULL

query I rowsort
SELECT + 5 + - 85 AS col1
----
-80

query I rowsort
SELECT + - 19 + 76 * - 57
----
-4351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2654
SELECT ALL + 11 * + 5 + + - CAST( + - 16 AS SIGNED ) * + 5 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL + 11 * + 5 + + - CAST ( + - 16 AS INTEGER ) * + 5 AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT + 31 - + 20 - ( - CASE + 92 WHEN 37 THEN NULL WHEN + 10 THEN + COUNT( * ) + + 33 + - - 96 + 51 + 84 + + + 90 / - - 85 * + - 47 - COALESCE ( - + 27, + ( - - 43 ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT + 31 - + 20 - ( - CASE + 92 WHEN 37 THEN NULL WHEN + 10 THEN + COUNT ( * ) + + 33 + - - 96 + 51 + 84 + + + 90 / - - 85 * + - 47 - COALESCE ( - + 27, + ( - - 43 ) ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT ALL 49 - + - ( - - 86 ) DIV - 87 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL 49 - + - ( - - 86 ) / - 87 AS col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-2657
SELECT + 19 * + + COUNT( * ) AS col0, + 95 + + 27
----
19
122

skipif mysql # not compatible
query II rowsort label-2657
SELECT + 19 * + + COUNT ( * ) AS col0, + 95 + + 27
----
19
122

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT + - SUM( ALL + 58 ) + - ( + 65 ) + 66
----
-57

skipif mysql # not compatible
query I rowsort label-2659
SELECT + - SUM ( ALL + 58 ) + - ( + 65 ) + 66
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2660
SELECT ALL - 12 DIV 43 + ( ( - + 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL - 12 / 43 + ( ( - + 1 ) )
----
-1

query I rowsort
SELECT ALL + 37 - - 28
----
65

query I rowsort
SELECT ALL - 57 - 93 AS col2
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-2663
SELECT - 82 DIV - NULLIF ( - 74, - 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-2663
SELECT - 82 / - NULLIF ( - 74, - 7 )
----
-1

query I rowsort
SELECT ALL ( + 15 ) AS col0
----
15

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

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

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

query I rowsort
SELECT - 7 * 95 col2
----
-665

query II rowsort
SELECT ALL + 55, + 37 AS col1
----
55
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2669
SELECT - 95 + - 35 DIV + + 65 AS col1, MAX( + 66 ) AS col1
----
-95
66

skipif mysql # not compatible
query II rowsort label-2669
SELECT - 95 + - 35 / + + 65 AS col1, MAX ( + 66 ) AS col1
----
-95
66

query I rowsort
SELECT ALL + ( + 95 ) AS col0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT - 71 * 18 DIV - - 31
----
-41

skipif mysql # not compatible
query I rowsort label-2671
SELECT - 71 * 18 / - - 31
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2672
SELECT ALL ( - 97 ) DIV COALESCE ( 86, 71 * - 73 + - 43 ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL ( - 97 ) / COALESCE ( 86, 71 * - 73 + - 43 ) + - COUNT ( * )
----
-2

query I rowsort
SELECT - 89 + - 77
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT - 35 * COUNT( * ) * - NULLIF ( 28, + 99 ) * 1
----
980

skipif mysql # not compatible
query I rowsort label-2674
SELECT - 35 * COUNT ( * ) * - NULLIF ( 28, + 99 ) * 1
----
980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2675
SELECT 83 / 39 + - 78 * + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT 83 / 39 + - 78 * + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL - COUNT ( * ) / - 40 + 33 AS col2
----
33

query II rowsort
SELECT 65 AS col0, 37
----
65
37

query II rowsort
SELECT + 35 col1, + 21 AS col2
----
35
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL MAX( ALL 87 ) + 75 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL MAX ( ALL 87 ) + 75 AS col0
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2680
SELECT DISTINCT CAST( + 67 AS SIGNED ) + + + 4 * + MAX( ALL - 86 ) + 14
----
-263

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT CAST ( + 67 AS INTEGER ) + + + 4 * + MAX ( ALL - 86 ) + 14
----
-263

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

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

query I rowsort
SELECT ALL 93 + - 42
----
51

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

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

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

skipif mysql # not compatible
query I rowsort label-2684
SELECT AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

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

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

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

query I rowsort
SELECT 12 * + + 90 + - 91 AS col1
----
989

query I rowsort
SELECT + - 42 AS col0
----
-42

query II rowsort
SELECT 36, + 16 AS col1
----
36
16

query I rowsort
SELECT ALL + 2 - - - 93 - - 20 * + 35 AS col1
----
609

query I rowsort
SELECT + 17 - + + 92 AS col1
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2692
SELECT COUNT( + 1 ) * - 80 + + - 70 - - + 38 DIV 59 + 61 * + 2
----
-28

skipif mysql # not compatible
query I rowsort label-2692
SELECT COUNT ( + 1 ) * - 80 + + - 70 - - + 38 / 59 + 61 * + 2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ALL 56 * 41 + ( - COUNT( * ) )
----
2295

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL 56 * 41 + ( - COUNT ( * ) )
----
2295

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

skipif mysql # not compatible
query I rowsort label-2694
SELECT + NULLIF ( COUNT ( * ), - 89 )
----
1

query I rowsort
SELECT ALL 23 * + - 60
----
-1380

query II rowsort
SELECT ALL + 17, - 69 col1
----
17
-69

query I rowsort
SELECT + 76 + 99 AS col1
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2698
SELECT ALL CASE MAX( DISTINCT 56 ) WHEN + 78 * + - 58 + + - 62 THEN + + CAST( NULL AS SIGNED ) WHEN 81 THEN - 64 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL CASE MAX ( DISTINCT 56 ) WHEN + 78 * + - 58 + + - 62 THEN + + CAST ( NULL AS INTEGER ) WHEN 81 THEN - 64 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2699
SELECT - NULLIF ( + - CASE - COUNT( * ) WHEN COUNT( * ) / - AVG ( + + COALESCE ( 4, + + 9 * - 85 ) ) * + COUNT( * ) * - 30 THEN - CAST( NULL AS SIGNED ) WHEN - - CASE + 21 WHEN 22 * - 29 THEN NULL WHEN + - 18 THEN - - COALESCE ( - CAST( NULL AS SIGNED ), - COUNT( * ) ) END THEN NULL WHEN - 70 THEN - CASE + - SUM( ALL 89 ) WHEN + COUNT( * ) THEN NULL ELSE + MIN( ALL + + 37 ) END * - 79 ELSE NULL END, 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT - NULLIF ( + - CASE - COUNT ( * ) WHEN COUNT ( * ) / - AVG ( + + COALESCE ( 4, + + 9 * - 85 ) ) * + COUNT ( * ) * - 30 THEN - CAST ( NULL AS INTEGER ) WHEN - - CASE + 21 WHEN 22 * - 29 THEN NULL WHEN + - 18 THEN - - COALESCE ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) END THEN NULL WHEN - 70 THEN - CASE + - SUM ( ALL 89 ) WHEN + COUNT ( * ) THEN NULL ELSE + MIN ( ALL + + 37 ) END * - 79 ELSE NULL END, 24 )
----
NULL

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

query I rowsort
SELECT 94 + + 54 * 96 AS col1
----
5278

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2702
SELECT DISTINCT 42 DIV + MIN( ALL 4 )
----
10

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT 42 / + MIN ( ALL 4 )
----
10

query I rowsort
SELECT ALL + NULLIF ( - 67, 37 ) * 69
----
-4623

onlyif mysql # DIV for integer division: 
query I rowsort label-2704
SELECT ( + 11 ) DIV + 63 * + 34
----
0

skipif mysql # not compatible
query I rowsort label-2704
SELECT ( + 11 ) / + 63 * + 34
----
0

query I rowsort
SELECT ALL 77 + - ( - - 47 ) + + 72
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-2706
SELECT DISTINCT 36 + - 29 AS col2, + COUNT( * ) AS col0
----
7
1

skipif mysql # not compatible
query II rowsort label-2706
SELECT DISTINCT 36 + - 29 AS col2, + COUNT ( * ) AS col0
----
7
1

query II rowsort
SELECT DISTINCT 63 AS col2, - ( - 37 ) * + 75 + - + 35 + - 75
----
63
2665

query I rowsort
SELECT 90 * + + COALESCE ( + 95, - + 0 + - 44 )
----
8550

onlyif mysql # aggregate syntax: 
query II rowsort label-2709
SELECT ALL 71 + + 56 + + 29 * COUNT( * ) * 19 * 57, - 68 + - 97 AS col1
----
31534
-165

skipif mysql # not compatible
query II rowsort label-2709
SELECT ALL 71 + + 56 + + 29 * COUNT ( * ) * 19 * 57, - 68 + - 97 AS col1
----
31534
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT 35 DIV + 70 * - + NULLIF ( - 50, + + 94 )
----
0

skipif mysql # not compatible
query I rowsort label-2710
SELECT 35 / + 70 * - + NULLIF ( - 50, + + 94 )
----
0

query II rowsort
SELECT DISTINCT - CASE + - 12 WHEN + 42 THEN - 13 ELSE NULL END AS col1, 89 AS col0
----
NULL
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL - 52 + - + COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL - 52 + - + COUNT ( * ) AS col1
----
-53

query I rowsort
SELECT 15 - + 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL - ( + ( - COALESCE ( - 50, - - 11 * + + 80 * 4 + - COUNT( ALL - - 49 ) * + 99 + + ( - 40 ) ) ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL - ( + ( - COALESCE ( - 50, - - 11 * + + 80 * 4 + - COUNT ( ALL - - 49 ) * + 99 + + ( - 40 ) ) ) ) AS col1
----
-50

query I rowsort
SELECT 25 - 91 + - 91
----
-157

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2716
SELECT ALL NULLIF ( - - 92, CAST( + 15 AS DECIMAL ) ) + - 46 * + NULLIF ( - - COUNT( * ), + - 28 )
----
46

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL NULLIF ( - - 92, CAST ( + 15 AS REAL ) ) + - 46 * + NULLIF ( - - COUNT ( * ), + - 28 )
----
46

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

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

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT - MAX ( - - 47 )
----
-47

query I rowsort
SELECT 41 * + + 66 AS col1
----
2706

query II rowsort
SELECT DISTINCT - 76, 72 + + 78 AS col1
----
-76
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT DISTINCT - 34 - - 0 + + 0 + - 73 * + COUNT( * )
----
-107

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT - 34 - - 0 + + 0 + - 73 * + COUNT ( * )
----
-107

query I rowsort
SELECT + 35 - - - 25 + - + 90 col1
----
-80

query I rowsort
SELECT + 74 * 13 + 83
----
1045

query II rowsort
SELECT + 31 AS col0, + 72
----
31
72

query I rowsort
SELECT ALL + + 32 * 45 AS col1
----
1440

query I rowsort
SELECT - 1 + - ( - 58 ) col1
----
57

onlyif mysql # aggregate syntax: 
query III rowsort label-2727
SELECT ALL - 6, + 76 AS col0, COALESCE ( - + COUNT( DISTINCT - + 71 ), - 80 ) AS col0
----
-6
76
-1

skipif mysql # not compatible
query III rowsort label-2727
SELECT ALL - 6, + 76 AS col0, COALESCE ( - + COUNT ( DISTINCT - + 71 ), - 80 ) AS col0
----
-6
76
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT - COUNT( - - 68 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2729
SELECT - COUNT ( - - 68 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - COALESCE ( - + 80, + ( 1 ) ) AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT ALL 68 DIV - + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL 68 / - + 94 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2732
SELECT 26 DIV - 23 * - COUNT( - 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2732
SELECT 26 / - 23 * - COUNT ( - 79 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT - + MIN( 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2733
SELECT - + MIN ( 2 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT + CASE 6 WHEN - + 5 THEN + 21 * + + 78 / 74 + + + MAX( + + 24 ) * + 19 + - 24 - + 88 WHEN + - 31 THEN NULL END + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT + CASE 6 WHEN - + 5 THEN + 21 * + + 78 / 74 + + + MAX ( + + 24 ) * + 19 + - 24 - + 88 WHEN + - 31 THEN NULL END + 51 AS col1
----
NULL

query I rowsort
SELECT 75 * - 55 * 7
----
-28875

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2737
SELECT ALL + 29 DIV + 80 + + COUNT( * ) * - 21
----
-21

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL + 29 / + 80 + + COUNT ( * ) * - 21
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2738
SELECT COUNT( * ) DIV + ( + 67 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2738
SELECT COUNT ( * ) / + ( + 67 ) col2
----
0

query I rowsort
SELECT - 73 * + 32 col0
----
-2336

query I rowsort
SELECT CASE 30 WHEN + 89 THEN + 63 * 42 WHEN + 76 * + 45 THEN + ( 95 ) + - 51 ELSE NULL END + - 71 AS col2
----
NULL

query I rowsort
SELECT - CASE - - 19 WHEN - 52 + - 18 THEN - ( - 27 ) END AS col2
----
NULL

query I rowsort
SELECT 95 * - - 15 AS col0
----
1425

query I rowsort
SELECT ALL 57 + - 54 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL - SUM( DISTINCT + - 51 ) + - - COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL - SUM ( DISTINCT + - 51 ) + - - COUNT ( * ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT COUNT( * ) * - 14 * 16 AS col2
----
-224

skipif mysql # not compatible
query I rowsort label-2745
SELECT COUNT ( * ) * - 14 * 16 AS col2
----
-224

query II rowsort
SELECT ALL - 83 + 29 AS col2, 96 col2
----
-54
96

query I rowsort
SELECT ALL 78 + + 81
----
159

query I rowsort
SELECT 90 + - 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT DISTINCT MIN( + + 68 ) + - 13 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT MIN ( + + 68 ) + - 13 AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2750
SELECT ALL NULLIF ( + 8, + COUNT( * ) + - SUM( ALL - 35 ) * - - COUNT( * ) * + COUNT( * ) * + 51 ) + - 94 * - CAST( + 94 AS SIGNED ) AS col2
----
8844

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL NULLIF ( + 8, + COUNT ( * ) + - SUM ( ALL - 35 ) * - - COUNT ( * ) * + COUNT ( * ) * + 51 ) + - 94 * - CAST ( + 94 AS INTEGER ) AS col2
----
8844

query I rowsort
SELECT + 29 + + - 3
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT + NULLIF ( - + 85, + CAST( NULL AS SIGNED ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-2752
SELECT + NULLIF ( - + 85, + CAST ( NULL AS INTEGER ) ) AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2753
SELECT DISTINCT - 59 * + CASE + ( 7 ) WHEN + NULLIF ( 28, 31 * - 69 - + ( - - 20 ) * - 81 * - 53 ) * - + ( 91 ) THEN - CAST( NULL AS SIGNED ) - + CASE + 81 WHEN - COUNT( * ) + + COUNT( * ) + + - 90 THEN NULL WHEN - 82 THEN + 50 + 39 * - 78 END END - + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT - 59 * + CASE + ( 7 ) WHEN + NULLIF ( 28, 31 * - 69 - + ( - - 20 ) * - 81 * - 53 ) * - + ( 91 ) THEN - CAST ( NULL AS INTEGER ) - + CASE + 81 WHEN - COUNT ( * ) + + COUNT ( * ) + + - 90 THEN NULL WHEN - 82 THEN + 50 + 39 * - 78 END END - + - 19
----
NULL

query I rowsort
SELECT + 97 * 37 + 6 * + - 89 AS col2
----
3055

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT - 46 + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-2755
SELECT - 46 + COUNT ( * )
----
-45

query I rowsort
SELECT ALL + - 16 AS col0
----
-16

query I rowsort
SELECT - - 88 * - 33
----
-2904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2758
SELECT DISTINCT + SUM( DISTINCT + - 67 ) col0, - NULLIF ( + + 98, + + 91 / - CAST( - 79 AS SIGNED ) )
----
-67
-98

skipif mysql # not compatible
query II rowsort label-2758
SELECT DISTINCT + SUM ( DISTINCT + - 67 ) col0, - NULLIF ( + + 98, + + 91 / - CAST ( - 79 AS INTEGER ) )
----
-67
-98

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

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

query I rowsort
SELECT - + 55 * ( - 62 )
----
3410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2761
SELECT ALL + + CASE 41 WHEN - - ( - 68 ) THEN - 96 WHEN + + 7 * + 91 * - 2 THEN NULL ELSE - COALESCE ( + 80, - ( CAST( + 2 AS SIGNED ) ), 72 + ( - COALESCE ( - 89, - + 54 * 48 DIV 36 * COUNT( * ) * - - COUNT( * ) * - + 5 * + 91 * 5 ) ) ) END AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL + + CASE 41 WHEN - - ( - 68 ) THEN - 96 WHEN + + 7 * + 91 * - 2 THEN NULL ELSE - COALESCE ( + 80, - ( CAST ( + 2 AS INTEGER ) ), 72 + ( - COALESCE ( - 89, - + 54 * 48 / 36 * COUNT ( * ) * - - COUNT ( * ) * - + 5 * + 91 * 5 ) ) ) END AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL + ( - + 54 ) * - 59 + + + CASE - - COUNT( * ) WHEN + + 59 * - 27 * + + 85 THEN NULL ELSE + + 50 END + - 32 * ( + 6 ) - + - COUNT( * ) AS col2
----
3045

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + ( - + 54 ) * - 59 + + + CASE - - COUNT ( * ) WHEN + + 59 * - 27 * + + 85 THEN NULL ELSE + + 50 END + - 32 * ( + 6 ) - + - COUNT ( * ) AS col2
----
3045

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT + 74 * + SUM( 37 ) + + + COUNT( * ) + + 18 * - 45
----
1929

skipif mysql # not compatible
query I rowsort label-2763
SELECT + 74 * + SUM ( 37 ) + + + COUNT ( * ) + + 18 * - 45
----
1929

onlyif mysql # aggregate syntax: 
query II rowsort label-2764
SELECT DISTINCT + 0 * 54 AS col2, - SUM( DISTINCT - 13 ) AS col1
----
0
13

skipif mysql # not compatible
query II rowsort label-2764
SELECT DISTINCT + 0 * 54 AS col2, - SUM ( DISTINCT - 13 ) AS col1
----
0
13

query I rowsort
SELECT - 62 * - + 64 - + 54
----
3914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2766
SELECT - SUM( ALL 10 ) DIV + 56 * + ( - 45 ) * MAX( DISTINCT CAST( NULL AS SIGNED ) ) - 53, + 2 DIV - 90 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2766
SELECT - SUM ( ALL 10 ) / + 56 * + ( - 45 ) * MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) - 53, + 2 / - 90 AS col1
----
NULL
0

query I rowsort
SELECT ALL - - 25 + + 48 + - 15 AS col0
----
58

query I rowsort
SELECT - ( - - 13 ) - 41 + + ( - 27 ) AS col0
----
-81

query I rowsort
SELECT DISTINCT + 39 + - - 78 AS col2
----
117

query I rowsort
SELECT + 29 * + ( - - 41 ) - + 61
----
1128

query I rowsort
SELECT ALL - COALESCE ( - - 43, 63 )
----
-43

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

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

query I rowsort
SELECT ALL + + 95 + + 27
----
122

query I rowsort
SELECT ALL - 96 + - 17
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 31 * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 31 * 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ALL MIN( - 92 ) + + 0 col0
----
-92

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL MIN ( - 92 ) + + 0 col0
----
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2777
SELECT ALL CAST( NULL AS DECIMAL ) + 94 * - 40 * + COALESCE ( - 55, - 18 + - + NULLIF ( - AVG ( ALL + + 62 ), + 82 / + AVG ( + 42 ) + - 65 + 66 * 88 ) ) / 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL CAST ( NULL AS REAL ) + 94 * - 40 * + COALESCE ( - 55, - 18 + - + NULLIF ( - AVG ( ALL + + 62 ), + 82 / + AVG ( + 42 ) + - 65 + 66 * 88 ) ) / 4 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT + 66 + + COUNT( * ) + - + 16
----
51

skipif mysql # not compatible
query I rowsort label-2779
SELECT + 66 + + COUNT ( * ) + - + 16
----
51

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL + MIN( DISTINCT - 12 ) + - ( + 93 ) AS col1
----
-105

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL + MIN ( DISTINCT - 12 ) + - ( + 93 ) AS col1
----
-105

query I rowsort
SELECT - 12 * - 10
----
120

query I rowsort
SELECT - NULLIF ( - 22, - + 14 * + ( 14 ) ) AS col0
----
22

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

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

query II rowsort
SELECT 46 AS col2, - 9 * + 33
----
46
-297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2787
SELECT DISTINCT ( + ( COUNT( * ) ) ) - 85 AS col1, 33 * - CASE - CAST( + 34 AS SIGNED ) WHEN - 54 * - COUNT( ALL + ( - - 78 ) ) + - + 92 * + 65 - - - MAX( + - 96 ) - + COALESCE ( 57, + 1 * - + 46 + 62 + - 77 + - 91 + + COUNT( * ) * + ( + 81 ) * - 52 + + 81 + MAX( DISTINCT 99 ) ) * + 54 THEN NULL WHEN + + 98 * + 41 * + + 54 / 4 THEN + - ( 50 ) ELSE NULL END AS col2
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-2787
SELECT DISTINCT ( + ( COUNT ( * ) ) ) - 85 AS col1, 33 * - CASE - CAST ( + 34 AS INTEGER ) WHEN - 54 * - COUNT ( ALL + ( - - 78 ) ) + - + 92 * + 65 - - - MAX ( + - 96 ) - + COALESCE ( 57, + 1 * - + 46 + 62 + - 77 + - 91 + + COUNT ( * ) * + ( + 81 ) * - 52 + + 81 + MAX ( DISTINCT 99 ) ) * + 54 THEN NULL WHEN + + 98 * + 41 * + + 54 / 4 THEN + - ( 50 ) ELSE NULL END AS col2
----
-84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT + COUNT( * ) - + 79 * + COUNT( * ) + + 75 + 41
----
38

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT + COUNT ( * ) - + 79 * + COUNT ( * ) + + 75 + 41
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2789
SELECT 62 AS col1, COALESCE ( + + 0, + 70, - CASE NULLIF ( COUNT( * ), + - 9 DIV 57 + COUNT( * ) + + 93 ) WHEN - - 68 DIV - - 15 THEN + COALESCE ( - - COUNT( 18 ), - MIN( ALL + 2 ) DIV + 80 + - COUNT( - 91 ) + + - 21 + 63 ) * + 60 END - - CAST( NULL AS SIGNED ) * - 65 + + 72 ) * - COALESCE ( - 85, + COUNT( * ) )
----
62
0

skipif mysql # not compatible
query II rowsort label-2789
SELECT 62 AS col1, COALESCE ( + + 0, + 70, - CASE NULLIF ( COUNT ( * ), + - 9 / 57 + COUNT ( * ) + + 93 ) WHEN - - 68 / - - 15 THEN + COALESCE ( - - COUNT ( 18 ), - MIN ( ALL + 2 ) / + 80 + - COUNT ( - 91 ) + + - 21 + 63 ) * + 60 END - - CAST ( NULL AS INTEGER ) * - 65 + + 72 ) * - COALESCE ( - 85, + COUNT ( * ) )
----
62
0

query II rowsort
SELECT ALL 79, NULLIF ( 70, - 87 ) col1
----
79
70

query III rowsort
SELECT DISTINCT ( - - 89 ) * + 24 AS col0, + 9 AS col2, 14 col2
----
2136
9
14

query II rowsort
SELECT ALL 32 AS col2, 55 * - 90 + - 49
----
32
-4999

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2793
SELECT 26 * 63 + 35 * - - 76 * + 91 * 59 AS col1, 70 * - + CASE + 63 WHEN 25 THEN - 31 WHEN + SUM( DISTINCT 93 ) THEN + 62 * + 56 / + CAST( NULL AS SIGNED ) ELSE NULL END col0
----
14283178
NULL

skipif mysql # not compatible
query II rowsort label-2793
SELECT 26 * 63 + 35 * - - 76 * + 91 * 59 AS col1, 70 * - + CASE + 63 WHEN 25 THEN - 31 WHEN + SUM ( DISTINCT 93 ) THEN + 62 * + 56 / + CAST ( NULL AS INTEGER ) ELSE NULL END col0
----
14283178
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2794
SELECT CAST( + - 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-2794
SELECT CAST ( + - 48 AS INTEGER )
----
-48

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2796
SELECT + 71 AS col1, 14 * 43 + - - COUNT( * ) * + 43 col2
----
71
645

skipif mysql # not compatible
query II rowsort label-2796
SELECT + 71 AS col1, 14 * 43 + - - COUNT ( * ) * + 43 col2
----
71
645

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT + + COUNT( * ) - - ( + 30 ) + 66 + + 34 + 44 AS col2
----
175

skipif mysql # not compatible
query I rowsort label-2797
SELECT + + COUNT ( * ) - - ( + 30 ) + 66 + + 34 + 44 AS col2
----
175

query I rowsort
SELECT ALL + 23 * 73 AS col2
----
1679

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

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL + + CAST ( NULL AS REAL ) AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT DISTINCT - ( - - 89 ) DIV + 78 + - 63
----
-64

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT - ( - - 89 ) / + 78 + - 63
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT + - 84 DIV - ( 79 ) + - 77 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-2802
SELECT + - 84 / - ( 79 ) + - 77 AS col2
----
-76

query I rowsort
SELECT DISTINCT + COALESCE ( 2, - 75 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT + 89 * - 99 + - ( + MIN( DISTINCT + 48 ) ) + - 34 + + - 61 * - - 94 * ( - 52 ) * - + 26 * + 24 * + 0 AS col1
----
-8893

skipif mysql # not compatible
query I rowsort label-2804
SELECT + 89 * - 99 + - ( + MIN ( DISTINCT + 48 ) ) + - 34 + + - 61 * - - 94 * ( - 52 ) * - + 26 * + 24 * + 0 AS col1
----
-8893

query I rowsort
SELECT - 81 * - 84 + 72 + - 35
----
6841

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

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

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

query III rowsort
SELECT DISTINCT 43 * + 77 + + 19 AS col2, 97 AS col1, - 58
----
3330
97
-58

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2810
SELECT NULLIF ( - + CAST( NULL AS SIGNED ), 28 * 49 * - + 90 - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT NULLIF ( - + CAST ( NULL AS INTEGER ), 28 * 49 * - + 90 - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2811
SELECT - + 58, 32 + 74 * + COUNT( * ) AS col0
----
-58
106

skipif mysql # not compatible
query II rowsort label-2811
SELECT - + 58, 32 + 74 * + COUNT ( * ) AS col0
----
-58
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT - COUNT( * ) + + + CASE - 0 WHEN - 33 THEN COUNT( * ) * + 67 WHEN - 80 + - 18 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT - COUNT ( * ) + + + CASE - 0 WHEN - 33 THEN COUNT ( * ) * + 67 WHEN - 80 + - 18 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL + 65 - - MAX( - 65 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL + 65 - - MAX ( - 65 ) AS col2
----
0

query I rowsort
SELECT 15 + + 86
----
101

query I rowsort
SELECT 25 + - 71
----
-46

query I rowsort
SELECT ALL - 20 * - 1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT ALL - COUNT( * ) - - + 59
----
58

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL - COUNT ( * ) - - + 59
----
58

query I rowsort
SELECT 44 * - - 5 * - + ( - 85 )
----
18700

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2819
SELECT ALL 70 DIV - + COUNT( * ), 17 AS col0
----
-70
17

skipif mysql # not compatible
query II rowsort label-2819
SELECT ALL 70 / - + COUNT ( * ), 17 AS col0
----
-70
17

query I rowsort
SELECT 50 + - 37 + 72 AS col2
----
85

query I rowsort
SELECT DISTINCT 24 col1
----
24

query I rowsort
SELECT 34 * 61 AS col0
----
2074

query I rowsort
SELECT 69 + + 3
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT ALL - 58 DIV + ( + 1 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL - 58 / + ( + 1 ) AS col0
----
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT 44 * + - COUNT( + 2 ) * + 11 + 59 * 86 + - 39
----
4551

skipif mysql # not compatible
query I rowsort label-2826
SELECT 44 * + - COUNT ( + 2 ) * + 11 + 59 * 86 + - 39
----
4551

query I rowsort
SELECT 50 + - + 65 AS col1
----
-15

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

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

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

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

query I rowsort
SELECT ALL - - 37 AS col1
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-2831
SELECT ALL - 94 * 31 DIV + - CASE WHEN NULL <> 19 THEN NULL ELSE + 38 END AS col2
----
76

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL - 94 * 31 / + - CASE WHEN NULL <> 19 THEN NULL ELSE + 38 END AS col2
----
76

query I rowsort
SELECT 1 * + 9 * + 72 AS col2
----
648

query I rowsort
SELECT ALL 34 + - CASE 57 WHEN 79 THEN - 98 ELSE - 54 END + 62 AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT + - 89 * 38 * + COUNT( * ) + + ( COUNT( * ) ) + - - MAX( DISTINCT - 13 ) * 46 + - 16
----
-3995

skipif mysql # not compatible
query I rowsort label-2834
SELECT + - 89 * 38 * + COUNT ( * ) + + ( COUNT ( * ) ) + - - MAX ( DISTINCT - 13 ) * 46 + - 16
----
-3995

query I rowsort
SELECT ALL - - 46 + - CASE - 18 WHEN + 31 THEN NULL WHEN - 41 THEN - ( + 4 ) + - - ( - - 62 ) END * + - 39 - + 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2836
SELECT 81 * COUNT( * ) AS col1, - 5 + - 98
----
81
-103

skipif mysql # not compatible
query II rowsort label-2836
SELECT 81 * COUNT ( * ) AS col1, - 5 + - 98
----
81
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2837
SELECT - 29 / - - 74 + - 41 * - - COALESCE ( - 76, - + ( - - 92 ), + + COUNT( * ) + - + CAST( NULL AS SIGNED ) ) + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT - 29 / - - 74 + - 41 * - - COALESCE ( - 76, - + ( - - 92 ), + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2838
SELECT ALL - 42 + - ( - CAST( 92 AS SIGNED ) ) + - 98
----
-48

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - 42 + - ( - CAST ( 92 AS INTEGER ) ) + - 98
----
-48

query I rowsort
SELECT + 83 * - - ( 28 ) col2
----
2324

query I rowsort
SELECT ALL - 92 + 70
----
-22

query I rowsort
SELECT ALL + + COALESCE ( + 59, - + 19 ) + - 39
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2842
SELECT DISTINCT + 17 * + 9 * CASE 86 WHEN + 49 * - 12 + - ( + + CAST( NULL AS SIGNED ) ) THEN 37 + - 67 + 56 + COALESCE ( - 40, - 73, - 51 ) + + 88 WHEN + 91 THEN - COUNT( * ) * ( + ( - 14 ) ) * + 90 ELSE + + 62 + + 50 END, + 54 AS col1
----
17136
54

skipif mysql # not compatible
query II rowsort label-2842
SELECT DISTINCT + 17 * + 9 * CASE 86 WHEN + 49 * - 12 + - ( + + CAST ( NULL AS INTEGER ) ) THEN 37 + - 67 + 56 + COALESCE ( - 40, - 73, - 51 ) + + 88 WHEN + 91 THEN - COUNT ( * ) * ( + ( - 14 ) ) * + 90 ELSE + + 62 + + 50 END, + 54 AS col1
----
17136
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT + 11 DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-2843
SELECT + 11 / + 36
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2844
SELECT - 77 + - - 55 + 49 * + + 7 - + 39 * + + COUNT( * ) DIV + - ( 65 )
----
321

skipif mysql # not compatible
query I rowsort label-2844
SELECT - 77 + - - 55 + 49 * + + 7 - + 39 * + + COUNT ( * ) / + - ( 65 )
----
321

onlyif mysql # DIV for integer division: 
query I rowsort label-2845
SELECT 19 DIV - 86 * + 83 * + 35 * - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2845
SELECT 19 / - 86 * + 83 * + 35 * - 55 AS col0
----
0

query I rowsort
SELECT 0 * - 69 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2847
SELECT 24 * + + 96 + + 29 DIV - COALESCE ( 98, + 62 DIV 10 )
----
2304

skipif mysql # not compatible
query I rowsort label-2847
SELECT 24 * + + 96 + + 29 / - COALESCE ( 98, + 62 / 10 )
----
2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2848
SELECT DISTINCT - 71, ( + COALESCE ( + ( - + 43 ), - - 86 * - 29 * + 18 + + + CAST( 84 AS SIGNED ) + + COUNT( * ) * - 44 ) ) AS col0
----
-71
-43

skipif mysql # not compatible
query II rowsort label-2848
SELECT DISTINCT - 71, ( + COALESCE ( + ( - + 43 ), - - 86 * - 29 * + 18 + + + CAST ( 84 AS INTEGER ) + + COUNT ( * ) * - 44 ) ) AS col0
----
-71
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2849
SELECT ALL CAST( NULL AS SIGNED ) - CASE ( - 0 ) WHEN 82 THEN NULL ELSE + COUNT( * ) * + COUNT( * ) END + + + 4 + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL CAST ( NULL AS INTEGER ) - CASE ( - 0 ) WHEN 82 THEN NULL ELSE + COUNT ( * ) * + COUNT ( * ) END + + + 4 + 7 AS col2
----
NULL

query II rowsort
SELECT ALL 54 AS col0, 21 AS col2
----
54
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2851
SELECT DISTINCT 12, 65 + + NULLIF ( - 27, + COALESCE ( - COUNT( * ), + COUNT( * ) ) ) AS col2
----
12
38

skipif mysql # not compatible
query II rowsort label-2851
SELECT DISTINCT 12, 65 + + NULLIF ( - 27, + COALESCE ( - COUNT ( * ), + COUNT ( * ) ) ) AS col2
----
12
38

query I rowsort
SELECT 18 + + 87 AS col1
----
105

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

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

query I rowsort
SELECT 25 * - 78 * - + 71 * + COALESCE ( 78, + + 13 )
----
10799100

query I rowsort
SELECT DISTINCT 58 * + 55
----
3190

onlyif mysql # DIV for integer division: 
query I rowsort label-2856
SELECT 44 DIV - + 27
----
-1

skipif mysql # not compatible
query I rowsort label-2856
SELECT 44 / - + 27
----
-1

query I rowsort
SELECT DISTINCT - 53 * + ( - 43 ) * - + 56 + + - 72 AS col1
----
-127696

query I rowsort
SELECT - 87 col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2859
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + 50 + - 71 + 31 AS col0, - 49
----
11
-49

skipif mysql # not compatible
query II rowsort label-2859
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + 50 + - 71 + 31 AS col0, - 49
----
11
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT ALL SUM( - 81 ) * + 22 * - 72 AS col1
----
128304

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL SUM ( - 81 ) * + 22 * - 72 AS col1
----
128304

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT 69 * + COUNT( * ) * + + 55
----
3795

skipif mysql # not compatible
query I rowsort label-2861
SELECT 69 * + COUNT ( * ) * + + 55
----
3795

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT ALL - COUNT( * ) + - 99 col2
----
-100

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL - COUNT ( * ) + - 99 col2
----
-100

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

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

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

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL + 99 + - COUNT ( * ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL 90 * - SUM( ALL + 2 ) + + 47 * 53 AS col2
----
2311

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL 90 * - SUM ( ALL + 2 ) + + 47 * 53 AS col2
----
2311

query I rowsort
SELECT 4 * 90
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL 96 * ( - COUNT( * ) ) + ( 64 )
----
-32

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL 96 * ( - COUNT ( * ) ) + ( 64 )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2868
SELECT 27 DIV 54 - - 89 * 81 AS col0
----
7209

skipif mysql # not compatible
query I rowsort label-2868
SELECT 27 / 54 - - 89 * 81 AS col0
----
7209

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT DISTINCT MIN( - 87 ) * - 32 + 35 AS col1
----
2819

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT MIN ( - 87 ) * - 32 + 35 AS col1
----
2819

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL + 91 * COALESCE ( - COUNT( * ), 48 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL + 91 * COALESCE ( - COUNT ( * ), 48 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT ALL - NULLIF ( 55, 93 ) * + COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL - NULLIF ( 55, 93 ) * + COUNT ( * ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2872
SELECT CAST( NULL AS SIGNED ) * 10 + 85 * CAST( - 70 + ( + 64 ) * + MAX( DISTINCT + 63 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT CAST ( NULL AS INTEGER ) * 10 + 85 * CAST ( - 70 + ( + 64 ) * + MAX ( DISTINCT + 63 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT ALL NULLIF ( 39, + 98 * 85 ) * COUNT( * ) + - 62
----
-23

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL NULLIF ( 39, + 98 * 85 ) * COUNT ( * ) + - 62
----
-23

query I rowsort
SELECT DISTINCT - NULLIF ( - ( 86 ), + 99 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2875
SELECT - 26 DIV + COUNT( * ) + - COALESCE ( + MIN( + 69 ), + 25 + - NULLIF ( - 65, - 31 * - 17 ) ) * COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-2875
SELECT - 26 / + COUNT ( * ) + - COALESCE ( + MIN ( + 69 ), + 25 + - NULLIF ( - 65, - 31 * - 17 ) ) * COUNT ( * )
----
-95

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

query I rowsort
SELECT ALL - 37 * 78 AS col1
----
-2886

query I rowsort
SELECT 19 - - 50
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT NULLIF ( - 7, + 52 / 62 - + CASE 16 WHEN 59 + - 48 * - 96 THEN + 64 / + COUNT( * ) ELSE 35 + 76 END ) - 71 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-2879
SELECT NULLIF ( - 7, + 52 / 62 - + CASE 16 WHEN 59 + - 48 * - 96 THEN + 64 / + COUNT ( * ) ELSE 35 + 76 END ) - 71 AS col0
----
-78

query I rowsort
SELECT ALL - ( 61 ) * - 6 - - 62
----
428

query I rowsort
SELECT 38 * - 0 + 50 AS col1
----
50

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

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

query I rowsort
SELECT - 13 * - 84 AS col2
----
1092

query I rowsort
SELECT + 19 * 65 AS col0
----
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT + MIN( DISTINCT 15 )
----
15

skipif mysql # not compatible
query I rowsort label-2885
SELECT + MIN ( DISTINCT 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT DISTINCT + MAX( - 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT + MAX ( - 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT COUNT( 97 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2887
SELECT COUNT ( 97 ) AS col0
----
1

query I rowsort
SELECT + 66 + - 42 col1
----
24

query I rowsort
SELECT + 83 * 44
----
3652

query I rowsort
SELECT 75 * 24 + - 50 * + 23 AS col2
----
650

query I rowsort
SELECT DISTINCT 12 * 62 col0
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT ALL COALESCE ( + 48, 57 + - 21, 34 + + ( 6 + + ( 36 ) ) * ( COUNT( * ) ) ) * 48
----
2304

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL COALESCE ( + 48, 57 + - 21, 34 + + ( 6 + + ( 36 ) ) * ( COUNT ( * ) ) ) * 48
----
2304

query I rowsort
SELECT - 47 + 62
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT + COUNT( 98 ) * - 12 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2894
SELECT + COUNT ( 98 ) * - 12 AS col0
----
-12

query I rowsort
SELECT DISTINCT ( 46 ) * 65
----
2990

query I rowsort
SELECT ALL 17 * ( - 91 ) AS col2
----
-1547

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

skipif mysql # not compatible
query I rowsort label-2897
SELECT - MIN ( 45 )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2898
SELECT + ( - COUNT( * ) ) DIV + ( - 26 * + SUM( ALL 44 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2898
SELECT + ( - COUNT ( * ) ) / + ( - 26 * + SUM ( ALL 44 ) ) AS col1
----
0

query I rowsort
SELECT ALL 11 + - 33
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT + COUNT( * ) + 74 * 71
----
5255

skipif mysql # not compatible
query I rowsort label-2900
SELECT + COUNT ( * ) + 74 * 71
----
5255

query I rowsort
SELECT DISTINCT ( + 2 ) * + COALESCE ( 94, 41 )
----
188

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

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

query I rowsort
SELECT DISTINCT 5 + - 92 * 6
----
-547

query I rowsort
SELECT + ( 59 ) + + 12 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL + COUNT( ALL + ( 13 ) ) + - 51
----
-50

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL + COUNT ( ALL + ( 13 ) ) + - 51
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT + - 61 * MIN( 97 ) AS col1
----
-5917

skipif mysql # not compatible
query I rowsort label-2906
SELECT + - 61 * MIN ( 97 ) AS col1
----
-5917

query I rowsort
SELECT + - 55 + - 16 AS col0
----
-71

query I rowsort
SELECT - ( COALESCE ( 53, + 25 ) ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL 55 + ( - COUNT( * ) + 87 )
----
141

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL 55 + ( - COUNT ( * ) + 87 )
----
141

query I rowsort
SELECT ALL - 17 * + 85
----
-1445

query I rowsort
SELECT - 99 + + 35 AS col0
----
-64

query I rowsort
SELECT DISTINCT + + ( 87 ) * 42 AS col0
----
3654

query I rowsort
SELECT DISTINCT - 72 + 38
----
-34

query I rowsort
SELECT ALL - 14 + 31 * + 21 AS col0
----
637

query I rowsort
SELECT - ( + 66 ) + 21 AS col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2916
SELECT ALL + 22 DIV 42 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL + 22 / 42 + + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - 23 * 42 AS col1
----
-966

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

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + COUNT ( * ) / 95 - ( - 7 ) AS col2
----
7

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2920
SELECT - + CAST( CAST( + SUM( DISTINCT - 39 ) AS SIGNED ) AS DECIMAL ) * ( + CASE - ( + 42 ) WHEN - NULLIF ( + COALESCE ( - 83, COUNT( * ) * 56 ), + MIN( 27 ) ) THEN - ( 42 ) * + COUNT( 47 ) ELSE NULL END * - ( NULLIF ( - CASE 37 WHEN - 19 * + COALESCE ( 63, + 92 + ( - NULLIF ( + 89, - 31 ) ) ) THEN NULL WHEN - ( - AVG ( 26 ) ) THEN - COUNT( * ) + - 70 END, - 56 ) * 37 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT - + CAST ( CAST ( + SUM ( DISTINCT - 39 ) AS INTEGER ) AS REAL ) * ( + CASE - ( + 42 ) WHEN - NULLIF ( + COALESCE ( - 83, COUNT ( * ) * 56 ), + MIN ( 27 ) ) THEN - ( 42 ) * + COUNT ( 47 ) ELSE NULL END * - ( NULLIF ( - CASE 37 WHEN - 19 * + COALESCE ( 63, + 92 + ( - NULLIF ( + 89, - 31 ) ) ) THEN NULL WHEN - ( - AVG ( 26 ) ) THEN - COUNT ( * ) + - 70 END, - 56 ) * 37 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 91 * ( 5 ) - + 62
----
-517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2922
SELECT + 82 DIV COUNT( * ) + 28
----
110

skipif mysql # not compatible
query I rowsort label-2922
SELECT + 82 / COUNT ( * ) + 28
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ALL - + ( COUNT( * ) ) * + ( 55 ) - 38 * COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL - + ( COUNT ( * ) ) * + ( 55 ) - 38 * COUNT ( * )
----
-93

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

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT + - COUNT ( * ) / + 52 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT - + COUNT( * ) * COALESCE ( CASE 17 WHEN 60 THEN 25 ELSE - 82 END, 92 )
----
82

skipif mysql # not compatible
query I rowsort label-2925
SELECT - + COUNT ( * ) * COALESCE ( CASE 17 WHEN 60 THEN 25 ELSE - 82 END, 92 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT - 29 + COUNT( * ) AS col0
----
-28

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT - 68 DIV 16
----
-4

skipif mysql # not compatible
query I rowsort label-2927
SELECT - 68 / 16
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2928
SELECT - 38 DIV COALESCE ( ( - 11 ), - 86 )
----
3

skipif mysql # not compatible
query I rowsort label-2928
SELECT - 38 / COALESCE ( ( - 11 ), - 86 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2929
SELECT DISTINCT + + COALESCE ( 21, - COUNT( * ) * 1 - + ( - AVG ( 86 ) ) * COUNT( * ) ) DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT + + COALESCE ( 21, - COUNT ( * ) * 1 - + ( - AVG ( 86 ) ) * COUNT ( * ) ) / - 60
----
0

query I rowsort
SELECT ALL + CASE 38 WHEN + 62 - 87 * 55 THEN 12 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT ALL + NULLIF ( - COUNT( DISTINCT + 43 ), + 38 ) * 13 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL + NULLIF ( - COUNT ( DISTINCT + 43 ), + 38 ) * 13 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT COALESCE ( + 88, 54 * - COUNT( * ), COUNT( * ) ) col1
----
88

skipif mysql # not compatible
query I rowsort label-2932
SELECT COALESCE ( + 88, 54 * - COUNT ( * ), COUNT ( * ) ) col1
----
88

query I rowsort
SELECT NULLIF ( 12, - 90 )
----
12

query I rowsort
SELECT ALL 54 * + + 84 * - 72 AS col1
----
-326592

query I rowsort
SELECT - 60 * + 38
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT + 53 + - + 77 + SUM( + 38 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-2936
SELECT + 53 + - + 77 + SUM ( + 38 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT + CASE - 4 WHEN + 62 * 27 THEN COUNT( * ) - 44 WHEN - 46 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT + CASE - 4 WHEN + 62 * 27 THEN COUNT ( * ) - 44 WHEN - 46 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT + COUNT( * ) * 74 + + 12 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2938
SELECT + COUNT ( * ) * 74 + + 12 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT CASE + + SUM( + 86 ) WHEN 10 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT CASE + + SUM ( + 86 ) WHEN 10 THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL 58 * - 73 + + CASE - 78 WHEN AVG ( DISTINCT + 68 ) + 14 THEN 84 WHEN MIN( - 98 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL 58 * - 73 + + CASE - 78 WHEN AVG ( DISTINCT + 68 ) + 14 THEN 84 WHEN MIN ( - 98 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2941
SELECT ALL COUNT( * ) * 84 + CAST( 93 AS SIGNED )
----
177

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL COUNT ( * ) * 84 + CAST ( 93 AS INTEGER )
----
177

query I rowsort
SELECT + 39 * + 24 - + 7 * 30 AS col0
----
726

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2944
SELECT ALL CAST( - 7 AS SIGNED ) * - 97 + COUNT( * ) * + COALESCE ( 46, + 78, CAST( 73 AS SIGNED ) )
----
725

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL CAST ( - 7 AS INTEGER ) * - 97 + COUNT ( * ) * + COALESCE ( 46, + 78, CAST ( 73 AS INTEGER ) )
----
725

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT COUNT( ALL - ( 12 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2946
SELECT COUNT ( ALL - ( 12 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2947
SELECT - COUNT( - 75 ) DIV + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2947
SELECT - COUNT ( - 75 ) / + 80 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2948
SELECT + CAST( + MIN( ALL + COALESCE ( - 0, 33 * 84, 95 ) ) AS SIGNED ) * COUNT( ALL + 64 )
----
0

skipif mysql # not compatible
query I rowsort label-2948
SELECT + CAST ( + MIN ( ALL + COALESCE ( - 0, 33 * 84, 95 ) ) AS INTEGER ) * COUNT ( ALL + 64 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT DISTINCT 69 + + ( NULLIF ( 19, - MAX( 24 ) ) )
----
88

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT 69 + + ( NULLIF ( 19, - MAX ( 24 ) ) )
----
88

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

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

query I rowsort
SELECT ( - 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL - SUM( ALL - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL - SUM ( ALL - 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT + + 49 * + MAX( DISTINCT - 69 ) - COUNT( * ) col0
----
-3382

skipif mysql # not compatible
query I rowsort label-2953
SELECT + + 49 * + MAX ( DISTINCT - 69 ) - COUNT ( * ) col0
----
-3382

query I rowsort
SELECT ALL + + 9 - + 47 AS col1
----
-38

query I rowsort
SELECT ALL - 85 * ( - ( 43 ) ) AS col0
----
3655

query I rowsort
SELECT - - 56 AS col2
----
56

query I rowsort
SELECT ALL 89 - + + 76
----
13

query I rowsort
SELECT ALL - CASE - 90 WHEN - 73 THEN NULL WHEN + 85 / 26 - - 11 THEN - 51 * ( 45 ) END
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT + 72 - + CAST( + 14 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-2960
SELECT + 72 - + CAST ( + 14 AS INTEGER )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT + 16 + + + 68 - + 18 * COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-2961
SELECT + 16 + + + 68 - + 18 * COUNT ( * )
----
66

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

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

query I rowsort
SELECT + 39 * 18 * 8 col2
----
5616

query I rowsort
SELECT 27 + - 11 AS col2
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2965
SELECT + 38 DIV - + 73 + NULLIF ( + MIN( DISTINCT + 21 ), - 25 )
----
21

skipif mysql # not compatible
query I rowsort label-2965
SELECT + 38 / - + 73 + NULLIF ( + MIN ( DISTINCT + 21 ), - 25 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT + CASE + 63 WHEN - COUNT( * ) THEN ( - 9 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2966
SELECT + CASE + 63 WHEN - COUNT ( * ) THEN ( - 9 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + ( - 43 ) * - 19 col0
----
817

query I rowsort
SELECT ALL - 67 * + 36 * 13 AS col1
----
-31356

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT + CAST( - + 49 AS SIGNED ) * CAST( NULL AS SIGNED ) + + 43 * - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT + CAST ( - + 49 AS INTEGER ) * CAST ( NULL AS INTEGER ) + + 43 * - 46 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - 65 )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT - 80 DIV 13 + - - ( - 37 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-2972
SELECT - 80 / 13 + - - ( - 37 ) AS col1
----
-43

query I rowsort
SELECT ALL ( - 90 ) * - 89 + - 64 col1
----
7946

query I rowsort
SELECT 75 * - 59 + - 57
----
-4482

query I rowsort
SELECT 54 - + 89 col1
----
-35

query I rowsort
SELECT 12 * 21 * - + 82 + COALESCE ( - 57, 15, + 91 )
----
-20721

query I rowsort
SELECT 63 + + 74
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-2978
SELECT 70 DIV 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2978
SELECT 70 / 88 AS col0
----
0

query I rowsort
SELECT DISTINCT - 30 + - + 56
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-2980
SELECT + 61 AS col2, + 86 * - 94 + + SUM( DISTINCT 70 )
----
61
-8014

skipif mysql # not compatible
query II rowsort label-2980
SELECT + 61 AS col2, + 86 * - 94 + + SUM ( DISTINCT 70 )
----
61
-8014

query I rowsort
SELECT ALL + 67 + + + 85 * + 98 * 17
----
141677

query I rowsort
SELECT ALL - 12 + - 34 - + + 89 * - 56 AS col0
----
4938

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

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

query I rowsort
SELECT + 72 * ( - - 28 ) + NULLIF ( + 92, + 53 )
----
2108

query I rowsort
SELECT ALL + 40 * + 50 AS col1
----
2000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2986
SELECT ALL - 13 + 71 + + CAST( NULL AS SIGNED ) + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL - 13 + 71 + + CAST ( NULL AS INTEGER ) + 48
----
NULL

query I rowsort
SELECT 53 * + 73
----
3869

query I rowsort
SELECT ALL + 40 * + 81 AS col1
----
3240

query I rowsort
SELECT 59 + 88 + + 54 AS col2
----
201

query I rowsort
SELECT 98 + 84
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT + COALESCE ( - 38, - + 59, - COUNT( * ), + COUNT( * ) ) * 15 AS col2
----
-570

skipif mysql # not compatible
query I rowsort label-2991
SELECT + COALESCE ( - 38, - + 59, - COUNT ( * ), + COUNT ( * ) ) * 15 AS col2
----
-570

query I rowsort
SELECT + 21 + ( - - 1 ) - + 36 * + 76
----
-2714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2993
SELECT ALL + COALESCE ( - COUNT( * ), 90 DIV + 28 + COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL + COALESCE ( - COUNT ( * ), 90 / + 28 + COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT 24 + - + 95 AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2995
SELECT DISTINCT 73 - - CASE + 25 WHEN MAX( + 55 ) DIV - 4 + 37 THEN - 85 WHEN 95 THEN NULL ELSE SUM( 23 ) - + 64 END + COUNT( * ) DIV 86 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT 73 - - CASE + 25 WHEN MAX ( + 55 ) / - 4 + 37 THEN - 85 WHEN 95 THEN NULL ELSE SUM ( 23 ) - + 64 END + COUNT ( * ) / 86 AS col0
----
32

query I rowsort
SELECT ALL - 34 * + 74 AS col1
----
-2516

query I rowsort
SELECT 71 + - 3 AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2998
SELECT DISTINCT + COUNT( * ) - - 88 DIV - 4 + - 37 * 31
----
-1168

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT + COUNT ( * ) - - 88 / - 4 + - 37 * 31
----
-1168

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL 44 * - COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL 44 * - COUNT ( * ) AS col0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3000
SELECT 50 * 61 DIV 17 AS col0
----
179

skipif mysql # not compatible
query I rowsort label-3000
SELECT 50 * 61 / 17 AS col0
----
179

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

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

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

skipif mysql # not compatible
query I rowsort label-3002
SELECT CAST ( + 54 AS INTEGER ) / - + 97 - + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 62 * 33 AS col0
----
2046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT - - CAST( - - 71 AS SIGNED ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3004
SELECT - - CAST ( - - 71 AS INTEGER ) AS col0
----
71

query II rowsort
SELECT ALL 10 col2, 45 AS col0
----
10
45

query I rowsort
SELECT 50 * - ( + 5 )
----
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT DISTINCT + 99 + + COUNT( * ) col0
----
100

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT + 99 + + COUNT ( * ) col0
----
100

query I rowsort
SELECT DISTINCT - + 51 col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT + 51 * - CAST( COALESCE ( + 96, - 76 ) AS SIGNED ) + 95 * - 28 AS col2
----
-7556

skipif mysql # not compatible
query I rowsort label-3009
SELECT + 51 * - CAST ( COALESCE ( + 96, - 76 ) AS INTEGER ) + 95 * - 28 AS col2
----
-7556

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3010
SELECT 44 DIV - 64 + COUNT( * ) + - - ( - 39 )
----
-38

skipif mysql # not compatible
query I rowsort label-3010
SELECT 44 / - 64 + COUNT ( * ) + - - ( - 39 )
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3011
SELECT MIN( + 65 ), - 84 + 12 AS col2
----
65
-72

skipif mysql # not compatible
query II rowsort label-3011
SELECT MIN ( + 65 ), - 84 + 12 AS col2
----
65
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3012
SELECT + SUM( - 21 ) col0, - COALESCE ( + 76, COUNT( DISTINCT 0 ) + + COUNT( * ), - 33 )
----
-21
-76

skipif mysql # not compatible
query II rowsort label-3012
SELECT + SUM ( - 21 ) col0, - COALESCE ( + 76, COUNT ( DISTINCT 0 ) + + COUNT ( * ), - 33 )
----
-21
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3013
SELECT DISTINCT 36 + + - 39 + + 60 * + + ( MAX( DISTINCT 15 ) ) + - ( - ( - COUNT( * ) ) + - 25 DIV 76 ) * + 30
----
867

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT 36 + + - 39 + + 60 * + + ( MAX ( DISTINCT 15 ) ) + - ( - ( - COUNT ( * ) ) + - 25 / 76 ) * + 30
----
867

query I rowsort
SELECT ALL 95 + - + 67 * + 81 - + 26
----
-5358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3015
SELECT + MIN( ALL CAST( + + 3 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-3015
SELECT + MIN ( ALL CAST ( + + 3 AS INTEGER ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT DISTINCT 41 * + 82 * ( - CAST( + 0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT 41 * + 82 * ( - CAST ( + 0 AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT ( - 83 ) + + + 61 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT - SUM( ALL - 19 ) + - + 54 * 95
----
-5111

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT - SUM ( ALL - 19 ) + - + 54 * 95
----
-5111

query I rowsort
SELECT DISTINCT 94 * ( 53 ) AS col0
----
4982

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT 95 + + COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3021
SELECT 95 + + COUNT ( * ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL - NULLIF ( - 25, + 89 / COUNT( 49 ) + 42 + - 63 * ( 36 ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL - NULLIF ( - 25, + 89 / COUNT ( 49 ) + 42 + - 63 * ( 36 ) ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL - SUM( - - 59 ) - + 76 AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL - SUM ( - - 59 ) - + 76 AS col2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL - + MAX( + - 79 ) * 27 * 47 AS col0
----
100251

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL - + MAX ( + - 79 ) * 27 * 47 AS col0
----
100251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3025
SELECT COUNT( * ) * 91 + - 9 + 57 + - CAST( - 27 - - ( + ( 94 ) ) AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-3025
SELECT COUNT ( * ) * 91 + - 9 + 57 + - CAST ( - 27 - - ( + ( 94 ) ) AS INTEGER )
----
72

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT - COUNT( * ) * 91 + 41
----
-50

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT - COUNT ( * ) * 91 + 41
----
-50

query I rowsort
SELECT - + 22 * - 94
----
2068

query I rowsort
SELECT - + 17 * + - 51 * + 6 AS col0
----
5202

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3031
SELECT DISTINCT - CAST( - 22 AS SIGNED ) col2, 35 AS col0
----
22
35

skipif mysql # not compatible
query II rowsort label-3031
SELECT DISTINCT - CAST ( - 22 AS INTEGER ) col2, 35 AS col0
----
22
35

query I rowsort
SELECT DISTINCT + - 38 + + 88 AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT ALL - 50 + - 63 * 45 * - 92 + 23 DIV - COUNT( * )
----
260747

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL - 50 + - 63 * 45 * - 92 + 23 / - COUNT ( * )
----
260747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3034
SELECT DISTINCT + 28 + CAST( - 80 AS SIGNED ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT + 28 + CAST ( - 80 AS INTEGER ) AS col1
----
-52

query I rowsort
SELECT ALL + 70 + - 75
----
-5

query I rowsort
SELECT - + CASE - 41 WHEN 1 THEN - AVG ( ALL + 71 ) * 86 END - 34
----
NULL

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

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

query I rowsort
SELECT + - 90 * + ( + - 33 ) + + - 69 + - 39
----
2862

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT ALL CASE - 60 WHEN - NULLIF ( + CASE - AVG ( + 76 ) WHEN 55 THEN NULLIF ( - ( MIN( 33 ) ), 46 ) WHEN + 44 + 86 * - 48 THEN NULL WHEN + COUNT( * ) + - MAX( - 40 ) THEN 14 + COUNT( * ) END, 65 / - 57 ) THEN - COUNT( * ) WHEN 63 * + 42 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL CASE - 60 WHEN - NULLIF ( + CASE - AVG ( + 76 ) WHEN 55 THEN NULLIF ( - ( MIN ( 33 ) ), 46 ) WHEN + 44 + 86 * - 48 THEN NULL WHEN + COUNT ( * ) + - MAX ( - 40 ) THEN 14 + COUNT ( * ) END, 65 / - 57 ) THEN - COUNT ( * ) WHEN 63 * + 42 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 7 + 25 * + 65 AS col1
----
1618

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL 3 * - MAX( DISTINCT - - 94 ) + - 27 * + + 86 AS col2
----
-2604

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL 3 * - MAX ( DISTINCT - - 94 ) + - 27 * + + 86 AS col2
----
-2604

query I rowsort
SELECT - 1 + + 81 AS col0
----
80

query I rowsort
SELECT ALL - 39 * + 30 AS col1
----
-1170

query I rowsort
SELECT ALL + 82 col2
----
82

query I rowsort
SELECT + 77 + 85
----
162

query I rowsort
SELECT DISTINCT - 67 * - + 35
----
2345

query II rowsort
SELECT ALL + 63 * 86 + + 51 col1, - 14
----
5469
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT 85 DIV 31 + + 44 + - 29
----
17

skipif mysql # not compatible
query I rowsort label-3049
SELECT 85 / 31 + + 44 + - 29
----
17

query I rowsort
SELECT ALL 58 * - 39 + - 54
----
-2316

query I rowsort
SELECT + COALESCE ( 88, 15 ) AS col1
----
88

query I rowsort
SELECT + 64 * + 92 + + + 17 AS col0
----
5905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3053
SELECT + ( COUNT( + + 87 ) ) + CASE 92 WHEN - CAST( NULL AS SIGNED ) + 22 THEN 42 * 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT + ( COUNT ( + + 87 ) ) + CASE 92 WHEN - CAST ( NULL AS INTEGER ) + 22 THEN 42 * 99 END
----
NULL

query I rowsort
SELECT + 11 * - 76 AS col0
----
-836

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

skipif mysql # not compatible
query I rowsort label-3055
SELECT + ( + + 2 ) + + + COUNT ( * ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT ALL 75 * - NULLIF ( - - 16, - + CASE - - COUNT( ALL - 51 ) WHEN 92 THEN - 81 WHEN - 8 THEN 42 + ( 13 ) END ) AS col2
----
-1200

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL 75 * - NULLIF ( - - 16, - + CASE - - COUNT ( ALL - 51 ) WHEN 92 THEN - 81 WHEN - 8 THEN 42 + ( 13 ) END ) AS col2
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL 87 * - SUM( DISTINCT 54 ) AS col1
----
-4698

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL 87 * - SUM ( DISTINCT 54 ) AS col1
----
-4698

query I rowsort
SELECT ALL + - 77 AS col2
----
-77

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

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

query I rowsort
SELECT DISTINCT + 82 col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT + - COUNT( * ) + - 92 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3061
SELECT + - COUNT ( * ) + - 92 AS col0
----
-93

query I rowsort
SELECT - COALESCE ( - 58, + - 23 ) col2
----
58

query I rowsort
SELECT - - 37 + - CASE 4 WHEN + 88 THEN NULL WHEN 15 / + 7 THEN - 27 / - 51 END * 46
----
NULL

query I rowsort
SELECT - + 62 + + - 81 + + + 56 * 28 AS col2
----
1425

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT + 96 DIV - - 85 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3065
SELECT + 96 / - - 85 AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT + COUNT( * ) + + COALESCE ( 83, + - 20 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3067
SELECT + COUNT ( * ) + + COALESCE ( 83, + - 20 ) AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3068
SELECT DISTINCT + + 2 / + CAST( NULL AS SIGNED ) + - + 81 / - - ( COALESCE ( - 67, - 52 ) ) * CAST( + COUNT( * ) * 15 AS SIGNED ) + + 24 * - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT + + 2 / + CAST ( NULL AS INTEGER ) + - + 81 / - - ( COALESCE ( - 67, - 52 ) ) * CAST ( + COUNT ( * ) * 15 AS INTEGER ) + + 24 * - 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT + COUNT( * ) + + 47 * + 11 * - 89
----
-46012

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT + COUNT ( * ) + + 47 * + 11 * - 89
----
-46012

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

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

query I rowsort
SELECT ALL + 91 * - 32 * - 14 * - 29 AS col1
----
-1182272

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT ALL + 80 + - COALESCE ( - COUNT( * ), 87 + 39 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL + 80 + - COALESCE ( - COUNT ( * ), 87 + 39 ) AS col1
----
81

query I rowsort
SELECT - - 10 * + 14 col2
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3074
SELECT ALL - CAST( 54 AS SIGNED ) + - - 18 - + - ( - - 97 ) * MAX( + 86 )
----
8306

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL - CAST ( 54 AS INTEGER ) + - - 18 - + - ( - - 97 ) * MAX ( + 86 )
----
8306

query I rowsort
SELECT - - 94 + + - 80
----
14

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

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

query I rowsort
SELECT ALL + + 60 + 58 AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT - ( + - COALESCE ( - - ( - - 17 ), 96 * 38 ) ) + - COUNT( * ) col2
----
16

skipif mysql # not compatible
query I rowsort label-3078
SELECT - ( + - COALESCE ( - - ( - - 17 ), 96 * 38 ) ) + - COUNT ( * ) col2
----
16

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3080
SELECT + - 50 * + 22 - CASE 49 WHEN + COUNT( * ) THEN - 60 + CASE - 52 + 46 WHEN - 0 * - 25 THEN + 84 WHEN 78 * + CAST( NULL AS SIGNED ) THEN NULL ELSE + SUM( 69 ) END / COUNT( * ) ELSE NULL END - 89 * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT + - 50 * + 22 - CASE 49 WHEN + COUNT ( * ) THEN - 60 + CASE - 52 + 46 WHEN - 0 * - 25 THEN + 84 WHEN 78 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE + SUM ( 69 ) END / COUNT ( * ) ELSE NULL END - 89 * 7
----
NULL

query I rowsort
SELECT - 82 + + 89 AS col0
----
7

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

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

query II rowsort
SELECT - + 28, 32 * + 41 AS col2
----
-28
1312

query I rowsort
SELECT - ( + 92 ) + + + NULLIF ( + + 80, - 64 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3085
SELECT DISTINCT - 26 + 34 AS col1, COUNT( * )
----
8
1

skipif mysql # not compatible
query II rowsort label-3085
SELECT DISTINCT - 26 + 34 AS col1, COUNT ( * )
----
8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT ALL MIN( + + 92 ) * 23 AS col1
----
2116

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL MIN ( + + 92 ) * 23 AS col1
----
2116

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3087
SELECT DISTINCT + 99 + CAST( NULL AS SIGNED ) * - 87 - - - ( - 61 ) * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT + 99 + CAST ( NULL AS INTEGER ) * - 87 - - - ( - 61 ) * + CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT 27, + 61 col0
----
27
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3089
SELECT ALL + COALESCE ( + + 40, + 14 + - + 93, 58, + 56 DIV MAX( DISTINCT - 19 DIV 91 ) ) DIV COUNT( * ) - 30 * 89
----
-2630

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL + COALESCE ( + + 40, + 14 + - + 93, 58, + 56 / MAX ( DISTINCT - 19 / 91 ) ) / COUNT ( * ) - 30 * 89
----
-2630

query I rowsort
SELECT ALL + COALESCE ( - 67, - 72 + + 24 * + + COALESCE ( - + 32, - 85, - 46, 82 ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT + COALESCE ( - 53, - - COUNT( * ), + + 40 )
----
-53

skipif mysql # not compatible
query I rowsort label-3091
SELECT + COALESCE ( - 53, - - COUNT ( * ), + + 40 )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-3092
SELECT + 14 AS col0, + 46 / 47 * CASE + 47 WHEN + 6 + + ( 8 ) THEN ( CASE COUNT( * ) WHEN - 30 / 83 + 28 THEN 71 * + 89 + 49 * - 16 ELSE NULL END ) WHEN - ( - 16 ) * 4 THEN NULL END + 47
----
14
NULL

skipif mysql # not compatible
query II rowsort label-3092
SELECT + 14 AS col0, + 46 / 47 * CASE + 47 WHEN + 6 + + ( 8 ) THEN ( CASE COUNT ( * ) WHEN - 30 / 83 + 28 THEN 71 * + 89 + 49 * - 16 ELSE NULL END ) WHEN - ( - 16 ) * 4 THEN NULL END + 47
----
14
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3093
SELECT CAST( NULL AS SIGNED ) col2, + 45 * - 44
----
NULL
-1980

skipif mysql # not compatible
query II rowsort label-3093
SELECT CAST ( NULL AS INTEGER ) col2, + 45 * - 44
----
NULL
-1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT CAST( - 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-3094
SELECT CAST ( - 48 AS INTEGER )
----
-48

query I rowsort
SELECT DISTINCT + 91 * 27 AS col1
----
2457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3096
SELECT - CAST( + + AVG ( - 30 ) AS SIGNED ) * - CAST( + - 32 AS SIGNED ) AS col2
----
960

skipif mysql # not compatible
query I rowsort label-3096
SELECT - CAST ( + + AVG ( - 30 ) AS INTEGER ) * - CAST ( + - 32 AS INTEGER ) AS col2
----
960

query I rowsort
SELECT ALL - 19 * + - 7
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-3098
SELECT DISTINCT + 75 AS col0, MAX( ALL - 50 ) AS col1
----
75
-50

skipif mysql # not compatible
query II rowsort label-3098
SELECT DISTINCT + 75 AS col0, MAX ( ALL - 50 ) AS col1
----
75
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-3099
SELECT ALL - 66 AS col2, COUNT( * ) * - + 69 * + + 69 + + 68 col0
----
-66
-4693

skipif mysql # not compatible
query II rowsort label-3099
SELECT ALL - 66 AS col2, COUNT ( * ) * - + 69 * + + 69 + + 68 col0
----
-66
-4693

query I rowsort
SELECT DISTINCT - + ( + 76 )
----
-76

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

query II rowsort
SELECT + 99 AS col0, 92 AS col2
----
99
92

query I rowsort
SELECT 56 * + 84 AS col0
----
4704

query I rowsort
SELECT DISTINCT - + 6
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3105
SELECT + 83, - CAST( NULL AS SIGNED ) + 72 col0
----
83
NULL

skipif mysql # not compatible
query II rowsort label-3105
SELECT + 83, - CAST ( NULL AS INTEGER ) + 72 col0
----
83
NULL

query II rowsort
SELECT DISTINCT - 20, 37 + - - 0 AS col1
----
-20
37

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

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

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

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

query II rowsort
SELECT DISTINCT - 99 col0, + 41
----
-99
41

query II rowsort
SELECT - 29, - 57 AS col0
----
-29
-57

query II rowsort
SELECT - 40, + 93 * 26 col2
----
-40
2418

query I rowsort
SELECT ALL - 68 + - + 88
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT - COUNT( * ) * 85 + ( + 74 ) + - SUM( - 69 ) + 61 col2
----
119

skipif mysql # not compatible
query I rowsort label-3113
SELECT - COUNT ( * ) * 85 + ( + 74 ) + - SUM ( - 69 ) + 61 col2
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-3114
SELECT ALL + 85 DIV - + 38
----
-2

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + 85 / - + 38
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3115
SELECT CAST( + SUM( DISTINCT + + COALESCE ( + 61, + 79 ) ) AS SIGNED ) DIV - - ( - + 63 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3115
SELECT CAST ( + SUM ( DISTINCT + + COALESCE ( + 61, + 79 ) ) AS INTEGER ) / - - ( - + 63 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3116
SELECT ALL CAST( - AVG ( + ( - + 98 ) ) AS SIGNED ) - NULLIF ( - COUNT( * ), - COUNT( * ) * + 41 ) - 54 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL CAST ( - AVG ( + ( - + 98 ) ) AS INTEGER ) - NULLIF ( - COUNT ( * ), - COUNT ( * ) * + 41 ) - 54 AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3117
SELECT DISTINCT + 67 * 42 DIV + CAST( - + 81 AS SIGNED ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT + 67 * 42 / + CAST ( - + 81 AS INTEGER ) AS col0
----
-34

query II rowsort
SELECT ALL - 12 - - 80 AS col0, ( - - 51 )
----
68
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT 72 * + CASE 93 WHEN - 19 THEN NULL WHEN + + 86 * - 44 - - COUNT( * ) THEN NULL ELSE 64 END AS col2
----
4608

skipif mysql # not compatible
query I rowsort label-3119
SELECT 72 * + CASE 93 WHEN - 19 THEN NULL WHEN + + 86 * - 44 - - COUNT ( * ) THEN NULL ELSE 64 END AS col2
----
4608

query I rowsort
SELECT 79 - + 16 + 69 * - 3 + ( + 24 ) + + 18
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT CASE - ( - - 2 ) WHEN + - ( - COUNT( * ) ) THEN NULL WHEN - COUNT( * ) THEN NULL WHEN + - 19 - + 24 THEN NULL ELSE 4 + - 45 END * - 54
----
2214

skipif mysql # not compatible
query I rowsort label-3121
SELECT CASE - ( - - 2 ) WHEN + - ( - COUNT ( * ) ) THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN + - 19 - + 24 THEN NULL ELSE 4 + - 45 END * - 54
----
2214

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3122
SELECT 62 + + 67 AS col0, - 18 + + 28 - 27 + + - COUNT( * ) + - MIN( + 12 ) DIV - 35 AS col0
----
129
-18

skipif mysql # not compatible
query II rowsort label-3122
SELECT 62 + + 67 AS col0, - 18 + + 28 - 27 + + - COUNT ( * ) + - MIN ( + 12 ) / - 35 AS col0
----
129
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3123
SELECT ( - 78 ) * 11 * - ( 67 ) * COUNT( * ) * + CAST( NULL AS SIGNED ) * ( 81 * - CASE NULLIF ( COUNT( * ), 88 * 28 + ( - 93 ) * + 45 ) * COUNT( * ) WHEN + MIN( ALL 30 ) + + 10 THEN NULL WHEN + 19 THEN + 56 - - 15 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT ( - 78 ) * 11 * - ( 67 ) * COUNT ( * ) * + CAST ( NULL AS INTEGER ) * ( 81 * - CASE NULLIF ( COUNT ( * ), 88 * 28 + ( - 93 ) * + 45 ) * COUNT ( * ) WHEN + MIN ( ALL 30 ) + + 10 THEN NULL WHEN + 19 THEN + 56 - - 15 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT 78 + 4 * + + SUM( DISTINCT - 64 ) * - 1
----
334

skipif mysql # not compatible
query I rowsort label-3124
SELECT 78 + 4 * + + SUM ( DISTINCT - 64 ) * - 1
----
334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT DISTINCT 11 * - COALESCE ( + CAST( - - ( - ( 86 ) ) AS SIGNED ), + 43 * 71, - CAST( 22 AS SIGNED ) )
----
946

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT 11 * - COALESCE ( + CAST ( - - ( - ( 86 ) ) AS INTEGER ), + 43 * 71, - CAST ( 22 AS INTEGER ) )
----
946

query I rowsort
SELECT + 80 * 10 * - 2 + + 68 * + - 57
----
-5476

query I rowsort
SELECT 4 * - 3 * 65 * - 31
----
24180

query I rowsort
SELECT 87 * - 44 * + 31
----
-118668

onlyif mysql # DIV for integer division: 
query I rowsort label-3129
SELECT COALESCE ( + 13, - 65 * - + 45 + + 98 + 67 + + ( - 29 ) + 59, - 47 ) DIV - 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3129
SELECT COALESCE ( + 13, - 65 * - + 45 + + 98 + 67 + + ( - 29 ) + 59, - 47 ) / - 32 AS col2
----
0

query I rowsort
SELECT 20 * + 60 * 69 * 21 + + 92 AS col0
----
1738892

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

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - 24 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT - 87 DIV - 74 + 52 col1
----
53

skipif mysql # not compatible
query I rowsort label-3132
SELECT - 87 / - 74 + 52 col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT DISTINCT - NULLIF ( + 69, - 65 * + ( - 97 ) / - + 42 + + - MAX( DISTINCT 51 ) ) + - 98
----
-167

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT - NULLIF ( + 69, - 65 * + ( - 97 ) / - + 42 + + - MAX ( DISTINCT 51 ) ) + - 98
----
-167

query I rowsort
SELECT ALL - + 61 col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT 94 * + CAST( NULL AS SIGNED ) * - CAST( + 87 AS SIGNED ) * - - 47 / - + ( 62 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT 94 * + CAST ( NULL AS INTEGER ) * - CAST ( + 87 AS INTEGER ) * - - 47 / - + ( 62 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3136
SELECT ALL 45 DIV + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL 45 / + 51 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3137
SELECT SUM( DISTINCT - 80 ) + COUNT( * ) * - - CAST( NULL AS SIGNED ) + 0 + + - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT SUM ( DISTINCT - 80 ) + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + 0 + + - 85 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + COUNT( - ( + 76 ) ) * - COUNT( * ) * + ( 66 ) - - 78 col0
----
12

skipif mysql # not compatible
query I rowsort label-3138
SELECT + COUNT ( - ( + 76 ) ) * - COUNT ( * ) * + ( 66 ) - - 78 col0
----
12

query I rowsort
SELECT DISTINCT + 72 + + 74 + + 47
----
193

query I rowsort
SELECT 42 + + 64 col1
----
106

query I rowsort
SELECT ( - - 76 ) + + 60
----
136

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

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL COUNT ( 2 ) - + ( - + ( + + COUNT ( * ) ) ) * 41 AS col0
----
42

query I rowsort
SELECT DISTINCT 77 * 63
----
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT MIN( DISTINCT + 15 ) + + - 62 * + 46
----
-2837

skipif mysql # not compatible
query I rowsort label-3144
SELECT MIN ( DISTINCT + 15 ) + + - 62 * + 46
----
-2837

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT ALL 30 - 11 - 3 * - + SUM( + 0 ) + - 67 + + ( - 89 ) + COUNT( * ) * + 87
----
-50

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL 30 - 11 - 3 * - + SUM ( + 0 ) + - 67 + + ( - 89 ) + COUNT ( * ) * + 87
----
-50

query II rowsort
SELECT DISTINCT 6, - 5 AS col2
----
6
-5

query I rowsort
SELECT 72 * - - 13
----
936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3148
SELECT 7 + - 58 + - 75 * 93 DIV - - 99 * - + COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3148
SELECT 7 + - 58 + - 75 * 93 / - - 99 * - + COUNT ( * ) AS col0
----
19

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

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

query II rowsort
SELECT ALL 11, + 62 * 16 * - 57 AS col2
----
11
-56544

query I rowsort
SELECT ALL 64 col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT - COUNT( DISTINCT + CAST( 70 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3152
SELECT - COUNT ( DISTINCT + CAST ( 70 AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3153
SELECT ALL - COUNT( * ) * COUNT( * ) DIV - - 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL - COUNT ( * ) * COUNT ( * ) / - - 99 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT CASE + - 14 WHEN + 35 THEN NULL WHEN + 50 + + 25 * - 34 - - COUNT( * ) - + 39 * AVG ( DISTINCT - 50 ) THEN + 30 + MAX( 7 - 25 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT CASE + - 14 WHEN + 35 THEN NULL WHEN + 50 + + 25 * - 34 - - COUNT ( * ) - + 39 * AVG ( DISTINCT - 50 ) THEN + 30 + MAX ( 7 - 25 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3155
SELECT DISTINCT 64 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT 64 / + 93
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3156
SELECT + 4 * - MAX( + 36 ) AS col0, - 33 * + COUNT( * ) + - 5 + + 16 * 95 DIV + 69 AS col0
----
-144
-16

skipif mysql # not compatible
query II rowsort label-3156
SELECT + 4 * - MAX ( + 36 ) AS col0, - 33 * + COUNT ( * ) + - 5 + + 16 * 95 / + 69 AS col0
----
-144
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT CASE - 99 WHEN - SUM( 34 ) THEN NULL WHEN 49 THEN NULL WHEN - + 90 * + + 27 THEN NULL ELSE 44 * 81 END
----
3564

skipif mysql # not compatible
query I rowsort label-3157
SELECT CASE - 99 WHEN - SUM ( 34 ) THEN NULL WHEN 49 THEN NULL WHEN - + 90 * + + 27 THEN NULL ELSE 44 * 81 END
----
3564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3158
SELECT + CAST( + - AVG ( 49 ) AS SIGNED ) * MIN( ( + 60 ) )
----
-2940

skipif mysql # not compatible
query I rowsort label-3158
SELECT + CAST ( + - AVG ( 49 ) AS INTEGER ) * MIN ( ( + 60 ) )
----
-2940

query I rowsort
SELECT - 76 * + + 21 * - 45
----
71820

onlyif mysql # aggregate syntax: 
query II rowsort label-3160
SELECT ALL + COUNT( * ) * - - 31 + - 24 AS col1, - 99 * + COUNT( * )
----
7
-99

skipif mysql # not compatible
query II rowsort label-3160
SELECT ALL + COUNT ( * ) * - - 31 + - 24 AS col1, - 99 * + COUNT ( * )
----
7
-99

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

query I rowsort
SELECT DISTINCT - + 83 * 52
----
-4316

onlyif mysql # aggregate syntax: 
query II rowsort label-3163
SELECT - - 23 * + COUNT( * ) * + COUNT( ALL 97 ), + 61 AS col2
----
23
61

skipif mysql # not compatible
query II rowsort label-3163
SELECT - - 23 * + COUNT ( * ) * + COUNT ( ALL 97 ), + 61 AS col2
----
23
61

query I rowsort
SELECT - + 6 + 12 AS col0
----
6

query I rowsort
SELECT DISTINCT - - 36 * + 25 * 50 * - 95 * + NULLIF ( - 87, + + 61 ) + 74 * + 0
----
371925000

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

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

query II rowsort
SELECT 81 col1, 90 * - + 37 col1
----
81
-3330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3168
SELECT + 37 * MAX( DISTINCT + 83 ) + 80 + + + 68 * - 15 * + CAST( 85 AS SIGNED ) * - 26 AS col0
----
2257351

skipif mysql # not compatible
query I rowsort label-3168
SELECT + 37 * MAX ( DISTINCT + 83 ) + 80 + + + 68 * - 15 * + CAST ( 85 AS INTEGER ) * - 26 AS col0
----
2257351

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT - - 62 * + + COUNT( * ) * - + NULLIF ( 39, + - 64 )
----
-2418

skipif mysql # not compatible
query I rowsort label-3169
SELECT - - 62 * + + COUNT ( * ) * - + NULLIF ( 39, + - 64 )
----
-2418

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT + - CASE - - 6 WHEN 85 * - - MIN( 5 ) THEN 78 + + COUNT( * ) * - 3 ELSE 57 + 96 * 7 END AS col1
----
-729

skipif mysql # not compatible
query I rowsort label-3170
SELECT + - CASE - - 6 WHEN 85 * - - MIN ( 5 ) THEN 78 + + COUNT ( * ) * - 3 ELSE 57 + 96 * 7 END AS col1
----
-729

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3171
SELECT ALL - - 41 * - COUNT( * ) DIV 44 AS col1, + 21 DIV 22
----
0
0

skipif mysql # not compatible
query II rowsort label-3171
SELECT ALL - - 41 * - COUNT ( * ) / 44 AS col1, + 21 / 22
----
0
0

query I rowsort
SELECT ALL + - 62 AS col1
----
-62

query I rowsort
SELECT DISTINCT ( 19 ) col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT 13 * + 44 * + - MIN( DISTINCT + - 52 ) + + ( CASE - + 74 WHEN - ( 50 ) THEN NULL ELSE 85 END )
----
29829

skipif mysql # not compatible
query I rowsort label-3174
SELECT 13 * + 44 * + - MIN ( DISTINCT + - 52 ) + + ( CASE - + 74 WHEN - ( 50 ) THEN NULL ELSE 85 END )
----
29829

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3175
SELECT - 1 DIV + 81 AS col0, COUNT( * ) - + 33 * CASE + 63 WHEN 8 THEN NULL WHEN 87 * 57 THEN + 28 + + 57 END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3175
SELECT - 1 / + 81 AS col0, COUNT ( * ) - + 33 * CASE + 63 WHEN 8 THEN NULL WHEN 87 * 57 THEN + 28 + + 57 END AS col2
----
0
NULL

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

skipif mysql # not compatible
query I rowsort label-3176
SELECT + COUNT ( * ) / - + 3
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3177
SELECT - 18 * COALESCE ( - 3, + + 63 - + 52 + + + 98 * - 76 ) col1, 31 - + - CASE - 45 WHEN COALESCE ( 78, 44 ) THEN + 55 WHEN - 91 * 74 THEN + COALESCE ( + 97, + COUNT( * ) / 14 ) + - 10 ELSE NULL END
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3177
SELECT - 18 * COALESCE ( - 3, + + 63 - + 52 + + + 98 * - 76 ) col1, 31 - + - CASE - 45 WHEN COALESCE ( 78, 44 ) THEN + 55 WHEN - 91 * 74 THEN + COALESCE ( + 97, + COUNT ( * ) / 14 ) + - 10 ELSE NULL END
----
54
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT ALL - 49 DIV - + 4 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL - 49 / - + 4 AS col0
----
12

query I rowsort
SELECT - ( - 35 ) - - 38 AS col1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3180
SELECT ALL CASE + 44 WHEN - - 84 THEN CAST( NULL AS SIGNED ) * + 52 * + 6 * ( + 89 ) * - - 65 + + ( - 3 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL CASE + 44 WHEN - - 84 THEN CAST ( NULL AS INTEGER ) * + 52 * + 6 * ( + 89 ) * - - 65 + + ( - 3 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL ( - MIN( + + 82 ) ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL ( - MIN ( + + 82 ) ) col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3182
SELECT DISTINCT ( 29 ) AS col2, - CASE COUNT( * ) WHEN SUM( DISTINCT + - 42 ) - + 58 THEN - - 97 + + 16 WHEN + NULLIF ( - 3, CAST( NULL AS DECIMAL ) ) THEN + 11 ELSE - 95 * COUNT( * ) END * 50
----
29
4750

skipif mysql # not compatible
query II rowsort label-3182
SELECT DISTINCT ( 29 ) AS col2, - CASE COUNT ( * ) WHEN SUM ( DISTINCT + - 42 ) - + 58 THEN - - 97 + + 16 WHEN + NULLIF ( - 3, CAST ( NULL AS REAL ) ) THEN + 11 ELSE - 95 * COUNT ( * ) END * 50
----
29
4750

query I rowsort
SELECT + 17 * - COALESCE ( - 99, + 8 )
----
1683

query I rowsort
SELECT ALL 23 + - + 73 col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3185
SELECT - 29 + 34 - - 38 + - CASE COALESCE ( + COUNT( * ), - 12 + + - 80 / + CAST( NULL AS SIGNED ) ) WHEN 29 THEN 88 WHEN + COUNT( * ) / 78 + - COUNT( * ) * 8 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT - 29 + 34 - - 38 + - CASE COALESCE ( + COUNT ( * ), - 12 + + - 80 / + CAST ( NULL AS INTEGER ) ) WHEN 29 THEN 88 WHEN + COUNT ( * ) / 78 + - COUNT ( * ) * 8 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 11 - + - 10 + 74
----
95

query I rowsort
SELECT ALL COALESCE ( - 41, + 89 * 74 ) + + ( + 41 ) AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + NULLIF ( - NULLIF ( - - 35, - MIN( ALL + 84 ) / 95 ), + COUNT( ALL + + 93 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-3189
SELECT + NULLIF ( - NULLIF ( - - 35, - MIN ( ALL + 84 ) / 95 ), + COUNT ( ALL + + 93 ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT ALL + 79 / COALESCE ( - - 39, + - 89 + + 73 + - + AVG ( DISTINCT - 5 ) + 82 - - ( + SUM( DISTINCT + 47 ) ) / + 63 * - 37 * - COUNT( * ) ) + CASE + COUNT( * ) WHEN 43 / + 63 THEN 96 * - NULLIF ( ( SUM( DISTINCT 59 ) ), 55 - + 56 * + 29 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL + 79 / COALESCE ( - - 39, + - 89 + + 73 + - + AVG ( DISTINCT - 5 ) + 82 - - ( + SUM ( DISTINCT + 47 ) ) / + 63 * - 37 * - COUNT ( * ) ) + CASE + COUNT ( * ) WHEN 43 / + 63 THEN 96 * - NULLIF ( ( SUM ( DISTINCT 59 ) ), 55 - + 56 * + 29 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3191
SELECT 18 * 72 * - - 78 * - 40 * ( 20 ) + - - CAST( - CASE - - 87 WHEN CAST( - 83 AS DECIMAL ) THEN - NULLIF ( + 91, 4 + 39 ) * 32 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT 18 * 72 * - - 78 * - 40 * ( 20 ) + - - CAST ( - CASE - - 87 WHEN CAST ( - 83 AS REAL ) THEN - NULLIF ( + 91, 4 + 39 ) * 32 ELSE NULL END AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3192
SELECT SUM ( + - 51 )
----
-51

query I rowsort
SELECT DISTINCT + ( - - 82 )
----
82

query I rowsort
SELECT DISTINCT - 74 * 52 + 32 AS col2
----
-3816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT ALL - + 24 DIV 95 + - 11 + + - COUNT( * ) + - - 1 * 46
----
34

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - + 24 / 95 + - 11 + + - COUNT ( * ) + - - 1 * 46
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT + + 57 DIV + 30
----
1

skipif mysql # not compatible
query I rowsort label-3196
SELECT + + 57 / + 30
----
1

query II rowsort
SELECT + + 52 * - 59 AS col2, - 78
----
-3068
-78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT + 34 * - 58 + 38 + + SUM( ALL - 99 ) AS col2
----
-2033

skipif mysql # not compatible
query I rowsort label-3199
SELECT + 34 * - 58 + 38 + + SUM ( ALL - 99 ) AS col2
----
-2033

query I rowsort
SELECT ALL NULLIF ( - 68, - COALESCE ( + + 14, + + 74 ) / + 80 * - 73 * 3 + - 63 + 12 ) * - 93 AS col0
----
6324

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

query I rowsort
SELECT - + 50 * - 7
----
350

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

skipif mysql # not compatible
query I rowsort label-3203
SELECT COUNT ( * ) * COUNT ( * ) * - - 77 + ( + - 82 ) AS col1
----
-5

query I rowsort
SELECT + NULLIF ( 62, + 86 * 60 - ( - + 43 ) ) AS col1
----
62

query I rowsort
SELECT + 65 + 46 AS col0
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3206
SELECT + 13 * - 7 + - 95 + + SUM( DISTINCT 79 ) DIV 21
----
-183

skipif mysql # not compatible
query I rowsort label-3206
SELECT + 13 * - 7 + - 95 + + SUM ( DISTINCT 79 ) / 21
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT - COUNT( * ) * - 59 * - COUNT( - 64 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3207
SELECT - COUNT ( * ) * - 59 * - COUNT ( - 64 ) AS col1
----
-59

query II rowsort
SELECT - 94 AS col0, 80
----
-94
80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3210
SELECT - CAST( - 56 AS SIGNED ) + + 43
----
99

skipif mysql # not compatible
query I rowsort label-3210
SELECT - CAST ( - 56 AS INTEGER ) + + 43
----
99

query I rowsort
SELECT ALL + 63 * - 39 AS col0
----
-2457

query I rowsort
SELECT - 41 + - ( + 0 )
----
-41

query I rowsort
SELECT ALL - 91 + + 62 AS col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3214
SELECT 7 DIV NULLIF ( - COUNT( * ), - 35 + + + COUNT( * ) + 36 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-3214
SELECT 7 / NULLIF ( - COUNT ( * ), - 35 + + + COUNT ( * ) + 36 ) AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3215
SELECT 78 * CAST( NULL AS SIGNED ) * + 30, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3215
SELECT 78 * CAST ( NULL AS INTEGER ) * + 30, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3216
SELECT ALL + COALESCE ( + 2, + CASE - AVG ( + 81 ) WHEN + 28 THEN + 65 + - 26 END ) DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + COALESCE ( + 2, + CASE - AVG ( + 81 ) WHEN + 28 THEN + 65 + - 26 END ) / - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT DISTINCT - 46 + - NULLIF ( 13, - + 9 * ( - COUNT( * ) ) ) * 85 * + 10
----
-11096

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT - 46 + - NULLIF ( 13, - + 9 * ( - COUNT ( * ) ) ) * 85 * + 10
----
-11096

query I rowsort
SELECT ALL 69 + - 10 + 7 AS col0
----
66

query I rowsort
SELECT 13 * + ( - 68 ) AS col1
----
-884

onlyif mysql # DIV for integer division: 
query II rowsort label-3220
SELECT ALL 82 AS col0, COALESCE ( - + 49, - 34 DIV 89 DIV - - 45 - - 65, - 57 + + 21 + + 57 * 68, - ( - 34 ) ) AS col0
----
82
-49

skipif mysql # not compatible
query II rowsort label-3220
SELECT ALL 82 AS col0, COALESCE ( - + 49, - 34 / 89 / - - 45 - - 65, - 57 + + 21 + + 57 * 68, - ( - 34 ) ) AS col0
----
82
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3221
SELECT DISTINCT - COALESCE ( - 65, - + ( 61 ) DIV - 26 - - COUNT( * ) + - 24 + + COUNT( * ) ) + + 94 AS col2
----
159

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT - COALESCE ( - 65, - + ( 61 ) / - 26 - - COUNT ( * ) + - 24 + + COUNT ( * ) ) + + 94 AS col2
----
159

query I rowsort
SELECT ALL 88 * + 89 AS col1
----
7832

query I rowsort
SELECT ALL - + 74 + 53 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT + MIN( ALL + 4 ) * 3 * + 29 AS col2
----
348

skipif mysql # not compatible
query I rowsort label-3224
SELECT + MIN ( ALL + 4 ) * 3 * + 29 AS col2
----
348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT - 78 / - 66 - 27 - + ( - AVG ( ALL + - CAST( NULL AS SIGNED ) ) ) * + - 87 * - 41 * - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT - 78 / - 66 - 27 - + ( - AVG ( ALL + - CAST ( NULL AS INTEGER ) ) ) * + - 87 * - 41 * - + 24
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT - 33 * + + CAST( + 22 AS SIGNED ) * + 4 AS col1
----
-2904

skipif mysql # not compatible
query I rowsort label-3227
SELECT - 33 * + + CAST ( + 22 AS INTEGER ) * + 4 AS col1
----
-2904

query I rowsort
SELECT DISTINCT - + 73 AS col2
----
-73

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3231
SELECT DISTINCT - + NULLIF ( - CASE - - 86 WHEN - ( - 41 ) THEN + - 46 END, CASE - 32 WHEN + 25 THEN NULL WHEN + 85 + + CAST( - 41 AS SIGNED ) THEN - 38 * ( + 79 ) ELSE 32 END * + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT - + NULLIF ( - CASE - - 86 WHEN - ( - 41 ) THEN + - 46 END, CASE - 32 WHEN + 25 THEN NULL WHEN + 85 + + CAST ( - 41 AS INTEGER ) THEN - 38 * ( + 79 ) ELSE 32 END * + 4 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3232
SELECT + + CAST( - ( + 5 ) AS SIGNED ) AS col2, ( + 77 ) * + 80 AS col1
----
-5
6160

skipif mysql # not compatible
query II rowsort label-3232
SELECT + + CAST ( - ( + 5 ) AS INTEGER ) AS col2, ( + 77 ) * + 80 AS col1
----
-5
6160

query I rowsort
SELECT + 97 / + + CASE WHEN 48 > NULL THEN + 44 ELSE NULL END * + + 54 + 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3234
SELECT + 88 AS col0, - MIN( ALL 34 ) AS col1
----
88
-34

skipif mysql # not compatible
query II rowsort label-3234
SELECT + 88 AS col0, - MIN ( ALL 34 ) AS col1
----
88
-34

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3236
SELECT + 15 * + 31 - 88, + COUNT( * ) * 38 AS col1
----
377
38

skipif mysql # not compatible
query II rowsort label-3236
SELECT + 15 * + 31 - 88, + COUNT ( * ) * 38 AS col1
----
377
38

onlyif mysql # aggregate syntax: 
query II rowsort label-3237
SELECT 81, 11 * + 3 + - COUNT( * ) AS col0
----
81
32

skipif mysql # not compatible
query II rowsort label-3237
SELECT 81, 11 * + 3 + - COUNT ( * ) AS col0
----
81
32

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

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

query I rowsort
SELECT DISTINCT 12 + + - 60
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3240
SELECT ALL 71 + 52 + - 45 - - - 14 DIV 30 col2
----
78

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL 71 + 52 + - 45 - - - 14 / 30 col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3241
SELECT CASE 52 WHEN + CAST( - 40 AS SIGNED ) THEN - + COUNT( * ) + + 68 WHEN CASE COUNT( * ) WHEN - COUNT( * ) THEN + - ( - 34 ) ELSE - 33 DIV 86 + - 71 END THEN 5 DIV + COUNT( * ) ELSE 3 END * + 62 AS col2
----
186

skipif mysql # not compatible
query I rowsort label-3241
SELECT CASE 52 WHEN + CAST ( - 40 AS INTEGER ) THEN - + COUNT ( * ) + + 68 WHEN CASE COUNT ( * ) WHEN - COUNT ( * ) THEN + - ( - 34 ) ELSE - 33 / 86 + - 71 END THEN 5 / + COUNT ( * ) ELSE 3 END * + 62 AS col2
----
186

query I rowsort
SELECT ALL 47 + - 55 + - 69 * + 15
----
-1043

query I rowsort
SELECT 78 + 97
----
175

query I rowsort
SELECT 23 * 74 AS col0
----
1702

query II rowsort
SELECT 92, 79 * 31 AS col1
----
92
2449

query II rowsort
SELECT - 16, + CASE ( 17 ) WHEN 52 + - 98 THEN 44 - 29 + 34 END * - 58 + 94 + + 99 AS col0
----
-16
NULL

query I rowsort
SELECT ALL - ( + 73 ) + - + 23 col2
----
-96

query I rowsort
SELECT 3 - + + 81 AS col1
----
-78

query II rowsort
SELECT 0 AS col2, 85
----
0
85

query I rowsort
SELECT 13 - - 68 * + - 66
----
-4475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3251
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) * MAX( ALL - 5 ) * - 1 * - 68 + ( 43 ) + - 2 + + CAST( NULL AS DECIMAL ) + + COUNT( ALL - 95 ) + - COUNT( * ) * + 96 / 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * MAX ( ALL - 5 ) * - 1 * - 68 + ( 43 ) + - 2 + + CAST ( NULL AS REAL ) + + COUNT ( ALL - 95 ) + - COUNT ( * ) * + 96 / 37
----
NULL

query I rowsort
SELECT DISTINCT - ( + 84 ) - + 15 * + 95 * 46 col2
----
-65634

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT - 95 + - MIN( - 29 ) + - 37 AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-3253
SELECT - 95 + - MIN ( - 29 ) + - 37 AS col0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT - CASE - 77 WHEN COUNT( DISTINCT - - 26 ) / - 35 THEN NULL WHEN - 64 THEN + + COUNT( * ) * 23 * + COUNT( * ) ELSE - + 52 END - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-3254
SELECT - CASE - 77 WHEN COUNT ( DISTINCT - - 26 ) / - 35 THEN NULL WHEN - 64 THEN + + COUNT ( * ) * 23 * + COUNT ( * ) ELSE - + 52 END - COUNT ( * )
----
51

query II rowsort
SELECT ALL + 19, + 31 + 42 * - 43 AS col0
----
19
-1775

query I rowsort
SELECT 63 + - ( + - 68 ) + - ( + 20 )
----
111

query I rowsort
SELECT - 78 - 23
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT - 22 + + + 45 + - 32 - + + COALESCE ( - 43, - MAX( - 67 ), 41 * + 13 * - - 86 + + 49 ) * + 87
----
3732

skipif mysql # not compatible
query I rowsort label-3258
SELECT - 22 + + + 45 + - 32 - + + COALESCE ( - 43, - MAX ( - 67 ), 41 * + 13 * - - 86 + + 49 ) * + 87
----
3732

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3259
SELECT - - COUNT( DISTINCT ( - NULLIF ( CAST( NULL AS DECIMAL ), + 4 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT - - COUNT ( DISTINCT ( - NULLIF ( CAST ( NULL AS REAL ), + 4 ) ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3260
SELECT + 31 * - - 61 AS col1, COUNT( * ) * - - ( + 77 ) - 95 + - 73 * 45 AS col2
----
1891
-3303

skipif mysql # not compatible
query II rowsort label-3260
SELECT + 31 * - - 61 AS col1, COUNT ( * ) * - - ( + 77 ) - 95 + - 73 * 45 AS col2
----
1891
-3303

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT DISTINCT - NULLIF ( - - 58, 16 * - 35 + + - 97 + - COUNT( * ) + 18 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT - NULLIF ( - - 58, 16 * - 35 + + - 97 + - COUNT ( * ) + 18 ) AS col0
----
-58

query I rowsort
SELECT + 63 * - 63 + + 91
----
-3878

onlyif mysql # DIV for integer division: 
query I rowsort label-3264
SELECT + 75 DIV 53 * + 56 + + 72
----
128

skipif mysql # not compatible
query I rowsort label-3264
SELECT + 75 / 53 * + 56 + + 72
----
128

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3266
SELECT ALL - 52 AS col2, + 90 AS col2, - SUM( CAST( NULL AS SIGNED ) ) * + COUNT( * ) + + 1 + - - 97 * + - 83 - + 85 - + 80 AS col1
----
-52
90
NULL

skipif mysql # not compatible
query III rowsort label-3266
SELECT ALL - 52 AS col2, + 90 AS col2, - SUM ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + + 1 + - - 97 * + - 83 - + 85 - + 80 AS col1
----
-52
90
NULL

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

skipif mysql # not compatible
query I rowsort label-3267
SELECT - 20 + COUNT ( * ) * - + COUNT ( - - 45 ) AS col1
----
-21

query I rowsort
SELECT - 94 + 70 AS col2
----
-24

query I rowsort
SELECT ALL + + 54 * + + ( + - 91 ) AS col0
----
-4914

query I rowsort
SELECT DISTINCT - 14 col0
----
-14

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

skipif mysql # not compatible
query I rowsort label-3271
SELECT COUNT ( * ) + - SUM ( + 33 ) AS col1
----
-32

query II rowsort
SELECT + + 88, 36 AS col0
----
88
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3273
SELECT ALL + 85 * + NULLIF ( 86, + + 54 + + 62 / 65 ) + CASE + + 56 WHEN + 84 THEN NULL WHEN + + 4 + - 62 * 14 THEN NULL ELSE - 66 * 30 END * 41 + CAST( NULL AS SIGNED ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL + 85 * + NULLIF ( 86, + + 54 + + 62 / 65 ) + CASE + + 56 WHEN + 84 THEN NULL WHEN + + 4 + - 62 * 14 THEN NULL ELSE - 66 * 30 END * 41 + CAST ( NULL AS INTEGER ) * 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT ALL - COUNT( DISTINCT 59 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL - COUNT ( DISTINCT 59 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3275
SELECT + + COALESCE ( - COUNT( * ), + + NULLIF ( - + CAST( + 24 AS SIGNED ), - ( - 32 ) * + + 5 + + 69 ) * COUNT( * ) + 1 + - 67 * MIN( ALL 72 ) DIV COUNT( * ), 1 - 76 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3275
SELECT + + COALESCE ( - COUNT ( * ), + + NULLIF ( - + CAST ( + 24 AS INTEGER ), - ( - 32 ) * + + 5 + + 69 ) * COUNT ( * ) + 1 + - 67 * MIN ( ALL 72 ) / COUNT ( * ), 1 - 76 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3276
SELECT ALL + + 62 * - 62 + - 69 - 41 * COUNT( * ) DIV + - 1 + COUNT( * ) * COALESCE ( 30, + - 82 )
----
-3842

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + + 62 * - 62 + - 69 - 41 * COUNT ( * ) / + - 1 + COUNT ( * ) * COALESCE ( 30, + - 82 )
----
-3842

query I rowsort
SELECT DISTINCT - + 0 + - - 76 + + - 70 * + 82
----
-5664

onlyif mysql # aggregate syntax: 
query II rowsort label-3278
SELECT MAX( ALL + + 70 ), 39 + + 63 AS col0
----
70
102

skipif mysql # not compatible
query II rowsort label-3278
SELECT MAX ( ALL + + 70 ), 39 + + 63 AS col0
----
70
102

query I rowsort
SELECT ALL - 91 + + - 86 + + 43 * - 71 col1
----
-3230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3280
SELECT ALL + 36 + 39 / CASE + 17 WHEN + COUNT( * ) * 9 * + 85 THEN - 44 + CASE - CAST( NULL AS SIGNED ) WHEN + COUNT( ALL + 76 ) THEN NULL WHEN 7 * COUNT( * ) THEN 28 END * + 80 WHEN 62 THEN 60 END + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL + 36 + 39 / CASE + 17 WHEN + COUNT ( * ) * 9 * + 85 THEN - 44 + CASE - CAST ( NULL AS INTEGER ) WHEN + COUNT ( ALL + 76 ) THEN NULL WHEN 7 * COUNT ( * ) THEN 28 END * + 80 WHEN 62 THEN 60 END + + COUNT ( * ) col2
----
NULL

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

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

query I rowsort
SELECT ALL ( - 37 ) + 17 + - 81
----
-101

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT + 35 - MAX( 79 ) * - - 66 * - ( - 36 )
----
-187669

skipif mysql # not compatible
query I rowsort label-3284
SELECT + 35 - MAX ( 79 ) * - - 66 * - ( - 36 )
----
-187669

query I rowsort
SELECT + 94 * + NULLIF ( 16, CASE 4 WHEN - - 93 THEN - 26 + + 80 END )
----
1504

onlyif mysql # DIV for integer division: 
query I rowsort label-3286
SELECT ALL 0 * 66 DIV - 48
----
0

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL 0 * 66 / - 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT MIN( + 17 ) + - MAX( + 42 ) * - 4
----
185

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT MIN ( + 17 ) + - MAX ( + 42 ) * - 4
----
185

onlyif mysql # aggregate syntax: 
query II rowsort label-3288
SELECT - COUNT( ALL + - 57 ) AS col0, - COUNT( - 57 ) * 47 AS col2
----
-1
-47

skipif mysql # not compatible
query II rowsort label-3288
SELECT - COUNT ( ALL + - 57 ) AS col0, - COUNT ( - 57 ) * 47 AS col2
----
-1
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3289
SELECT + 99 + + + 12 + + 44 DIV - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-3289
SELECT + 99 + + + 12 + + 44 / - COUNT ( * )
----
67

query II rowsort
SELECT + 34 * + 91 AS col1, + 43
----
3094
43

query I rowsort
SELECT DISTINCT 20 col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT ALL MAX( - 63 ) - + - COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL MAX ( - 63 ) - + - COUNT ( * ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ALL - 29 - 24 + + 56 * + COUNT( * ) - NULLIF ( - 92, + 90 )
----
95

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - 29 - 24 + + 56 * + COUNT ( * ) - NULLIF ( - 92, + 90 )
----
95

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

skipif mysql # not compatible
query II rowsort label-3294
SELECT - ( - 94 ) AS col1, - COUNT ( * ) AS col2
----
94
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3296
SELECT - + CASE + + 30 WHEN - + 38 THEN - - 31 WHEN - 91 * + - 99 + - COALESCE ( - 23, - + AVG ( ALL + + 32 ) * - COUNT( * ) * - MAX( ALL + 85 ) * + COUNT( DISTINCT + 67 + - 25 ), 99 ) + 62 * 47 THEN NULL WHEN + ( NULLIF ( CAST( + 5 AS SIGNED ), - 54 ) ) THEN 67 ELSE 0 END + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3296
SELECT - + CASE + + 30 WHEN - + 38 THEN - - 31 WHEN - 91 * + - 99 + - COALESCE ( - 23, - + AVG ( ALL + + 32 ) * - COUNT ( * ) * - MAX ( ALL + 85 ) * + COUNT ( DISTINCT + 67 + - 25 ), 99 ) + 62 * 47 THEN NULL WHEN + ( NULLIF ( CAST ( + 5 AS INTEGER ), - 54 ) ) THEN 67 ELSE 0 END + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT - - 90 + - + COUNT( * )
----
89

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3298
SELECT ALL + + COUNT( * ) * - 9 + 93 AS col1, ( - + 73 )
----
84
-73

skipif mysql # not compatible
query II rowsort label-3298
SELECT ALL + + COUNT ( * ) * - 9 + 93 AS col1, ( - + 73 )
----
84
-73

query II rowsort
SELECT ALL - + 32 * 33 * + 21 * + 65 + - 42, - 32 AS col1
----
-1441482
-32

query I rowsort
SELECT ALL + - 2 * - 21
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT + 10 DIV + 57 + - + 27 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-3301
SELECT + 10 / + 57 + - + 27 AS col0
----
-27

query II rowsort
SELECT - - 13 * 57, + 75 AS col0
----
741
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL + 95 * MAX( ALL - 85 ) + + + SUM( DISTINCT 48 ) * 37
----
-6299

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL + 95 * MAX ( ALL - 85 ) + + + SUM ( DISTINCT 48 ) * 37
----
-6299

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT - 45 * - 84 + + - MAX( ALL + - 47 ) - - - 10 * + - ( + - 1 )
----
3817

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT - 45 * - 84 + + - MAX ( ALL + - 47 ) - - - 10 * + - ( + - 1 )
----
3817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3305
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 7 * - ( - 78 ) + - - COALESCE ( - COUNT( * ), - + 39 ), - 69 + - 37 AS col2
----
NULL
-106

skipif mysql # not compatible
query II rowsort label-3305
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 7 * - ( - 78 ) + - - COALESCE ( - COUNT ( * ), - + 39 ), - 69 + - 37 AS col2
----
NULL
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT DISTINCT 10 * + 0 + + 50 * - - 1 * COUNT( * ) + - 94 + - - MIN( 57 ) * + CASE - - 8 WHEN + - 13 * + 34 + 9 - 26 * - AVG ( DISTINCT 4 * - 58 ) THEN - 87 - + 27 WHEN 88 * ( 91 ) THEN NULL END + 13 + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT 10 * + 0 + + 50 * - - 1 * COUNT ( * ) + - 94 + - - MIN ( 57 ) * + CASE - - 8 WHEN + - 13 * + 34 + 9 - 26 * - AVG ( DISTINCT 4 * - 58 ) THEN - 87 - + 27 WHEN 88 * ( 91 ) THEN NULL END + 13 + 59
----
NULL

query I rowsort
SELECT + 38 * - + 6 + 61 * - 75
----
-4803

query II rowsort
SELECT ALL + 32 * - + ( 56 ) col0, 97 * + 5
----
-1792
485

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3309
SELECT - CAST( NULL AS DECIMAL ) * 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT - CAST ( NULL AS REAL ) * 1 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3310
SELECT CAST( NULL AS SIGNED ) * - SUM( ALL - 1 ) / 54 + 22 / + - 79 + - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT CAST ( NULL AS INTEGER ) * - SUM ( ALL - 1 ) / 54 + 22 / + - 79 + - 79 AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( 99, 83 * 44 ) AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3312
SELECT ALL + MIN( + 89 ) * + 66 + - - 25 * 94 * - 41 - - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL + MIN ( + 89 ) * + 66 + - - 25 * 94 * - 41 - - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3313
SELECT COALESCE ( + + 34, + 15 * + 4 - + - 36 * ( - COUNT( * ) ) - - COUNT( * ) * + CAST( NULL AS SIGNED ) + NULLIF ( + + 63, - COUNT( * ) * + 44 ) + + 85 * 84 * 71 )
----
34

skipif mysql # not compatible
query I rowsort label-3313
SELECT COALESCE ( + + 34, + 15 * + 4 - + - 36 * ( - COUNT ( * ) ) - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + NULLIF ( + + 63, - COUNT ( * ) * + 44 ) + + 85 * 84 * 71 )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3314
SELECT ALL CAST( 43 AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL CAST ( 43 AS INTEGER ) AS col2
----
43

query II rowsort
SELECT DISTINCT 73 AS col2, - NULLIF ( - 34, + 79 ) * + 79 - - - 82
----
73
2604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3316
SELECT - 16 + + + 19 + + 51 - + COUNT( DISTINCT - - 98 ) * + 50 * - COUNT( * ) * 81 DIV - + SUM( DISTINCT + + 3 )
----
-1296

skipif mysql # not compatible
query I rowsort label-3316
SELECT - 16 + + + 19 + + 51 - + COUNT ( DISTINCT - - 98 ) * + 50 * - COUNT ( * ) * 81 / - + SUM ( DISTINCT + + 3 )
----
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT MAX( + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-3317
SELECT MAX ( + 61 )
----
61

query I rowsort
SELECT - ( 88 )
----
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT COUNT( DISTINCT + + 5 )
----
1

skipif mysql # not compatible
query I rowsort label-3320
SELECT COUNT ( DISTINCT + + 5 )
----
1

query III rowsort
SELECT ALL 82 AS col0, 34 + - COALESCE ( 9, 7 ) + + + 47 AS col2, - 88 + + 78
----
82
72
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT + + COUNT( * ) * + + NULLIF ( 95, + NULLIF ( - 40, - - COUNT( * ) ) )
----
95

skipif mysql # not compatible
query I rowsort label-3322
SELECT + + COUNT ( * ) * + + NULLIF ( 95, + NULLIF ( - 40, - - COUNT ( * ) ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT + + COALESCE ( + 11, COUNT( * ) ) * 44
----
484

skipif mysql # not compatible
query I rowsort label-3323
SELECT + + COALESCE ( + 11, COUNT ( * ) ) * 44
----
484

query I rowsort
SELECT + 0 - - 68
----
68

query I rowsort
SELECT + - 50 * + - 96
----
4800

query II rowsort
SELECT ALL - 36 AS col0, 86 * - 36 * - 10
----
-36
30960

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT MIN( DISTINCT 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT MIN ( DISTINCT 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3328
SELECT ALL 10, + COUNT( * ) + + 9
----
10
10

skipif mysql # not compatible
query II rowsort label-3328
SELECT ALL 10, + COUNT ( * ) + + 9
----
10
10

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

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

query I rowsort
SELECT DISTINCT - ( 74 )
----
-74

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

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

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

query I rowsort
SELECT + + ( - + 5 ) - - - 85
----
-90

query I rowsort
SELECT + + 23 + + - 95
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT - - COUNT( * ) - 37
----
-36

skipif mysql # not compatible
query I rowsort label-3335
SELECT - - COUNT ( * ) - 37
----
-36

query I rowsort
SELECT ALL 46 + - 22 AS col2
----
24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3338
SELECT + NULLIF ( - 43, - 26 ) + - + 55 DIV - 13
----
-39

skipif mysql # not compatible
query I rowsort label-3338
SELECT + NULLIF ( - 43, - 26 ) + - + 55 / - 13
----
-39

query II rowsort
SELECT ALL + - 69, - 23 AS col0
----
-69
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT ALL 13 DIV + + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL 13 / + + 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT + MIN( ALL + 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3341
SELECT + MIN ( ALL + 37 ) AS col0
----
37

query I rowsort
SELECT ALL 26 + 62
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT ALL - + 35 AS col2, - 74 * COUNT( * ) AS col2
----
-35
-74

skipif mysql # not compatible
query II rowsort label-3343
SELECT ALL - + 35 AS col2, - 74 * COUNT ( * ) AS col2
----
-35
-74

query I rowsort
SELECT 7 * + 96 AS col0
----
672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3345
SELECT CAST( 27 AS SIGNED ) + - COUNT( * ) - - + ( ( MAX( + 49 ) ) ) * + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-3345
SELECT CAST ( 27 AS INTEGER ) + - COUNT ( * ) - - + ( ( MAX ( + 49 ) ) ) * + COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3346
SELECT ALL - SUM( ALL 91 ), 12 + - COUNT( * ) AS col0
----
-91
11

skipif mysql # not compatible
query II rowsort label-3346
SELECT ALL - SUM ( ALL 91 ), 12 + - COUNT ( * ) AS col0
----
-91
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT 97 * - 77, + COUNT( * ) AS col1
----
-7469
1

skipif mysql # not compatible
query II rowsort label-3347
SELECT 97 * - 77, + COUNT ( * ) AS col1
----
-7469
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT DISTINCT COUNT( * ) * - ( - NULLIF ( - 26, 46 + - COUNT( * ) ) )
----
-26

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT COUNT ( * ) * - ( - NULLIF ( - 26, 46 + - COUNT ( * ) ) )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT DISTINCT + 55 DIV - - 91
----
0

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT + 55 / - - 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3350
SELECT 65 * + 59 * + + 86 + COUNT( * ) * 32 AS col2, 27 DIV COALESCE ( 83, - 84 * 72 * - 50 + 75 - 39 ) AS col0
----
329842
0

skipif mysql # not compatible
query II rowsort label-3350
SELECT 65 * + 59 * + + 86 + COUNT ( * ) * 32 AS col2, 27 / COALESCE ( 83, - 84 * 72 * - 50 + 75 - 39 ) AS col0
----
329842
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3351
SELECT DISTINCT 82 - - 43, COUNT( * ) DIV - + 30 col2
----
125
0

skipif mysql # not compatible
query II rowsort label-3351
SELECT DISTINCT 82 - - 43, COUNT ( * ) / - + 30 col2
----
125
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3353
SELECT 23 + - - COUNT( * ) + + - 17 * - CAST( NULL AS SIGNED ) + + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3353
SELECT 23 + - - COUNT ( * ) + + - 17 * - CAST ( NULL AS INTEGER ) + + 11 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3354
SELECT DISTINCT - SUM( ALL - 88 ) AS col2, - CAST( + 38 AS SIGNED )
----
88
-38

skipif mysql # not compatible
query II rowsort label-3354
SELECT DISTINCT - SUM ( ALL - 88 ) AS col2, - CAST ( + 38 AS INTEGER )
----
88
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT ALL - CASE COUNT( * ) WHEN - 19 + 56 + - 30 + - 85 - 65 * - COUNT( * ) * - - COUNT( * ) * - COUNT( * ) * + 71 * + 70 THEN + + 8 + - 80 - + 27 WHEN - 7 THEN NULL ELSE COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL - CASE COUNT ( * ) WHEN - 19 + 56 + - 30 + - 85 - 65 * - COUNT ( * ) * - - COUNT ( * ) * - COUNT ( * ) * + 71 * + 70 THEN + + 8 + - 80 - + 27 WHEN - 7 THEN NULL ELSE COUNT ( * ) END AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3356
SELECT DISTINCT - CASE 87 WHEN CAST( NULL AS SIGNED ) + - - COUNT( * ) THEN - 69 + - - 11 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT - CASE 87 WHEN CAST ( NULL AS INTEGER ) + - - COUNT ( * ) THEN - 69 + - - 11 END AS col1
----
NULL

query I rowsort
SELECT 22 * - 38 * + 92 * + - 77
----
5922224

onlyif mysql # aggregate syntax: 
query II rowsort label-3358
SELECT 57 + 64 AS col2, COUNT( * ) AS col1
----
121
1

skipif mysql # not compatible
query II rowsort label-3358
SELECT 57 + 64 AS col2, COUNT ( * ) AS col1
----
121
1

query I rowsort
SELECT ALL - 66 * 31 AS col0
----
-2046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3360
SELECT CASE 33 WHEN - 76 * - 63 * 21 + - 5 + - - COUNT( * ) * - + COUNT( * ) / 73 * 56 / - CAST( + 67 AS SIGNED ) * + ( - - 35 ) * + 65 - COUNT( 41 ) THEN NULL ELSE CASE WHEN 22 IS NULL THEN NULL ELSE + COUNT( * ) + - CAST( NULL AS SIGNED ) END END + + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT CASE 33 WHEN - 76 * - 63 * 21 + - 5 + - - COUNT ( * ) * - + COUNT ( * ) / 73 * 56 / - CAST ( + 67 AS INTEGER ) * + ( - - 35 ) * + 65 - COUNT ( 41 ) THEN NULL ELSE CASE WHEN 22 IS NULL THEN NULL ELSE + COUNT ( * ) + - CAST ( NULL AS INTEGER ) END END + + 49 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 84 * + - 25 * + 74 AS col0
----
155400

onlyif mysql # DIV for integer division: 
query I rowsort label-3362
SELECT ALL - 57 * 65 * 85 - + + 99 + - 34 DIV - 88 AS col0
----
-315024

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL - 57 * 65 * 85 - + + 99 + - 34 / - 88 AS col0
----
-315024

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT NULLIF ( - + NULLIF ( + - COUNT( * ), - ( - CASE 60 WHEN + COUNT( DISTINCT - 16 ) THEN + + 28 END ) ), + ( - 98 ) ) + + + 69 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3363
SELECT NULLIF ( - + NULLIF ( + - COUNT ( * ), - ( - CASE 60 WHEN + COUNT ( DISTINCT - 16 ) THEN + + 28 END ) ), + ( - 98 ) ) + + + 69 AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3364
SELECT + 25 DIV + COUNT( * ) AS col0, SUM( + 6 ) + - - 6
----
25
12

skipif mysql # not compatible
query II rowsort label-3364
SELECT + 25 / + COUNT ( * ) AS col0, SUM ( + 6 ) + - - 6
----
25
12

query I rowsort
SELECT ALL - 7 + 39 * - + 22
----
-865

query I rowsort
SELECT - - ( ( - 77 ) )
----
-77

query I rowsort
SELECT DISTINCT + 74 + + COALESCE ( - - 99, 51 ) * + 82
----
8192

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3368
SELECT - MIN( ALL 14 ) DIV + + ( COUNT( * ) ) col1, + 5
----
-14
5

skipif mysql # not compatible
query II rowsort label-3368
SELECT - MIN ( ALL 14 ) / + + ( COUNT ( * ) ) col1, + 5
----
-14
5

query I rowsort
SELECT 7 + + + 72
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT - 74 + 46 * + ( - + MIN( - ( + + 85 ) ) )
----
3836

skipif mysql # not compatible
query I rowsort label-3371
SELECT - 74 + 46 * + ( - + MIN ( - ( + + 85 ) ) )
----
3836

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT DISTINCT + NULLIF ( - - 82, - 92 * + + ( 68 ) + + - 30 + NULLIF ( + 56, + COUNT( * ) * + + NULLIF ( - 22, + 21 ) * - + 33 + 64 + - 26 ) ) + - ( + MIN( ALL 23 ) + 39 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT + NULLIF ( - - 82, - 92 * + + ( 68 ) + + - 30 + NULLIF ( + 56, + COUNT ( * ) * + + NULLIF ( - 22, + 21 ) * - + 33 + 64 + - 26 ) ) + - ( + MIN ( ALL 23 ) + 39 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT DISTINCT - 22 * - MAX( DISTINCT - - 30 )
----
660

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT - 22 * - MAX ( DISTINCT - - 30 )
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT + 41 * 24 * + 82 * - CASE - - ( + - MAX( 47 ) ) WHEN + + MAX( 86 ) - + 3 THEN + 63 + + 53 * 89 + 22 - + 71 END * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT + 41 * 24 * + 82 * - CASE - - ( + - MAX ( 47 ) ) WHEN + + MAX ( 86 ) - + 3 THEN + 63 + + 53 * 89 + 22 - + 71 END * - 58
----
NULL

query I rowsort
SELECT - ( NULLIF ( 42, + 70 * ( + NULLIF ( + ( + + 3 ), - 62 + - 97 ) ) ) )
----
-42

query I rowsort
SELECT DISTINCT 19 * - ( 86 )
----
-1634

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT 66 - + MIN( ALL 83 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3377
SELECT 66 - + MIN ( ALL 83 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT + 7 - 0 * + - MIN( DISTINCT + 80 ) * 58 col0
----
7

skipif mysql # not compatible
query I rowsort label-3378
SELECT + 7 - 0 * + - MIN ( DISTINCT + 80 ) * 58 col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + MAX( DISTINCT - 53 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-3379
SELECT + MAX ( DISTINCT - 53 ) col0
----
-53

query II rowsort
SELECT DISTINCT - 65, 41 AS col2
----
-65
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3381
SELECT ALL - COUNT( + - ( - 55 ) ) AS col2, + 49
----
-1
49

skipif mysql # not compatible
query II rowsort label-3381
SELECT ALL - COUNT ( + - ( - 55 ) ) AS col2, + 49
----
-1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT COUNT( * ) - + 88 * - NULLIF ( - 35, - - AVG ( ALL - + 51 ) ) AS col1
----
-3079

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT COUNT ( * ) - + 88 * - NULLIF ( - 35, - - AVG ( ALL - + 51 ) ) AS col1
----
-3079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3383
SELECT ALL SUM( ALL + + 12 ) * + 35 + - 80 + + COUNT( * ) + - - 67 / - CAST( NULL AS SIGNED ) + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL SUM ( ALL + + 12 ) * + 35 + - 80 + + COUNT ( * ) + - - 67 / - CAST ( NULL AS INTEGER ) + + 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3384
SELECT - 54 / - 96 - CAST( NULL AS SIGNED ) AS col1, + ( 65 ) AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-3384
SELECT - 54 / - 96 - CAST ( NULL AS INTEGER ) AS col1, + ( 65 ) AS col0
----
NULL
65

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

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT COUNT ( * ) / - 95
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3386
SELECT NULLIF ( + MIN( DISTINCT + 79 ), - - 51 ) * - + 10 col2, - 98 AS col1
----
-790
-98

skipif mysql # not compatible
query II rowsort label-3386
SELECT NULLIF ( + MIN ( DISTINCT + 79 ), - - 51 ) * - + 10 col2, - 98 AS col1
----
-790
-98

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3388
SELECT 79 * + + COUNT( * ) + - COUNT( * ) DIV 59
----
79

skipif mysql # not compatible
query I rowsort label-3388
SELECT 79 * + + COUNT ( * ) + - COUNT ( * ) / 59
----
79

query I rowsort
SELECT 58 * + + 42 AS col1
----
2436

query I rowsort
SELECT 32 * - + 9 * 59 * - 35
----
594720

query I rowsort
SELECT DISTINCT 92 * + - 34
----
-3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3392
SELECT 47 * + - CAST( + - 88 AS SIGNED ) * - 49 * + - ( - + ( 13 ) )
----
-2634632

skipif mysql # not compatible
query I rowsort label-3392
SELECT 47 * + - CAST ( + - 88 AS INTEGER ) * - 49 * + - ( - + ( 13 ) )
----
-2634632

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT ALL - SUM( - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL - SUM ( - 36 )
----
36

query I rowsort
SELECT DISTINCT 61 + - 16 * + 97 * + 38
----
-58915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3395
SELECT ALL - + 87 + + 51 DIV + + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL - + 87 + + 51 / + + COUNT ( * )
----
-36

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

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

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

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

query I rowsort
SELECT - 48 + - + 5 AS col1
----
-53

query I rowsort
SELECT 86 + 39 * 18 AS col0
----
788

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT - 31 * - + 68 * - - COUNT( * )
----
2108

skipif mysql # not compatible
query I rowsort label-3400
SELECT - 31 * - + 68 * - - COUNT ( * )
----
2108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3401
SELECT 32 + - 17 * - COALESCE ( + + 11, + 27 * - 9 + 19 + + COUNT( * ) + - - 27 * CAST( + 4 AS SIGNED ) + - - 72, + - CASE - COALESCE ( - 89, + COUNT( * ) - + NULLIF ( - 42, 22 * + 12 ), - 93 * - 16 ) WHEN 59 THEN 26 ELSE CASE - ( NULLIF ( 0, 8 ) ) WHEN - 82 THEN + CASE - 66 WHEN NULLIF ( - 90, AVG ( 91 ) ) * 82 THEN 38 ELSE NULL END * + 76 WHEN 62 + 79 THEN NULL END END + 60 ) AS col1
----
219

skipif mysql # not compatible
query I rowsort label-3401
SELECT 32 + - 17 * - COALESCE ( + + 11, + 27 * - 9 + 19 + + COUNT ( * ) + - - 27 * CAST ( + 4 AS INTEGER ) + - - 72, + - CASE - COALESCE ( - 89, + COUNT ( * ) - + NULLIF ( - 42, 22 * + 12 ), - 93 * - 16 ) WHEN 59 THEN 26 ELSE CASE - ( NULLIF ( 0, 8 ) ) WHEN - 82 THEN + CASE - 66 WHEN NULLIF ( - 90, AVG ( 91 ) ) * 82 THEN 38 ELSE NULL END * + 76 WHEN 62 + 79 THEN NULL END END + 60 ) AS col1
----
219

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

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

query I rowsort
SELECT - + 40 + - - 33 AS col2
----
-7

query I rowsort
SELECT ALL 64 + + 50 + - - 51 + - - 5 AS col2
----
170

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

skipif mysql # not compatible
query I rowsort label-3405
SELECT - 34 * COUNT ( * )
----
-34

query II rowsort
SELECT ALL 52 AS col1, ( - 81 )
----
52
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT - 78 + + 37 + + COUNT( 75 )
----
-40

skipif mysql # not compatible
query I rowsort label-3407
SELECT - 78 + + 37 + + COUNT ( 75 )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3408
SELECT - 91 + + 24 * + CAST( NULL AS DECIMAL ), - 58 / - 51 * + MIN( ALL - - 87 ) + - 49 + - - 89 * + ( - CAST( NULL AS SIGNED ) ) + - + ( - - MAX( ALL + 57 ) ) * - - COUNT( * ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3408
SELECT - 91 + + 24 * + CAST ( NULL AS REAL ), - 58 / - 51 * + MIN ( ALL - - 87 ) + - 49 + - - 89 * + ( - CAST ( NULL AS INTEGER ) ) + - + ( - - MAX ( ALL + 57 ) ) * - - COUNT ( * ) AS col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3409
SELECT ALL + 68 DIV ( + 43 )
----
1

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL + 68 / ( + 43 )
----
1

query I rowsort
SELECT - - 63 * - 5 * 58 * 10
----
-182700

query I rowsort
SELECT - 5 + 41 + + 58 AS col0
----
94

query II rowsort
SELECT - 33 col2, 48 AS col0
----
-33
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL ( - - MIN( DISTINCT + CASE - 80 WHEN - 67 THEN + - 65 WHEN - - 75 - + 28 THEN - 49 END ) ) * 58 + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL ( - - MIN ( DISTINCT + CASE - 80 WHEN - 67 THEN + - 65 WHEN - - 75 - + 28 THEN - 49 END ) ) * 58 + 94
----
NULL

query I rowsort
SELECT - 59 + 28
----
-31

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT 47 * + 13 + + + 31 DIV + - 45 * - 6
----
611

skipif mysql # not compatible
query I rowsort label-3417
SELECT 47 * + 13 + + + 31 / + - 45 * - 6
----
611

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT ALL + MIN( - ( + 95 ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL + MIN ( - ( + 95 ) ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT DISTINCT - COUNT( * ) * 75
----
-75

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT - COUNT ( * ) * 75
----
-75

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3422
SELECT ALL COUNT( - 14 ) * + + 21 - 58 + + 91 + - + MIN( DISTINCT 54 ) + 17 + - + 16 AS col2, - 68 * + + 40 col2
----
1
-2720

skipif mysql # not compatible
query II rowsort label-3422
SELECT ALL COUNT ( - 14 ) * + + 21 - 58 + + 91 + - + MIN ( DISTINCT 54 ) + 17 + - + 16 AS col2, - 68 * + + 40 col2
----
1
-2720

query I rowsort
SELECT COALESCE ( 5, + + 19 - + 79 * + + 78 + - 50 ) AS col1
----
5

query I rowsort
SELECT + 5 * + 6 * 23 AS col1
----
690

query I rowsort
SELECT - 17 + + + 32
----
15

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

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

query I rowsort
SELECT + 82 + - + 57 - 89 + + 76 + + 96 + 4 * - - 16
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-3428
SELECT + NULLIF ( - COUNT( * ), 91 ) * - 1 * - - COUNT( * ) + NULLIF ( 4, 98 ) + + - COUNT( * ) AS col1, + 87 AS col0
----
4
87

skipif mysql # not compatible
query II rowsort label-3428
SELECT + NULLIF ( - COUNT ( * ), 91 ) * - 1 * - - COUNT ( * ) + NULLIF ( 4, 98 ) + + - COUNT ( * ) AS col1, + 87 AS col0
----
4
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3429
SELECT ALL SUM( + + 51 ) * + 8 * + 17 + 2 + + 50, 23 + - 19 * + - CASE + 86 WHEN ( - + 97 ) * + 7 + - - 80 THEN NULL ELSE - + COUNT( * ) END + - 15 * + SUM( - 95 ) AS col2
----
6988
1429

skipif mysql # not compatible
query II rowsort label-3429
SELECT ALL SUM ( + + 51 ) * + 8 * + 17 + 2 + + 50, 23 + - 19 * + - CASE + 86 WHEN ( - + 97 ) * + 7 + - - 80 THEN NULL ELSE - + COUNT ( * ) END + - 15 * + SUM ( - 95 ) AS col2
----
6988
1429

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT + ( + 97 ) * MIN( DISTINCT - + 16 ) + + 85 * + 60 * + 28
----
141248

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT + ( + 97 ) * MIN ( DISTINCT - + 16 ) + + 85 * + 60 * + 28
----
141248

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT + ( SUM( DISTINCT 51 ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3431
SELECT + ( SUM ( DISTINCT 51 ) ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3432
SELECT ALL + CASE - + 17 WHEN + - COUNT( ALL - 46 ) + ( + ( - - 35 ) ) THEN - 48 WHEN 48 THEN 77 END * - - 76 + 29 AS col1, - 38
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-3432
SELECT ALL + CASE - + 17 WHEN + - COUNT ( ALL - 46 ) + ( + ( - - 35 ) ) THEN - 48 WHEN 48 THEN 77 END * - - 76 + 29 AS col1, - 38
----
NULL
-38

query I rowsort
SELECT + 37 - + 19 AS col0
----
18

query II rowsort
SELECT + 96, 23 * - + 64 AS col0
----
96
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL + 24 + 77 * + ( ( COUNT( * ) ) ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL + 24 + 77 * + ( ( COUNT ( * ) ) ) AS col1
----
101

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

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

query II rowsort
SELECT ALL CASE + 64 WHEN + 54 THEN NULL ELSE - + NULLIF ( 18, + + 38 ) END AS col1, - 14
----
-18
-14

query II rowsort
SELECT DISTINCT - 98 AS col2, 15
----
-98
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3439
SELECT ALL 8 col0, MAX( DISTINCT 15 ) DIV 53 * + COUNT( * ) * - 62
----
8
0

skipif mysql # not compatible
query II rowsort label-3439
SELECT ALL 8 col0, MAX ( DISTINCT 15 ) / 53 * + COUNT ( * ) * - 62
----
8
0

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

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

query II rowsort
SELECT ALL 42 AS col2, + 84 - - 65
----
42
149

query II rowsort
SELECT ALL + 39 * - 78 AS col2, + 41 AS col2
----
-3042
41

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

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

query I rowsort
SELECT DISTINCT + - 76 * - + 60 AS col2
----
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3445
SELECT ALL - CAST( NULL AS SIGNED ), - COUNT( * ) * 61 AS col0
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-3445
SELECT ALL - CAST ( NULL AS INTEGER ), - COUNT ( * ) * 61 AS col0
----
NULL
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3446
SELECT ALL + 87 * - + 1, COUNT( + NULLIF ( - 69, 42 * + 42 / 47 ) ) col0
----
-87
1

skipif mysql # not compatible
query II rowsort label-3446
SELECT ALL + 87 * - + 1, COUNT ( + NULLIF ( - 69, 42 * + 42 / 47 ) ) col0
----
-87
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT + MIN( DISTINCT - - ( 86 ) ) * + 88 * - 90 AS col1
----
-681120

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT + MIN ( DISTINCT - - ( 86 ) ) * + 88 * - 90 AS col1
----
-681120

query II rowsort
SELECT ALL ( 19 ) AS col2, - ( - - 99 ) AS col2
----
19
-99

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

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

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

query I rowsort
SELECT - 76 + 19 AS col2
----
-57

query I rowsort
SELECT - 94 * 96
----
-9024

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

skipif mysql # not compatible
query I rowsort label-3453
SELECT + 2 * - + 31 + + - COUNT ( * ) AS col0
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3454
SELECT DISTINCT - 83 DIV + + CASE 66 WHEN 27 THEN NULL WHEN + + 87 THEN + COUNT( * ) WHEN - - CASE 23 WHEN 27 + 64 THEN + + 84 END THEN - 80 ELSE - - 41 * - 85 + COUNT( DISTINCT + 84 ) END * - 90 + - COUNT( * ) + 48
----
47

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT - 83 / + + CASE 66 WHEN 27 THEN NULL WHEN + + 87 THEN + COUNT ( * ) WHEN - - CASE 23 WHEN 27 + 64 THEN + + 84 END THEN - 80 ELSE - - 41 * - 85 + COUNT ( DISTINCT + 84 ) END * - 90 + - COUNT ( * ) + 48
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3455
SELECT ALL 21 DIV + COUNT( * ) + + ( + - MIN( ALL 10 ) ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL 21 / + COUNT ( * ) + + ( + - MIN ( ALL 10 ) ) AS col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3456
SELECT ALL - 56 DIV - 38 + + - COALESCE ( 46, - 15 DIV - - 78 + - 38 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL - 56 / - 38 + + - COALESCE ( 46, - 15 / - - 78 + - 38 ) AS col0
----
-45

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3458
SELECT MIN( + - 89 ) * + 28 + + 67 + - 68 AS col0, + 85
----
-2493
85

skipif mysql # not compatible
query II rowsort label-3458
SELECT MIN ( + - 89 ) * + 28 + + 67 + - 68 AS col0, + 85
----
-2493
85

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

query I rowsort
SELECT ALL + 12 col1
----
12

query I rowsort
SELECT DISTINCT + - 79 col2
----
-79

query I rowsort
SELECT - 71 * + 58 * + - 50
----
205900

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT - 37 * + MIN( ALL + - 94 )
----
3478

skipif mysql # not compatible
query I rowsort label-3464
SELECT - 37 * + MIN ( ALL + - 94 )
----
3478

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3465
SELECT 84 * 3, - CAST( NULL AS SIGNED ) AS col0
----
252
NULL

skipif mysql # not compatible
query II rowsort label-3465
SELECT 84 * 3, - CAST ( NULL AS INTEGER ) AS col0
----
252
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT ( - 96 ) + - + 64 - + 9 DIV - 99 AS col1
----
-160

skipif mysql # not compatible
query I rowsort label-3466
SELECT ( - 96 ) + - + 64 - + 9 / - 99 AS col1
----
-160

onlyif mysql # aggregate syntax: 
query II rowsort label-3467
SELECT DISTINCT ( - - 78 ) * 63 AS col0, COUNT( * )
----
4914
1

skipif mysql # not compatible
query II rowsort label-3467
SELECT DISTINCT ( - - 78 ) * 63 AS col0, COUNT ( * )
----
4914
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT + 60 + 3 + + - COUNT( * ) * 75 * - + 19
----
1488

skipif mysql # not compatible
query I rowsort label-3468
SELECT + 60 + 3 + + - COUNT ( * ) * 75 * - + 19
----
1488

onlyif mysql # aggregate syntax: 
query II rowsort label-3469
SELECT DISTINCT 52 * ( 29 ) + 86 - + COUNT( * ), 95 * + + 23 col2
----
1593
2185

skipif mysql # not compatible
query II rowsort label-3469
SELECT DISTINCT 52 * ( 29 ) + 86 - + COUNT ( * ), 95 * + + 23 col2
----
1593
2185

query I rowsort
SELECT ALL ( + 83 ) * - 46 col1
----
-3818

query I rowsort
SELECT DISTINCT + NULLIF ( + 45, + 29 + ( + 89 ) )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3472
SELECT - 10 + + MAX( - 74 ) DIV 2 * + 35 AS col0
----
-1305

skipif mysql # not compatible
query I rowsort label-3472
SELECT - 10 + + MAX ( - 74 ) / 2 * + 35 AS col0
----
-1305

query I rowsort
SELECT 26 + - CASE 55 WHEN - + 6 THEN NULL WHEN - 44 * + - 44 * - 98 THEN - 81 END col2
----
NULL

query II rowsort
SELECT ALL 85 AS col1, 56 + + 27 AS col0
----
85
83

query II rowsort
SELECT DISTINCT 36 AS col0, 54
----
36
54

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) + - 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3479
SELECT CAST( NULL AS SIGNED ) + + 52 + + NULLIF ( MIN( DISTINCT - CASE - - 10 WHEN - 59 THEN - + 71 END ), - 94 ) / 60 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT CAST ( NULL AS INTEGER ) + + 52 + + NULLIF ( MIN ( DISTINCT - CASE - - 10 WHEN - 59 THEN - + 71 END ), - 94 ) / 60 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT 58 * - COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-3480
SELECT 58 * - COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT DISTINCT - 38 + - MAX( DISTINCT - - 69 ) AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT - 38 + - MAX ( DISTINCT - - 69 ) AS col1
----
-107

query II rowsort
SELECT ALL + ( + 20 ) + - 86 col1, + 27 * + 25
----
-66
675

query II rowsort
SELECT - 52, 9 * - 82 AS col0
----
-52
-738

query I rowsort
SELECT ALL - 20 + + - 80
----
-100

query I rowsort
SELECT 41 + 70 * - 58
----
-4019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3486
SELECT DISTINCT - ( + - 10 ) + + - COALESCE ( CASE CAST( - 51 AS SIGNED ) WHEN COUNT( * ) * - + COUNT( * ) + - 27 + - COUNT( * ) THEN - + 67 WHEN + 30 THEN NULL WHEN - 22 THEN NULL END, 28 * + - 96 ) + + 25 DIV + - 10 AS col1
----
2696

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT - ( + - 10 ) + + - COALESCE ( CASE CAST ( - 51 AS INTEGER ) WHEN COUNT ( * ) * - + COUNT ( * ) + - 27 + - COUNT ( * ) THEN - + 67 WHEN + 30 THEN NULL WHEN - 22 THEN NULL END, 28 * + - 96 ) + + 25 / + - 10 AS col1
----
2696

query II rowsort
SELECT DISTINCT - 25 AS col0, + 26 AS col1
----
-25
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL - 21 + - + ( + SUM( ALL + 77 ) )
----
-98

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL - 21 + - + ( + SUM ( ALL + 77 ) )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT DISTINCT - CASE - - 50 WHEN + 73 THEN NULL WHEN 55 + COUNT( * ) THEN - ( 73 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT - CASE - - 50 WHEN + 73 THEN NULL WHEN 55 + COUNT ( * ) THEN - ( 73 ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT 4 AS col0, + 33
----
4
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3491
SELECT ALL - COALESCE ( 82, 55, + - ( + 73 ) - + + 95 - - 65 + ( SUM( + - 99 ) ) * - + 23 DIV + 99 ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL - COALESCE ( 82, 55, + - ( + 73 ) - + + 95 - - 65 + ( SUM ( + - 99 ) ) * - + 23 / + 99 ) col2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3492
SELECT 50 DIV + - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3492
SELECT 50 / + - 68 AS col2
----
0

query I rowsort
SELECT DISTINCT - ( 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL - - SUM( - 88 ) - + 10 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL - - SUM ( - 88 ) - + 10 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL + MAX( 71 ) - - + SUM( DISTINCT 93 ) + - - 12 + + COALESCE ( + 66, 19 ) * + - 84 - + + COUNT( * ) AS col1
----
-5369

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL + MAX ( 71 ) - - + SUM ( DISTINCT 93 ) + - - 12 + + COALESCE ( + 66, 19 ) * + - 84 - + + COUNT ( * ) AS col1
----
-5369

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT 30 * - 22 * - COALESCE ( - 43, ( ( - 99 ) ) - 32, - + COUNT( * ), + 93 ) AS col2
----
-28380

skipif mysql # not compatible
query I rowsort label-3496
SELECT 30 * - 22 * - COALESCE ( - 43, ( ( - 99 ) ) - 32, - + COUNT ( * ), + 93 ) AS col2
----
-28380

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT ALL - + 22 / AVG ( 35 ) * - CASE - MAX( 74 ) WHEN ( + 92 ) + + + 34 THEN NULL WHEN + - 92 * + COALESCE ( + MIN( - 7 ), + 89, ( - - ( - 43 ) ) * - 61 ) * CASE WHEN 3 NOT BETWEEN 59 AND ( + 95 ) THEN NULL WHEN NOT ( - 72 ) NOT BETWEEN - 53 AND NULL THEN 35 / COALESCE ( + 49, 56 + + COALESCE ( + COUNT( * ), 69 * - 4 + COUNT( * ) ) * + 58 ) + ( COUNT( * ) ) END THEN - NULLIF ( + 29, + 46 ) + COUNT( * ) * - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL - + 22 / AVG ( 35 ) * - CASE - MAX ( 74 ) WHEN ( + 92 ) + + + 34 THEN NULL WHEN + - 92 * + COALESCE ( + MIN ( - 7 ), + 89, ( - - ( - 43 ) ) * - 61 ) * CASE WHEN 3 NOT BETWEEN 59 AND ( + 95 ) THEN NULL WHEN NOT ( - 72 ) NOT BETWEEN - 53 AND NULL THEN 35 / COALESCE ( + 49, 56 + + COALESCE ( + COUNT ( * ), 69 * - 4 + COUNT ( * ) ) * + 58 ) + ( COUNT ( * ) ) END THEN - NULLIF ( + 29, + 46 ) + COUNT ( * ) * - 9 END
----
NULL

query I rowsort
SELECT ALL + 8 * + 80 AS col0
----
640

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

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

query I rowsort
SELECT ALL - 97 * - - 34 * 33 AS col0
----
-108834

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL - 33 * COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL - 33 * COUNT ( * ) AS col0
----
-33

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

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

query I rowsort
SELECT ALL + + 9 * - 16 AS col2
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3504
SELECT ALL - + COUNT( * ) - - COALESCE ( - + 70, + COUNT( * ), - + 0 ) + - 75 AS col0, + CASE - 30 WHEN CAST( NULL AS SIGNED ) THEN + - 77 WHEN + ( - 32 ) THEN NULL ELSE + - 21 END + - 10
----
-146
-31

skipif mysql # not compatible
query II rowsort label-3504
SELECT ALL - + COUNT ( * ) - - COALESCE ( - + 70, + COUNT ( * ), - + 0 ) + - 75 AS col0, + CASE - 30 WHEN CAST ( NULL AS INTEGER ) THEN + - 77 WHEN + ( - 32 ) THEN NULL ELSE + - 21 END + - 10
----
-146
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT DISTINCT - COALESCE ( 35, - 47, 12 ) * + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT - COALESCE ( 35, - 47, 12 ) * + COUNT ( * )
----
-35

query II rowsort
SELECT DISTINCT - 27 AS col1, - 91 AS col2
----
-27
-91

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT DISTINCT - NULLIF ( ( - COUNT( * ) ), - 51 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT - NULLIF ( ( - COUNT ( * ) ), - 51 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL MAX( - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL MAX ( - 13 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3513
SELECT - - 9 AS col2, CAST( + 37 AS SIGNED ) - + 53 AS col2
----
9
-16

skipif mysql # not compatible
query II rowsort label-3513
SELECT - - 9 AS col2, CAST ( + 37 AS INTEGER ) - + 53 AS col2
----
9
-16

query I rowsort
SELECT ALL - 57 * - + 66 AS col2
----
3762

query I rowsort
SELECT + 7 * + 51 + + 35
----
392

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

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL - COUNT ( * ) + - 91 AS col0
----
-92

query I rowsort
SELECT 16 * + ( 56 ) * 87 col0
----
77952

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3520
SELECT ALL 58 DIV + 31, 40 + + 67 AS col0
----
1
107

skipif mysql # not compatible
query II rowsort label-3520
SELECT ALL 58 / + 31, 40 + + 67 AS col0
----
1
107

query II rowsort
SELECT ALL - 25 + - 60 AS col0, 83
----
-85
83

query I rowsort
SELECT ALL ( + NULLIF ( 31, - - ( + 4 ) * 37 + - 60 ) ) + + 41 + - 31 * - - 99 * + - 14
----
43038

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( - + 10, - 56 ) AS col0
----
10

query II rowsort
SELECT 66 * + 95 AS col0, 11
----
6270
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT + + ( + - MIN( - 87 ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-3526
SELECT + + ( + - MIN ( - 87 ) ) AS col0
----
87

query I rowsort
SELECT - + 73 - + 74
----
-147

query II rowsort
SELECT ALL + 68 * + 23 AS col1, - 33 AS col2
----
1564
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3529
SELECT 13 * - 1 - - + 80 + - + COUNT( * ) DIV 74 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3529
SELECT 13 * - 1 - - + 80 + - + COUNT ( * ) / 74 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT - 28 * + - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-3530
SELECT - 28 * + - COUNT ( * )
----
28

query I rowsort
SELECT - 15 * 10 * + 23 + - 67 - + 16 - 27 AS col0
----
-3560

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3532
SELECT + - NULLIF ( 24, + NULLIF ( + COUNT( * ), CAST( NULL AS DECIMAL ) ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3532
SELECT + - NULLIF ( 24, + NULLIF ( + COUNT ( * ), CAST ( NULL AS REAL ) ) ) AS col1
----
-24

query I rowsort
SELECT 5 * - + 39 - - + 89 + + 3
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3534
SELECT - 55 DIV + COALESCE ( 91, 20, + - ( COUNT( * ) ), + COUNT( * ) ), 61 DIV ( - - CAST( 40 AS SIGNED ) ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-3534
SELECT - 55 / + COALESCE ( 91, 20, + - ( COUNT ( * ) ), + COUNT ( * ) ), 61 / ( - - CAST ( 40 AS INTEGER ) ) AS col2
----
0
1

query I rowsort
SELECT ALL + + NULLIF ( - 34, 20 )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3536
SELECT DISTINCT + + 69 * + 84 DIV + 84 + + 70 AS col0
----
139

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT + + 69 * + 84 / + 84 + + 70 AS col0
----
139

query I rowsort
SELECT DISTINCT + 2 + + + 69 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL + + NULLIF ( + 91, - - COUNT( * ) + - CASE - - COUNT( * ) WHEN 61 THEN - AVG ( DISTINCT 67 ) END ) * + 19 * 40 * 55
----
3803800

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL + + NULLIF ( + 91, - - COUNT ( * ) + - CASE - - COUNT ( * ) WHEN 61 THEN - AVG ( DISTINCT 67 ) END ) * + 19 * 40 * 55
----
3803800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT - + ( + + 72 ) / 61 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT - + ( + + 72 ) / 61 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3540
SELECT DISTINCT + SUM( DISTINCT 59 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT + SUM ( DISTINCT 59 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 44 + + + 88
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT - 77 + + + ( + - COUNT( * ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3542
SELECT - 77 + + + ( + - COUNT ( * ) ) AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3543
SELECT ALL + CAST( - CAST( + 41 AS SIGNED ) AS SIGNED ) + - 30 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL + CAST ( - CAST ( + 41 AS INTEGER ) AS INTEGER ) + - 30 AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3544
SELECT - 53 + - - NULLIF ( CAST( NULL AS SIGNED ), + CASE - + 34 WHEN - + 26 THEN NULL WHEN + ( + 57 ) THEN NULL ELSE + + 64 + + 16 END ) * - 70 + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT - 53 + - - NULLIF ( CAST ( NULL AS INTEGER ), + CASE - + 34 WHEN - + 26 THEN NULL WHEN + ( + 57 ) THEN NULL ELSE + + 64 + + 16 END ) * - 70 + 66
----
NULL

query I rowsort
SELECT + 59 * + 36
----
2124

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL MAX( DISTINCT - + 95 ) + - 22 AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL MAX ( DISTINCT - + 95 ) + - 22 AS col1
----
-117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3547
SELECT ALL CASE - + COUNT( * ) WHEN CAST( - MAX( DISTINCT - 33 ) AS DECIMAL ) THEN NULL WHEN 17 * + + 92 + - + 80 - - 80 THEN + COUNT( * ) * + 14 + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL CASE - + COUNT ( * ) WHEN CAST ( - MAX ( DISTINCT - 33 ) AS REAL ) THEN NULL WHEN 17 * + + 92 + - + 80 - - 80 THEN + COUNT ( * ) * + 14 + 72 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT DISTINCT + ( + 56 ) + + 10 DIV - 70 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT + ( + 56 ) + + 10 / - 70 AS col2
----
56

query I rowsort
SELECT DISTINCT 76 + + 79
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3550
SELECT DISTINCT CASE + + 84 WHEN 9 THEN + MAX( ALL - - 9 ) * - 88 + AVG ( + + 49 ) ELSE 73 * + 63 END DIV + 6 DIV + COALESCE ( + - COUNT( * ), + COUNT( ALL - + 34 ) ) - + 54 * - 96 + - + 21 + 82 * + - 24 col1
----
2429

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT CASE + + 84 WHEN 9 THEN + MAX ( ALL - - 9 ) * - 88 + AVG ( + + 49 ) ELSE 73 * + 63 END / + 6 / + COALESCE ( + - COUNT ( * ), + COUNT ( ALL - + 34 ) ) - + 54 * - 96 + - + 21 + 82 * + - 24 col1
----
2429

query I rowsort
SELECT ALL 81 * - 54
----
-4374

query I rowsort
SELECT - 87 + 56 - + 94
----
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-3553
SELECT - COUNT( * ) col2, 82
----
-1
82

skipif mysql # not compatible
query II rowsort label-3553
SELECT - COUNT ( * ) col2, 82
----
-1
82

query II rowsort
SELECT 91, 95 col0
----
91
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3555
SELECT + ( + - ( + - CAST( NULL AS SIGNED ) ) ) + 2 + - NULLIF ( - + 36, + 53 ) + - + 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT + ( + - ( + - CAST ( NULL AS INTEGER ) ) ) + 2 + - NULLIF ( - + 36, + 53 ) + - + 65 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT DISTINCT 80 * - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-3556
SELECT DISTINCT 80 * - COUNT ( * )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3557
SELECT CAST( + 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-3557
SELECT CAST ( + 95 AS INTEGER )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT + 63 * - - 80 + 73 + - ( MIN( ALL - 15 ) ) col1, - 38 AS col0
----
5128
-38

skipif mysql # not compatible
query II rowsort label-3558
SELECT + 63 * - - 80 + 73 + - ( MIN ( ALL - 15 ) ) col1, - 38 AS col0
----
5128
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT DISTINCT + CASE + 50 WHEN 40 + 80 - - COUNT( * ) THEN + - 9 * + 8 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT + CASE + 50 WHEN 40 + 80 - - COUNT ( * ) THEN + - 9 * + 8 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT + 60 * + CASE 78 WHEN + COUNT( * ) THEN NULL ELSE 38 * + 75 END + + - 42 + - 3
----
170955

skipif mysql # not compatible
query I rowsort label-3560
SELECT + 60 * + CASE 78 WHEN + COUNT ( * ) THEN NULL ELSE 38 * + 75 END + + - 42 + - 3
----
170955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3561
SELECT CAST( NULL AS SIGNED ) / + 99 + - 6 + + + 11 + - CASE - - MAX( DISTINCT - 75 ) WHEN + 84 THEN + 4 * - 3 + - 85 * - NULLIF ( - + 13, - 10 ) ELSE + + 50 END + + CASE - - 93 WHEN + COALESCE ( + + 43, + - 37 ) THEN ( 72 ) WHEN 81 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT CAST ( NULL AS INTEGER ) / + 99 + - 6 + + + 11 + - CASE - - MAX ( DISTINCT - 75 ) WHEN + 84 THEN + 4 * - 3 + - 85 * - NULLIF ( - + 13, - 10 ) ELSE + + 50 END + + CASE - - 93 WHEN + COALESCE ( + + 43, + - 37 ) THEN ( 72 ) WHEN 81 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT + + 25 + + COUNT( * ) col1
----
26

skipif mysql # not compatible
query I rowsort label-3562
SELECT + + 25 + + COUNT ( * ) col1
----
26

query I rowsort
SELECT + + 67 AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3564
SELECT - 87 + - NULLIF ( - 34, - COUNT( 43 ) + - - 26 ) * - CASE + - 66 WHEN + MIN( - 35 ) + + + 29 + - 14 * + + 15 THEN NULL WHEN - - 0 * + 28 + - 76 - + - CAST( - COUNT( * ) AS DECIMAL ) * + 56 * + 4 THEN - 78 * - 63 WHEN - 20 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT - 87 + - NULLIF ( - 34, - COUNT ( 43 ) + - - 26 ) * - CASE + - 66 WHEN + MIN ( - 35 ) + + + 29 + - 14 * + + 15 THEN NULL WHEN - - 0 * + 28 + - 76 - + - CAST ( - COUNT ( * ) AS REAL ) * + 56 * + 4 THEN - 78 * - 63 WHEN - 20 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 56 * - 43
----
2408

query II rowsort
SELECT + - 50 * + 30 * - 46 + - ( + 54 ), 83 * - 15 AS col2
----
68946
-1245

query I rowsort
SELECT - + 45 * + 1
----
-45

query I rowsort
SELECT ALL + + ( - 21 )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3569
SELECT ALL + + 48 * - COUNT( * ) * - 20 + - - 81 DIV - - 51 AS col0, 80 AS col2
----
961
80

skipif mysql # not compatible
query II rowsort label-3569
SELECT ALL + + 48 * - COUNT ( * ) * - 20 + - - 81 / - - 51 AS col0, 80 AS col2
----
961
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL - + 49 * + 33 + - - 16 * - MAX( + + 18 ) - + + 36
----
-1941

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - + 49 * + 33 + - - 16 * - MAX ( + + 18 ) - + + 36
----
-1941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3571
SELECT - CAST( - COUNT( * ) AS SIGNED ) + - 54 AS col0, COUNT( 84 ) AS col2
----
-53
1

skipif mysql # not compatible
query II rowsort label-3571
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + - 54 AS col0, COUNT ( 84 ) AS col2
----
-53
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3572
SELECT DISTINCT + 39 * + - 74 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT + 39 * + - 74 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3573
SELECT DISTINCT + + 55 AS col2, COUNT( * )
----
55
1

skipif mysql # not compatible
query II rowsort label-3573
SELECT DISTINCT + + 55 AS col2, COUNT ( * )
----
55
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3574
SELECT ALL + - CAST( NULL AS SIGNED ) * + 26 + + CAST( NULL AS SIGNED ), 86 AS col2
----
NULL
86

skipif mysql # not compatible
query II rowsort label-3574
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 26 + + CAST ( NULL AS INTEGER ), 86 AS col2
----
NULL
86

query I rowsort
SELECT + - 24 * - - 74
----
-1776

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT - 58 * - 59 + - COUNT( * )
----
3421

skipif mysql # not compatible
query I rowsort label-3576
SELECT - 58 * - 59 + - COUNT ( * )
----
3421

query I rowsort
SELECT DISTINCT - + 64 * - - 4 + 99 + - 41 - + 31
----
-229

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL + - 98 * - COUNT( * ) + + + MAX( ALL - 61 ) + + ( + 81 ) * - 25 * 86 + + 25 - + 75
----
-174163

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL + - 98 * - COUNT ( * ) + + + MAX ( ALL - 61 ) + + ( + 81 ) * - 25 * 86 + + 25 - + 75
----
-174163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3579
SELECT ALL + - ( + CAST( NULL AS SIGNED ) ) / - + COUNT( * ) * - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) ) / - + COUNT ( * ) * - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT - 35, 52 AS col1
----
-35
52

query I rowsort
SELECT ALL + 61 * + 97
----
5917

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT - 11 - + COUNT( * ) * COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-3582
SELECT - 11 - + COUNT ( * ) * COUNT ( * )
----
-12

query I rowsort
SELECT DISTINCT + 16 * - 32 col1
----
-512

query I rowsort
SELECT ALL + 90 - - 16
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT - MIN( ALL 33 ) * + ( + + 42 ) AS col2
----
-1386

skipif mysql # not compatible
query I rowsort label-3585
SELECT - MIN ( ALL 33 ) * + ( + + 42 ) AS col2
----
-1386

onlyif mysql # aggregate syntax: 
query II rowsort label-3586
SELECT - 12 AS col2, COUNT( * ) AS col1
----
-12
1

skipif mysql # not compatible
query II rowsort label-3586
SELECT - 12 AS col2, COUNT ( * ) AS col1
----
-12
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3587
SELECT 33, 44 - CASE - 12 WHEN + + 90 THEN + COUNT( * ) * - + ( 36 ) ELSE + - COUNT( - 78 ) END * + 96 col1
----
33
140

skipif mysql # not compatible
query II rowsort label-3587
SELECT 33, 44 - CASE - 12 WHEN + + 90 THEN + COUNT ( * ) * - + ( 36 ) ELSE + - COUNT ( - 78 ) END * + 96 col1
----
33
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT MIN( - 83 ) + - 94
----
-177

skipif mysql # not compatible
query I rowsort label-3588
SELECT MIN ( - 83 ) + - 94
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT DISTINCT MIN( DISTINCT + - 21 ) * - 72 * - + 61
----
-92232

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT MIN ( DISTINCT + - 21 ) * - 72 * - + 61
----
-92232

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + NULLIF ( 55, + NULLIF ( - - 30, - 19 ) * 11 - - 73 ) * + - COUNT( * ) * - COUNT( * ) col0
----
55

skipif mysql # not compatible
query I rowsort label-3590
SELECT + NULLIF ( 55, + NULLIF ( - - 30, - 19 ) * 11 - - 73 ) * + - COUNT ( * ) * - COUNT ( * ) col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL + - 3 * - - ( + 42 ) - + + 41 * - 65 - + COUNT( * ) + - 43
----
2495

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL + - 3 * - - ( + 42 ) - + + 41 * - 65 - + COUNT ( * ) + - 43
----
2495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3592
SELECT CAST( NULL AS SIGNED ) * - - MAX( NULLIF ( + 25, 52 * 89 ) ) + - CAST( + ( 43 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT CAST ( NULL AS INTEGER ) * - - MAX ( NULLIF ( + 25, 52 * 89 ) ) + - CAST ( + ( 43 ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 88 + - + 69 AS col2
----
19

query I rowsort
SELECT DISTINCT - - ( + 98 ) AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3595
SELECT + 10 DIV - 54 * + 95
----
0

skipif mysql # not compatible
query I rowsort label-3595
SELECT + 10 / - 54 * + 95
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT ALL - CAST( NULL AS SIGNED ) + 67 + - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL - CAST ( NULL AS INTEGER ) + 67 + - 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT 2 AS col0, COUNT( * ) + - + 80 + - 88
----
2
-167

skipif mysql # not compatible
query II rowsort label-3597
SELECT 2 AS col0, COUNT ( * ) + - + 80 + - 88
----
2
-167

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3598
SELECT 30 DIV 19 - - ( + 61 ) - ( - CAST( 31 AS SIGNED ) ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3598
SELECT 30 / 19 - - ( + 61 ) - ( - CAST ( 31 AS INTEGER ) ) AS col0
----
93

query I rowsort
SELECT ALL 7 * 53 * 84 * + 40 * - 33
----
-41136480

onlyif mysql # DIV for integer division: 
query I rowsort label-3600
SELECT - 47 DIV - 74 * 30
----
0

skipif mysql # not compatible
query I rowsort label-3600
SELECT - 47 / - 74 * 30
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3601
SELECT 77 + + - 30 - - COALESCE ( - + 74, 59 * + 69 + + ( - 94 ) + - + ( - 56 ) * + CAST( + - ( + 79 ) AS SIGNED ), 48 DIV - 68 )
----
-27

skipif mysql # not compatible
query I rowsort label-3601
SELECT 77 + + - 30 - - COALESCE ( - + 74, 59 * + 69 + + ( - 94 ) + - + ( - 56 ) * + CAST ( + - ( + 79 ) AS INTEGER ), 48 / - 68 )
----
-27

query II rowsort
SELECT ALL - - 21 AS col2, 18
----
21
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL - COUNT( + - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL - COUNT ( + - 18 )
----
-1

query I rowsort
SELECT + CASE + 33 WHEN - + 49 THEN - 74 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 33 + - ( - 30 ) + + 92 + - 66 + + - 29 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT 95 - COUNT( * ) + + COALESCE ( - CASE + + 0 WHEN - + 56 THEN + ( 31 ) ELSE NULL END, + 93 ) * - 38 AS col2
----
-3440

skipif mysql # not compatible
query I rowsort label-3606
SELECT 95 - COUNT ( * ) + + COALESCE ( - CASE + + 0 WHEN - + 56 THEN + ( 31 ) ELSE NULL END, + 93 ) * - 38 AS col2
----
-3440

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT + 13 DIV - - 57 + + 39 * + - 14
----
-546

skipif mysql # not compatible
query I rowsort label-3607
SELECT + 13 / - - 57 + + 39 * + - 14
----
-546

query II rowsort
SELECT + + 87, 92 AS col2
----
87
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT - 96 * - + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3609
SELECT - 96 * - + COUNT ( * ) AS col1
----
96

query I rowsort
SELECT DISTINCT + 39 + + + 69 * 11
----
798

query I rowsort
SELECT ( 82 ) - 72
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3612
SELECT ALL ( + CAST( CASE 47 WHEN + COUNT( * ) + - - 28 / + 52 * - 57 - - ( - + ( - COUNT( * ) ) ) + 68 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE - SUM( DISTINCT + + 28 ) END AS SIGNED ) ) - + 15 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL ( + CAST ( CASE 47 WHEN + COUNT ( * ) + - - 28 / + 52 * - 57 - - ( - + ( - COUNT ( * ) ) ) + 68 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE - SUM ( DISTINCT + + 28 ) END AS INTEGER ) ) - + 15 AS col1
----
-43

query I rowsort
SELECT DISTINCT - COALESCE ( + - 4, - ( 4 ) )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3614
SELECT ALL CAST( + + 62 AS SIGNED ) * CAST( - - ( ( - 20 ) ) AS SIGNED )
----
-1240

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL CAST ( + + 62 AS INTEGER ) * CAST ( - - ( ( - 20 ) ) AS INTEGER )
----
-1240

query I rowsort
SELECT ALL - ( - + 31 ) col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3616
SELECT ( - + 4 ) + 53 + - COUNT( * ) * + 98 + + COALESCE ( - - COUNT( * ), CAST( NULL AS SIGNED ), NULLIF ( ( - + 61 ), + COUNT( * ) * - 50 + + 42 ) ) * + 65 * - - 65
----
4176

skipif mysql # not compatible
query I rowsort label-3616
SELECT ( - + 4 ) + 53 + - COUNT ( * ) * + 98 + + COALESCE ( - - COUNT ( * ), CAST ( NULL AS INTEGER ), NULLIF ( ( - + 61 ), + COUNT ( * ) * - 50 + + 42 ) ) * + 65 * - - 65
----
4176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3617
SELECT COUNT( * ) + + 84 DIV - 5 AS col1, - COUNT( + + 65 ) AS col0
----
-15
-1

skipif mysql # not compatible
query II rowsort label-3617
SELECT COUNT ( * ) + + 84 / - 5 AS col1, - COUNT ( + + 65 ) AS col0
----
-15
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT 76 - - COUNT( * ) + 77 * + - 41 AS col2
----
-3080

skipif mysql # not compatible
query I rowsort label-3618
SELECT 76 - - COUNT ( * ) + 77 * + - 41 AS col2
----
-3080

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3619
SELECT COUNT( * ) * + CAST( NULL AS DECIMAL ) + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT COUNT ( * ) * + CAST ( NULL AS REAL ) + + 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3620
SELECT ALL - 58 - + + COUNT( CAST( NULL AS SIGNED ) ) + 8 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL - 58 - + + COUNT ( CAST ( NULL AS INTEGER ) ) + 8 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT 57 * - - CASE - CASE 89 WHEN 4 THEN - 5 + + 6 * + 6 ELSE NULL END WHEN + + COUNT( * ) THEN - 88 ELSE + + 41 END
----
2337

skipif mysql # not compatible
query I rowsort label-3621
SELECT 57 * - - CASE - CASE 89 WHEN 4 THEN - 5 + + 6 * + 6 ELSE NULL END WHEN + + COUNT ( * ) THEN - 88 ELSE + + 41 END
----
2337

query I rowsort
SELECT 66 + + - 57 * 41 AS col1
----
-2271

query I rowsort
SELECT 76 + + ( - + 79 )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3624
SELECT ALL 40 DIV + - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL 40 / + - COUNT ( * )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3625
SELECT 85 + + ( - + 44 ), 33 + CAST( + 15 AS SIGNED ) AS col2
----
41
48

skipif mysql # not compatible
query II rowsort label-3625
SELECT 85 + + ( - + 44 ), 33 + CAST ( + 15 AS INTEGER ) AS col2
----
41
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3626
SELECT 92 * + MIN( 90 ) DIV - 3 AS col2
----
-2760

skipif mysql # not compatible
query I rowsort label-3626
SELECT 92 * + MIN ( 90 ) / - 3 AS col2
----
-2760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3627
SELECT 95 + - 95 - 29 * CAST( - ( - - 52 ) AS SIGNED ) * + 65 + - COUNT( * ) AS col0
----
98019

skipif mysql # not compatible
query I rowsort label-3627
SELECT 95 + - 95 - 29 * CAST ( - ( - - 52 ) AS INTEGER ) * + 65 + - COUNT ( * ) AS col0
----
98019

query I rowsort
SELECT ALL + 68 + + 96 * + + 47 + 22
----
4602

query I rowsort
SELECT + ( 60 ) + + 55 * - - 10 AS col2
----
610

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT ALL + - 75 * - 0 * + 85 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL + - 75 * - 0 * + 85 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3631
SELECT COUNT( * ) + + - 19 AS col2, COUNT( * ) * + 54 AS col2
----
-18
54

skipif mysql # not compatible
query II rowsort label-3631
SELECT COUNT ( * ) + + - 19 AS col2, COUNT ( * ) * + 54 AS col2
----
-18
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT DISTINCT - ( - 70 ) + - CASE + NULLIF ( COALESCE ( - - CAST( NULL AS SIGNED ), - + COUNT( * ) + + 46 + 33 + CASE + 20 WHEN - 77 + + 30 + MAX( - - 82 ) / 94 THEN NULL WHEN 23 + - 93 THEN 98 + 78 END * + COUNT( * ) ), + + 22 / - 95 ) WHEN 42 THEN NULL WHEN - 28 * - ( 71 ) + + ( + 25 ) THEN 96 * COUNT( * ) ELSE + 24 END + + CAST( 51 AS SIGNED ) * SUM( 55 ) * 50
----
140296

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT - ( - 70 ) + - CASE + NULLIF ( COALESCE ( - - CAST ( NULL AS INTEGER ), - + COUNT ( * ) + + 46 + 33 + CASE + 20 WHEN - 77 + + 30 + MAX ( - - 82 ) / 94 THEN NULL WHEN 23 + - 93 THEN 98 + 78 END * + COUNT ( * ) ), + + 22 / - 95 ) WHEN 42 THEN NULL WHEN - 28 * - ( 71 ) + + ( + 25 ) THEN 96 * COUNT ( * ) ELSE + 24 END + + CAST ( 51 AS INTEGER ) * SUM ( 55 ) * 50
----
140296

query I rowsort
SELECT ALL + 23 + + + 99 AS col2
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT DISTINCT - ( + CAST( + + 46 AS SIGNED ) )
----
-46

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - ( + CAST ( + + 46 AS INTEGER ) )
----
-46

query I rowsort
SELECT - 35 * - - ( - 70 )
----
2450

query I rowsort
SELECT ALL - 73 * - 54
----
3942

query I rowsort
SELECT ALL + 59 * 5 + 36 AS col0
----
331

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL - - 8 * + - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL - - 8 * + - COUNT ( * ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT - COUNT( * ) + - 27 col2
----
-28

skipif mysql # not compatible
query I rowsort label-3639
SELECT - COUNT ( * ) + - 27 col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT + COUNT( * ) * 90 + - + NULLIF ( 83, - 28 ) + - - ( + 80 ) * + - COUNT( DISTINCT - 72 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-3640
SELECT + COUNT ( * ) * 90 + - + NULLIF ( 83, - 28 ) + - - ( + 80 ) * + - COUNT ( DISTINCT - 72 ) AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT ALL + - 44 * - 75 - + - CAST( 12 AS SIGNED ) AS col2
----
3312

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL + - 44 * - 75 - + - CAST ( 12 AS INTEGER ) AS col2
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT DISTINCT - + NULLIF ( - 73, + - 40 * 9 * + ( COUNT( * ) ) ) col2
----
73

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT - + NULLIF ( - 73, + - 40 * 9 * + ( COUNT ( * ) ) ) col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT ALL - + MIN( NULLIF ( - 21, COALESCE ( - ( + - 72 ), - 6 + + 94 + + - 56 - - 3 / - 40 * 44 ) + - 79 ) )
----
21

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL - + MIN ( NULLIF ( - 21, COALESCE ( - ( + - 72 ), - 6 + + 94 + + - 56 - - 3 / - 40 * 44 ) + - 79 ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT + 99 * ( MIN( DISTINCT - + 18 ) ) + + 15 * - - ( COUNT( * ) ) - + 25
----
-1792

skipif mysql # not compatible
query I rowsort label-3644
SELECT + 99 * ( MIN ( DISTINCT - + 18 ) ) + + 15 * - - ( COUNT ( * ) ) - + 25
----
-1792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT ALL + 77 * 60 * - - CAST( + 69 AS SIGNED ) AS col1
----
318780

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL + 77 * 60 * - - CAST ( + 69 AS INTEGER ) AS col1
----
318780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3646
SELECT CASE MAX( 70 ) WHEN - 39 THEN 65 DIV + 78 WHEN CAST( + 33 AS SIGNED ) * - - ( - 57 ) THEN + COALESCE ( + + 91, 10 * - + 48 ) END + + 13 + + 15 DIV 75 * CAST( NULL AS SIGNED ) + NULLIF ( - 75, 6 ), + 71 DIV ( COUNT( * ) ) * - 82 AS col2
----
NULL
-5822

skipif mysql # not compatible
query II rowsort label-3646
SELECT CASE MAX ( 70 ) WHEN - 39 THEN 65 / + 78 WHEN CAST ( + 33 AS INTEGER ) * - - ( - 57 ) THEN + COALESCE ( + + 91, 10 * - + 48 ) END + + 13 + + 15 / 75 * CAST ( NULL AS INTEGER ) + NULLIF ( - 75, 6 ), + 71 / ( COUNT ( * ) ) * - 82 AS col2
----
NULL
-5822

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3647
SELECT ALL 36 - 94 + - 53 DIV - + 19 AS col1, - COUNT( * )
----
-56
-1

skipif mysql # not compatible
query II rowsort label-3647
SELECT ALL 36 - 94 + - 53 / - + 19 AS col1, - COUNT ( * )
----
-56
-1

query II rowsort
SELECT ALL - 96, 37 + + + ( + 37 ) AS col2
----
-96
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT + SUM( ALL 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-3649
SELECT + SUM ( ALL 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT COUNT( - 22 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3650
SELECT COUNT ( - 22 ) AS col0
----
1

query II rowsort
SELECT + 21 * - 44 + + + 42 + 94, - 50 AS col2
----
-788
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3652
SELECT MIN( DISTINCT 72 ) DIV - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3652
SELECT MIN ( DISTINCT 72 ) / - 99 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3653
SELECT ALL 58 DIV 28 col1
----
2

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL 58 / 28 col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3654
SELECT ( + 60 ) * - 27 + + 94 * - 13 + - - NULLIF ( - 90, 94 + - + 54 DIV + 79 ) + 50 * - 1 DIV 78
----
-2932

skipif mysql # not compatible
query I rowsort label-3654
SELECT ( + 60 ) * - 27 + + 94 * - 13 + - - NULLIF ( - 90, 94 + - + 54 / + 79 ) + 50 * - 1 / 78
----
-2932

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3655
SELECT + ( + NULLIF ( + MAX( DISTINCT - 29 ), 72 ) ) * COUNT( * ) col1, + 2 DIV + 93
----
-29
0

skipif mysql # not compatible
query II rowsort label-3655
SELECT + ( + NULLIF ( + MAX ( DISTINCT - 29 ), 72 ) ) * COUNT ( * ) col1, + 2 / + 93
----
-29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT ALL 52 * - + COUNT( * ) * + + 4
----
-208

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL 52 * - + COUNT ( * ) * + + 4
----
-208

query II rowsort
SELECT ALL 59, + 3 AS col1
----
59
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3658
SELECT 96 col1, 26 DIV 2
----
96
13

skipif mysql # not compatible
query II rowsort label-3658
SELECT 96 col1, 26 / 2
----
96
13

query I rowsort
SELECT ALL 92 + - - 64
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3660
SELECT + CASE + ( 65 ) WHEN - 57 * + COUNT( - 18 ) - - - 2 + - 80 + - 34 THEN NULL ELSE + COUNT( * ) DIV 24 + 58 + + 53 - - 44 + - 54 + - COUNT( * ) + + + COUNT( * ) + + 49 + + 2 DIV + - 36 * - 7 * + + 42 END - - 64 + 77 * 46 * 41
----
145436

skipif mysql # not compatible
query I rowsort label-3660
SELECT + CASE + ( 65 ) WHEN - 57 * + COUNT ( - 18 ) - - - 2 + - 80 + - 34 THEN NULL ELSE + COUNT ( * ) / 24 + 58 + + 53 - - 44 + - 54 + - COUNT ( * ) + + + COUNT ( * ) + + 49 + + 2 / + - 36 * - 7 * + + 42 END - - 64 + 77 * 46 * 41
----
145436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3661
SELECT - 63 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT - 63 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT + 74 * + 61 * - COUNT( - 11 ) * + COALESCE ( - 13, 39 )
----
58682

skipif mysql # not compatible
query I rowsort label-3662
SELECT + 74 * + 61 * - COUNT ( - 11 ) * + COALESCE ( - 13, 39 )
----
58682

onlyif mysql # DIV for integer division: 
query II rowsort label-3663
SELECT - 23, COALESCE ( - COALESCE ( - 44, - - 64 * 23 DIV - 93 ), + 67 + - 70 * - 78 ) AS col2
----
-23
44

skipif mysql # not compatible
query II rowsort label-3663
SELECT - 23, COALESCE ( - COALESCE ( - 44, - - 64 * 23 / - 93 ), + 67 + - 70 * - 78 ) AS col2
----
-23
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3664
SELECT + 92 DIV - COUNT( * ) col2
----
-92

skipif mysql # not compatible
query I rowsort label-3664
SELECT + 92 / - COUNT ( * ) col2
----
-92

query II rowsort
SELECT + 12 AS col1, 22
----
12
22

query I rowsort
SELECT ALL - + 60 + - - 99 + - 37
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT - MAX( DISTINCT - 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3667
SELECT - MAX ( DISTINCT - 64 ) AS col1
----
64

query I rowsort
SELECT ALL + 94 + + 71 AS col2
----
165

query II rowsort
SELECT - - 88 - 96 * - - 24, 44 * + 15 AS col1
----
-2216
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3670
SELECT DISTINCT 80 / - 66 * 46 - + - CAST( NULL AS DECIMAL ) + 7 - + + ( - MIN( DISTINCT - 36 ) ) + - 97 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT 80 / - 66 * 46 - + - CAST ( NULL AS REAL ) + 7 - + + ( - MIN ( DISTINCT - 36 ) ) + - 97 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 85 + 23
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3672
SELECT ALL - - 60 * - 2 * - ( 42 ) + - CASE - COUNT( * ) WHEN 60 / 50 + ( - 20 ) * - MIN( DISTINCT + 57 ) + - + 47 * - + 94 THEN 17 WHEN 81 - + CAST( NULL AS SIGNED ) + - ( - 87 ) THEN - COUNT( * ) / 40 * 23 - + 62 END * - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - - 60 * - 2 * - ( 42 ) + - CASE - COUNT ( * ) WHEN 60 / 50 + ( - 20 ) * - MIN ( DISTINCT + 57 ) + - + 47 * - + 94 THEN 17 WHEN 81 - + CAST ( NULL AS INTEGER ) + - ( - 87 ) THEN - COUNT ( * ) / 40 * 23 - + 62 END * - 41 AS col0
----
NULL

query I rowsort
SELECT - - 39 * + + 55
----
2145

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL + 33 + COUNT( * ) col1
----
34

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL + 33 + COUNT ( * ) col1
----
34

query I rowsort
SELECT + 72 + - 25 col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT - SUM( ALL - 96 )
----
96

skipif mysql # not compatible
query I rowsort label-3676
SELECT - SUM ( ALL - 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT + CAST( + NULLIF ( 37, + 78 + + - 18 ) AS SIGNED ) + MAX( ALL 62 )
----
99

skipif mysql # not compatible
query I rowsort label-3677
SELECT + CAST ( + NULLIF ( 37, + 78 + + - 18 ) AS INTEGER ) + MAX ( ALL 62 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT - MIN( DISTINCT - 63 ) * - 58 AS col1
----
-3654

skipif mysql # not compatible
query I rowsort label-3678
SELECT - MIN ( DISTINCT - 63 ) * - 58 AS col1
----
-3654

onlyif mysql # DIV for integer division: 
query II rowsort label-3679
SELECT + - 24 AS col2, - 19 DIV - 10
----
-24
1

skipif mysql # not compatible
query II rowsort label-3679
SELECT + - 24 AS col2, - 19 / - 10
----
-24
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3680
SELECT + + 12 * - 8 - COALESCE ( - - CAST( NULL AS SIGNED ), - 43 ) * 78 + 43 - + 47
----
3254

skipif mysql # not compatible
query I rowsort label-3680
SELECT + + 12 * - 8 - COALESCE ( - - CAST ( NULL AS INTEGER ), - 43 ) * 78 + 43 - + 47
----
3254

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT - SUM( DISTINCT - + 27 ) * - 88
----
-2376

skipif mysql # not compatible
query I rowsort label-3681
SELECT - SUM ( DISTINCT - + 27 ) * - 88
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL + + COALESCE ( 64, - 98 * + COALESCE ( + 65, 0 + COUNT( * ) * + 62 * + 49 * - 16 ) + COUNT( * ) + + - MAX( ALL - 24 ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL + + COALESCE ( 64, - 98 * + COALESCE ( + 65, 0 + COUNT ( * ) * + 62 * + 49 * - 16 ) + COUNT ( * ) + + - MAX ( ALL - 24 ) ) AS col2
----
64

query I rowsort
SELECT ALL + + 92 col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3684
SELECT CASE - 96 WHEN - CAST( 90 AS SIGNED ) THEN + 0 WHEN AVG ( ALL + 49 ) + 39 * - + COUNT( * ) - 3 THEN - AVG ( DISTINCT - 23 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT CASE - 96 WHEN - CAST ( 90 AS INTEGER ) THEN + 0 WHEN AVG ( ALL + 49 ) + 39 * - + COUNT ( * ) - 3 THEN - AVG ( DISTINCT - 23 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3685
SELECT + COUNT( * ) AS col2, 83 AS col2
----
1
83

skipif mysql # not compatible
query II rowsort label-3685
SELECT + COUNT ( * ) AS col2, 83 AS col2
----
1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL + COUNT( + + 73 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + COUNT ( + + 73 ) AS col0
----
1

query I rowsort
SELECT - 12 - - 93
----
81

query I rowsort
SELECT - 71 * - 33
----
2343

query I rowsort
SELECT - 77 * + 45 * - - 31 AS col2
----
-107415

query I rowsort
SELECT CASE - - 8 WHEN - - 82 - - - 20 THEN 56 WHEN - + 41 * 72 THEN + 51 END
----
NULL

query I rowsort
SELECT DISTINCT - 57 * - 89
----
5073

query I rowsort
SELECT DISTINCT - 48 * + + ( 55 )
----
-2640

query I rowsort
SELECT - 41 * - 43 AS col2
----
1763

query I rowsort
SELECT ALL 52 * 59 * + + 18 AS col1
----
55224

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - 34 - - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-3695
SELECT - 34 - - COUNT ( * )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3696
SELECT DISTINCT COALESCE ( - + MAX( ALL + 81 ), - COUNT( * ) * 26 - 84, 16 + - 30 ) * + - CAST( NULL AS DECIMAL ) + COUNT( * ) / + 20 - + 39 + ( 86 ) + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT COALESCE ( - + MAX ( ALL + 81 ), - COUNT ( * ) * 26 - 84, 16 + - 30 ) * + - CAST ( NULL AS REAL ) + COUNT ( * ) / + 20 - + 39 + ( 86 ) + - 27
----
NULL

query I rowsort
SELECT - 81 * - 89
----
7209

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT + 63 DIV - 60
----
-1

skipif mysql # not compatible
query I rowsort label-3698
SELECT + 63 / - 60
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3699
SELECT - CASE + COALESCE ( - 18, 48 ) WHEN + 71 THEN - - 75 WHEN + - 54 + + 76 THEN + COUNT( * ) ELSE + ( 12 ) * 90 + - CAST( NULL AS SIGNED ) END + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT - CASE + COALESCE ( - 18, 48 ) WHEN + 71 THEN - - 75 WHEN + - 54 + + 76 THEN + COUNT ( * ) ELSE + ( 12 ) * 90 + - CAST ( NULL AS INTEGER ) END + + 67
----
NULL

query I rowsort
SELECT + 80 - - + 24 col0
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3701
SELECT ALL COUNT( ALL - 86 ) DIV - 33
----
0

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL COUNT ( ALL - 86 ) / - 33
----
0

query I rowsort
SELECT NULLIF ( 50, 62 * + 67 * 37 * + 27 ) * - + 59 + + 1 * - COALESCE ( 5, + 17 + 82 ) + 47 AS col2
----
-2908

query I rowsort
SELECT + 57 - - 45 * + - 90 AS col0
----
-3993

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT + ( - + 41 ) + - + MAX( DISTINCT 40 )
----
-81

skipif mysql # not compatible
query I rowsort label-3704
SELECT + ( - + 41 ) + - + MAX ( DISTINCT 40 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT + + COUNT( * ) + - + 22
----
-21

skipif mysql # not compatible
query I rowsort label-3705
SELECT + + COUNT ( * ) + - + 22
----
-21

query I rowsort
SELECT ALL 30 * - ( - ( + 69 ) ) AS col0
----
2070

query II rowsort
SELECT ALL 74 + + 17 + - 94 * + - 93 AS col1, + 10
----
8833
10

query I rowsort
SELECT + 26 * - 98
----
-2548

query I rowsort
SELECT - 40 + + 28 AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3710
SELECT CAST( - 98 AS SIGNED ) AS col1, 0
----
-98
0

skipif mysql # not compatible
query II rowsort label-3710
SELECT CAST ( - 98 AS INTEGER ) AS col1, 0
----
-98
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3711
SELECT + CASE + - 51 WHEN - CAST( + 55 AS SIGNED ) THEN NULL ELSE + - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-3711
SELECT + CASE + - 51 WHEN - CAST ( + 55 AS INTEGER ) THEN NULL ELSE + - COUNT ( * ) END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3712
SELECT + - MAX( - ( - + 82 ) ) * AVG ( - 91 ) + + 10 - + CASE 84 WHEN - 48 / CAST( - ( + + ( + COUNT( * ) ) ) AS DECIMAL ) THEN - - 37 * 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT + - MAX ( - ( - + 82 ) ) * AVG ( - 91 ) + + 10 - + CASE 84 WHEN - 48 / CAST ( - ( + + ( + COUNT ( * ) ) ) AS REAL ) THEN - - 37 * 58 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3713
SELECT ALL - - 53 - + CAST( NULL AS DECIMAL ) - - - COALESCE ( - 98, 51 - - + 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL - - 53 - + CAST ( NULL AS REAL ) - - - COALESCE ( - 98, 51 - - + 45 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT + 15 + 50 + + + ( - + 72 ) + MAX( ALL + 89 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3714
SELECT + 15 + 50 + + + ( - + 72 ) + MAX ( ALL + 89 ) AS col2
----
82

query I rowsort
SELECT ALL + 30 * 16 - - 98
----
578

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT - COUNT( * ) * 13 * - 36 AS col1
----
468

skipif mysql # not compatible
query I rowsort label-3716
SELECT - COUNT ( * ) * 13 * - 36 AS col1
----
468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3717
SELECT ALL + COUNT( * ) / 80 * + - 98 - + 82 / 70 + - 57 * + CASE - CAST( + 35 AS SIGNED ) WHEN 3 * 30 THEN - 37 WHEN - 26 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL + COUNT ( * ) / 80 * + - 98 - + 82 / 70 + - 57 * + CASE - CAST ( + 35 AS INTEGER ) WHEN 3 * 30 THEN - 37 WHEN - 26 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT CAST( NULL AS SIGNED ) / - 77 + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT CAST ( NULL AS INTEGER ) / - 77 + 61
----
NULL

query I rowsort
SELECT + 86 - - 75 * - - 64 AS col1
----
4886

query I rowsort
SELECT ALL + + 49 * + 92 + + NULLIF ( - 58, + - 55 * + 18 ) AS col1
----
4450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3721
SELECT + COUNT( DISTINCT - 83 ) + + - COALESCE ( - COUNT( * ), - ( - 74 ) + - - 96 + CAST( NULL AS SIGNED ) * + 63 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3721
SELECT + COUNT ( DISTINCT - 83 ) + + - COALESCE ( - COUNT ( * ), - ( - 74 ) + - - 96 + CAST ( NULL AS INTEGER ) * + 63 ) AS col2
----
2

query I rowsort
SELECT + ( 39 ) * - + ( - 76 ) - - + 49 AS col2
----
3013

query I rowsort
SELECT ALL - 71 * - + 73 * + 4 AS col2
----
20732

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL - 62 * + - COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL - 62 * + - COUNT ( * ) AS col2
----
62

query I rowsort
SELECT ALL + 99 + 55
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL 23 * + - NULLIF ( + 74, - SUM( DISTINCT - 15 ) )
----
-1702

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL 23 * + - NULLIF ( + 74, - SUM ( DISTINCT - 15 ) )
----
-1702

query I rowsort
SELECT DISTINCT + 17 + - 96 - 45 * + 64 AS col2
----
-2959

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT 79 - - SUM( DISTINCT - - 8 ) * - 25
----
-121

skipif mysql # not compatible
query I rowsort label-3728
SELECT 79 - - SUM ( DISTINCT - - 8 ) * - 25
----
-121

query I rowsort
SELECT 86 + + 50 AS col0
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3730
SELECT ALL + 99 + CAST( 47 AS SIGNED )
----
146

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL + 99 + CAST ( 47 AS INTEGER )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT 95 * + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-3731
SELECT 95 * + + COUNT ( * )
----
95

query I rowsort
SELECT 66 * - + 70 AS col1
----
-4620

query I rowsort
SELECT 1 + - 26
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3734
SELECT DISTINCT - NULLIF ( - 61, - - NULLIF ( - + MAX( + 74 ), 54 ) / 43 + + - COUNT( * ) + COUNT( * ) * + 62 ) AS col0, - 46 AS col2
----
61
-46

skipif mysql # not compatible
query II rowsort label-3734
SELECT DISTINCT - NULLIF ( - 61, - - NULLIF ( - + MAX ( + 74 ), 54 ) / 43 + + - COUNT ( * ) + COUNT ( * ) * + 62 ) AS col0, - 46 AS col2
----
61
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3735
SELECT ALL - 72 + + + CAST( NULL AS SIGNED ) - - 20 + + + 56 / + SUM( ALL 23 ) + + ( - - 42 ) * COALESCE ( - 13, + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - 72 + + + CAST ( NULL AS INTEGER ) - - 20 + + + 56 / + SUM ( ALL 23 ) + + ( - - 42 ) * COALESCE ( - 13, + 40 )
----
NULL

query II rowsort
SELECT 13, + 81 AS col0
----
13
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3737
SELECT 0 * + 88 * + CASE + 12 WHEN + CAST( - COUNT( * ) AS SIGNED ) * NULLIF ( + 76, - MAX( DISTINCT 87 ) ) THEN - - 97 ELSE 46 * 49 END + + 17 * - 63
----
-1071

skipif mysql # not compatible
query I rowsort label-3737
SELECT 0 * + 88 * + CASE + 12 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) * NULLIF ( + 76, - MAX ( DISTINCT 87 ) ) THEN - - 97 ELSE 46 * 49 END + + 17 * - 63
----
-1071

query I rowsort
SELECT ALL + 9 * + 36
----
324

onlyif mysql # DIV for integer division: 
query I rowsort label-3739
SELECT 85 DIV + COALESCE ( 22, - - 15 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3739
SELECT 85 / + COALESCE ( 22, - - 15 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT COUNT( * ) + - - COALESCE ( - 78, 92, - 46 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3740
SELECT COUNT ( * ) + - - COALESCE ( - 78, 92, - 46 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL + COUNT( * ) + + 23
----
24

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL + COUNT ( * ) + + 23
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT ALL - 37 + CAST( - 24 AS SIGNED ) * 86
----
-2101

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL - 37 + CAST ( - 24 AS INTEGER ) * 86
----
-2101

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT ALL + 10 * - - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL + 10 * - - COUNT ( * )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3744
SELECT CAST( NULL AS SIGNED ) col1, 16 * + 9 AS col1
----
NULL
144

skipif mysql # not compatible
query II rowsort label-3744
SELECT CAST ( NULL AS INTEGER ) col1, 16 * + 9 AS col1
----
NULL
144

query I rowsort
SELECT 84 - - 23 * 22 * - + 8
----
-3964

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ALL - COUNT( - - 51 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL - COUNT ( - - 51 ) col2
----
-1

query I rowsort
SELECT 74 * - 18 * + ( 91 )
----
-121212

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - + SUM( DISTINCT + + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-3748
SELECT - + SUM ( DISTINCT + + 1 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3749
SELECT 67, SUM( ALL + ( + 48 ) ) AS col2
----
67
48

skipif mysql # not compatible
query II rowsort label-3749
SELECT 67, SUM ( ALL + ( + 48 ) ) AS col2
----
67
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3750
SELECT ALL + 25 - 29 + - 1 * - - MAX( 12 ), 51 + - CASE 77 WHEN + 43 THEN ( + + 94 ) WHEN 85 THEN + 43 WHEN + ( + 81 ) THEN + 53 ELSE NULL END AS col2
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-3750
SELECT ALL + 25 - 29 + - 1 * - - MAX ( 12 ), 51 + - CASE 77 WHEN + 43 THEN ( + + 94 ) WHEN 85 THEN + 43 WHEN + ( + 81 ) THEN + 53 ELSE NULL END AS col2
----
-16
NULL

query II rowsort
SELECT 4 AS col0, 7
----
4
7

query I rowsort
SELECT ALL - 50 * + 56 * 18
----
-50400

query I rowsort
SELECT 53 * - 93
----
-4929

query I rowsort
SELECT ALL 30 * + 50 AS col1
----
1500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT DISTINCT + COALESCE ( - 83, COUNT( * ), COALESCE ( + 73, - - 34, + 89 DIV + NULLIF ( 18, - 85 ) * - - 98 ) * 8 * - 45 + + - 45 + + + 76 * + 18 + - ( - - 20 ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT + COALESCE ( - 83, COUNT ( * ), COALESCE ( + 73, - - 34, + 89 / + NULLIF ( 18, - 85 ) * - - 98 ) * 8 * - 45 + + - 45 + + + 76 * + 18 + - ( - - 20 ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3756
SELECT ALL COUNT( - 71 ) * + 96 AS col2, + 39 * + + 96 + - 15
----
96
3729

skipif mysql # not compatible
query II rowsort label-3756
SELECT ALL COUNT ( - 71 ) * + 96 AS col2, + 39 * + + 96 + - 15
----
96
3729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3757
SELECT 33 * + CAST( + 85 AS SIGNED ) AS col0
----
2805

skipif mysql # not compatible
query I rowsort label-3757
SELECT 33 * + CAST ( + 85 AS INTEGER ) AS col0
----
2805

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT MAX( ALL - 38 ) * + 72 + ( 48 )
----
-2688

skipif mysql # not compatible
query I rowsort label-3758
SELECT MAX ( ALL - 38 ) * + 72 + ( 48 )
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT + 71 + - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-3759
SELECT + 71 + - COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT + CASE - - 39 WHEN - 62 + 60 + 94 - - 24 + + 17 + - SUM( + 86 ) + 6 * - - COUNT( * ) THEN NULL ELSE 50 END - + 22 col1
----
28

skipif mysql # not compatible
query I rowsort label-3760
SELECT + CASE - - 39 WHEN - 62 + 60 + 94 - - 24 + + 17 + - SUM ( + 86 ) + 6 * - - COUNT ( * ) THEN NULL ELSE 50 END - + 22 col1
----
28

query I rowsort
SELECT + + 74 * + 22 * 80 + - 56
----
130184

query I rowsort
SELECT 89 - - 20 AS col2
----
109

query II rowsort
SELECT 74, 0 col0
----
74
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT ALL COUNT( * ) + - + 49
----
-48

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL COUNT ( * ) + - + 49
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3765
SELECT ALL COUNT( * ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL COUNT ( * ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3766
SELECT + 85 AS col0, - CASE 77 WHEN NULLIF ( + - 55, CAST( NULL AS SIGNED ) ) THEN 89 * + ( - + ( + COALESCE ( + 78, 12 ) ) ) + + CASE - + 89 WHEN - 94 THEN NULL ELSE + NULLIF ( 6, + 10 * - 1 - 95 ) END WHEN + 77 THEN NULL ELSE - 24 END
----
85
NULL

skipif mysql # not compatible
query II rowsort label-3766
SELECT + 85 AS col0, - CASE 77 WHEN NULLIF ( + - 55, CAST ( NULL AS INTEGER ) ) THEN 89 * + ( - + ( + COALESCE ( + 78, 12 ) ) ) + + CASE - + 89 WHEN - 94 THEN NULL ELSE + NULLIF ( 6, + 10 * - 1 - 95 ) END WHEN + 77 THEN NULL ELSE - 24 END
----
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL + 3 + 24 + + COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL + 3 + 24 + + COUNT ( * ) AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT CAST( 45 AS SIGNED ) * + - 45 AS col2
----
-2025

skipif mysql # not compatible
query I rowsort label-3768
SELECT CAST ( 45 AS INTEGER ) * + - 45 AS col2
----
-2025

query I rowsort
SELECT DISTINCT 41 + - ( + + 18 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT CAST( + - 55 AS SIGNED ) - + 10
----
-65

skipif mysql # not compatible
query I rowsort label-3770
SELECT CAST ( + - 55 AS INTEGER ) - + 10
----
-65

query I rowsort
SELECT 1 * + 24
----
24

query II rowsort
SELECT 12 AS col2, 68
----
12
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT + 90 * - COUNT( ALL + - 8 ) + - 91 AS col2
----
-181

skipif mysql # not compatible
query I rowsort label-3773
SELECT + 90 * - COUNT ( ALL + - 8 ) + - 91 AS col2
----
-181

query I rowsort
SELECT 14 * + 59
----
826

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3775
SELECT 20 DIV - 87 DIV - NULLIF ( + COUNT( * ), AVG ( DISTINCT - - 29 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3775
SELECT 20 / - 87 / - NULLIF ( + COUNT ( * ), AVG ( DISTINCT - - 29 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL - MAX( ALL - - ( 88 ) ) + + SUM( DISTINCT - 22 ) + + + 25 * - 23 AS col1
----
-685

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL - MAX ( ALL - - ( 88 ) ) + + SUM ( DISTINCT - 22 ) + + + 25 * - 23 AS col1
----
-685

query I rowsort
SELECT 91 * - 5 AS col1
----
-455

query I rowsort
SELECT DISTINCT 75 * - ( - + 18 )
----
1350

query I rowsort
SELECT ALL 33 * - 27 AS col0
----
-891

query I rowsort
SELECT 1 - 62
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3781
SELECT DISTINCT MAX( DISTINCT - 52 ) * + 26 * + 75 + CAST( + 29 AS SIGNED ) AS col0
----
-101371

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT MAX ( DISTINCT - 52 ) * + 26 * + 75 + CAST ( + 29 AS INTEGER ) AS col0
----
-101371

query I rowsort
SELECT ALL - ( - ( + + 59 ) )
----
59

query II rowsort
SELECT + 74, 3 col0
----
74
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3784
SELECT ( - CASE + ( - + 99 ) WHEN 27 THEN COALESCE ( + 14, 0, + 31 ) - + ( COUNT( * ) ) WHEN + 87 THEN + - NULLIF ( MAX( ALL - - 10 ), + ( + 65 ) * - 11 * 14 ) END ) + - 15 + - + 81 * - CAST( - 1 AS SIGNED ) * - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT ( - CASE + ( - + 99 ) WHEN 27 THEN COALESCE ( + 14, 0, + 31 ) - + ( COUNT ( * ) ) WHEN + 87 THEN + - NULLIF ( MAX ( ALL - - 10 ), + ( + 65 ) * - 11 * 14 ) END ) + - 15 + - + 81 * - CAST ( - 1 AS INTEGER ) * - - 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3785
SELECT ( + - 86 ) * NULLIF ( COUNT( * ), 2 / + - CAST( 81 AS DECIMAL ) ) + - 34 col0
----
-120

skipif mysql # not compatible
query I rowsort label-3785
SELECT ( + - 86 ) * NULLIF ( COUNT ( * ), 2 / + - CAST ( 81 AS REAL ) ) + - 34 col0
----
-120

query I rowsort
SELECT DISTINCT - - ( + 95 )
----
95

query I rowsort
SELECT 53 + + + 30 col0
----
83

query II rowsort
SELECT - + 97 AS col0, 77
----
-97
77

query I rowsort
SELECT 12 * + - 36 * - 78 - + 13 AS col2
----
33683

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL + SUM( + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + SUM ( + 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3791
SELECT 43 - - 21 + - CAST( - 16 AS SIGNED ) - ( CAST( NULL AS DECIMAL ) ) / - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT 43 - - 21 + - CAST ( - 16 AS INTEGER ) - ( CAST ( NULL AS REAL ) ) / - 36 AS col0
----
NULL

query II rowsort
SELECT 30 * 25, 64 col2
----
750
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3793
SELECT 89 - - CAST( NULL AS SIGNED ) + - + COUNT( * ) * - 86 + + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT 89 - - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * - 86 + + 72 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3794
SELECT ALL - SUM( DISTINCT + 2 ) - + 72 + CASE 50 WHEN - + 28 + + + 78 THEN + 26 * - 8 * - 27 ELSE COALESCE ( + + 34, + CAST( NULL AS SIGNED ) + + 70 DIV - 80 ) END AS col0
----
5542

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - SUM ( DISTINCT + 2 ) - + 72 + CASE 50 WHEN - + 28 + + + 78 THEN + 26 * - 8 * - 27 ELSE COALESCE ( + + 34, + CAST ( NULL AS INTEGER ) + + 70 / - 80 ) END AS col0
----
5542

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT 91 * + + SUM( + 24 ) + 85 + - SUM( - 13 ) * 37 AS col1
----
2750

skipif mysql # not compatible
query I rowsort label-3795
SELECT 91 * + + SUM ( + 24 ) + 85 + - SUM ( - 13 ) * 37 AS col1
----
2750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3796
SELECT COUNT( * ) + - 52 - - - 54 + COUNT( * ) / - NULLIF ( - - 44, + 12 * 53 + 84 + - COUNT( * ) ) * COUNT( * ) + - CAST( NULL AS SIGNED ) * ( + 57 ) * + - ( 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT COUNT ( * ) + - 52 - - - 54 + COUNT ( * ) / - NULLIF ( - - 44, + 12 * 53 + 84 + - COUNT ( * ) ) * COUNT ( * ) + - CAST ( NULL AS INTEGER ) * ( + 57 ) * + - ( 92 )
----
NULL

query II rowsort
SELECT ALL 49, 11 + + 70 AS col2
----
49
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL - MAX( + 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL - MAX ( + 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT 60 + ( + COUNT( * ) ) + - 35 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3799
SELECT 60 + ( + COUNT ( * ) ) + - 35 AS col0
----
26

query I rowsort
SELECT - - ( - 90 ) * + 61 AS col2
----
-5490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3801
SELECT - 77 DIV - ( - 6 ) + + CAST( + COUNT( * ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-3801
SELECT - 77 / - ( - 6 ) + + CAST ( + COUNT ( * ) AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3802
SELECT + COUNT( * ) DIV COUNT( * ) * - - 79
----
79

skipif mysql # not compatible
query I rowsort label-3802
SELECT + COUNT ( * ) / COUNT ( * ) * - - 79
----
79

query I rowsort
SELECT DISTINCT - 20 * 14 + + + 94 + - - 88 * 78
----
6678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3804
SELECT DISTINCT - 99 + + 3 DIV + + 17 + COUNT( * ) + + CAST( + - 22 AS SIGNED ) + + 3 DIV 28 * 86 * + 0 * - 47
----
-120

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT - 99 + + 3 / + + 17 + COUNT ( * ) + + CAST ( + - 22 AS INTEGER ) + + 3 / 28 * 86 * + 0 * - 47
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ALL CASE + 31 WHEN + COUNT( * ) * + - 1 THEN 95 + - 10 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL CASE + 31 WHEN + COUNT ( * ) * + - 1 THEN 95 + - 10 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT NULLIF ( + 97, - 27 / + COUNT( * ) ) col1
----
97

skipif mysql # not compatible
query I rowsort label-3806
SELECT NULLIF ( + 97, - 27 / + COUNT ( * ) ) col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3807
SELECT ALL ( - COUNT( * ) ) * - COUNT( * ) DIV - - NULLIF ( 77, + 22 * COALESCE ( - CAST( NULL AS DECIMAL ), - - 92, + COUNT( * ) * + + 10 + 94 ) + + COUNT( * ) * - - SUM( 15 ) ) * + ( NULLIF ( - 39, + 45 ) ) + - 37 DIV - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL ( - COUNT ( * ) ) * - COUNT ( * ) / - - NULLIF ( 77, + 22 * COALESCE ( - CAST ( NULL AS REAL ), - - 92, + COUNT ( * ) * + + 10 + 94 ) + + COUNT ( * ) * - - SUM ( 15 ) ) * + ( NULLIF ( - 39, + 45 ) ) + - 37 / - 59 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT - ( + + COALESCE ( - + COUNT( * ), + 72 ) ) - - 7 * + 55 - + - COUNT( * ) AS col1
----
387

skipif mysql # not compatible
query I rowsort label-3808
SELECT - ( + + COALESCE ( - + COUNT ( * ), + 72 ) ) - - 7 * + 55 - + - COUNT ( * ) AS col1
----
387

onlyif mysql # aggregate syntax: 
query II rowsort label-3809
SELECT + CASE - - 85 WHEN - 59 * - - 44 THEN - 45 END AS col2, COUNT( DISTINCT - - 88 ) - + 50 AS col0
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-3809
SELECT + CASE - - 85 WHEN - 59 * - - 44 THEN - 45 END AS col2, COUNT ( DISTINCT - - 88 ) - + 50 AS col0
----
NULL
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3810
SELECT + CAST( + 69 AS SIGNED ) + - 97 AS col2, 23
----
-28
23

skipif mysql # not compatible
query II rowsort label-3810
SELECT + CAST ( + 69 AS INTEGER ) + - 97 AS col2, 23
----
-28
23

query I rowsort
SELECT DISTINCT 42 * + 74 + + + 18 * - + 87 AS col1
----
1542

onlyif mysql # DIV for integer division: 
query I rowsort label-3812
SELECT - 73 DIV - 32 + ( + - 22 ) * 76 * 29 * + + 79 * - 68 + 70
----
260477608

skipif mysql # not compatible
query I rowsort label-3812
SELECT - 73 / - 32 + ( + - 22 ) * 76 * 29 * + + 79 * - 68 + 70
----
260477608

onlyif mysql # DIV for integer division: 
query II rowsort label-3813
SELECT ALL 85 * 22 DIV 6 - 91 * 13 AS col0, 89 * - - 53 col0
----
-872
4717

skipif mysql # not compatible
query II rowsort label-3813
SELECT ALL 85 * 22 / 6 - 91 * 13 AS col0, 89 * - - 53 col0
----
-872
4717

query I rowsort
SELECT + 98 + + CASE - + 57 WHEN - - 15 + + ( + - 22 ) - - 44 THEN - 97 + 86 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT + 9 DIV 53 DIV + - 65
----
0

skipif mysql # not compatible
query I rowsort label-3815
SELECT + 9 / 53 / + - 65
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3816
SELECT DISTINCT 21 DIV - - 13 AS col0, + COALESCE ( - ( 52 ), + - 25 * - + CAST( - 40 AS SIGNED ), + 66 + + + 84 * 86 * - + 33 * - + 47 + + 85 * + 83 + - - 41 + + ( 52 ) DIV 91 )
----
1
-52

skipif mysql # not compatible
query II rowsort label-3816
SELECT DISTINCT 21 / - - 13 AS col0, + COALESCE ( - ( 52 ), + - 25 * - + CAST ( - 40 AS INTEGER ), + 66 + + + 84 * 86 * - + 33 * - + 47 + + 85 * + 83 + - - 41 + + ( 52 ) / 91 )
----
1
-52

query I rowsort
SELECT - 92 + + + 92 AS col1
----
0

query I rowsort
SELECT DISTINCT - 16 * - - ( - ( + 98 ) ) * - 65 AS col0
----
-101920

query I rowsort
SELECT ALL 62 * - - ( + 94 )
----
5828

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT - COUNT( * ) + - COALESCE ( + + 60, + 27 * 44, SUM( + 72 ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-3820
SELECT - COUNT ( * ) + - COALESCE ( + + 60, + 27 * 44, SUM ( + 72 ) ) AS col2
----
-61

query I rowsort
SELECT + 50 * + 20
----
1000

query I rowsort
SELECT DISTINCT 24 * + 66 AS col0
----
1584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3823
SELECT ALL - COUNT( * ) * 72 * 79 + - 79 DIV - 21
----
-5685

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - COUNT ( * ) * 72 * 79 + - 79 / - 21
----
-5685

query I rowsort
SELECT + NULLIF ( 99, - - ( + 19 ) ) - - - 53 + 25
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3825
SELECT ALL - CASE ( + + 60 ) WHEN + ( + ( + 10 ) ) THEN 40 ELSE COUNT( * ) END + - 63 * + 87 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL - CASE ( + + 60 ) WHEN + ( + ( + 10 ) ) THEN 40 ELSE COUNT ( * ) END + - 63 * + 87 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - 71 + - 50 AS col0
----
21

query I rowsort
SELECT DISTINCT - - COALESCE ( - 15, 32 * - 97 * - - 23 ) + 21 * - CASE 27 WHEN - + 57 THEN + 28 END - 53 AS col0
----
NULL

query I rowsort
SELECT - 94 - + 29 + 56 + 65 + - 90 * - 82
----
7378

query I rowsort
SELECT ALL - 13 * + 61 AS col1
----
-793

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3830
SELECT - CAST( + 26 AS SIGNED ) - - + 75 + - MIN( DISTINCT - + 37 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3830
SELECT - CAST ( + 26 AS INTEGER ) - - + 75 + - MIN ( DISTINCT - + 37 ) AS col2
----
86

query I rowsort
SELECT ALL ( + 22 ) AS col0
----
22

query I rowsort
SELECT ALL - 86 + + + 19 * 25 col0
----
389

query I rowsort
SELECT - 58 + - + 45 + - 12 AS col1
----
-115

query I rowsort
SELECT + 64 * + 74 col1
----
4736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT + 82 + + ( + CAST( - 13 AS SIGNED ) ) + - - 38 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-3835
SELECT + 82 + + ( + CAST ( - 13 AS INTEGER ) ) + - - 38 AS col1
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT ALL CAST( - 31 AS SIGNED ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL CAST ( - 31 AS INTEGER ) AS col0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3837
SELECT - 46 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-3837
SELECT - 46 / 51
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3838
SELECT + NULLIF ( COUNT( * ), 81 ) AS col2, ( 94 ) + - 73 AS col2
----
1
21

skipif mysql # not compatible
query II rowsort label-3838
SELECT + NULLIF ( COUNT ( * ), 81 ) AS col2, ( 94 ) + - 73 AS col2
----
1
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3839
SELECT - ( - 57 ) DIV - 40 + + 71 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3839
SELECT - ( - 57 ) / - 40 + + 71 AS col1
----
70

query II rowsort
SELECT DISTINCT + 52, 37 AS col2
----
52
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3841
SELECT - 69 * - + 12 DIV + COUNT( * )
----
828

skipif mysql # not compatible
query I rowsort label-3841
SELECT - 69 * - + 12 / + COUNT ( * )
----
828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3842
SELECT CAST( 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-3842
SELECT CAST ( 59 AS INTEGER )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3843
SELECT CAST( + 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-3843
SELECT CAST ( + 92 AS INTEGER )
----
92

query I rowsort
SELECT ( + 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + 27 * - NULLIF ( - COUNT( * ), + 55 )
----
27

skipif mysql # not compatible
query I rowsort label-3845
SELECT + 27 * - NULLIF ( - COUNT ( * ), + 55 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT ALL - 18 * - CASE - + AVG ( - 23 ) WHEN + 68 THEN NULL WHEN + 4 + - 67 THEN + + ( + CAST( NULL AS SIGNED ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - 18 * - CASE - + AVG ( - 23 ) WHEN + 68 THEN NULL WHEN + 4 + - 67 THEN + + ( + CAST ( NULL AS INTEGER ) ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3847
SELECT + + 32 - - 24 DIV - 40 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3847
SELECT + + 32 - - 24 / - 40 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3848
SELECT ALL - CASE + 74 WHEN 77 THEN NULL ELSE - 2 * 32 + - COUNT( DISTINCT - 89 ) + 35 END DIV - - 51 * + - 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL - CASE + 74 WHEN 77 THEN NULL ELSE - 2 * 32 + - COUNT ( DISTINCT - 89 ) + 35 END / - - 51 * + - 36 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3849
SELECT + - 57 + + - CAST( + 96 AS SIGNED ) DIV + - 34 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3849
SELECT + - 57 + + - CAST ( + 96 AS INTEGER ) / + - 34 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT - 48 * + 55 + 41 + + 31 + COUNT( * ) * 14
----
-2554

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT - 48 * + 55 + 41 + + 31 + COUNT ( * ) * 14
----
-2554

onlyif mysql # DIV for integer division: 
query II rowsort label-3851
SELECT + 10 + 43 DIV - 76 col1, 19 AS col0
----
10
19

skipif mysql # not compatible
query II rowsort label-3851
SELECT + 10 + 43 / - 76 col1, 19 AS col0
----
10
19

query II rowsort
SELECT + 33 col2, - 27
----
33
-27

query I rowsort
SELECT ALL + - 96 * + + 20 + 98 + - 73
----
-1895

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT + ( - 81 ) + - 25 DIV - 10
----
-79

skipif mysql # not compatible
query I rowsort label-3854
SELECT + ( - 81 ) + - 25 / - 10
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3855
SELECT COUNT( * ) - + 7 DIV + - 24, - ( + - 8 ) * - 28 AS col2
----
1
-224

skipif mysql # not compatible
query II rowsort label-3855
SELECT COUNT ( * ) - + 7 / + - 24, - ( + - 8 ) * - 28 AS col2
----
1
-224

query I rowsort
SELECT + 7 - + + 13 AS col1
----
-6

query I rowsort
SELECT ALL - 11 * 9
----
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3858
SELECT ALL + 42 + - - 14 + + - ( + 2 ) + - 15 * + 80 * + 26 * + 88 * 32 - 42 DIV CAST( + + ( + + 51 ) AS SIGNED ) AS col0
----
-87859146

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL + 42 + - - 14 + + - ( + 2 ) + - 15 * + 80 * + 26 * + 88 * 32 - 42 / CAST ( + + ( + + 51 ) AS INTEGER ) AS col0
----
-87859146

onlyif mysql # aggregate syntax: 
query II rowsort label-3859
SELECT ALL - 61 + + - SUM( DISTINCT + 69 ) AS col1, - 36 AS col0
----
-130
-36

skipif mysql # not compatible
query II rowsort label-3859
SELECT ALL - 61 + + - SUM ( DISTINCT + 69 ) AS col1, - 36 AS col0
----
-130
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT + MIN( - + CAST( - 86 AS SIGNED ) ) + 29 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-3860
SELECT + MIN ( - + CAST ( - 86 AS INTEGER ) ) + 29 AS col1
----
115

query I rowsort
SELECT ALL ( 97 ) * + 33 * - 67
----
-214467

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT 0 + - - 53 DIV + 25 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3862
SELECT 0 + - - 53 / + 25 AS col2
----
2

query II rowsort
SELECT - 40, 7 AS col0
----
-40
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT DISTINCT SUM( DISTINCT + + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT SUM ( DISTINCT + + 91 )
----
91

query I rowsort
SELECT ALL 53 + - 76
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT MAX( ALL - 25 ) * - - 91
----
-2275

skipif mysql # not compatible
query I rowsort label-3866
SELECT MAX ( ALL - 25 ) * - - 91
----
-2275

onlyif mysql # aggregate syntax: 
query II rowsort label-3867
SELECT 14 + + - COUNT( * ), 4 * - - COUNT( * ) * - 99 AS col1
----
13
-396

skipif mysql # not compatible
query II rowsort label-3867
SELECT 14 + + - COUNT ( * ), 4 * - - COUNT ( * ) * - 99 AS col1
----
13
-396

onlyif mysql # DIV for integer division: 
query II rowsort label-3868
SELECT ALL - 82 * - - 30 col2, 93 DIV - 22 AS col2
----
-2460
-4

skipif mysql # not compatible
query II rowsort label-3868
SELECT ALL - 82 * - - 30 col2, 93 / - 22 AS col2
----
-2460
-4

query I rowsort
SELECT ALL 17 - 53 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3870
SELECT 4 * COUNT( * ), - 54 AS col1
----
4
-54

skipif mysql # not compatible
query II rowsort label-3870
SELECT 4 * COUNT ( * ), - 54 AS col1
----
4
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ALL 11 * - + 66 * + - MIN( + - 91 )
----
-66066

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL 11 * - + 66 * + - MIN ( + - 91 )
----
-66066

query I rowsort
SELECT DISTINCT + 37 - - 69 * 82 * - - 27 * - - 81 + - 76
----
12374007

query I rowsort
SELECT 30 * + 77
----
2310

onlyif mysql # DIV for integer division: 
query I rowsort label-3874
SELECT - 64 DIV + - 59 + - 87 col2
----
-86

skipif mysql # not compatible
query I rowsort label-3874
SELECT - 64 / + - 59 + - 87 col2
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3875
SELECT - ( 53 ) * + CAST( 7 AS SIGNED ) * 26 + + - 85 AS col2
----
-9731

skipif mysql # not compatible
query I rowsort label-3875
SELECT - ( 53 ) * + CAST ( 7 AS INTEGER ) * 26 + + - 85 AS col2
----
-9731

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3876
SELECT COUNT( * ) DIV - - 97 + - 57 * + NULLIF ( - 7, + 28 )
----
399

skipif mysql # not compatible
query I rowsort label-3876
SELECT COUNT ( * ) / - - 97 + - 57 * + NULLIF ( - 7, + 28 )
----
399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT ALL + 19 / + + 67 * - + NULLIF ( - CASE 98 WHEN - 52 - + 93 - - 94 THEN + - 99 * COUNT( * ) * - - CAST( NULL AS SIGNED ) END, - 35 + 23 + + 98 + - - CASE 17 WHEN + 30 + + 3 * - + 99 THEN - 89 + 10 + + - COALESCE ( - ( - - NULLIF ( + - COUNT( * ), COUNT( * ) ) ), + 60 - + - 89 ) + NULLIF ( - 37, - 82 ) * - 99 WHEN 44 + ( ( 55 ) + 16 ) THEN - 92 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL + 19 / + + 67 * - + NULLIF ( - CASE 98 WHEN - 52 - + 93 - - 94 THEN + - 99 * COUNT ( * ) * - - CAST ( NULL AS INTEGER ) END, - 35 + 23 + + 98 + - - CASE 17 WHEN + 30 + + 3 * - + 99 THEN - 89 + 10 + + - COALESCE ( - ( - - NULLIF ( + - COUNT ( * ), COUNT ( * ) ) ), + 60 - + - 89 ) + NULLIF ( - 37, - 82 ) * - 99 WHEN 44 + ( ( 55 ) + 16 ) THEN - 92 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT 20 * - MIN( 47 ) * - - 49 AS col1
----
-46060

skipif mysql # not compatible
query I rowsort label-3878
SELECT 20 * - MIN ( 47 ) * - - 49 AS col1
----
-46060

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL - MIN( + - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL - MIN ( + - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL SUM( DISTINCT COALESCE ( + - 87, 11 * 7 ) ) + + + 4
----
-83

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL SUM ( DISTINCT COALESCE ( + - 87, 11 * 7 ) ) + + + 4
----
-83

query I rowsort
SELECT - 46 * - 39 + + + 57 AS col2
----
1851

query I rowsort
SELECT ALL - + 81 AS col0
----
-81

query I rowsort
SELECT - 55 * 44
----
-2420

query I rowsort
SELECT DISTINCT - 73 + - ( - 52 )
----
-21

query I rowsort
SELECT + 21 * + 3 AS col2
----
63

query I rowsort
SELECT ALL - + 65 AS col0
----
-65

query I rowsort
SELECT DISTINCT 70 + - 65 AS col2
----
5

query I rowsort
SELECT DISTINCT + - 21 + + - NULLIF ( - 39, - ( 44 ) ) AS col2
----
18

query I rowsort
SELECT + CASE 68 WHEN - 38 * - + 17 THEN NULL WHEN - 4 * ( - 2 ) THEN 27 END
----
NULL

query I rowsort
SELECT 23 * + 6
----
138

query I rowsort
SELECT ALL 54 - 44 + 26 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3892
SELECT 2 - + COALESCE ( - 15, + CAST( - 51 AS SIGNED ), COUNT( * ) + + 77 ) + + SUM( DISTINCT + + 39 )
----
56

skipif mysql # not compatible
query I rowsort label-3892
SELECT 2 - + COALESCE ( - 15, + CAST ( - 51 AS INTEGER ), COUNT ( * ) + + 77 ) + + SUM ( DISTINCT + + 39 )
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3893
SELECT - 99 * + 70 * + 59 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT - 99 * + 70 * + 59 - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT CASE AVG ( ALL - 55 ) WHEN + 84 THEN NULL WHEN - 14 * + 87 / - 69 + - 97 - + 82 * 20 * + 98 + 94 THEN NULL WHEN 58 THEN + MAX( ALL + 4 ) WHEN + 43 / - + MIN( + 50 ) THEN NULL END + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT CASE AVG ( ALL - 55 ) WHEN + 84 THEN NULL WHEN - 14 * + 87 / - 69 + - 97 - + 82 * 20 * + 98 + 94 THEN NULL WHEN 58 THEN + MAX ( ALL + 4 ) WHEN + 43 / - + MIN ( + 50 ) THEN NULL END + - 93
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3895
SELECT CAST( NULL AS SIGNED ) / - + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3895
SELECT CAST ( NULL AS INTEGER ) / - + 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT DISTINCT 76 * + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT 76 * + + COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT ALL COUNT( * ) * - 45
----
-45

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL COUNT ( * ) * - 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT DISTINCT 70 * + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-3898
SELECT DISTINCT 70 * + COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT COUNT( * ) - 81 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-3899
SELECT COUNT ( * ) - 81 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3900
SELECT - COUNT( * ) col1, 56
----
-1
56

skipif mysql # not compatible
query II rowsort label-3900
SELECT - COUNT ( * ) col1, 56
----
-1
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT NULLIF ( - - 58, + 85 ) + CAST( NULL AS SIGNED ) + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT NULLIF ( - - 58, + 85 ) + CAST ( NULL AS INTEGER ) + - 27
----
NULL

query I rowsort
SELECT 39 * + - 91
----
-3549

query I rowsort
SELECT COALESCE ( - + COALESCE ( + 54, - 41 ), - - 50 ) * + 97 * + 66 AS col2
----
-345708

query I rowsort
SELECT 49 - - - 51 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 11
----
NULL

query II rowsort
SELECT DISTINCT - 61 AS col2, - 42 AS col0
----
-61
-42

query I rowsort
SELECT 35 * 76
----
2660

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT DISTINCT + + COUNT( * ) * 64 * + 86 + 99 AS col2
----
5603

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT + + COUNT ( * ) * 64 * + 86 + 99 AS col2
----
5603

onlyif mysql # DIV for integer division: 
query I rowsort label-3909
SELECT + 39 DIV 2
----
19

skipif mysql # not compatible
query I rowsort label-3909
SELECT + 39 / 2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT ALL + 4 * COALESCE ( + 80, + 73 DIV + 6 + - + COUNT( * ) ) + 57 + - 70
----
307

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + 4 * COALESCE ( + 80, + 73 / + 6 + - + COUNT ( * ) ) + 57 + - 70
----
307

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT + 78 + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-3911
SELECT + 78 + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-3912
SELECT + - 91 AS col0, 36 + + + COUNT( ALL 85 ) AS col0
----
-91
37

skipif mysql # not compatible
query II rowsort label-3912
SELECT + - 91 AS col0, 36 + + + COUNT ( ALL 85 ) AS col0
----
-91
37

query I rowsort
SELECT + ( + - 4 )
----
-4

query I rowsort
SELECT - 75 * - + 82 * - 94 AS col1
----
-578100

query I rowsort
SELECT - 19 + 54 AS col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT 89 DIV - 41 - 97 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-3916
SELECT 89 / - 41 - 97 AS col1
----
-99

query II rowsort
SELECT DISTINCT + 89 AS col2, 72 * - 70
----
89
-5040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3918
SELECT - ( - 19 ) + + - COUNT( * ) + - 53 + + + 47 + 53 DIV + - SUM( ALL + - 84 ) * + 70 col0
----
12

skipif mysql # not compatible
query I rowsort label-3918
SELECT - ( - 19 ) + + - COUNT ( * ) + - 53 + + + 47 + 53 / + - SUM ( ALL + - 84 ) * + 70 col0
----
12

query I rowsort
SELECT DISTINCT - + 22 * 80 AS col0
----
-1760

onlyif mysql # DIV for integer division: 
query I rowsort label-3920
SELECT DISTINCT - 92 DIV 27
----
-3

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT - 92 / 27
----
-3

query II rowsort
SELECT + 58, + 75 col2
----
58
75

query I rowsort
SELECT - + 53 + - - 10
----
-43

query I rowsort
SELECT + + 14 AS col1
----
14

query I rowsort
SELECT - - 79 + - 41 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT + 72 * 48 + 80 + + 63 * + ( 17 ) * MIN( ALL 11 ) + + MIN( ALL - - 82 ) + - MIN( DISTINCT 61 ) AS col2
----
15338

skipif mysql # not compatible
query I rowsort label-3925
SELECT + 72 * 48 + 80 + + 63 * + ( 17 ) * MIN ( ALL 11 ) + + MIN ( ALL - - 82 ) + - MIN ( DISTINCT 61 ) AS col2
----
15338

query I rowsort
SELECT + 5 - 5 * + - 61
----
310

query II rowsort
SELECT DISTINCT 27 AS col1, - 11
----
27
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3928
SELECT ALL 79 AS col0, 68 * - - CAST( COUNT( * ) AS SIGNED ) * - - 74 / + 20 + - + 69 + NULLIF ( + CASE + + MIN( ALL 72 ) WHEN + COUNT( * ) THEN 66 ELSE NULL END, + 2 / 10 / + 95 * + 66 + + COUNT( DISTINCT - 80 ) ) + - 90 * + + 85 AS col2
----
79
NULL

skipif mysql # not compatible
query II rowsort label-3928
SELECT ALL 79 AS col0, 68 * - - CAST ( COUNT ( * ) AS INTEGER ) * - - 74 / + 20 + - + 69 + NULLIF ( + CASE + + MIN ( ALL 72 ) WHEN + COUNT ( * ) THEN 66 ELSE NULL END, + 2 / 10 / + 95 * + 66 + + COUNT ( DISTINCT - 80 ) ) + - 90 * + + 85 AS col2
----
79
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT - CAST( NULL AS SIGNED ) * - + CAST( - 19 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT - CAST ( NULL AS INTEGER ) * - + CAST ( - 19 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 82 * + - 90
----
-7380

query I rowsort
SELECT + 5 + + 45 + 1 col0
----
51

query II rowsort
SELECT ALL 36 AS col2, 94 AS col1
----
36
94

query I rowsort
SELECT DISTINCT ( + 44 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT + 99 * + COUNT( DISTINCT + 27 ) * 52
----
5148

skipif mysql # not compatible
query I rowsort label-3934
SELECT + 99 * + COUNT ( DISTINCT + 27 ) * 52
----
5148

onlyif mysql # aggregate syntax: 
query II rowsort label-3935
SELECT - NULLIF ( - COUNT( * ), 90 + - 23 ) col2, ( 51 ) + 71
----
1
122

skipif mysql # not compatible
query II rowsort label-3935
SELECT - NULLIF ( - COUNT ( * ), 90 + - 23 ) col2, ( 51 ) + 71
----
1
122

query I rowsort
SELECT - 87 + + 49 col1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3937
SELECT ALL 57 * - 1 DIV + MAX( - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL 57 * - 1 / + MAX ( - 86 )
----
0

query I rowsort
SELECT + 63 + 85
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3939
SELECT + 69 * + CASE + 57 WHEN 35 THEN NULL WHEN 21 / + - 2 * - 95 - - - ( - + 48 ) + - - CAST( NULL AS SIGNED ) * - - ( - - MIN( + ( + + ( CAST( NULL AS SIGNED ) ) ) ) ) THEN 1 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT + 69 * + CASE + 57 WHEN 35 THEN NULL WHEN 21 / + - 2 * - 95 - - - ( - + 48 ) + - - CAST ( NULL AS INTEGER ) * - - ( - - MIN ( + ( + + ( CAST ( NULL AS INTEGER ) ) ) ) ) THEN 1 END AS col2
----
NULL

query I rowsort
SELECT + 28 + - 53
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3941
SELECT - NULLIF ( - - 43, + CAST( - 21 AS SIGNED ) * 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-3941
SELECT - NULLIF ( - - 43, + CAST ( - 21 AS INTEGER ) * 43 )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT ALL 21 * CAST( 57 AS SIGNED ) * + 34
----
40698

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL 21 * CAST ( 57 AS INTEGER ) * + 34
----
40698

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT + 33 + - 40 * + + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-3943
SELECT + 33 + - 40 * + + COUNT ( * )
----
-7

query II rowsort
SELECT 77 AS col2, 84
----
77
84

query I rowsort
SELECT ALL 3 + + 61
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3946
SELECT ALL ( - + 99 ) + - + ( + CAST( - + 24 AS SIGNED ) ) DIV + MIN( DISTINCT + ( - 61 ) ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL ( - + 99 ) + - + ( + CAST ( - + 24 AS INTEGER ) ) / + MIN ( DISTINCT + ( - 61 ) ) AS col0
----
-99

query I rowsort
SELECT + 85 + + - 42 AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3948
SELECT + - 45 AS col2, COUNT( * ) AS col1
----
-45
1

skipif mysql # not compatible
query II rowsort label-3948
SELECT + - 45 AS col2, COUNT ( * ) AS col1
----
-45
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3949
SELECT ALL + - CAST( NULL AS SIGNED ), 79 AS col2
----
NULL
79

skipif mysql # not compatible
query II rowsort label-3949
SELECT ALL + - CAST ( NULL AS INTEGER ), 79 AS col2
----
NULL
79

onlyif mysql # DIV for integer division: 
query II rowsort label-3950
SELECT DISTINCT 45 DIV + + 37 + 10 - + + 59 AS col1, 70 AS col1
----
-48
70

skipif mysql # not compatible
query II rowsort label-3950
SELECT DISTINCT 45 / + + 37 + 10 - + + 59 AS col1, 70 AS col1
----
-48
70

query I rowsort
SELECT - 64 * + 10 AS col0
----
-640

onlyif mysql # aggregate syntax: 
query II rowsort label-3952
SELECT + 41 AS col0, 84 * - COUNT( * ) + + 19 AS col1
----
41
-65

skipif mysql # not compatible
query II rowsort label-3952
SELECT + 41 AS col0, 84 * - COUNT ( * ) + + 19 AS col1
----
41
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3953
SELECT ALL - 56 DIV 62 + - + 59 * + 82 * - 26 * - 23 AS col1, - COUNT( * ) col0
----
-2893124
-1

skipif mysql # not compatible
query II rowsort label-3953
SELECT ALL - 56 / 62 + - + 59 * + 82 * - 26 * - 23 AS col1, - COUNT ( * ) col0
----
-2893124
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3954
SELECT + 87 * - 59 * + 35 * 20 + + + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT + 87 * - 59 * + 35 * 20 + + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - 93 ) AS col1
----
-93

query I rowsort
SELECT ALL + - 86 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-3957
SELECT DISTINCT + COALESCE ( - SUM( - 13 ), - + 21 ) AS col2, - 32 AS col0
----
13
-32

skipif mysql # not compatible
query II rowsort label-3957
SELECT DISTINCT + COALESCE ( - SUM ( - 13 ), - + 21 ) AS col2, - 32 AS col0
----
13
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT - + 68 + - 37 - - NULLIF ( + COUNT( * ), - 29 )
----
-104

skipif mysql # not compatible
query I rowsort label-3958
SELECT - + 68 + - 37 - - NULLIF ( + COUNT ( * ), - 29 )
----
-104

query I rowsort
SELECT ALL 3 * - 98 - - 47
----
-247

query I rowsort
SELECT + COALESCE ( + + 1, - + 55 * 20 + 33 + + 31 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3961
SELECT DISTINCT 53 * - - CASE - 95 WHEN + - 27 * - 3 + + 86 THEN NULL WHEN - + ( + 97 ) THEN NULL ELSE + 92 END * - - 20 + 33 + + COUNT( * ) + COUNT( * ) * - 35 + + 30 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT 53 * - - CASE - 95 WHEN + - 27 * - 3 + + 86 THEN NULL WHEN - + ( + 97 ) THEN NULL ELSE + 92 END * - - 20 + 33 + + COUNT ( * ) + COUNT ( * ) * - 35 + + 30 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL + - MAX( 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL + - MAX ( 91 )
----
-91

query I rowsort
SELECT DISTINCT + ( + 10 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3964
SELECT ALL CAST( + 18 AS SIGNED ) AS col0, - 17 AS col2, + 7
----
18
-17
7

skipif mysql # not compatible
query III rowsort label-3964
SELECT ALL CAST ( + 18 AS INTEGER ) AS col0, - 17 AS col2, + 7
----
18
-17
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3965
SELECT ALL - ( + - 93 ) * - 6 DIV - ( + COUNT( * ) ), CAST( - COALESCE ( COALESCE ( - ( + 82 ), - 9 ), - 96 ) AS SIGNED ) AS col0
----
558
82

skipif mysql # not compatible
query II rowsort label-3965
SELECT ALL - ( + - 93 ) * - 6 / - ( + COUNT ( * ) ), CAST ( - COALESCE ( COALESCE ( - ( + 82 ), - 9 ), - 96 ) AS INTEGER ) AS col0
----
558
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT - 82 * + - CASE NULLIF ( - + MIN( ALL + 7 ), ( - 97 ) ) WHEN + 27 THEN NULL ELSE + 57 + 48 - - 97 + 31 * + - 90 END * ( NULLIF ( + 35, - 69 ) ) AS col2
----
-7427560

skipif mysql # not compatible
query I rowsort label-3966
SELECT - 82 * + - CASE NULLIF ( - + MIN ( ALL + 7 ), ( - 97 ) ) WHEN + 27 THEN NULL ELSE + 57 + 48 - - 97 + 31 * + - 90 END * ( NULLIF ( + 35, - 69 ) ) AS col2
----
-7427560

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT ALL - COALESCE ( + + 29, - 29 + 59, 8 - + 77 ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL - COALESCE ( + + 29, - 29 + 59, 8 - + 77 ) / 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3968
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) DIV - 4 + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-3968
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) / - 4 + - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL + CASE 56 WHEN 50 * + + 93 - - + ( 25 ) THEN NULL ELSE COUNT( * ) END * - 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL + CASE 56 WHEN 50 * + + 93 - - + ( 25 ) THEN NULL ELSE COUNT ( * ) END * - 31 AS col0
----
-31

query I rowsort
SELECT - 46 - + + 42
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT - NULLIF ( 3, + ( + ( 84 ) ) / + 84 + - - COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-3971
SELECT - NULLIF ( 3, + ( + ( 84 ) ) / + 84 + - - COUNT ( * ) )
----
-3

query I rowsort
SELECT DISTINCT + 33 + + + 93 + + 83 AS col2
----
209

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT - CASE + + 51 WHEN - 25 * + 1 THEN COUNT( * ) END AS col1, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3973
SELECT - CASE + + 51 WHEN - 25 * + 1 THEN COUNT ( * ) END AS col1, - COUNT ( * )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3974
SELECT ALL COALESCE ( + 60, ( 72 ) ) + + 24 - - ( 59 ), COUNT( * ) col0
----
143
1

skipif mysql # not compatible
query II rowsort label-3974
SELECT ALL COALESCE ( + 60, ( 72 ) ) + + 24 - - ( 59 ), COUNT ( * ) col0
----
143
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3975
SELECT - MAX( + 74 ) col2, ( - 88 ) - - ( - + COUNT( * ) )
----
-74
-89

skipif mysql # not compatible
query II rowsort label-3975
SELECT - MAX ( + 74 ) col2, ( - 88 ) - - ( - + COUNT ( * ) )
----
-74
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-3976
SELECT DISTINCT - NULLIF ( 12, 18 + + COUNT( * ) - + 4 + + 16 ) + - 62 * + 94 AS col2, + COUNT( * ) - - + COALESCE ( ( - 62 ), - + 23, - NULLIF ( + 28, + 49 ) ) * + 17 AS col1
----
-5840
-1053

skipif mysql # not compatible
query II rowsort label-3976
SELECT DISTINCT - NULLIF ( 12, 18 + + COUNT ( * ) - + 4 + + 16 ) + - 62 * + 94 AS col2, + COUNT ( * ) - - + COALESCE ( ( - 62 ), - + 23, - NULLIF ( + 28, + 49 ) ) * + 17 AS col1
----
-5840
-1053

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT - 92 - + MIN( DISTINCT - + 56 ) * - 91
----
-5188

skipif mysql # not compatible
query I rowsort label-3977
SELECT - 92 - + MIN ( DISTINCT - + 56 ) * - 91
----
-5188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3978
SELECT DISTINCT - 15 + + CAST( NULL AS SIGNED ) + MAX( ALL - 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT - 15 + + CAST ( NULL AS INTEGER ) + MAX ( ALL - 40 )
----
NULL

query II rowsort
SELECT 29 * + 9, - 89 * COALESCE ( + + 69, 6 + - 95 ) * + - 27 + + + 86 - 5 AS col2
----
261
165888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3980
SELECT ALL 68 DIV - + ( COUNT( * ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL 68 / - + ( COUNT ( * ) ) AS col1
----
-68

query I rowsort
SELECT - + 5 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT + COUNT( * ) * 85 + + + 18 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-3982
SELECT + COUNT ( * ) * 85 + + + 18 AS col0
----
103

query II rowsort
SELECT ALL + 27 + + 7 AS col0, 76 AS col0
----
34
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT ALL - COALESCE ( ( - + MIN( DISTINCT - 46 ) ), + - NULLIF ( + 77, + - COUNT( * ) ) ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL - COALESCE ( ( - + MIN ( DISTINCT - 46 ) ), + - NULLIF ( + 77, + - COUNT ( * ) ) ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT DISTINCT CASE - 4 WHEN 43 THEN ( - COUNT( * ) ) ELSE NULL END * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT CASE - 4 WHEN 43 THEN ( - COUNT ( * ) ) ELSE NULL END * + 88
----
NULL

query I rowsort
SELECT - 76 + - 1
----
-77

query I rowsort
SELECT - 64 * - 45
----
2880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3988
SELECT 62 * + + 36 * 8 + + CAST( NULL AS SIGNED ) * 87 - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT 62 * + + 36 * 8 + + CAST ( NULL AS INTEGER ) * 87 - 59 AS col1
----
NULL

query I rowsort
SELECT ALL - + 43 col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3990
SELECT COUNT( * ) * COUNT( * ), + ( - 17 ) AS col1
----
1
-17

skipif mysql # not compatible
query II rowsort label-3990
SELECT COUNT ( * ) * COUNT ( * ), + ( - 17 ) AS col1
----
1
-17

query I rowsort
SELECT + ( 94 ) + - 49 * - + 11 col2
----
633

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT 92 * COUNT( - 83 )
----
92

skipif mysql # not compatible
query I rowsort label-3992
SELECT 92 * COUNT ( - 83 )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3993
SELECT + 40 + COUNT( * ) DIV - 19 col0
----
40

skipif mysql # not compatible
query I rowsort label-3993
SELECT + 40 + COUNT ( * ) / - 19 col0
----
40

query II rowsort
SELECT - 5 * + 0 + - + 22 AS col2, 96 + - COALESCE ( + - 36, - 10 ) AS col2
----
-22
132

query I rowsort
SELECT DISTINCT 47 * - 85 AS col0
----
-3995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3996
SELECT 64 * 20 + + CASE 54 WHEN - COUNT( * ) + + COUNT( * ) * + 37 THEN AVG ( ALL - ( + CAST( NULL AS SIGNED ) ) ) WHEN MIN( DISTINCT - 72 ) THEN - 1 WHEN 57 * - - COUNT( DISTINCT + + 86 ) + - COUNT( * ) + + + 86 THEN + 67 + - - 63 * MAX( ALL - CAST( NULL AS SIGNED ) ) END + + + CASE - 58 WHEN 14 THEN NULL WHEN + + 97 + + - 88 THEN 50 ELSE NULL END + + + 34 * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT 64 * 20 + + CASE 54 WHEN - COUNT ( * ) + + COUNT ( * ) * + 37 THEN AVG ( ALL - ( + CAST ( NULL AS INTEGER ) ) ) WHEN MIN ( DISTINCT - 72 ) THEN - 1 WHEN 57 * - - COUNT ( DISTINCT + + 86 ) + - COUNT ( * ) + + + 86 THEN + 67 + - - 63 * MAX ( ALL - CAST ( NULL AS INTEGER ) ) END + + + CASE - 58 WHEN 14 THEN NULL WHEN + + 97 + + - 88 THEN 50 ELSE NULL END + + + 34 * 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3997
SELECT ALL 82 * + CASE + 59 WHEN + CAST( NULL AS SIGNED ) + 84 THEN + 88 END * - - 89 / + MIN( + 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL 82 * + CASE + 59 WHEN + CAST ( NULL AS INTEGER ) + 84 THEN + 88 END * - - 89 / + MIN ( + 15 )
----
NULL

query I rowsort
SELECT ALL + 64 + 64 + 71
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3999
SELECT CAST( NULL AS SIGNED ) + + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT CAST ( NULL AS INTEGER ) + + 6 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT 65 * CASE + COUNT( * ) WHEN + - 9 THEN NULL WHEN - 63 * - 5 * + - 40 + - 7 THEN - 42 WHEN CAST( NULL AS SIGNED ) - - COUNT( * ) THEN - CAST( NULL AS SIGNED ) + - 25 END + - + 93 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT 65 * CASE + COUNT ( * ) WHEN + - 9 THEN NULL WHEN - 63 * - 5 * + - 40 + - 7 THEN - 42 WHEN CAST ( NULL AS INTEGER ) - - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) + - 25 END + - + 93 + COUNT ( * )
----
NULL

query I rowsort
SELECT 49 + + 91 AS col2
----
140

query II rowsort
SELECT ALL 43 AS col2, 71 * + 81 col1
----
43
5751

query I rowsort
SELECT ALL 46 + 81 AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4004
SELECT ALL ( 15 ) + - COUNT( * ), + COUNT( - 59 ) * CAST( + + COUNT( * ) AS SIGNED ) DIV - MIN( + 59 ) AS col1
----
14
0

skipif mysql # not compatible
query II rowsort label-4004
SELECT ALL ( 15 ) + - COUNT ( * ), + COUNT ( - 59 ) * CAST ( + + COUNT ( * ) AS INTEGER ) / - MIN ( + 59 ) AS col1
----
14
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4005
SELECT 7 AS col2, COUNT( * ) * - CAST( NULL AS SIGNED )
----
7
NULL

skipif mysql # not compatible
query II rowsort label-4005
SELECT 7 AS col2, COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
7
NULL

query I rowsort
SELECT DISTINCT 39 + - 15 col2
----
24

query I rowsort
SELECT DISTINCT - 2 + - 25 AS col0
----
-27

query II rowsort
SELECT - 11 AS col1, - NULLIF ( 53, - 42 )
----
-11
-53

query I rowsort
SELECT 35 + + + 73 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT 38 * COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-4010
SELECT 38 * COUNT ( * )
----
38

query I rowsort
SELECT 45 + - 40 + - 89
----
-84

query I rowsort
SELECT DISTINCT - ( - - 99 ) - + - 94
----
-5

query I rowsort
SELECT DISTINCT - + 62 * - + 86 + + 94 AS col2
----
5426

query I rowsort
SELECT 66 * - - ( + + 10 )
----
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4015
SELECT 97 + NULLIF ( - CAST( NULL AS DECIMAL ), 14 * 45 ) + + 63 + - 87 * COALESCE ( 83, + COUNT( * ) ) + + - CAST( 52 AS SIGNED ) + + - 31 * - 73 + - - 89 - 94 * + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT 97 + NULLIF ( - CAST ( NULL AS REAL ), 14 * 45 ) + + 63 + - 87 * COALESCE ( 83, + COUNT ( * ) ) + + - CAST ( 52 AS INTEGER ) + + - 31 * - 73 + - - 89 - 94 * + - 34
----
NULL

query I rowsort
SELECT DISTINCT - 96 - + - ( - 56 )
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT - COUNT( * ) + + - ( ( - 98 ) )
----
97

skipif mysql # not compatible
query I rowsort label-4017
SELECT - COUNT ( * ) + + - ( ( - 98 ) )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4018
SELECT + COUNT( * ), 44 + - 12 col0
----
1
32

skipif mysql # not compatible
query II rowsort label-4018
SELECT + COUNT ( * ), 44 + - 12 col0
----
1
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4019
SELECT + COUNT( * ) DIV + 31 + 35
----
35

skipif mysql # not compatible
query I rowsort label-4019
SELECT + COUNT ( * ) / + 31 + 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT + COUNT( ALL + 35 ) * + 54
----
54

skipif mysql # not compatible
query I rowsort label-4020
SELECT + COUNT ( ALL + 35 ) * + 54
----
54

query I rowsort
SELECT ALL - + ( - 41 ) AS col0
----
41

query II rowsort
SELECT ALL - + 71, ( - - 48 ) AS col1
----
-71
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4023
SELECT ALL MAX( ALL - - 22 ) + CAST( NULL AS SIGNED ) * + + 27 + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL MAX ( ALL - - 22 ) + CAST ( NULL AS INTEGER ) * + + 27 + - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT + 98 + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT + 98 + - COUNT ( * )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4025
SELECT ( + - COUNT( * ) ) DIV + 4 + - + 83 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4025
SELECT ( + - COUNT ( * ) ) / + 4 + - + 83 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT 33 * - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-4026
SELECT 33 * - COUNT ( * )
----
-33

query I rowsort
SELECT ALL 41 + + 8
----
49

query I rowsort
SELECT 4 * ( - 3 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT ALL CAST( NULL AS SIGNED ) + - + 92 + + COUNT( * ) - 82 + + 40 + + 7 - - COUNT( * ) - + - 51 / + 11 * + 49 + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL CAST ( NULL AS INTEGER ) + - + 92 + + COUNT ( * ) - 82 + + 40 + + 7 - - COUNT ( * ) - + - 51 / + 11 * + 49 + + 64 AS col2
----
NULL

query I rowsort
SELECT ALL 5 + + - 79 AS col2
----
-74

query I rowsort
SELECT ALL + 33 + + 0 + 78
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT + 57 - - 71 - - - 94 + - SUM( DISTINCT + 37 ) * - ( + 61 ) * MIN( DISTINCT + 3 ) * 58 AS col1
----
392752

skipif mysql # not compatible
query I rowsort label-4032
SELECT + 57 - - 71 - - - 94 + - SUM ( DISTINCT + 37 ) * - ( + 61 ) * MIN ( DISTINCT + 3 ) * 58 AS col1
----
392752

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ALL 27 * + COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL 27 * + COUNT ( * ) AS col0
----
27

query I rowsort
SELECT + 33 + + 27
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT MAX( ALL 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT MAX ( ALL 49 ) AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4036
SELECT DISTINCT + 0 - COUNT( * ) * + COALESCE ( 69, - CAST( 69 AS SIGNED ) + - COUNT( * ), - - COUNT( * ) + + 12 + + 57 + + MIN( - 91 ) - + COUNT( * ) * - CAST( - + 18 AS SIGNED ) DIV + 8 * 17 + 81 * + 82 * + + 12 ), - 67 AS col0
----
-69
-67

skipif mysql # not compatible
query II rowsort label-4036
SELECT DISTINCT + 0 - COUNT ( * ) * + COALESCE ( 69, - CAST ( 69 AS INTEGER ) + - COUNT ( * ), - - COUNT ( * ) + + 12 + + 57 + + MIN ( - 91 ) - + COUNT ( * ) * - CAST ( - + 18 AS INTEGER ) / + 8 * 17 + 81 * + 82 * + + 12 ), - 67 AS col0
----
-69
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4037
SELECT DISTINCT 57 DIV + 76 * + 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT 57 / + 76 * + 9 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT + + 86 DIV 24
----
3

skipif mysql # not compatible
query I rowsort label-4038
SELECT + + 86 / 24
----
3

query I rowsort
SELECT - + 81 * 42
----
-3402

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT ALL + 75 DIV + + 7 - + + 67 - + - 21
----
-36

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL + 75 / + + 7 - + + 67 - + - 21
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4041
SELECT + - COUNT( * ) * + 0 AS col2, COUNT( * ) / CASE COUNT( * ) WHEN - 81 * 45 - 15 + NULLIF ( - - 98, - 99 + ( + 79 ) + 5 * + AVG ( + 60 ) * MIN( 44 ) * ( + - 30 ) ) + + 2 + + ( + 61 ) THEN NULL WHEN - - 93 THEN + 97 END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4041
SELECT + - COUNT ( * ) * + 0 AS col2, COUNT ( * ) / CASE COUNT ( * ) WHEN - 81 * 45 - 15 + NULLIF ( - - 98, - 99 + ( + 79 ) + 5 * + AVG ( + 60 ) * MIN ( 44 ) * ( + - 30 ) ) + + 2 + + ( + 61 ) THEN NULL WHEN - - 93 THEN + 97 END
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4042
SELECT - - ( + + COUNT( * ) ) AS col1, - 44 AS col1
----
1
-44

skipif mysql # not compatible
query II rowsort label-4042
SELECT - - ( + + COUNT ( * ) ) AS col1, - 44 AS col1
----
1
-44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4043
SELECT - CASE + 74 WHEN - - 37 + + MIN( DISTINCT 72 ) THEN NULL ELSE + NULLIF ( + ( + ( + COUNT( * ) ) ), CASE - + COUNT( + 97 ) WHEN + CAST( NULL AS DECIMAL ) THEN + 27 + - 48 ELSE NULL END + - 53 ) END * COUNT( * ) + 84 * 36 DIV - 74 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-4043
SELECT - CASE + 74 WHEN - - 37 + + MIN ( DISTINCT 72 ) THEN NULL ELSE + NULLIF ( + ( + ( + COUNT ( * ) ) ), CASE - + COUNT ( + 97 ) WHEN + CAST ( NULL AS REAL ) THEN + 27 + - 48 ELSE NULL END + - 53 ) END * COUNT ( * ) + 84 * 36 / - 74 AS col1
----
-41

query I rowsort
SELECT ALL - 57 * - ( - - 66 ) + + 61
----
3823

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT DISTINCT + 21 * - + NULLIF ( - SUM( ALL - 26 ), + - 16 ) + - ( - MAX( DISTINCT 87 ) ) * - 83 AS col1
----
-7767

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT + 21 * - + NULLIF ( - SUM ( ALL - 26 ), + - 16 ) + - ( - MAX ( DISTINCT 87 ) ) * - 83 AS col1
----
-7767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4046
SELECT ALL + - CAST( NULL AS SIGNED ) * + 43 * + 8 / 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 43 * + 8 / 93 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT + + 78 DIV + 89 + - + ( - 97 ) * + 93 * - - 41 AS col0
----
369861

skipif mysql # not compatible
query I rowsort label-4047
SELECT + + 78 / + 89 + - + ( - 97 ) * + 93 * - - 41 AS col0
----
369861

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT ALL + COUNT( * ) * 70 * 37 + 40 + ( + - 63 )
----
2567

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL + COUNT ( * ) * 70 * 37 + 40 + ( + - 63 )
----
2567

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT - + MAX( ALL - 90 ) + 36
----
126

skipif mysql # not compatible
query I rowsort label-4049
SELECT - + MAX ( ALL - 90 ) + 36
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT 1 DIV 20 + SUM( DISTINCT - - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-4051
SELECT 1 / 20 + SUM ( DISTINCT - - 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT ALL 15 * + + ( + 18 ) * - 55 + - - ( + COUNT( * ) ) + - 37 * - COUNT( * ) + - 44 * + 53
----
-17144

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL 15 * + + ( + 18 ) * - 55 + - - ( + COUNT ( * ) ) + - 37 * - COUNT ( * ) + - 44 * + 53
----
-17144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4053
SELECT DISTINCT CAST( + 94 AS SIGNED ) * - + 43 * + 57
----
-230394

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT CAST ( + 94 AS INTEGER ) * - + 43 * + 57
----
-230394

query I rowsort
SELECT - 99 + 27
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4055
SELECT ALL + 92 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL + 92 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT DISTINCT + CASE + ( + + ( + 87 ) ) WHEN - ( - 98 ) THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + + 42 END * - 7
----
-294

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT + CASE + ( + + ( + 87 ) ) WHEN - ( - 98 ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + + 42 END * - 7
----
-294

query I rowsort
SELECT DISTINCT - 20 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT - 81 * NULLIF ( - 68, - + 92 ) / CASE + 79 WHEN - 33 + 94 THEN + 1 END + + - NULLIF ( 94, + - SUM( ALL + 17 ) * + - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT - 81 * NULLIF ( - 68, - + 92 ) / CASE + 79 WHEN - 33 + 94 THEN + 1 END + + - NULLIF ( 94, + - SUM ( ALL + 17 ) * + - 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT + COUNT( * ) + + 76 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4059
SELECT + COUNT ( * ) + + 76 AS col0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4060
SELECT - 57 * + - COALESCE ( MIN( - 84 ), - 33, + CASE - 19 WHEN COALESCE ( - 52, - 55 ) + 84 * - 36 DIV + 51 * + 1 THEN 70 ELSE - ( + 87 ) DIV 58 * - + 81 * - - 11 DIV - 0 END ) AS col2
----
-4788

skipif mysql # not compatible
query I rowsort label-4060
SELECT - 57 * + - COALESCE ( MIN ( - 84 ), - 33, + CASE - 19 WHEN COALESCE ( - 52, - 55 ) + 84 * - 36 / + 51 * + 1 THEN 70 ELSE - ( + 87 ) / 58 * - + 81 * - - 11 / - 0 END ) AS col2
----
-4788

query I rowsort
SELECT + ( + 78 ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT DISTINCT CAST( - 38 AS SIGNED ) * 24 - + 38
----
-950

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT CAST ( - 38 AS INTEGER ) * 24 - + 38
----
-950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT ALL CAST( - 20 AS SIGNED ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL CAST ( - 20 AS INTEGER ) col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT + COUNT( * ) * + 82 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4064
SELECT + COUNT ( * ) * + 82 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4065
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) - - - COUNT( - 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) - - - COUNT ( - 72 ) AS col2
----
NULL

query I rowsort
SELECT ALL 98 * 43 - + 64
----
4150

onlyif mysql # aggregate syntax: 
query II rowsort label-4067
SELECT + + COUNT( * ) + + 6 + 1 AS col0, 34
----
8
34

skipif mysql # not compatible
query II rowsort label-4067
SELECT + + COUNT ( * ) + + 6 + 1 AS col0, 34
----
8
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4068
SELECT ALL + CASE + - 28 WHEN 64 + - + COUNT( * ) THEN NULL WHEN + 29 THEN NULL ELSE + ( 61 ) DIV + + 4 END AS col2, COUNT( 56 )
----
15
1

skipif mysql # not compatible
query II rowsort label-4068
SELECT ALL + CASE + - 28 WHEN 64 + - + COUNT ( * ) THEN NULL WHEN + 29 THEN NULL ELSE + ( 61 ) / + + 4 END AS col2, COUNT ( 56 )
----
15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT + + ( + + COUNT( DISTINCT - 33 ) ) * + 5
----
5

skipif mysql # not compatible
query I rowsort label-4069
SELECT + + ( + + COUNT ( DISTINCT - 33 ) ) * + 5
----
5

query I rowsort
SELECT DISTINCT 46 * - 38 * 43 * + 60
----
-4509840

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT - + MAX( - 96 ) col0
----
96

skipif mysql # not compatible
query I rowsort label-4071
SELECT - + MAX ( - 96 ) col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT - - COALESCE ( COUNT( * ), - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-4072
SELECT - - COALESCE ( COUNT ( * ), - 99 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT - CAST( NULL AS SIGNED ) / - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT - CAST ( NULL AS INTEGER ) / - 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT + 43 + + 29 + + COUNT( * ) DIV 76 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4074
SELECT + 43 + + 29 + + COUNT ( * ) / 76 AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4075
SELECT DISTINCT - 47 AS col0, - COUNT( * ) AS col2
----
-47
-1

skipif mysql # not compatible
query II rowsort label-4075
SELECT DISTINCT - 47 AS col0, - COUNT ( * ) AS col2
----
-47
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4076
SELECT ALL COUNT( * ) + + + CASE - - 70 WHEN - 50 THEN - SUM( ALL + 98 ) - - 93 WHEN + 18 / - 65 + - 53 THEN NULL END, + 91 AS col1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-4076
SELECT ALL COUNT ( * ) + + + CASE - - 70 WHEN - 50 THEN - SUM ( ALL + 98 ) - - 93 WHEN + 18 / - 65 + - 53 THEN NULL END, + 91 AS col1
----
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL 30 * - COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL 30 * - COUNT ( * ) AS col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4078
SELECT + 70 DIV + 57
----
1

skipif mysql # not compatible
query I rowsort label-4078
SELECT + 70 / + 57
----
1

query I rowsort
SELECT ALL + 64 + + + 19
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT + + ( 27 ) + + COUNT( * ) * + NULLIF ( - - 63, 63 * - - CASE - 40 WHEN - MAX( ALL - + ( + 69 ) ) - + COUNT( * ) THEN NULL ELSE - 85 END / + 16 * + 45 * - + 50 + SUM( - 22 ) + - 10 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4080
SELECT + + ( 27 ) + + COUNT ( * ) * + NULLIF ( - - 63, 63 * - - CASE - 40 WHEN - MAX ( ALL - + ( + 69 ) ) - + COUNT ( * ) THEN NULL ELSE - 85 END / + 16 * + 45 * - + 50 + SUM ( - 22 ) + - 10 ) AS col1
----
90

query I rowsort
SELECT DISTINCT 71 + - 32
----
39

query I rowsort
SELECT ALL 76 + + 59 AS col1
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4083
SELECT + COALESCE ( 7, + COUNT( * ) + + 74 ) * ( + - COUNT( * ) ) * + 65 * - 52 * + + 32 * - COALESCE ( 34, + - 39 * - ( - CAST( 4 AS SIGNED ) ) - 50 )
----
-25742080

skipif mysql # not compatible
query I rowsort label-4083
SELECT + COALESCE ( 7, + COUNT ( * ) + + 74 ) * ( + - COUNT ( * ) ) * + 65 * - 52 * + + 32 * - COALESCE ( 34, + - 39 * - ( - CAST ( 4 AS INTEGER ) ) - 50 )
----
-25742080

query I rowsort
SELECT - - 34 + + + 88 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL + 5 * COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL + 5 * COUNT ( * )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4086
SELECT ALL 43 DIV + 46 DIV - 77 DIV 65 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL 43 / + 46 / - 77 / 65 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4087
SELECT DISTINCT + 57 DIV + + 33 + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT + 57 / + + 33 + + COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4088
SELECT ALL - 2 DIV COUNT( * ) + - 51 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL - 2 / COUNT ( * ) + - 51 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL + COALESCE ( + COUNT( * ), - 29 - 84 ) * + 55
----
55

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + COALESCE ( + COUNT ( * ), - 29 - 84 ) * + 55
----
55

query II rowsort
SELECT ALL - 78 AS col2, 26 AS col1
----
-78
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL - ( 99 ) - + COUNT( * ) * - 58 * - - 80 AS col0
----
4541

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL - ( 99 ) - + COUNT ( * ) * - 58 * - - 80 AS col0
----
4541

query II rowsort
SELECT + 51 AS col1, 68 AS col0
----
51
68

query I rowsort
SELECT ALL - NULLIF ( - ( - 65 ), - - 89 )
----
-65

query II rowsort
SELECT 23 AS col1, + 17
----
23
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4095
SELECT ALL - 83, CAST( NULL AS SIGNED ) - - 83 col1
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-4095
SELECT ALL - 83, CAST ( NULL AS INTEGER ) - - 83 col1
----
-83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT DISTINCT 39 * + MIN( ALL + 87 )
----
3393

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT 39 * + MIN ( ALL + 87 )
----
3393

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL - 44 * + COUNT( 0 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL - 44 * + COUNT ( 0 ) AS col1
----
-44

query I rowsort
SELECT 80 * + 39 AS col1
----
3120

query I rowsort
SELECT DISTINCT - 26 * 38 col2
----
-988

query I rowsort
SELECT 44 + - 63 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - 1 - - - 9 * COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-4101
SELECT - 1 - - - 9 * COUNT ( * )
----
-10

query I rowsort
SELECT + 41 * - + 50
----
-2050

query I rowsort
SELECT ALL - 93 + 59 AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT ALL - 35 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - 35 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4105
SELECT DISTINCT 6 col0, + 16 + COUNT( * ) - + COALESCE ( + + CASE + - 17 WHEN + 20 THEN 4 DIV - + 61 + - - 16 WHEN - 46 THEN NULL END, - COUNT( * ), + + 92, - ( - - 26 ) * - ( - - NULLIF ( + 64, - 23 * + 17 ) ) ) AS col0
----
6
18

skipif mysql # not compatible
query II rowsort label-4105
SELECT DISTINCT 6 col0, + 16 + COUNT ( * ) - + COALESCE ( + + CASE + - 17 WHEN + 20 THEN 4 / - + 61 + - - 16 WHEN - 46 THEN NULL END, - COUNT ( * ), + + 92, - ( - - 26 ) * - ( - - NULLIF ( + 64, - 23 * + 17 ) ) ) AS col0
----
6
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL 60 + 1 - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL 60 + 1 - - COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT - ( + COUNT( * ) ) - 93
----
-94

skipif mysql # not compatible
query I rowsort label-4107
SELECT - ( + COUNT ( * ) ) - 93
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4108
SELECT - 35, CASE - ( + 76 ) WHEN + 0 THEN NULL ELSE - CAST( NULL AS SIGNED ) END + - + 54 + 51 AS col2
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-4108
SELECT - 35, CASE - ( + 76 ) WHEN + 0 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END + - + 54 + 51 AS col2
----
-35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT MIN( ALL - 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4109
SELECT MIN ( ALL - 62 ) AS col0
----
-62

query I rowsort
SELECT 82 * - 20 * + + 56
----
-91840

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT ALL MAX( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL MAX ( + 42 )
----
42

query II rowsort
SELECT 58 AS col0, + 5
----
58
5

query I rowsort
SELECT ALL + 97 + + 26 * 56
----
1553

query I rowsort
SELECT DISTINCT 44 + 69 * - 75 + - ( + + 93 ) + - + 25 AS col1
----
-5249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4115
SELECT ( CAST( NULL AS SIGNED ) ) - + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT ( CAST ( NULL AS INTEGER ) ) - + - 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4116
SELECT 33 * - ( 95 ) * + 25 * + CAST( - MIN( DISTINCT - 52 ) AS SIGNED ) * + 94 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT 33 * - ( 95 ) * + 25 * + CAST ( - MIN ( DISTINCT - 52 ) AS INTEGER ) * + 94 + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4117
SELECT DISTINCT - 29 DIV 22, 43 col1
----
-1
43

skipif mysql # not compatible
query II rowsort label-4117
SELECT DISTINCT - 29 / 22, 43 col1
----
-1
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL - SUM( + 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL - SUM ( + 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ( 30 ) + + 52 * 18 + + - SUM( + 45 )
----
921

skipif mysql # not compatible
query I rowsort label-4119
SELECT ( 30 ) + + 52 * 18 + + - SUM ( + 45 )
----
921

query I rowsort
SELECT 23 * + 55
----
1265

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4121
SELECT COUNT( * ) + - 14 AS col0, 86 DIV - + 97 AS col2
----
-13
0

skipif mysql # not compatible
query II rowsort label-4121
SELECT COUNT ( * ) + - 14 AS col0, 86 / - + 97 AS col2
----
-13
0

query I rowsort
SELECT DISTINCT 69 * + 64 col2
----
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT - 50 * - COUNT( * ) + - 82 + 32 + - - 92 + - - 19
----
111

skipif mysql # not compatible
query I rowsort label-4123
SELECT - 50 * - COUNT ( * ) + - 82 + 32 + - - 92 + - - 19
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4124
SELECT NULLIF ( + CASE - 92 WHEN + - CAST( NULL AS DECIMAL ) * - - 96 * + CAST( NULL AS SIGNED ) - 19 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - COALESCE ( - 89, + + 55 ) * - + 6 - + COALESCE ( + 0, + 69 ) END, SUM( DISTINCT - ( 75 ) ) + 88 * - 89 ) + + - 10 - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT NULLIF ( + CASE - 92 WHEN + - CAST ( NULL AS REAL ) * - - 96 * + CAST ( NULL AS INTEGER ) - 19 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - COALESCE ( - 89, + + 55 ) * - + 6 - + COALESCE ( + 0, + 69 ) END, SUM ( DISTINCT - ( 75 ) ) + 88 * - 89 ) + + - 10 - 10
----
NULL

query II rowsort
SELECT 58 * - - 40 AS col0, - 84
----
2320
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT 64 + - MIN( - 56 ) AS col0
----
120

skipif mysql # not compatible
query I rowsort label-4126
SELECT 64 + - MIN ( - 56 ) AS col0
----
120

query I rowsort
SELECT ALL 9 * - + 90
----
-810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4128
SELECT ALL - COALESCE ( COUNT( * ), + + 27 * + 65 * - 82 - COUNT( * ) + - + 37 ) AS col1, + 36 * + 54 + - CAST( NULL AS SIGNED ) col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4128
SELECT ALL - COALESCE ( COUNT ( * ), + + 27 * + 65 * - 82 - COUNT ( * ) + - + 37 ) AS col1, + 36 * + 54 + - CAST ( NULL AS INTEGER ) col0
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT 89 * + + 49 * + - CASE - CAST( NULL AS SIGNED ) WHEN - 45 / 7 THEN NULL WHEN + - 8 + + CAST( NULL AS SIGNED ) THEN 96 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT 89 * + + 49 * + - CASE - CAST ( NULL AS INTEGER ) WHEN - 45 / 7 THEN NULL WHEN + - 8 + + CAST ( NULL AS INTEGER ) THEN 96 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4130
SELECT 92 + + 68 + - 96 * - - COUNT( * ) * + CAST( - CASE - 18 WHEN - + 44 THEN - 7 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT 92 + + 68 + - 96 * - - COUNT ( * ) * + CAST ( - CASE - 18 WHEN - + 44 THEN - 7 END AS INTEGER )
----
NULL

query I rowsort
SELECT + - 10 col1
----
-10

query I rowsort
SELECT ALL - + 42 col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL - COUNT( * ) + - - 35 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL - COUNT ( * ) + - - 35 AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4134
SELECT - 16 * + CASE COUNT( DISTINCT + 35 ) WHEN - - 4 THEN - 29 END / + COUNT( * ) AS col0, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4134
SELECT - 16 * + CASE COUNT ( DISTINCT + 35 ) WHEN - - 4 THEN - 29 END / + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4135
SELECT + COUNT( * ) DIV 41 * + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4135
SELECT + COUNT ( * ) / 41 * + 0 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4136
SELECT DISTINCT - 97 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT - 97 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL - + COALESCE ( + - 83, - 57 * + 98 ) + + - ( - SUM( - + 57 ) ) + + - 32 + 25 * + 55 + - COUNT( * ) * - - COALESCE ( - - 56, + COUNT( * ), COUNT( * ), - + 98 + CASE + 7 WHEN - 27 + - - COUNT( ALL - 63 ) THEN NULL ELSE - + 29 END * - 98 * + + COUNT( * ) ) AS col1
----
1313

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - + COALESCE ( + - 83, - 57 * + 98 ) + + - ( - SUM ( - + 57 ) ) + + - 32 + 25 * + 55 + - COUNT ( * ) * - - COALESCE ( - - 56, + COUNT ( * ), COUNT ( * ), - + 98 + CASE + 7 WHEN - 27 + - - COUNT ( ALL - 63 ) THEN NULL ELSE - + 29 END * - 98 * + + COUNT ( * ) ) AS col1
----
1313

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT + MAX( DISTINCT + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-4138
SELECT + MAX ( DISTINCT + 31 )
----
31

query I rowsort
SELECT DISTINCT + 94 + + 93
----
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4140
SELECT DISTINCT - 36 + 75 DIV 82 + - 62 * + MAX( DISTINCT - 32 ) + 62 * + + 70 * - + NULLIF ( - 46, 21 + + + 52 * CAST( NULL AS SIGNED ) DIV - - SUM( ALL + 50 ) ) AS col2
----
201588

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT - 36 + 75 / 82 + - 62 * + MAX ( DISTINCT - 32 ) + 62 * + + 70 * - + NULLIF ( - 46, 21 + + + 52 * CAST ( NULL AS INTEGER ) / - - SUM ( ALL + 50 ) ) AS col2
----
201588

query I rowsort
SELECT ( 38 ) AS col1
----
38

query I rowsort
SELECT ALL - + 35 + - + 75 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT 15 * MIN( - - 69 ) AS col0
----
1035

skipif mysql # not compatible
query I rowsort label-4143
SELECT 15 * MIN ( - - 69 ) AS col0
----
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT COUNT( * ) + + 8 col1
----
9

skipif mysql # not compatible
query I rowsort label-4144
SELECT COUNT ( * ) + + 8 col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT - COUNT( * ) - - 25
----
24

skipif mysql # not compatible
query I rowsort label-4145
SELECT - COUNT ( * ) - - 25
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4146
SELECT + CAST( NULL AS SIGNED ) + - + 6 AS col1, 3 - - + CAST( NULL AS SIGNED ) / NULLIF ( - 8, - 37 + - 87 ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4146
SELECT + CAST ( NULL AS INTEGER ) + - + 6 AS col1, 3 - - + CAST ( NULL AS INTEGER ) / NULLIF ( - 8, - 37 + - 87 ) AS col2
----
NULL
NULL

query I rowsort
SELECT 35 - 65 + + - 66 + + 14 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL 94 - + 48 - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL 94 - + 48 - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT - COUNT( DISTINCT 33 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4149
SELECT - COUNT ( DISTINCT 33 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT 15 + MAX( 17 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4150
SELECT 15 + MAX ( 17 ) AS col1
----
32

query I rowsort
SELECT ( + NULLIF ( 44, + 96 ) )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4152
SELECT DISTINCT COALESCE ( - 68, 24 * - 27 * - 29 * - CAST( NULL AS SIGNED ) - - 7 )
----
-68

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT COALESCE ( - 68, 24 * - 27 * - 29 * - CAST ( NULL AS INTEGER ) - - 7 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL + 33 - - + COUNT( * ) * + - NULLIF ( - 47, + - 31 )
----
80

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL + 33 - - + COUNT ( * ) * + - NULLIF ( - 47, + - 31 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4154
SELECT + 70 + CASE 94 WHEN + MAX( ALL ( CAST( + - ( 5 ) AS SIGNED ) ) ) * + - 30 - + 17 THEN NULL WHEN + ( + 34 ) THEN NULL ELSE + - 83 END
----
-13

skipif mysql # not compatible
query I rowsort label-4154
SELECT + 70 + CASE 94 WHEN + MAX ( ALL ( CAST ( + - ( 5 ) AS INTEGER ) ) ) * + - 30 - + 17 THEN NULL WHEN + ( + 34 ) THEN NULL ELSE + - 83 END
----
-13

query I rowsort
SELECT - 82 * - 33 * 52 AS col1
----
140712

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT DISTINCT 93 * + COUNT( * ) * 77 AS col1
----
7161

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT 93 * + COUNT ( * ) * 77 AS col1
----
7161

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT + 84 * 34 + - 30 * - 59 + COUNT( * ) + - 36 col0
----
4591

skipif mysql # not compatible
query I rowsort label-4157
SELECT + 84 * 34 + - 30 * - 59 + COUNT ( * ) + - 36 col0
----
4591

query I rowsort
SELECT DISTINCT + 0 col0
----
0

query I rowsort
SELECT ALL 28 * 57
----
1596

query I rowsort
SELECT CASE - - NULLIF ( 64, - 5 ) WHEN + 16 THEN 9 / - 0 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT + MIN( + + 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4161
SELECT + MIN ( + + 98 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT + COALESCE ( 8, - 98 ) AS col2, - COUNT( * ) AS col2
----
8
-1

skipif mysql # not compatible
query II rowsort label-4162
SELECT + COALESCE ( 8, - 98 ) AS col2, - COUNT ( * ) AS col2
----
8
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4163
SELECT ALL + 9 AS col1, SUM( + 6 ) * + 41 AS col2
----
9
246

skipif mysql # not compatible
query II rowsort label-4163
SELECT ALL + 9 AS col1, SUM ( + 6 ) * + 41 AS col2
----
9
246

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT + 51 DIV - - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4164
SELECT + 51 / - - 91 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4165
SELECT DISTINCT 80 DIV + MIN( ALL + 23 )
----
3

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT 80 / + MIN ( ALL + 23 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT COUNT( * ) * + ( - 73 ) - 95 + + COUNT( * )
----
-167

skipif mysql # not compatible
query I rowsort label-4166
SELECT COUNT ( * ) * + ( - 73 ) - 95 + + COUNT ( * )
----
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-4167
SELECT + 15 AS col2, 94 + - + COUNT( DISTINCT - 88 )
----
15
93

skipif mysql # not compatible
query II rowsort label-4167
SELECT + 15 AS col2, 94 + - + COUNT ( DISTINCT - 88 )
----
15
93

query I rowsort
SELECT + + 79 * - - 57 - + + 25 AS col0
----
4478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4169
SELECT ALL - + 78 * ( 63 ) + - CAST( NULL AS SIGNED ) - - COUNT( * ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL - + 78 * ( 63 ) + - CAST ( NULL AS INTEGER ) - - COUNT ( * ) * - 48
----
NULL

query II rowsort
SELECT - 90 AS col2, 60 * 25 AS col1
----
-90
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT DISTINCT - COUNT( * ) * 82 + + 94 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT - COUNT ( * ) * 82 + + 94 AS col0
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4172
SELECT ALL 19 * - 10 - - + AVG ( + + 61 ) * + - 30 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL 19 * - 10 - - + AVG ( + + 61 ) * + - 30 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + - 81 col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4174
SELECT COUNT( * ), + 48 DIV 4 AS col0
----
1
12

skipif mysql # not compatible
query II rowsort label-4174
SELECT COUNT ( * ), + 48 / 4 AS col0
----
1
12

query I rowsort
SELECT ALL + - 95 + + 42 * - 74 - + 75 AS col1
----
-3278

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT CASE + 67 WHEN + 9 THEN + - 65 WHEN - - 82 * 26 * 51 THEN NULL ELSE NULLIF ( - 73, - 71 * + 38 * - 60 + - COUNT( * ) + + 56 + - 37 + + + COUNT( * ) - - - 22 ) * + 80 + - 95 END
----
-5935

skipif mysql # not compatible
query I rowsort label-4176
SELECT CASE + 67 WHEN + 9 THEN + - 65 WHEN - - 82 * 26 * 51 THEN NULL ELSE NULLIF ( - 73, - 71 * + 38 * - 60 + - COUNT ( * ) + + 56 + - 37 + + + COUNT ( * ) - - - 22 ) * + 80 + - 95 END
----
-5935

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4177
SELECT - - ( - 58 ) * 57 + - + CAST( NULL AS DECIMAL ) / - + 47 * - - 38 AS col2, - 29 + + COUNT( * ) AS col0
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-4177
SELECT - - ( - 58 ) * 57 + - + CAST ( NULL AS REAL ) / - + 47 * - - 38 AS col2, - 29 + + COUNT ( * ) AS col0
----
NULL
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT - + 77 + - + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-4178
SELECT - + 77 + - + COUNT ( * )
----
-78

query I rowsort
SELECT - + 72 - 41 + + - 55 AS col0
----
-168

query I rowsort
SELECT DISTINCT + NULLIF ( + 10, - - ( 92 ) * COALESCE ( - + 11, - ( - 2 ) + - 54 ) * 38 )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT ALL + 91 * 95 * - 36 AS col1, 88 + - 58 * + MAX( - 95 ) * + NULLIF ( ( 62 ), - 62 + - COALESCE ( + + 18, - + 86 + - 30 * COUNT( 25 ), + MAX( + 5 ) * - 4 + - 22 ) ) AS col0
----
-311220
341708

skipif mysql # not compatible
query II rowsort label-4181
SELECT ALL + 91 * 95 * - 36 AS col1, 88 + - 58 * + MAX ( - 95 ) * + NULLIF ( ( 62 ), - 62 + - COALESCE ( + + 18, - + 86 + - 30 * COUNT ( 25 ), + MAX ( + 5 ) * - 4 + - 22 ) ) AS col0
----
-311220
341708

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT - 52 * + - MIN( DISTINCT + - 90 ) * - - 75 * - 34 AS col2
----
11934000

skipif mysql # not compatible
query I rowsort label-4182
SELECT - 52 * + - MIN ( DISTINCT + - 90 ) * - - 75 * - 34 AS col2
----
11934000

query II rowsort
SELECT 56 col2, - 69
----
56
-69

query I rowsort
SELECT DISTINCT + 58 * - 37 + - 30
----
-2176

query I rowsort
SELECT DISTINCT + 47 * 64
----
3008

query II rowsort
SELECT ALL 42 AS col2, + 20 + - 16 AS col1
----
42
4

query I rowsort
SELECT ALL + + 16 * - - 22
----
352

query I rowsort
SELECT - + 25 * 37 AS col1
----
-925

query I rowsort
SELECT - 82 - NULLIF ( + ( 60 ), - + 50 * + + 30 ) AS col1
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4190
SELECT ALL - CASE - + ( 27 ) WHEN 93 + ( + + COUNT( * ) ) THEN - 66 ELSE - 90 DIV + 63 END * 97 + 93
----
190

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL - CASE - + ( 27 ) WHEN 93 + ( + + COUNT ( * ) ) THEN - 66 ELSE - 90 / + 63 END * 97 + 93
----
190

onlyif mysql # DIV for integer division: 
query II rowsort label-4191
SELECT + NULLIF ( 20, 12 ) DIV - 66, - 68 + + 21 + - CASE 87 WHEN - + ( - 87 ) THEN NULL ELSE + 99 END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4191
SELECT + NULLIF ( 20, 12 ) / - 66, - 68 + + 21 + - CASE 87 WHEN - + ( - 87 ) THEN NULL ELSE + 99 END AS col0
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4192
SELECT ALL CAST( - 79 AS SIGNED ) AS col0, 47 AS col1
----
-79
47

skipif mysql # not compatible
query II rowsort label-4192
SELECT ALL CAST ( - 79 AS INTEGER ) AS col0, 47 AS col1
----
-79
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT - COUNT( * ) * - 90 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-4193
SELECT - COUNT ( * ) * - 90 AS col0
----
90

query I rowsort
SELECT DISTINCT ( ( - - NULLIF ( 44, 32 * 84 + + ( ( 13 ) ) ) ) ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4195
SELECT ALL + COALESCE ( - 77, + COUNT( * ) * - 79 ) AS col1, + 22
----
-77
22

skipif mysql # not compatible
query II rowsort label-4195
SELECT ALL + COALESCE ( - 77, + COUNT ( * ) * - 79 ) AS col1, + 22
----
-77
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT + COALESCE ( 21, + NULLIF ( - CAST( NULL AS SIGNED ), - + 95 ) )
----
21

skipif mysql # not compatible
query I rowsort label-4196
SELECT + COALESCE ( 21, + NULLIF ( - CAST ( NULL AS INTEGER ), - + 95 ) )
----
21

query I rowsort
SELECT + ( - 55 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT ALL 85 DIV - 6 + + 88
----
74

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL 85 / - 6 + + 88
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + ( 78 ) - + COALESCE ( - CASE 78 WHEN 49 THEN NULL WHEN - - 32 + + 20 THEN - - 94 * 52 + - 31 * 99 WHEN - 69 THEN - 2 ELSE - - 45 END, - - COUNT( ALL + + 49 ), - - 91 * - + 4 * - ( - - COALESCE ( - 37, - + MAX( + 74 ) ) ) * + COUNT( * ) * + + 70 * + + 55 - + 72 + - 8 - - 8 ) * 75
----
3453

skipif mysql # not compatible
query I rowsort label-4199
SELECT + ( 78 ) - + COALESCE ( - CASE 78 WHEN 49 THEN NULL WHEN - - 32 + + 20 THEN - - 94 * 52 + - 31 * 99 WHEN - 69 THEN - 2 ELSE - - 45 END, - - COUNT ( ALL + + 49 ), - - 91 * - + 4 * - ( - - COALESCE ( - 37, - + MAX ( + 74 ) ) ) * + COUNT ( * ) * + + 70 * + + 55 - + 72 + - 8 - - 8 ) * 75
----
3453

query II rowsort
SELECT + ( 82 ) AS col0, + 82 AS col1
----
82
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT ALL 91 DIV - 59 + 69
----
68

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL 91 / - 59 + 69
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT + 27 - + + 61 + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-4202
SELECT + 27 - + + 61 + COUNT ( * )
----
-33

query I rowsort
SELECT DISTINCT + 22 * + - 11
----
-242

query I rowsort
SELECT ALL + + ( - 58 ) * + 89 col2
----
-5162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4205
SELECT ALL - 36 * - SUM( DISTINCT COALESCE ( + + 0, 3 * - - 61 + - - 49 + 76 ) ) * + 4 + + 31 + + - COUNT( * ) DIV + - SUM( - 60 ) + + CASE + 59 WHEN + - 18 THEN COUNT( * ) WHEN - 59 DIV + NULLIF ( COUNT( * ), - 90 ) THEN NULL WHEN + COUNT( * ) THEN + - 85 ELSE ( + COUNT( * ) ) END * 63 * COUNT( * ) DIV 97 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - 36 * - SUM ( DISTINCT COALESCE ( + + 0, 3 * - - 61 + - - 49 + 76 ) ) * + 4 + + 31 + + - COUNT ( * ) / + - SUM ( - 60 ) + + CASE + 59 WHEN + - 18 THEN COUNT ( * ) WHEN - 59 / + NULLIF ( COUNT ( * ), - 90 ) THEN NULL WHEN + COUNT ( * ) THEN + - 85 ELSE ( + COUNT ( * ) ) END * 63 * COUNT ( * ) / 97 AS col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT + + 31 * 30 + 74 / - + 78 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT + + 31 * 30 + 74 / - + 78 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT - CASE 61 WHEN - 10 * - + 22 + + + MIN( DISTINCT 92 ) THEN - 1 + 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT - CASE 61 WHEN - 10 * - + 22 + + + MIN ( DISTINCT 92 ) THEN - 1 + 45 ELSE NULL END
----
NULL

query I rowsort
SELECT + ( + + 96 ) AS col0
----
96

query I rowsort
SELECT + - 96 AS col0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT ALL + 86 DIV - 55
----
-1

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL + 86 / - 55
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT - SUM( ALL + 94 ) * - 19
----
1786

skipif mysql # not compatible
query I rowsort label-4211
SELECT - SUM ( ALL + 94 ) * - 19
----
1786

query I rowsort
SELECT DISTINCT + 78 * 20 - + - 14
----
1574

query I rowsort
SELECT ALL + - 53 AS col1
----
-53

query I rowsort
SELECT ALL + - 52 * 14 * 51 - + - 21 AS col1
----
-37107

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT DISTINCT + ( + 2 ) * - CASE - + MIN( DISTINCT + 73 ) WHEN - 68 + + - MAX( + 41 ) THEN - 43 WHEN + 75 - MIN( DISTINCT - 57 ) - + - 72 THEN + + 51 END * COALESCE ( + 31, + 8 ) + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT + ( + 2 ) * - CASE - + MIN ( DISTINCT + 73 ) WHEN - 68 + + - MAX ( + 41 ) THEN - 43 WHEN + 75 - MIN ( DISTINCT - 57 ) - + - 72 THEN + + 51 END * COALESCE ( + 31, + 8 ) + + 88
----
NULL

query I rowsort
SELECT DISTINCT - 93 - + - 98 + + 12
----
17

query I rowsort
SELECT ALL - ( ( - 59 ) )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT CAST( 64 AS SIGNED ) + 77 col0
----
141

skipif mysql # not compatible
query I rowsort label-4218
SELECT CAST ( 64 AS INTEGER ) + 77 col0
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4219
SELECT DISTINCT COUNT( * ) * 29 DIV 29 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT COUNT ( * ) * 29 / 29 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT DISTINCT 38 * COUNT( * ) * + COALESCE ( 76, + 51 ) * + MIN( ALL 41 ) * + + 74
----
8762192

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT 38 * COUNT ( * ) * + COALESCE ( 76, + 51 ) * + MIN ( ALL 41 ) * + + 74
----
8762192

query I rowsort
SELECT ( 34 ) * - 48 + ( - 8 ) + + 48 AS col0
----
-1592

query I rowsort
SELECT 32 - - 80
----
112

query I rowsort
SELECT 39 + + ( 34 ) col2
----
73

query I rowsort
SELECT 74 + - 65 + 89 col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT ALL + 16 DIV - 26 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + 16 / - 26 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4226
SELECT ALL ( CAST( NULL AS DECIMAL ) ) + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL ( CAST ( NULL AS REAL ) ) + + 82
----
NULL

query I rowsort
SELECT DISTINCT + 98 * 10
----
980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT DISTINCT CAST( - 98 AS SIGNED ) + + 60 - + 13 + NULLIF ( 86, - + 46 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT CAST ( - 98 AS INTEGER ) + + 60 - + 13 + NULLIF ( 86, - + 46 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT ALL + SUM( - + 37 ) + + 65 - + ( + 21 ) * + + 88 AS col2
----
-1820

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL + SUM ( - + 37 ) + + 65 - + ( + 21 ) * + + 88 AS col2
----
-1820

query I rowsort
SELECT ALL + 7 + + 71 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT + 98 + 25 * - COUNT( * ) * - + 59 AS col2
----
1573

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT + 98 + 25 * - COUNT ( * ) * - + 59 AS col2
----
1573

query I rowsort
SELECT DISTINCT - 35 * 58 * 50
----
-101500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT ALL - 81 + 72 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL - 81 + 72 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4234
SELECT 63 * - 47 * CAST( NULL AS SIGNED ) * 10 * - ( + - ( 67 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT 63 * - 47 * CAST ( NULL AS INTEGER ) * 10 * - ( + - ( 67 ) ) AS col2
----
NULL

query I rowsort
SELECT 73 * - 44
----
-3212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT ALL + 8 + ( - - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL + 8 + ( - - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4237
SELECT ALL - 81 + 40 * - - MAX( CAST( NULL AS SIGNED ) ) + - 33 * + + 93 + + - NULLIF ( + 95, + 17 * + + 4 / 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL - 81 + 40 * - - MAX ( CAST ( NULL AS INTEGER ) ) + - 33 * + + 93 + + - NULLIF ( + 95, + 17 * + + 4 / 70 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT DISTINCT - 63 + + CASE - 32 WHEN - + 52 * + + 28 THEN CAST( NULL AS SIGNED ) + ( - 54 ) ELSE NULL END + CAST( - + AVG ( DISTINCT + - COALESCE ( 5, - 0, + + 49 ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT - 63 + + CASE - 32 WHEN - + 52 * + + 28 THEN CAST ( NULL AS INTEGER ) + ( - 54 ) ELSE NULL END + CAST ( - + AVG ( DISTINCT + - COALESCE ( 5, - 0, + + 49 ) ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 53 )
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4240
SELECT CASE + 8 WHEN + 60 THEN NULL ELSE - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT CASE + 8 WHEN + 60 THEN NULL ELSE - CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4241
SELECT ALL - 65 - CAST( 40 AS SIGNED ) AS col2, + COUNT( DISTINCT - 43 ) + - 67
----
-105
-66

skipif mysql # not compatible
query II rowsort label-4241
SELECT ALL - 65 - CAST ( 40 AS INTEGER ) AS col2, + COUNT ( DISTINCT - 43 ) + - 67
----
-105
-66

query I rowsort
SELECT + ( + 26 ) * 90 + - 10 + - 1 - + + 60 col2
----
2269

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL + - 91 * 45 * + COUNT( * ) AS col0
----
-4095

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL + - 91 * 45 * + COUNT ( * ) AS col0
----
-4095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4244
SELECT ( - COUNT( * ) ) DIV + 17 - - 29 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4244
SELECT ( - COUNT ( * ) ) / + 17 - - 29 AS col0
----
29

query I rowsort
SELECT DISTINCT - ( 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ALL + 24 * + 57 + - COUNT( * ) + 95
----
1462

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + 24 * + 57 + - COUNT ( * ) + 95
----
1462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT 44 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT 44 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL + ( + 70 ) * - ( + 29 ) + + 63 * + 80 * - COUNT( * ) AS col0
----
-7070

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL + ( + 70 ) * - ( + 29 ) + + 63 * + 80 * - COUNT ( * ) AS col0
----
-7070

query II rowsort
SELECT ALL - 3 AS col1, + 86 * - 79
----
-3
-6794

query I rowsort
SELECT ALL - + ( 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - COUNT( * ) * - - 91 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4251
SELECT - COUNT ( * ) * - - 91 AS col2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4252
SELECT CASE 69 WHEN 19 / - 2 + + - 79 - + COUNT( * ) + + 79 * - + 14 THEN + CAST( NULL AS SIGNED ) WHEN 80 * + 76 THEN NULL END - + 7 * + + 34 + + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT CASE 69 WHEN 19 / - 2 + + - 79 - + COUNT ( * ) + + 79 * - + 14 THEN + CAST ( NULL AS INTEGER ) WHEN 80 * + 76 THEN NULL END - + 7 * + + 34 + + + 84
----
NULL

query I rowsort
SELECT DISTINCT - ( + 26 )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT + 61 * CAST( ( - 28 ) AS SIGNED )
----
-1708

skipif mysql # not compatible
query I rowsort label-4254
SELECT + 61 * CAST ( ( - 28 ) AS INTEGER )
----
-1708

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT + COUNT( * ) * - + 11
----
-11

skipif mysql # not compatible
query I rowsort label-4255
SELECT + COUNT ( * ) * - + 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - - 80 * COUNT( DISTINCT - 92 ) * 37 + 5 AS col0
----
2965

skipif mysql # not compatible
query I rowsort label-4256
SELECT - - 80 * COUNT ( DISTINCT - 92 ) * 37 + 5 AS col0
----
2965

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ( 48 ) + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4257
SELECT ( 48 ) + COUNT ( * ) AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4258
SELECT 48 DIV 1
----
48

skipif mysql # not compatible
query I rowsort label-4258
SELECT 48 / 1
----
48

query I rowsort
SELECT ALL 17 + + 0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4260
SELECT ALL ( AVG ( + CAST( NULL AS SIGNED ) ) ) + + NULLIF ( + + MAX( + + CAST( + 48 AS DECIMAL ) ), + - COALESCE ( + + 51, + - MAX( + 45 ), - - ( - 57 ) * 69 * 88 + - MIN( ALL CASE CAST( - 41 AS SIGNED ) WHEN 22 + + 73 * - 36 / 77 THEN + - 99 END ) * - + NULLIF ( - 98, 36 * + 15 ) + - - 53 ) / - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL ( AVG ( + CAST ( NULL AS INTEGER ) ) ) + + NULLIF ( + + MAX ( + + CAST ( + 48 AS REAL ) ), + - COALESCE ( + + 51, + - MAX ( + 45 ), - - ( - 57 ) * 69 * 88 + - MIN ( ALL CASE CAST ( - 41 AS INTEGER ) WHEN 22 + + 73 * - 36 / 77 THEN + - 99 END ) * - + NULLIF ( - 98, 36 * + 15 ) + - - 53 ) / - 9 )
----
NULL

query I rowsort
SELECT ALL - 57 + + 48 * 10 * - 44 + + - 64
----
-21241

query I rowsort
SELECT ALL 46 * 8
----
368

query I rowsort
SELECT 83 * - 86 col1
----
-7138

query I rowsort
SELECT ALL 63 + + 70 + + - 11 + 84 AS col1
----
206

onlyif mysql # aggregate syntax: 
query II rowsort label-4265
SELECT ( - + MIN( DISTINCT 55 ) ) - + 16, + 83 col1
----
-71
83

skipif mysql # not compatible
query II rowsort label-4265
SELECT ( - + MIN ( DISTINCT 55 ) ) - + 16, + 83 col1
----
-71
83

query II rowsort
SELECT 10, - ( + COALESCE ( 10, + 54 ) ) AS col1
----
10
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-4267
SELECT ALL 39 + 84 - 87 + + 92 + - - 89 * 33 * + + 5 AS col1, NULLIF ( + MIN( DISTINCT + + 22 ), - 27 ) AS col2
----
14813
22

skipif mysql # not compatible
query II rowsort label-4267
SELECT ALL 39 + 84 - 87 + + 92 + - - 89 * 33 * + + 5 AS col1, NULLIF ( + MIN ( DISTINCT + + 22 ), - 27 ) AS col2
----
14813
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT MIN( 22 ) + + MIN( 8 )
----
30

skipif mysql # not compatible
query I rowsort label-4268
SELECT MIN ( 22 ) + + MIN ( 8 )
----
30

query II rowsort
SELECT 15, 71 AS col2
----
15
71

onlyif mysql # DIV for integer division: 
query II rowsort label-4270
SELECT DISTINCT - 67 DIV 44 AS col1, + NULLIF ( + + 27, - 23 + - 22 ) + - 56 AS col1
----
-1
-29

skipif mysql # not compatible
query II rowsort label-4270
SELECT DISTINCT - 67 / 44 AS col1, + NULLIF ( + + 27, - 23 + - 22 ) + - 56 AS col1
----
-1
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT DISTINCT 62 + - MAX( + 41 ) * + + 88 AS col2, - 51 + - - 53 * - ( + - 21 ) AS col1
----
-3546
1062

skipif mysql # not compatible
query II rowsort label-4271
SELECT DISTINCT 62 + - MAX ( + 41 ) * + + 88 AS col2, - 51 + - - 53 * - ( + - 21 ) AS col1
----
-3546
1062

query I rowsort
SELECT 98 - + 83 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT - COUNT( * ) * + - 7 * 13 + - - 99 AS col2
----
190

skipif mysql # not compatible
query I rowsort label-4273
SELECT - COUNT ( * ) * + - 7 * 13 + - - 99 AS col2
----
190

onlyif mysql # aggregate syntax: 
query II rowsort label-4274
SELECT + + COUNT( * ), 0 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-4274
SELECT + + COUNT ( * ), 0 AS col1
----
1
0

query II rowsort
SELECT DISTINCT - 30 AS col1, + 12 * + + ( + - 30 ) + CASE + + 27 WHEN - 4 THEN NULL ELSE 92 - - 62 END
----
-30
-206

query I rowsort
SELECT 89 + + 87 AS col0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT + 25 * ( COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-4277
SELECT + 25 * ( COUNT ( * ) )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4278
SELECT ( - NULLIF ( - 83, + 83 DIV + MAX( ALL + 81 ) ) ) - + MAX( 10 ) DIV CAST( + + 91 AS SIGNED ) + + 95 * + 63 - - 45 + - MAX( DISTINCT + NULLIF ( - + 39, + - 49 ) ) + + 2
----
6154

skipif mysql # not compatible
query I rowsort label-4278
SELECT ( - NULLIF ( - 83, + 83 / + MAX ( ALL + 81 ) ) ) - + MAX ( 10 ) / CAST ( + + 91 AS INTEGER ) + + 95 * + 63 - - 45 + - MAX ( DISTINCT + NULLIF ( - + 39, + - 49 ) ) + + 2
----
6154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4279
SELECT ( + 39 ) DIV + 66 * - 97 DIV + COUNT( * ) * - - 40 + + 1 + 29 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4279
SELECT ( + 39 ) / + 66 * - 97 / + COUNT ( * ) * - - 40 + + 1 + 29 AS col2
----
30

query I rowsort
SELECT ALL - CASE + - 24 WHEN - 86 * 99 THEN - 16 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 56 AS col0, 91 * + 36
----
-56
3276

query III rowsort
SELECT - 71 * 82 * + 28 + - 31, 51 * + 92 * - 47 AS col1, - 14 + - 21 AS col0
----
-163047
-220524
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT - - COUNT( * ) * + 39 + + 3
----
42

skipif mysql # not compatible
query I rowsort label-4283
SELECT - - COUNT ( * ) * + 39 + + 3
----
42

query I rowsort
SELECT + - 48 * + + 85 + + 60 * - + 37 AS col2
----
-6300

query I rowsort
SELECT ALL - 68 + + + 80
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT + NULLIF ( + CAST( ( - 68 ) AS SIGNED ), - - COUNT( DISTINCT 15 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-4286
SELECT + NULLIF ( + CAST ( ( - 68 ) AS INTEGER ), - - COUNT ( DISTINCT 15 ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT - SUM( DISTINCT + 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-4287
SELECT - SUM ( DISTINCT + 82 )
----
-82

query I rowsort
SELECT ALL - - 96 * + 57
----
5472

query II rowsort
SELECT - + 46 + + 92 * 34 * + + 57, - 11 AS col0
----
178250
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT - - COUNT( - COALESCE ( - NULLIF ( - 76, + 42 ), 54, ( + 35 ) ) ) + - 89 + - - 87 + - 24 * 82
----
-1969

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT - - COUNT ( - COALESCE ( - NULLIF ( - 76, + 42 ), 54, ( + 35 ) ) ) + - 89 + - - 87 + - 24 * 82
----
-1969

query I rowsort
SELECT DISTINCT 56 + + 67 AS col2
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4292
SELECT DISTINCT CASE - 5 WHEN - 37 THEN NULL ELSE + 56 + - CAST( COUNT( ALL 3 ) AS SIGNED ) END
----
55

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT CASE - 5 WHEN - 37 THEN NULL ELSE + 56 + - CAST ( COUNT ( ALL 3 ) AS INTEGER ) END
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT ALL 58 + + 45 + + 90 DIV - - 84 + + 66
----
170

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL 58 + + 45 + + 90 / - - 84 + + 66
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4294
SELECT DISTINCT - 98 + + - COUNT( * ) * 56 + + + 7 * + 8 AS col1, CAST( NULL AS SIGNED )
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-4294
SELECT DISTINCT - 98 + + - COUNT ( * ) * 56 + + + 7 * + 8 AS col1, CAST ( NULL AS INTEGER )
----
-98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - COALESCE ( - + 34, + 60 * - + COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-4295
SELECT - COALESCE ( - + 34, + 60 * - + COUNT ( * ) )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL 63 + 73 * - COUNT( * ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL 63 + 73 * - COUNT ( * ) col2
----
-10

query I rowsort
SELECT - 69 + ( + 83 ) col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL - 81 + - + 46 + COUNT( * ) * + 8 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL - 81 + - + 46 + COUNT ( * ) * + 8 AS col2
----
-119

onlyif mysql # aggregate syntax: 
query II rowsort label-4299
SELECT ALL SUM( ALL + 30 ) AS col1, + ( 70 ) * + 71 + - ( MAX( - 60 ) )
----
30
5030

skipif mysql # not compatible
query II rowsort label-4299
SELECT ALL SUM ( ALL + 30 ) AS col1, + ( 70 ) * + 71 + - ( MAX ( - 60 ) )
----
30
5030

query I rowsort
SELECT ALL 97 - - ( - + 25 ) + ( 77 ) AS col1
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-4301
SELECT DISTINCT SUM( - - 17 ) col0, + 3 + + - 23 AS col1
----
17
-20

skipif mysql # not compatible
query II rowsort label-4301
SELECT DISTINCT SUM ( - - 17 ) col0, + 3 + + - 23 AS col1
----
17
-20

query I rowsort
SELECT + 79 * 38
----
3002

query I rowsort
SELECT + 44 * + ( 44 ) + - 90 * - 34
----
4996

query II rowsort
SELECT - - 79 * - 0, - 47 AS col2
----
0
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT ( COUNT( * ) ) * + + SUM( DISTINCT - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT ( COUNT ( * ) ) * + + SUM ( DISTINCT - 45 )
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4306
SELECT + - CAST( NULL AS DECIMAL ) * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT + - CAST ( NULL AS REAL ) * 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4307
SELECT ALL - + 49 DIV - - 32
----
-1

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL - + 49 / - - 32
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL + MIN( ALL - - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL + MIN ( ALL - - 52 )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT ALL 77 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL 77 / + 87
----
0

query I rowsort
SELECT + COALESCE ( 49, + ( + 86 ), - + 71, - 30 ) * - + 77
----
-3773

query I rowsort
SELECT - 16 * + 24 AS col0
----
-384

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4312
SELECT CASE + 41 WHEN ( + 6 ) * 28 THEN + 37 + 47 * + CAST( NULL AS DECIMAL ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT CASE + 41 WHEN ( + 6 ) * 28 THEN + 37 + 47 * + CAST ( NULL AS REAL ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT - - 36 DIV 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4313
SELECT - - 36 / 79 AS col1
----
0

query I rowsort
SELECT DISTINCT + - 68 * + 57 + + + 83
----
-3793

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4315
SELECT - + COUNT( DISTINCT + 6 ) * - - 74 + CAST( NULL AS SIGNED ) + - 5 + - 93 - + - 79 - 87 + + + 29 * COUNT( ALL + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT - + COUNT ( DISTINCT + 6 ) * - - 74 + CAST ( NULL AS INTEGER ) + - 5 + - 93 - + - 79 - 87 + + + 29 * COUNT ( ALL + 6 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4316
SELECT + + CAST( - 56 AS SIGNED ) - + + 31 - - + ( - + 7 ) * MAX( - 24 )
----
81

skipif mysql # not compatible
query I rowsort label-4316
SELECT + + CAST ( - 56 AS INTEGER ) - + + 31 - - + ( - + 7 ) * MAX ( - 24 )
----
81

query I rowsort
SELECT ALL - - 83 * + + 8 + 68 AS col2
----
732

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT - 19 * COUNT( * ) + + 3 col2
----
-16

skipif mysql # not compatible
query I rowsort label-4318
SELECT - 19 * COUNT ( * ) + + 3 col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL COALESCE ( - COUNT( + + 1 ), + 49, 79 ) * - + 70 + - CASE + 84 WHEN - 78 * + 56 / + 23 + - 16 / - 33 THEN 99 ELSE 10 + - + 11 END + - 53
----
18

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL COALESCE ( - COUNT ( + + 1 ), + 49, 79 ) * - + 70 + - CASE + 84 WHEN - 78 * + 56 / + 23 + - 16 / - 33 THEN 99 ELSE 10 + - + 11 END + - 53
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4320
SELECT ALL + 38 AS col0, SUM( ALL 41 )
----
38
41

skipif mysql # not compatible
query II rowsort label-4320
SELECT ALL + 38 AS col0, SUM ( ALL 41 )
----
38
41

query II rowsort
SELECT - 82 * 87 * + 0 AS col1, - 40 * 18 AS col2
----
0
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT COALESCE ( 65, 55 * - 66 + - 69, MIN( ALL 58 ) )
----
65

skipif mysql # not compatible
query I rowsort label-4322
SELECT COALESCE ( 65, 55 * - 66 + - 69, MIN ( ALL 58 ) )
----
65

query I rowsort
SELECT ALL + ( - - 85 ) AS col1
----
85

query I rowsort
SELECT ALL 57 * - + 28 + 10 - ( - 92 )
----
-1494

query I rowsort
SELECT ALL 10 * 49 * 10 * 41 * - 67 AS col1
----
-13460300

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT - COUNT( DISTINCT + 63 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4326
SELECT - COUNT ( DISTINCT + 63 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT ALL CAST( - 57 AS SIGNED ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL CAST ( - 57 AS INTEGER ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT DISTINCT COUNT( * ) - 29
----
-28

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT COUNT ( * ) - 29
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT + 51 * - COALESCE ( + + 52, + 47 * - COUNT( * ) ) * + 34 * COUNT( * ) col0
----
-90168

skipif mysql # not compatible
query I rowsort label-4329
SELECT + 51 * - COALESCE ( + + 52, + 47 * - COUNT ( * ) ) * + 34 * COUNT ( * ) col0
----
-90168

query I rowsort
SELECT ALL + 59 * 43 AS col1
----
2537

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4331
SELECT - MAX( DISTINCT - - 79 ) * - CASE COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) WHEN AVG ( DISTINCT - 48 ) + - 44 - 0 + - 35 THEN NULL WHEN + 97 THEN - - 47 * 44 + + 11 + + + 32 * 33 END / + + SUM( ALL + 36 ) + - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT - MAX ( DISTINCT - - 79 ) * - CASE COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) WHEN AVG ( DISTINCT - 48 ) + - 44 - 0 + - 35 THEN NULL WHEN + 97 THEN - - 47 * 44 + + 11 + + + 32 * 33 END / + + SUM ( ALL + 36 ) + - + 53
----
NULL

query I rowsort
SELECT - 56 + + 84
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4333
SELECT - COALESCE ( COUNT( * ), - 68 + 66 ) DIV - 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4333
SELECT - COALESCE ( COUNT ( * ), - 68 + 66 ) / - 3 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT DISTINCT NULLIF ( - 8, + 44 + - 67 ) DIV + 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT NULLIF ( - 8, + 44 + - 67 ) / + 39 AS col0
----
0

query I rowsort
SELECT ALL ( + - 89 ) AS col1
----
-89

query I rowsort
SELECT + 51 + - 19
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4337
SELECT ALL 54 AS col0, 9 + + COUNT( * ) - - 93 + - 38
----
54
65

skipif mysql # not compatible
query II rowsort label-4337
SELECT ALL 54 AS col0, 9 + + COUNT ( * ) - - 93 + - 38
----
54
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT DISTINCT + + 42 DIV + 35 - + ( ( - 41 ) )
----
42

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT + + 42 / + 35 - + ( ( - 41 ) )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4339
SELECT + ( 53 ) DIV + + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4339
SELECT + ( 53 ) / + + 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL 4 * COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL 4 * COUNT ( * ) AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT DISTINCT - 26 DIV - 27
----
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT - 26 / - 27
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4342
SELECT - - 47 DIV + 36 + 63 * - 26 DIV + COUNT( * ) AS col1
----
-1637

skipif mysql # not compatible
query I rowsort label-4342
SELECT - - 47 / + 36 + 63 * - 26 / + COUNT ( * ) AS col1
----
-1637

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT + + CASE + COUNT( * ) WHEN - 77 THEN 87 WHEN + 65 + - 64 - - 43 + 66 THEN NULL WHEN - 31 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT + + CASE + COUNT ( * ) WHEN - 77 THEN 87 WHEN + 65 + - 64 - - 43 + 66 THEN NULL WHEN - 31 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT + ( + 29 ) * + 80 AS col2, + 36
----
2320
36

query I rowsort
SELECT + 14 + - 4
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - + 18 * + 88 + + 90 + - - 38 + - - COUNT( * ) + - NULLIF ( - + 89, - 64 + 95 ) + - COUNT( * ) + 7
----
-1360

skipif mysql # not compatible
query I rowsort label-4346
SELECT - + 18 * + 88 + + 90 + - - 38 + - - COUNT ( * ) + - NULLIF ( - + 89, - 64 + 95 ) + - COUNT ( * ) + 7
----
-1360

onlyif mysql # DIV for integer division: 
query II rowsort label-4347
SELECT ALL + 52 + - NULLIF ( + 46, + - 10 ) + - - ( - 91 ) * 65 * - 92 + - 91 AS col2, 45 DIV + 68
----
544095
0

skipif mysql # not compatible
query II rowsort label-4347
SELECT ALL + 52 + - NULLIF ( + 46, + - 10 ) + - - ( - 91 ) * 65 * - 92 + - 91 AS col2, 45 / + 68
----
544095
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4348
SELECT - COUNT( * ) DIV + 39 + + 60
----
60

skipif mysql # not compatible
query I rowsort label-4348
SELECT - COUNT ( * ) / + 39 + + 60
----
60

query I rowsort
SELECT DISTINCT + - 4 + 55 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4350
SELECT ALL - - 42 + - - CAST( 35 AS SIGNED ) DIV + ( - 91 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL - - 42 + - - CAST ( 35 AS INTEGER ) / + ( - 91 ) AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4351
SELECT + CASE COUNT( * ) WHEN + - 2 / + 23 + 64 * 1 THEN NULL ELSE NULLIF ( COUNT( * ), + CAST( NULL AS SIGNED ) ) END
----
1

skipif mysql # not compatible
query I rowsort label-4351
SELECT + CASE COUNT ( * ) WHEN + - 2 / + 23 + 64 * 1 THEN NULL ELSE NULLIF ( COUNT ( * ), + CAST ( NULL AS INTEGER ) ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL - + MIN( + 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - + MIN ( + 21 ) AS col2
----
-21

query I rowsort
SELECT ALL - - 77 AS col0
----
77

query I rowsort
SELECT 36 + ( - 40 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4355
SELECT + + COALESCE ( - COUNT( * ), + 63 ), COUNT( * ) + + + 99 AS col0
----
-1
100

skipif mysql # not compatible
query II rowsort label-4355
SELECT + + COALESCE ( - COUNT ( * ), + 63 ), COUNT ( * ) + + + 99 AS col0
----
-1
100

query I rowsort
SELECT DISTINCT 95 + - - 81 AS col1
----
176

query I rowsort
SELECT ALL 47 + - + 18 AS col0
----
29

query I rowsort
SELECT 86 + - 58
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4359
SELECT ALL 23 - + 29 * + MAX( DISTINCT - CAST( + 9 AS SIGNED ) ) AS col1, + 21
----
284
21

skipif mysql # not compatible
query II rowsort label-4359
SELECT ALL 23 - + 29 * + MAX ( DISTINCT - CAST ( + 9 AS INTEGER ) ) AS col1, + 21
----
284
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ( - 53 ) * + + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-4360
SELECT ( - 53 ) * + + COUNT ( * )
----
-53

query I rowsort
SELECT 93 * 4 * 99 * 91 AS col0
----
3351348

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT ALL + 53 * SUM( - 31 )
----
-1643

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL + 53 * SUM ( - 31 )
----
-1643

query I rowsort
SELECT ( 21 ) + 77 AS col1
----
98

query I rowsort
SELECT + 82 col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4365
SELECT ALL - MIN( - 13 ) - CAST( NULL AS SIGNED ) * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL - MIN ( - 13 ) - CAST ( NULL AS INTEGER ) * 43
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT 92 * - + 50 AS col0, - COUNT( * )
----
-4600
-1

skipif mysql # not compatible
query II rowsort label-4366
SELECT 92 * - + 50 AS col0, - COUNT ( * )
----
-4600
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4367
SELECT ALL 80 * + - 94 AS col2, - 88 DIV + - 76 AS col2
----
-7520
1

skipif mysql # not compatible
query II rowsort label-4367
SELECT ALL 80 * + - 94 AS col2, - 88 / + - 76 AS col2
----
-7520
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT 8 + + 0 + - ( + ( 87 ) ) * + + 69 * COUNT( * ) AS col1
----
-5995

skipif mysql # not compatible
query I rowsort label-4368
SELECT 8 + + 0 + - ( + ( 87 ) ) * + + 69 * COUNT ( * ) AS col1
----
-5995

query I rowsort
SELECT 18 + 85 * - 12 col0
----
-1002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT 89 + + CAST( NULL AS SIGNED ) - + 97 + + ( - 64 ) * - + 60 * CAST( + 62 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4370
SELECT 89 + + CAST ( NULL AS INTEGER ) - + 97 + + ( - 64 ) * - + 60 * CAST ( + 62 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT COUNT( * ) * + + 67 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-4371
SELECT COUNT ( * ) * + + 67 AS col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4372
SELECT 8 * + 56 DIV + + COUNT( * ) AS col1
----
448

skipif mysql # not compatible
query I rowsort label-4372
SELECT 8 * + 56 / + + COUNT ( * ) AS col1
----
448

query I rowsort
SELECT ALL + 19 * - + 93 AS col2
----
-1767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4374
SELECT DISTINCT + 30 * + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT + 30 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4375
SELECT ALL - - ( 94 ) + - 63 + - - ( + 60 ) * COALESCE ( + COALESCE ( - 96, + 26 + + MAX( DISTINCT CAST( NULL AS SIGNED ) ), - COUNT( * ) ), + + 67 )
----
-5729

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL - - ( 94 ) + - 63 + - - ( + 60 ) * COALESCE ( + COALESCE ( - 96, + 26 + + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ), - COUNT ( * ) ), + + 67 )
----
-5729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4376
SELECT ( - CAST( 46 AS SIGNED ) ) + - MAX( DISTINCT + 23 ) + + + 21 * 69
----
1380

skipif mysql # not compatible
query I rowsort label-4376
SELECT ( - CAST ( 46 AS INTEGER ) ) + - MAX ( DISTINCT + 23 ) + + + 21 * 69
----
1380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4377
SELECT DISTINCT CAST( 76 AS SIGNED ) AS col1, CASE + 67 WHEN + + 78 THEN + COUNT( * ) ELSE 25 END AS col2
----
76
25

skipif mysql # not compatible
query II rowsort label-4377
SELECT DISTINCT CAST ( 76 AS INTEGER ) AS col1, CASE + 67 WHEN + + 78 THEN + COUNT ( * ) ELSE 25 END AS col2
----
76
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT ALL + 97 * - - 73 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL + 97 * - - 73 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 38 + 36 + - 63 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT DISTINCT + + COUNT( * ) + - - 17 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT + + COUNT ( * ) + - - 17 AS col2
----
18

query II rowsort
SELECT - ( + 54 ), 61 + 98 AS col2
----
-54
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT - NULLIF ( CAST( - CAST( + 33 AS SIGNED ) AS SIGNED ), 9 ) * + 40 AS col0
----
1320

skipif mysql # not compatible
query I rowsort label-4382
SELECT - NULLIF ( CAST ( - CAST ( + 33 AS INTEGER ) AS INTEGER ), 9 ) * + 40 AS col0
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT - 21 + + 40 + + + COUNT( * ) * - + 61 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4383
SELECT - 21 + + 40 + + + COUNT ( * ) * - + 61 AS col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4384
SELECT ALL 95 DIV - 90 DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL 95 / - 90 / + COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 64 + - + 47 + + + 68 * + 84 AS col2
----
5729

query I rowsort
SELECT ( 30 ) * + - 49 * - 67 * 20
----
1969800

query I rowsort
SELECT ALL - 90 + + 24 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4388
SELECT + + COUNT( DISTINCT + - 1 ) AS col2, 22 + 74 * - + 13 AS col1
----
1
-940

skipif mysql # not compatible
query II rowsort label-4388
SELECT + + COUNT ( DISTINCT + - 1 ) AS col2, 22 + 74 * - + 13 AS col1
----
1
-940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4389
SELECT DISTINCT COUNT( * ) * + + CAST( NULL AS SIGNED ) * + 90 + + SUM( 8 ) + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * + 90 + + SUM ( 8 ) + + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT + - MIN( ALL 84 ) + - + 10 * - 29
----
206

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT + - MIN ( ALL 84 ) + - + 10 * - 29
----
206

query I rowsort
SELECT - 27 * + 93 + + - 35
----
-2546

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT ALL CASE - 64 WHEN - 2 + - 75 * + + MAX( + 91 ) THEN 64 WHEN - - CASE 65 WHEN - 84 + 55 THEN + + 74 / - 94 WHEN 80 + 2 THEN NULL ELSE MAX( ALL + - 59 ) - 5 END * - ( - 30 ) * + + MAX( ALL - 3 ) + 21 THEN NULL ELSE NULL END - - - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL CASE - 64 WHEN - 2 + - 75 * + + MAX ( + 91 ) THEN 64 WHEN - - CASE 65 WHEN - 84 + 55 THEN + + 74 / - 94 WHEN 80 + 2 THEN NULL ELSE MAX ( ALL + - 59 ) - 5 END * - ( - 30 ) * + + MAX ( ALL - 3 ) + 21 THEN NULL ELSE NULL END - - - 72 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - + 22, 42 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4394
SELECT + 74 AS col2, + COUNT( * ) col1
----
74
1

skipif mysql # not compatible
query II rowsort label-4394
SELECT + 74 AS col2, + COUNT ( * ) col1
----
74
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4395
SELECT 74, COUNT( * ) AS col0
----
74
1

skipif mysql # not compatible
query II rowsort label-4395
SELECT 74, COUNT ( * ) AS col0
----
74
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4396
SELECT ( - COALESCE ( + + ( + 52 ), + + 22 DIV + 72 + - 98 + 97 + 19 + + CAST( - ( - 36 ) AS SIGNED ) + + - COUNT( * ) * + COUNT( * ) DIV + - CAST( NULL AS SIGNED ) ) ) * - 19
----
988

skipif mysql # not compatible
query I rowsort label-4396
SELECT ( - COALESCE ( + + ( + 52 ), + + 22 / + 72 + - 98 + 97 + 19 + + CAST ( - ( - 36 ) AS INTEGER ) + + - COUNT ( * ) * + COUNT ( * ) / + - CAST ( NULL AS INTEGER ) ) ) * - 19
----
988

query I rowsort
SELECT ALL + NULLIF ( 4, + 72 ) * 70 * - 63 AS col0
----
-17640

query I rowsort
SELECT + NULLIF ( 81, - 74 * - + AVG ( + 26 ) / - 68 + + - 69 )
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4399
SELECT ( ( - 88 ) ) DIV CAST( - - 85 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4399
SELECT ( ( - 88 ) ) / CAST ( - - 85 AS INTEGER )
----
-1

query I rowsort
SELECT 18 * - 29
----
-522

onlyif mysql # aggregate syntax: 
query II rowsort label-4401
SELECT - COUNT( * ) AS col0, - ( + ( - ( + - 44 ) ) ) AS col1
----
-1
-44

skipif mysql # not compatible
query II rowsort label-4401
SELECT - COUNT ( * ) AS col0, - ( + ( - ( + - 44 ) ) ) AS col1
----
-1
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-4402
SELECT ALL 50 AS col1, COUNT( * )
----
50
1

skipif mysql # not compatible
query II rowsort label-4402
SELECT ALL 50 AS col1, COUNT ( * )
----
50
1

query I rowsort
SELECT DISTINCT 86 * + 92 * - 73 * - + 39 AS col1
----
22525464

query I rowsort
SELECT 8 * 32
----
256

query I rowsort
SELECT + 85 * + 85
----
7225

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT DISTINCT COUNT( - - 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT COUNT ( - - 38 ) AS col0
----
1

query I rowsort
SELECT ALL - - 42 + 42
----
84

query II rowsort
SELECT ALL 25 + + CASE + + 98 WHEN + - 93 THEN 78 ELSE NULL END, - 9 AS col0
----
NULL
-9

query I rowsort
SELECT + 99 + + + 48 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT ALL + + 38 + + - MAX( DISTINCT - ( + 34 ) ) * - 29
----
-948

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL + + 38 + + - MAX ( DISTINCT - ( + 34 ) ) * - 29
----
-948

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT + 8 + - CASE + AVG ( - + 4 ) WHEN 59 THEN + 42 + - MIN( DISTINCT - 48 ) - - + 54 * + - 9 * - - 39 * - + 32 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT + 8 + - CASE + AVG ( - + 4 ) WHEN 59 THEN + 42 + - MIN ( DISTINCT - 48 ) - - + 54 * + - 9 * - - 39 * - + 32 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT + - 54 + - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-4412
SELECT + - 54 + - COUNT ( * )
----
-55

query II rowsort
SELECT - 29 AS col2, + ( - 55 ) * - 95 * - 96
----
-29
-501600

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL CASE + ( - 88 ) WHEN - 91 THEN + + COALESCE ( + 64, - 2, - 11 + - + 32 + + 83 ) * SUM( 23 ) WHEN - COUNT( * ) + - ( 69 ) THEN 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL CASE + ( - 88 ) WHEN - 91 THEN + + COALESCE ( + 64, - 2, - 11 + - + 32 + + 83 ) * SUM ( 23 ) WHEN - COUNT ( * ) + - ( 69 ) THEN 13 END
----
NULL

query I rowsort
SELECT - + 79 + - 32 AS col0
----
-111

query I rowsort
SELECT - + 74 * + 90
----
-6660

query I rowsort
SELECT - - 5 + - 38 AS col2
----
-33

query II rowsort
SELECT + 63 AS col2, ( 66 ) + - 49 + - 43 + + - COALESCE ( 61, - 57 * 7 ) AS col1
----
63
-87

query I rowsort
SELECT ALL + - 70 * 51 AS col2
----
-3570

query I rowsort
SELECT - 72 - 9
----
-81

query I rowsort
SELECT DISTINCT + 91 - - 44
----
135

query I rowsort
SELECT ALL + - 58 - 79 AS col2
----
-137

query II rowsort
SELECT 8 AS col2, - 58 col1
----
8
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT - ( + ( 19 ) ) DIV + 84 + 93
----
93

skipif mysql # not compatible
query I rowsort label-4424
SELECT - ( + ( 19 ) ) / + 84 + 93
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT ALL + MAX( + - 44 ) * - + CAST( NULL AS SIGNED ) - + - 19 + 9 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + MAX ( + - 44 ) * - + CAST ( NULL AS INTEGER ) - + - 19 + 9 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 38 * + - 28 AS col2
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - - 47 * - - COUNT( DISTINCT - - 65 ) col2
----
47

skipif mysql # not compatible
query I rowsort label-4427
SELECT - - 47 * - - COUNT ( DISTINCT - - 65 ) col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT DISTINCT + + MIN( + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT + + MIN ( + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL + + SUM( DISTINCT - ( + - 9 ) )
----
9

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + + SUM ( DISTINCT - ( + - 9 ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT DISTINCT + COALESCE ( 40, 66 * SUM( + - 44 ) + + 81, - 2 )
----
40

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT + COALESCE ( 40, 66 * SUM ( + - 44 ) + + 81, - 2 )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4431
SELECT + SUM( + 44 ) DIV + 79 + + - 35 * - - 40 * + ( - 4 ) + 97 * + - SUM( ALL + 59 ) * + + 49
----
-274827

skipif mysql # not compatible
query I rowsort label-4431
SELECT + SUM ( + 44 ) / + 79 + + - 35 * - - 40 * + ( - 4 ) + 97 * + - SUM ( ALL + 59 ) * + + 49
----
-274827

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4432
SELECT ALL ( + - 1 ) * + + 54 + - NULLIF ( - 70, + + 28 ) - - - ( - - 7 ) + + - CASE WHEN NOT ( 6 ) NOT BETWEEN + CAST( NULL AS SIGNED ) AND + + 65 + 91 THEN NULL WHEN NULL <= NULL THEN NULL ELSE + 25 END AS col1, + 39
----
-16
39

skipif mysql # not compatible
query II rowsort label-4432
SELECT ALL ( + - 1 ) * + + 54 + - NULLIF ( - 70, + + 28 ) - - - ( - - 7 ) + + - CASE WHEN NOT ( 6 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + + 65 + 91 THEN NULL WHEN NULL <= NULL THEN NULL ELSE + 25 END AS col1, + 39
----
-16
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT + COUNT( ALL - 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4433
SELECT + COUNT ( ALL - 56 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL + ( + COUNT( DISTINCT 60 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL + ( + COUNT ( DISTINCT 60 ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4435
SELECT ALL - 35 DIV - 85 AS col2, 43
----
0
43

skipif mysql # not compatible
query II rowsort label-4435
SELECT ALL - 35 / - 85 AS col2, 43
----
0
43

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT + 75 DIV - + 45 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4436
SELECT + 75 / - + 45 AS col0
----
-1

query I rowsort
SELECT ALL 87 * - + 5 AS col1
----
-435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4438
SELECT - ( + - 43 ) * - - 65 + + + 52 DIV - COUNT( * ) AS col2
----
2743

skipif mysql # not compatible
query I rowsort label-4438
SELECT - ( + - 43 ) * - - 65 + + + 52 / - COUNT ( * ) AS col2
----
2743

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT CASE 44 WHEN - 91 THEN + COUNT( * ) ELSE - 31 END
----
-31

skipif mysql # not compatible
query I rowsort label-4439
SELECT CASE 44 WHEN - 91 THEN + COUNT ( * ) ELSE - 31 END
----
-31

query I rowsort
SELECT + NULLIF ( 19, - 54 + 98 * + 74 ) AS col1
----
19

query I rowsort
SELECT ALL + 53 col2
----
53

query I rowsort
SELECT ALL ( - 0 ) * + 1 * - ( + + 93 ) * - 11 + + 67 * + 6 + + 16 AS col1
----
418

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT + NULLIF ( - COUNT( * ), - - 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-4443
SELECT + NULLIF ( - COUNT ( * ), - - 48 )
----
-1

query I rowsort
SELECT ALL + 72 * 50 + - 3
----
3597

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4445
SELECT DISTINCT + ( + + 48 ) * 92 DIV - MAX( DISTINCT - 87 ) + 61
----
111

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT + ( + + 48 ) * 92 / - MAX ( DISTINCT - 87 ) + 61
----
111

query II rowsort
SELECT + 79 + 65 + 35 * 24 AS col0, 92 * - + 76
----
984
-6992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4447
SELECT DISTINCT + COUNT( - NULLIF ( - - 28, - 68 * - 88 ) ) * - ( - 15 ) + - CAST( NULL AS SIGNED ) + 90 * 12 * - ( - + 12 ) * - 76 + + + 19 * - CAST( - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT + COUNT ( - NULLIF ( - - 28, - 68 * - 88 ) ) * - ( - 15 ) + - CAST ( NULL AS INTEGER ) + 90 * 12 * - ( - + 12 ) * - 76 + + + 19 * - CAST ( - COUNT ( * ) AS INTEGER )
----
NULL

query II rowsort
SELECT 43, 12 AS col0
----
43
12

query I rowsort
SELECT + - 94 + 17 + + 13
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4450
SELECT + COUNT( * ) * COALESCE ( + + 75, - + 35 * 73 * - + CAST( NULL AS SIGNED ) + - 17 )
----
75

skipif mysql # not compatible
query I rowsort label-4450
SELECT + COUNT ( * ) * COALESCE ( + + 75, - + 35 * 73 * - + CAST ( NULL AS INTEGER ) + - 17 )
----
75

query I rowsort
SELECT ALL - 14 * - 9 * - 32
----
-4032

onlyif mysql # DIV for integer division: 
query I rowsort label-4452
SELECT + - 8 DIV + 97 * - 13 + 27
----
27

skipif mysql # not compatible
query I rowsort label-4452
SELECT + - 8 / + 97 * - 13 + 27
----
27

query I rowsort
SELECT - - 3 + + + 28 AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4454
SELECT DISTINCT 59 + + - 76 + 55 DIV - 98 * - 44 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT 59 + + - 76 + 55 / - 98 * - 44 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT DISTINCT COUNT( ALL + 60 ) * 25
----
25

skipif mysql # not compatible
query I rowsort label-4455
SELECT DISTINCT COUNT ( ALL + 60 ) * 25
----
25

query I rowsort
SELECT ALL + - 10 + + - 44 AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4457
SELECT ALL - 22 AS col2, - CAST( - - 4 AS SIGNED ) DIV 76 * 2 + - 1 AS col1
----
-22
-1

skipif mysql # not compatible
query II rowsort label-4457
SELECT ALL - 22 AS col2, - CAST ( - - 4 AS INTEGER ) / 76 * 2 + - 1 AS col1
----
-22
-1

query I rowsort
SELECT DISTINCT NULLIF ( - + 20, - 58 )
----
-20

query I rowsort
SELECT DISTINCT - 95 - 40 AS col1
----
-135

query II rowsort
SELECT ALL + 99, 80 col2
----
99
80

query I rowsort
SELECT + 13 * - + 32 AS col1
----
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT - COUNT( DISTINCT - + 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-4462
SELECT - COUNT ( DISTINCT - + 63 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4463
SELECT - + CASE + - 30 WHEN - 21 * + 4 + - - 18 * CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN NULL WHEN 13 / - - 95 THEN NULL ELSE - 6 END
----
6

skipif mysql # not compatible
query I rowsort label-4463
SELECT - + CASE + - 30 WHEN - 21 * + 4 + - - 18 * CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN NULL WHEN 13 / - - 95 THEN NULL ELSE - 6 END
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4464
SELECT ALL COALESCE ( 26, 23 DIV 38 * - - 34 DIV 75 * - 92 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL COALESCE ( 26, 23 / 38 * - - 34 / 75 * - 92 ) AS col1
----
26

query I rowsort
SELECT - - 1 * 71
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT ALL 64, COALESCE ( - + 9, - + COALESCE ( + 35, 88 + - NULLIF ( - SUM( ALL + 62 ), - + 28 ) + - 53 + 74 * + 62 * 65, - - 18 ) * - 18 * + - 8 + + 58 ) * + 17 AS col1
----
64
-153

skipif mysql # not compatible
query II rowsort label-4466
SELECT ALL 64, COALESCE ( - + 9, - + COALESCE ( + 35, 88 + - NULLIF ( - SUM ( ALL + 62 ), - + 28 ) + - 53 + 74 * + 62 * 65, - - 18 ) * - 18 * + - 8 + + 58 ) * + 17 AS col1
----
64
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT - ( COUNT( DISTINCT - 52 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4467
SELECT - ( COUNT ( DISTINCT - 52 ) )
----
-1

query II rowsort
SELECT DISTINCT + 27, + 82 AS col2
----
27
82

query II rowsort
SELECT + - 14 AS col0, + 38 * + 11 + 46
----
-14
464

onlyif mysql # aggregate syntax: 
query II rowsort label-4470
SELECT DISTINCT - 22 * + 10, 26 - + 94 + COUNT( * ) AS col1
----
-220
-67

skipif mysql # not compatible
query II rowsort label-4470
SELECT DISTINCT - 22 * + 10, 26 - + 94 + COUNT ( * ) AS col1
----
-220
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT DISTINCT - 49 * - MAX( 59 )
----
2891

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT - 49 * - MAX ( 59 )
----
2891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT ALL + ( - CAST( - + 40 AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL + ( - CAST ( - + 40 AS INTEGER ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL - 31 * + + MIN( + 14 ) * + 38 AS col1
----
-16492

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL - 31 * + + MIN ( + 14 ) * + 38 AS col1
----
-16492

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT - 69 * + CASE + + 20 WHEN - COUNT( * ) THEN NULL ELSE - - 81 END AS col0
----
-5589

skipif mysql # not compatible
query I rowsort label-4474
SELECT - 69 * + CASE + + 20 WHEN - COUNT ( * ) THEN NULL ELSE - - 81 END AS col0
----
-5589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4475
SELECT ALL + ( + + 14 ) DIV - 38 + 73 + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL + ( + + 14 ) / - 38 + 73 + - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL SUM( + - 33 ) * 70 AS col2
----
-2310

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL SUM ( + - 33 ) * 70 AS col2
----
-2310

onlyif mysql # aggregate syntax: 
query II rowsort label-4477
SELECT 33 * + + 48 AS col1, 37 * + 71 + + - COUNT( * ) * + + 71 AS col2
----
1584
2556

skipif mysql # not compatible
query II rowsort label-4477
SELECT 33 * + + 48 AS col1, 37 * + 71 + + - COUNT ( * ) * + + 71 AS col2
----
1584
2556

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL + MIN( 92 ) * - 78 AS col2
----
-7176

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + MIN ( 92 ) * - 78 AS col2
----
-7176

query I rowsort
SELECT 46 + + 51 + - 92
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT DISTINCT - ( - ( - ( - COUNT( * ) ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT - ( - ( - ( - COUNT ( * ) ) ) ) AS col2
----
1

query II rowsort
SELECT ALL - 18 * + + 30, ( + - 95 ) AS col1
----
-540
-95

query II rowsort
SELECT - 91 * 3 AS col2, 42 + - 36
----
-273
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4483
SELECT - ( 85 ), + COUNT( * ) col2
----
-85
1

skipif mysql # not compatible
query II rowsort label-4483
SELECT - ( 85 ), + COUNT ( * ) col2
----
-85
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4484
SELECT CAST( + 9 AS SIGNED ) + + COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4484
SELECT CAST ( + 9 AS INTEGER ) + + COUNT ( * ) AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT ALL - 57 * - + COUNT( * ) + + 22 * CAST( NULL AS SIGNED ) / 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL - 57 * - + COUNT ( * ) + + 22 * CAST ( NULL AS INTEGER ) / 29
----
NULL

query I rowsort
SELECT DISTINCT CASE - ( + - 93 ) WHEN 64 THEN - 22 ELSE + + ( + - 3 ) * - CASE - - 2 WHEN 71 * + + 91 THEN NULL WHEN + 52 THEN - - 14 END END
----
NULL

query I rowsort
SELECT 80 * 54
----
4320

onlyif mysql # DIV for integer division: 
query II rowsort label-4488
SELECT ALL - ( 24 ) * 24 - 37 DIV - 61 AS col0, + 34 col0
----
-576
34

skipif mysql # not compatible
query II rowsort label-4488
SELECT ALL - ( 24 ) * 24 - 37 / - 61 AS col0, + 34 col0
----
-576
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4489
SELECT - 7 + + 35 + - 69 + + COALESCE ( + 9, - COALESCE ( + - 81, - 35 DIV 83, + - 4 ), + 77 ) * - 17
----
-194

skipif mysql # not compatible
query I rowsort label-4489
SELECT - 7 + + 35 + - 69 + + COALESCE ( + 9, - COALESCE ( + - 81, - 35 / 83, + - 4 ), + 77 ) * - 17
----
-194

query I rowsort
SELECT + 81 * 36
----
2916

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT 36 + NULLIF ( + 66, - - 76 ) + - + COUNT( * ) + 85 + 21 + 11
----
218

skipif mysql # not compatible
query I rowsort label-4491
SELECT 36 + NULLIF ( + 66, - - 76 ) + - + COUNT ( * ) + 85 + 21 + 11
----
218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4492
SELECT ALL 78 * - CAST( NULL AS SIGNED ) AS col0, - 22 * - 22 - + CASE - - 43 WHEN - SUM( + - 55 ) - + + SUM( DISTINCT 22 ) / 5 - 82 THEN + 68 WHEN + 78 * + 37 + - 52 THEN - - 78 * - 95 + - 69 ELSE + - 75 * + 28 + - COUNT( * ) END
----
NULL
2585

skipif mysql # not compatible
query II rowsort label-4492
SELECT ALL 78 * - CAST ( NULL AS INTEGER ) AS col0, - 22 * - 22 - + CASE - - 43 WHEN - SUM ( + - 55 ) - + + SUM ( DISTINCT 22 ) / 5 - 82 THEN + 68 WHEN + 78 * + 37 + - 52 THEN - - 78 * - 95 + - 69 ELSE + - 75 * + 28 + - COUNT ( * ) END
----
NULL
2585

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT - ( + - COUNT( * ) ) + - ( + 43 )
----
-42

skipif mysql # not compatible
query I rowsort label-4493
SELECT - ( + - COUNT ( * ) ) + - ( + 43 )
----
-42

query I rowsort
SELECT ALL 17 * - 67 col0
----
-1139

query I rowsort
SELECT 29 + - 37 + - 47 AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4496
SELECT DISTINCT NULLIF ( - NULLIF ( - - 62, - 96 ), CAST( - 49 AS SIGNED ) ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT NULLIF ( - NULLIF ( - - 62, - 96 ), CAST ( - 49 AS INTEGER ) ) * + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - 70 AS col2, - 5 AS col0
----
-70
-5

query I rowsort
SELECT 76 * 28
----
2128

query II rowsort
SELECT 76, 96 + - + 66 AS col1
----
76
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT DISTINCT 52 + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT 52 + COUNT ( * ) AS col0
----
53

query I rowsort
SELECT 73 * 1 * 87 + + 53 * 50 * 30 + + + 16 - 72
----
85795

query I rowsort
SELECT ALL - 0 * 49 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4503
SELECT DISTINCT - ( MIN( ALL - 72 ) ), 19 * - ( + COUNT( 52 ) ) * - - 7 + 93 col0
----
72
-40

skipif mysql # not compatible
query II rowsort label-4503
SELECT DISTINCT - ( MIN ( ALL - 72 ) ), 19 * - ( + COUNT ( 52 ) ) * - - 7 + 93 col0
----
72
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4504
SELECT ALL SUM( - 7 ) + + - 77 col1, + CAST( 66 AS SIGNED ) * + + ( 8 ) * 90 * - 6 * 19 + + + 66 + - COUNT( * )
----
-84
-5417215

skipif mysql # not compatible
query II rowsort label-4504
SELECT ALL SUM ( - 7 ) + + - 77 col1, + CAST ( 66 AS INTEGER ) * + + ( 8 ) * 90 * - 6 * 19 + + + 66 + - COUNT ( * )
----
-84
-5417215

query I rowsort
SELECT 74 * + 73 + + + 57
----
5459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4506
SELECT DISTINCT - NULLIF ( + 82, 95 * - - 43 + + 83 + CASE 91 WHEN 24 + - 2 + + 41 THEN + 66 * + 21 * + + CASE 78 WHEN + + CASE + + 68 WHEN + 75 * COUNT( * ) THEN - COUNT( * ) WHEN NULLIF ( ( 25 ), NULLIF ( + + 71, + - 96 + - 82 ) ) / + CAST( - 26 AS SIGNED ) * + - CAST( AVG ( - 10 ) AS SIGNED ) - + 56 THEN NULL END THEN + - 60 END - + 5 * + 73 ELSE NULL END ) + 64 + + ( - 33 ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT - NULLIF ( + 82, 95 * - - 43 + + 83 + CASE 91 WHEN 24 + - 2 + + 41 THEN + 66 * + 21 * + + CASE 78 WHEN + + CASE + + 68 WHEN + 75 * COUNT ( * ) THEN - COUNT ( * ) WHEN NULLIF ( ( 25 ), NULLIF ( + + 71, + - 96 + - 82 ) ) / + CAST ( - 26 AS INTEGER ) * + - CAST ( AVG ( - 10 ) AS INTEGER ) - + 56 THEN NULL END THEN + - 60 END - + 5 * + 73 ELSE NULL END ) + 64 + + ( - 33 ) col1
----
-51

query I rowsort
SELECT 17 * + 60 AS col1
----
1020

query II rowsort
SELECT + 57 AS col0, 12 col0
----
57
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ALL - MAX( ALL - 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL - MAX ( ALL - 65 ) AS col0
----
65

query I rowsort
SELECT - 88 + - 33
----
-121

onlyif mysql # DIV for integer division: 
query II rowsort label-4511
SELECT 26 DIV - - 60 * - 40 AS col1, - 96
----
0
-96

skipif mysql # not compatible
query II rowsort label-4511
SELECT 26 / - - 60 * - 40 AS col1, - 96
----
0
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4512
SELECT ALL + - COUNT( + 21 ) DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL + - COUNT ( + 21 ) / 94 AS col2
----
0

query III rowsort
SELECT - 35 * + + 72 + + + 67 + 12 AS col1, 58 + + 83 col1, 4 AS col1
----
-2441
141
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT ALL + + SUM( - - 93 ) DIV + + 58 + 35
----
36

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL + + SUM ( - - 93 ) / + + 58 + 35
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT - COUNT( DISTINCT - - 61 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4515
SELECT - COUNT ( DISTINCT - - 61 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT 26 + - - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-4516
SELECT 26 + - - COUNT ( * )
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-4517
SELECT + 95 DIV + ( + 6 ) AS col1, + 53
----
15
53

skipif mysql # not compatible
query II rowsort label-4517
SELECT + 95 / + ( + 6 ) AS col1, + 53
----
15
53

query I rowsort
SELECT DISTINCT - 12 * - 47
----
564

query I rowsort
SELECT - 79 * + 60
----
-4740

query II rowsort
SELECT ALL + 7 AS col2, - 15 AS col2
----
7
-15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4521
SELECT ALL - CAST( NULL AS DECIMAL ) + 32 - - 95 * 99 * + ( + ( + CAST( NULL AS SIGNED ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - CAST ( NULL AS REAL ) + 32 - - 95 * 99 * + ( + ( + CAST ( NULL AS INTEGER ) ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4522
SELECT ALL CASE COUNT( * ) WHEN + ( + ( + - 56 ) ) THEN NULL ELSE + + 12 + + - 1 + - COUNT( * ) * + CAST( COUNT( * ) AS SIGNED ) DIV - 84 END
----
11

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL CASE COUNT ( * ) WHEN + ( + ( + - 56 ) ) THEN NULL ELSE + + 12 + + - 1 + - COUNT ( * ) * + CAST ( COUNT ( * ) AS INTEGER ) / - 84 END
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT - MAX( DISTINCT + 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4523
SELECT - MAX ( DISTINCT + 66 ) AS col0
----
-66

query II rowsort
SELECT 76 * 73 AS col2, + 96 + - 16 AS col2
----
5548
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4525
SELECT NULLIF ( + - 72, CAST( MIN( 55 ) AS SIGNED ) ) * ( + + 84 ) DIV 4 + + 89, 77 DIV - 53 AS col2
----
-1423
-1

skipif mysql # not compatible
query II rowsort label-4525
SELECT NULLIF ( + - 72, CAST ( MIN ( 55 ) AS INTEGER ) ) * ( + + 84 ) / 4 + + 89, 77 / - 53 AS col2
----
-1423
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL COUNT( * ) + - 99 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL COUNT ( * ) + - 99 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT MIN( ALL 30 ) - + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-4527
SELECT MIN ( ALL 30 ) - + COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL ( - - 20 ) * + COUNT( ALL + 66 ) + - + 37
----
-17

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL ( - - 20 ) * + COUNT ( ALL + 66 ) + - + 37
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT - 1 * - 3 + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT - 1 * - 3 + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4530
SELECT DISTINCT COUNT( * ) * - CASE + 55 WHEN + COUNT( * ) + - + 23 THEN - ( 49 ) DIV - + 20 * 86 ELSE 51 END col0
----
-51

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT COUNT ( * ) * - CASE + 55 WHEN + COUNT ( * ) + - + 23 THEN - ( 49 ) / - + 20 * 86 ELSE 51 END col0
----
-51

query I rowsort
SELECT + 63 * 3
----
189

query I rowsort
SELECT ALL 27 * 3 * + + 46
----
3726

query I rowsort
SELECT 78 * - - 63 + + - 64 AS col0
----
4850

query I rowsort
SELECT ALL - 91 * + + 21 - - 58
----
-1853

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT + 27 * - ( + COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-4535
SELECT + 27 * - ( + COUNT ( * ) )
----
-27

query I rowsort
SELECT - 32 * - 12
----
384

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT - COUNT( * ) * 73
----
-73

skipif mysql # not compatible
query I rowsort label-4537
SELECT - COUNT ( * ) * 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL + + CASE + - MAX( DISTINCT + 35 ) WHEN - - COALESCE ( + 12, 27 ) THEN NULL WHEN - ( + 7 ) THEN + 42 * + - 99 WHEN + ( 46 ) * - 6 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL + + CASE + - MAX ( DISTINCT + 35 ) WHEN - - COALESCE ( + 12, 27 ) THEN NULL WHEN - ( + 7 ) THEN + 42 * + - 99 WHEN + ( 46 ) * - 6 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + + 46 * - SUM( + 8 ) + 0
----
-368

skipif mysql # not compatible
query I rowsort label-4539
SELECT + + 46 * - SUM ( + 8 ) + 0
----
-368

query II rowsort
SELECT ALL + 35 * - 45, - 97 AS col0
----
-1575
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT DISTINCT + ( + 76 ) * - ( + CAST( - 20 AS SIGNED ) ) AS col0
----
1520

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT + ( + 76 ) * - ( + CAST ( - 20 AS INTEGER ) ) AS col0
----
1520

query I rowsort
SELECT + 66 * - + 6 AS col1
----
-396

query I rowsort
SELECT - 36 * - - 35 AS col1
----
-1260

query I rowsort
SELECT ALL + 75 * - 64
----
-4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT - 63 / + 46 / - 7 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT - 63 / + 46 / - 7 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 2 col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4547
SELECT ALL + 14 * - ( + + CAST( NULL AS SIGNED ) ) * + CAST( COUNT( 42 ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL + 14 * - ( + + CAST ( NULL AS INTEGER ) ) * + CAST ( COUNT ( 42 ) AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4548
SELECT - - 70 DIV - + 54
----
-1

skipif mysql # not compatible
query I rowsort label-4548
SELECT - - 70 / - + 54
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL - + COUNT( * ) + + SUM( ALL + 45 ) - + - MAX( ALL + 18 ) + - 90 * 77 * 85 + 97 AS col2
----
-588891

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - + COUNT ( * ) + + SUM ( ALL + 45 ) - + - MAX ( ALL + 18 ) + - 90 * 77 * 85 + 97 AS col2
----
-588891

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT - ( MAX( - 18 ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4550
SELECT - ( MAX ( - 18 ) ) AS col1
----
18

query I rowsort
SELECT - - 93 + + 3 AS col2
----
96

query I rowsort
SELECT + 23 - + 55
----
-32

query I rowsort
SELECT DISTINCT + 0 * + 83 AS col2
----
0

query I rowsort
SELECT DISTINCT + 27 + + 31 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL - SUM( - 73 ) + - 50 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - SUM ( - 73 ) + - 50 AS col1
----
23

query I rowsort
SELECT - 69 + - 63 + 96 * 26
----
2364

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL ( + + COUNT( * ) ) + 23
----
24

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL ( + + COUNT ( * ) ) + 23
----
24

query II rowsort
SELECT + 63 + + 35 + 3 AS col2, + 39
----
101
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4559
SELECT ALL CAST( - + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT - 51 * + 20
----
-1020

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT 46 DIV - 39 + + - 21 - 77
----
-99

skipif mysql # not compatible
query I rowsort label-4561
SELECT 46 / - 39 + + - 21 - 77
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT + CASE 72 WHEN + 12 + - 17 THEN NULL WHEN - - COUNT( * ) - - 32 THEN + 82 END + - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT + CASE 72 WHEN + 12 + - 17 THEN NULL WHEN - - COUNT ( * ) - - 32 THEN + 82 END + - 91 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT - 3 DIV 7
----
0

skipif mysql # not compatible
query I rowsort label-4563
SELECT - 3 / 7
----
0

query II rowsort
SELECT + ( - 88 ) * - 32, - 64 + + 5 * 91 * + 38 col0
----
2816
17226

onlyif mysql # DIV for integer division: 
query II rowsort label-4565
SELECT ALL 15 * ( 90 ) AS col0, 72 + 32 + 98 DIV - - 43 AS col1
----
1350
106

skipif mysql # not compatible
query II rowsort label-4565
SELECT ALL 15 * ( 90 ) AS col0, 72 + 32 + 98 / - - 43 AS col1
----
1350
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4566
SELECT CAST( 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-4566
SELECT CAST ( 74 AS INTEGER )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4567
SELECT ALL 79 * + 80 * - COUNT( * ) col1, 53 + - COUNT( * ) DIV - - 7
----
-6320
53

skipif mysql # not compatible
query II rowsort label-4567
SELECT ALL 79 * + 80 * - COUNT ( * ) col1, 53 + - COUNT ( * ) / - - 7
----
-6320
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT + COUNT( * ) * 86 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4568
SELECT + COUNT ( * ) * 86 AS col0
----
86

query I rowsort
SELECT ( - 84 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT 48 * 11 + COUNT( * ) AS col0
----
529

skipif mysql # not compatible
query I rowsort label-4570
SELECT 48 * 11 + COUNT ( * ) AS col0
----
529

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT + 37 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-4571
SELECT + 37 / - 50
----
0

query I rowsort
SELECT + 26 * + 17 + 94
----
536

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT DISTINCT 66 DIV - 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT 66 / - 99 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4574
SELECT + NULLIF ( - 51, 70 + 11 * + 66 ) + - COALESCE ( 77 + NULLIF ( - 72, 38 - - 33 DIV + MIN( ( - ( 47 ) ) ) ), - COUNT( - 91 ) - 51 * + SUM( ALL + 15 DIV 95 ) ) * + 30
----
-201

skipif mysql # not compatible
query I rowsort label-4574
SELECT + NULLIF ( - 51, 70 + 11 * + 66 ) + - COALESCE ( 77 + NULLIF ( - 72, 38 - - 33 / + MIN ( ( - ( 47 ) ) ) ), - COUNT ( - 91 ) - 51 * + SUM ( ALL + 15 / 95 ) ) * + 30
----
-201

query I rowsort
SELECT ( + 60 )
----
60

query I rowsort
SELECT + 7 + - 26 * - ( + 7 )
----
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4577
SELECT ALL 7 * COALESCE ( + 97 * + 60, + ( 71 ) * CAST( NULL AS SIGNED ), MIN( + 72 ) ) + + 62
----
40802

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL 7 * COALESCE ( + 97 * + 60, + ( 71 ) * CAST ( NULL AS INTEGER ), MIN ( + 72 ) ) + + 62
----
40802

query I rowsort
SELECT + ( 2 ) * 45
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL 25 * + 84 + MAX( DISTINCT - 49 + - 69 )
----
1982

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL 25 * + 84 + MAX ( DISTINCT - 49 + - 69 )
----
1982

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4580
SELECT ALL NULLIF ( 98, + 81 ) * + CASE + CAST( + 5 AS DECIMAL ) WHEN 38 THEN NULL WHEN - 74 THEN - 22 * 32 + AVG ( ALL 15 ) END + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL NULLIF ( 98, + 81 ) * + CASE + CAST ( + 5 AS REAL ) WHEN 38 THEN NULL WHEN - 74 THEN - 22 * 32 + AVG ( ALL 15 ) END + - COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4581
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) + + 87 / + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) + + 87 / + 66 AS col2
----
NULL

query I rowsort
SELECT COALESCE ( - 87, - ( + 43 ) * - 8 + 7 ) AS col1
----
-87

query I rowsort
SELECT + ( - 8 ) * 19
----
-152

query I rowsort
SELECT - 53 + - 0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT ALL 62 * + 92 + - CAST( NULL AS SIGNED ) * - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL 62 * + 92 + - CAST ( NULL AS INTEGER ) * - 96 AS col0
----
NULL

query I rowsort
SELECT - 29 + - 98 * 55
----
-5419

query I rowsort
SELECT + 17 * 91
----
1547

query I rowsort
SELECT 27 + - 42
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL - ( - MIN( ALL + 83 ) ) + - 33
----
50

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL - ( - MIN ( ALL + 83 ) ) + - 33
----
50

query I rowsort
SELECT 17 * - 14
----
-238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4591
SELECT DISTINCT - 23 - + 93 DIV ( MAX( + 25 ) + 9 * 87 )
----
-23

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT - 23 - + 93 / ( MAX ( + 25 ) + 9 * 87 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ALL - COUNT( * ) - - 28
----
27

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - COUNT ( * ) - - 28
----
27

query I rowsort
SELECT 17 - - 45
----
62

query I rowsort
SELECT ALL + 51 * - ( 56 )
----
-2856

query I rowsort
SELECT ALL + ( - 77 ) * - 49
----
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT COUNT( * ) * - 62 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-4596
SELECT COUNT ( * ) * - 62 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL - SUM( 83 ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL - SUM ( 83 ) col1
----
-83

query I rowsort
SELECT - 35 * + 74 + + 9
----
-2581

query I rowsort
SELECT + 9 * + 27 AS col2
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4600
SELECT CAST( COUNT( * ) AS SIGNED ) DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-4600
SELECT CAST ( COUNT ( * ) AS INTEGER ) / - 71
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT ALL 87 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL 87 / - 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT DISTINCT + 25 + - 99 DIV 69
----
24

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT + 25 + - 99 / 69
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT + 75 + ( CAST( - 48 AS SIGNED ) )
----
27

skipif mysql # not compatible
query I rowsort label-4603
SELECT + 75 + ( CAST ( - 48 AS INTEGER ) )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4604
SELECT ALL - + 77 + CAST( NULL AS SIGNED ) * + ( 48 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL - + 77 + CAST ( NULL AS INTEGER ) * + ( 48 ) col2
----
NULL

query I rowsort
SELECT ALL - 92 + 49
----
-43

query I rowsort
SELECT ALL 28 + + 99
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT - + NULLIF ( 37, ( 65 ) / 98 ) + + CASE - COUNT( * ) WHEN - 28 THEN NULLIF ( + COUNT( * ), 24 * AVG ( 61 ) + + 96 ) WHEN 54 THEN NULL ELSE NULL END * 39 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT - + NULLIF ( 37, ( 65 ) / 98 ) + + CASE - COUNT ( * ) WHEN - 28 THEN NULLIF ( + COUNT ( * ), 24 * AVG ( 61 ) + + 96 ) WHEN 54 THEN NULL ELSE NULL END * 39 col1
----
NULL

query I rowsort
SELECT 49 * COALESCE ( ( 60 ) + - 70, - 24 ) AS col2
----
-490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4609
SELECT MAX( - 65 ) DIV + 36
----
-1

skipif mysql # not compatible
query I rowsort label-4609
SELECT MAX ( - 65 ) / + 36
----
-1

query I rowsort
SELECT ALL + 31 + 55
----
86

query I rowsort
SELECT - ( 28 )
----
-28

query I rowsort
SELECT - 73 - 18
----
-91

query I rowsort
SELECT 29 * + 33
----
957

onlyif mysql # DIV for integer division: 
query I rowsort label-4614
SELECT ALL 17 DIV + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL 17 / + 57 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT - 56 DIV + ( 35 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4615
SELECT - 56 / + ( 35 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL COUNT( * ) - - 6 * 98 AS col2
----
589

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL COUNT ( * ) - - 6 * 98 AS col2
----
589

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4617
SELECT ALL CASE + 33 WHEN + 4 THEN + CASE + ( 67 ) WHEN + 25 / + 87 THEN 95 * + 91 WHEN + 83 * - CAST( + 53 AS DECIMAL ) + 88 THEN NULL ELSE - 6 END END - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL CASE + 33 WHEN + 4 THEN + CASE + ( 67 ) WHEN + 25 / + 87 THEN 95 * + 91 WHEN + 83 * - CAST ( + 53 AS REAL ) + 88 THEN NULL ELSE - 6 END END - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT COALESCE ( + COUNT( * ), 53 * - COUNT( * ) - + 28 ) - 55 * - 99
----
5446

skipif mysql # not compatible
query I rowsort label-4618
SELECT COALESCE ( + COUNT ( * ), 53 * - COUNT ( * ) - + 28 ) - 55 * - 99
----
5446

query I rowsort
SELECT 27 - - 49
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT - MAX( + + 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4620
SELECT - MAX ( + + 93 ) AS col0
----
-93

query I rowsort
SELECT ALL NULLIF ( + - 68, 95 * + 10 ) - + 79
----
-147

query I rowsort
SELECT 11 * + 84 AS col0
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT 17 + - MAX( ALL - 42 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4623
SELECT 17 + - MAX ( ALL - 42 ) AS col0
----
59

query I rowsort
SELECT 52 * + 10 * 15 AS col2
----
7800

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT COUNT( * ) * - 27 * 90
----
-2430

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT COUNT ( * ) * - 27 * 90
----
-2430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT CAST( NULL AS SIGNED ) + - + CASE 68 WHEN - 99 THEN NULL WHEN - 47 * 23 THEN COUNT( * ) WHEN - CASE + COUNT( * ) WHEN + 1 * CASE 24 WHEN - 34 * - 66 THEN NULL WHEN 62 * 93 + 86 THEN 76 * 28 WHEN + 7 THEN + 1 * - 9 + - COUNT( * ) ELSE 82 END + 2 * - COUNT( * ) THEN 24 * + ( + 8 * + 65 ) END THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4626
SELECT CAST ( NULL AS INTEGER ) + - + CASE 68 WHEN - 99 THEN NULL WHEN - 47 * 23 THEN COUNT ( * ) WHEN - CASE + COUNT ( * ) WHEN + 1 * CASE 24 WHEN - 34 * - 66 THEN NULL WHEN 62 * 93 + 86 THEN 76 * 28 WHEN + 7 THEN + 1 * - 9 + - COUNT ( * ) ELSE 82 END + 2 * - COUNT ( * ) THEN 24 * + ( + 8 * + 65 ) END THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 62 - - 95 AS col2
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4628
SELECT COUNT( * ) + + 41 DIV ( - 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4628
SELECT COUNT ( * ) + + 41 / ( - 91 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT COALESCE ( 12, 49 + - 72 ) * COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4629
SELECT COALESCE ( 12, 49 + - 72 ) * COUNT ( * ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4630
SELECT 55 * CASE 44 WHEN - CAST( 31 AS DECIMAL ) * MIN( DISTINCT - 37 ) THEN - ( COUNT( * ) ) * + 64 + + 56 END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT 55 * CASE 44 WHEN - CAST ( 31 AS REAL ) * MIN ( DISTINCT - 37 ) THEN - ( COUNT ( * ) ) * + 64 + + 56 END * - COUNT ( * )
----
NULL

query I rowsort
SELECT 61 + - 11
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4632
SELECT DISTINCT + 93 DIV + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT + 93 / + COUNT ( * )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4633
SELECT ( - 61 ) DIV 1
----
-61

skipif mysql # not compatible
query I rowsort label-4633
SELECT ( - 61 ) / 1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-4634
SELECT + 81 DIV - 43 + 4
----
3

skipif mysql # not compatible
query I rowsort label-4634
SELECT + 81 / - 43 + 4
----
3

query I rowsort
SELECT ALL + + ( 99 ) * 15
----
1485

query I rowsort
SELECT - 55 * 28 * + 14
----
-21560

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT - + SUM( - + 70 ) * - 20
----
-1400

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT - + SUM ( - + 70 ) * - 20
----
-1400

query I rowsort
SELECT ALL - 36 * - 59 + + 63
----
2187

query I rowsort
SELECT ALL + 72 * + 22 + - 35 AS col0
----
1549

query I rowsort
SELECT DISTINCT 0 * - + 36 + - 25 AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4641
SELECT 64 * CAST( COUNT( * ) AS SIGNED ) * 60 AS col1
----
3840

skipif mysql # not compatible
query I rowsort label-4641
SELECT 64 * CAST ( COUNT ( * ) AS INTEGER ) * 60 AS col1
----
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT + COALESCE ( - COUNT( * ), 66, + 2 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4642
SELECT + COALESCE ( - COUNT ( * ), 66, + 2 ) AS col0
----
-1

query I rowsort
SELECT - 71 + - - 12
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT - 76 * - SUM( ALL 18 )
----
1368

skipif mysql # not compatible
query I rowsort label-4644
SELECT - 76 * - SUM ( ALL 18 )
----
1368

query I rowsort
SELECT DISTINCT + 19 - - 33
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4646
SELECT DISTINCT + COUNT( * ) DIV ( 8 ) + 83
----
83

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + COUNT ( * ) / ( 8 ) + 83
----
83

query I rowsort
SELECT + + 81 * + 17 AS col0
----
1377

query I rowsort
SELECT + 40 + - - 59 AS col0
----
99

query I rowsort
SELECT - 10 * + - 80
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT + COUNT( * ) + 34 + - + 21 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4650
SELECT + COUNT ( * ) + 34 + - + 21 AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4651
SELECT - 87 * 65 DIV - + 46 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-4651
SELECT - 87 * 65 / - + 46 AS col2
----
122

onlyif mysql # DIV for integer division: 
query II rowsort label-4652
SELECT ALL 28 col0, - ( + 85 ) DIV + 45
----
28
-1

skipif mysql # not compatible
query II rowsort label-4652
SELECT ALL 28 col0, - ( + 85 ) / + 45
----
28
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4653
SELECT DISTINCT CAST( - ( + 46 ) AS SIGNED ) DIV + 29
----
-1

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT CAST ( - ( + 46 ) AS INTEGER ) / + 29
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + 56 * + - COALESCE ( COUNT( * ), ( + 49 ) + + 66 )
----
-56

skipif mysql # not compatible
query I rowsort label-4654
SELECT + 56 * + - COALESCE ( COUNT ( * ), ( + 49 ) + + 66 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4655
SELECT ALL 39 AS col1, + 62 * + CAST( NULL AS SIGNED ) + 0 AS col0
----
39
NULL

skipif mysql # not compatible
query II rowsort label-4655
SELECT ALL 39 AS col1, + 62 * + CAST ( NULL AS INTEGER ) + 0 AS col0
----
39
NULL

query I rowsort
SELECT - COALESCE ( - NULLIF ( 68, 31 ), - 77, 2 )
----
68

query I rowsort
SELECT DISTINCT 86 * - 8 col2
----
-688

query I rowsort
SELECT + 20 * + - 57 AS col2
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT + COUNT( * ) * - - COUNT( - + 4 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4659
SELECT + COUNT ( * ) * - - COUNT ( - + 4 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4660
SELECT DISTINCT 2, COUNT( * ) * + 71 + COUNT( * ) col0
----
2
72

skipif mysql # not compatible
query II rowsort label-4660
SELECT DISTINCT 2, COUNT ( * ) * + 71 + COUNT ( * ) col0
----
2
72

query I rowsort
SELECT - NULLIF ( 25, - + 41 + - 32 * - 69 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4662
SELECT - 4 AS col0, - CAST( NULL AS SIGNED ) + COUNT( * ) * 60
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-4662
SELECT - 4 AS col0, - CAST ( NULL AS INTEGER ) + COUNT ( * ) * 60
----
-4
NULL

query I rowsort
SELECT + 14 - + 47
----
-33

query I rowsort
SELECT ALL 85 + + 93 + - 96 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL - 47 + + 7 * + COUNT( * ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL - 47 + + 7 * + COUNT ( * ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT - MIN( 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4666
SELECT - MIN ( 68 ) AS col0
----
-68

query I rowsort
SELECT ALL - 51 col2
----
-51

query I rowsort
SELECT + ( 0 )
----
0

query II rowsort
SELECT ALL - 38, + 93 AS col2
----
-38
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4670
SELECT ALL - 46 DIV + 29 + - - 54
----
53

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL - 46 / + 29 + - - 54
----
53

query I rowsort
SELECT - + 86 * - 80 AS col0
----
6880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4672
SELECT ALL - 82 DIV 92 + + 52 + 67 * ( + COUNT( * ) DIV 80 )
----
52

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL - 82 / 92 + + 52 + 67 * ( + COUNT ( * ) / 80 )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT ( + - 69 ) DIV 15 - 13 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-4673
SELECT ( + - 69 ) / 15 - 13 AS col0
----
-17

query I rowsort
SELECT + - 75 * 75 + - + ( 32 )
----
-5657

query II rowsort
SELECT + 41 AS col0, - 65 + - + 43 AS col1
----
41
-108

query I rowsort
SELECT - 60 + + + 56 + - 7 AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4677
SELECT ALL - 71 DIV 1 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - 71 / 1 AS col0
----
-71

query II rowsort
SELECT + + 43 AS col0, + 1 AS col1
----
43
1

query I rowsort
SELECT - 73 + + ( - - 93 ) + + 30 AS col1
----
50

query II rowsort
SELECT ALL + 48 AS col0, + ( - - 17 ) * + 75
----
48
1275

query I rowsort
SELECT + NULLIF ( - 5, + 18 * 12 ) AS col0
----
-5

query I rowsort
SELECT ALL + - 35 AS col0
----
-35

query I rowsort
SELECT DISTINCT + 9 col2
----
9

query I rowsort
SELECT - 34 * - 77 * - + 72 * + 58
----
-10932768

query I rowsort
SELECT - 99 + + 29
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT NULLIF ( 30, + - COUNT( * ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4686
SELECT NULLIF ( 30, + - COUNT ( * ) ) AS col0
----
30

query I rowsort
SELECT NULLIF ( - 98, AVG ( + 62 ) ) AS col0
----
-98

query I rowsort
SELECT - 28 - - - 20
----
-48

query I rowsort
SELECT - 87 * - 82 * + 37
----
263958

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT + MIN( - 19 ) * + - 61
----
1159

skipif mysql # not compatible
query I rowsort label-4690
SELECT + MIN ( - 19 ) * + - 61
----
1159

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT DISTINCT CASE + COUNT( * ) WHEN 64 THEN - - 53 WHEN + ( 61 ) * COUNT( ALL 81 - - 30 ) THEN 20 ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT CASE + COUNT ( * ) WHEN 64 THEN - - 53 WHEN + ( 61 ) * COUNT ( ALL 81 - - 30 ) THEN 20 ELSE - COUNT ( * ) END
----
-1

query I rowsort
SELECT ALL 51 * + - 86 col2
----
-4386

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4693
SELECT DISTINCT ( - 40 ) AS col2, ( 96 ) + CAST( + 78 AS SIGNED ) AS col0
----
-40
174

skipif mysql # not compatible
query II rowsort label-4693
SELECT DISTINCT ( - 40 ) AS col2, ( 96 ) + CAST ( + 78 AS INTEGER ) AS col0
----
-40
174

query I rowsort
SELECT - COALESCE ( - 74, 23 + 75 - - 70 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4695
SELECT ALL 11 * + NULLIF ( + CASE - 55 WHEN - COUNT( * ) + - 29 THEN 64 - + ( COUNT( * ) ) ELSE - NULLIF ( CAST( NULL AS DECIMAL ), 34 ) + COUNT( * ) * + NULLIF ( 61 + COUNT( * ), 47 - + 8 ) END, 17 * - AVG ( ( - 39 ) ) ) + - ( - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL 11 * + NULLIF ( + CASE - 55 WHEN - COUNT ( * ) + - 29 THEN 64 - + ( COUNT ( * ) ) ELSE - NULLIF ( CAST ( NULL AS REAL ), 34 ) + COUNT ( * ) * + NULLIF ( 61 + COUNT ( * ), 47 - + 8 ) END, 17 * - AVG ( ( - 39 ) ) ) + - ( - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 93 * - 17 AS col2
----
-1581

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT - COUNT( * ) + + 83 + - 32 + + ( - 75 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4697
SELECT - COUNT ( * ) + + 83 + - 32 + + ( - 75 ) AS col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT + ( + CAST( NULL AS SIGNED ) ) * + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT + ( + CAST ( NULL AS INTEGER ) ) * + + 80
----
NULL

query I rowsort
SELECT ALL 9 + 92
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4700
SELECT - 14 + - COUNT( * ) * + 1 DIV + 57 * + 57
----
-14

skipif mysql # not compatible
query I rowsort label-4700
SELECT - 14 + - COUNT ( * ) * + 1 / + 57 * + 57
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT - ( + MAX( - 35 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4701
SELECT - ( + MAX ( - 35 ) ) AS col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT ALL 2 DIV - 3 * - - 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL 2 / - 3 * - - 43 AS col0
----
0

query I rowsort
SELECT DISTINCT - 76 + + - 73
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT + + COUNT( * ) + - NULLIF ( + + 30, COUNT( * ) ) - 43 * 32 * 81 AS col1
----
-111485

skipif mysql # not compatible
query I rowsort label-4704
SELECT + + COUNT ( * ) + - NULLIF ( + + 30, COUNT ( * ) ) - 43 * 32 * 81 AS col1
----
-111485

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT + MIN( DISTINCT - 48 ) + - + NULLIF ( - 89, 15 ) * + 48
----
4224

skipif mysql # not compatible
query I rowsort label-4705
SELECT + MIN ( DISTINCT - 48 ) + - + NULLIF ( - 89, 15 ) * + 48
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL COUNT( + - 68 )
----
1

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL COUNT ( + - 68 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT + 78 + MIN( ALL - CASE - 15 WHEN 94 THEN NULL WHEN 87 THEN 83 + 17 WHEN ( 65 ) THEN 23 END ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT + 78 + MIN ( ALL - CASE - 15 WHEN 94 THEN NULL WHEN 87 THEN 83 + 17 WHEN ( 65 ) THEN 23 END ) * 9
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4708
SELECT - COALESCE ( + + 65, + + 88, - 58 + - 12 DIV 44 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-4708
SELECT - COALESCE ( + + 65, + + 88, - 58 + - 12 / 44 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT ( - COUNT( * ) ) * - 33
----
33

skipif mysql # not compatible
query I rowsort label-4709
SELECT ( - COUNT ( * ) ) * - 33
----
33

query I rowsort
SELECT + 0 * + 54 * 9 - - 95
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4711
SELECT + + MIN( 92 ) AS col0, + 75
----
92
75

skipif mysql # not compatible
query II rowsort label-4711
SELECT + + MIN ( 92 ) AS col0, + 75
----
92
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT + + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4712
SELECT + + ( COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT - NULLIF ( + 99, - - 8 )
----
-99

query II rowsort
SELECT 34 + + 87, 44 AS col2
----
121
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT - 33 * + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4715
SELECT - 33 * + - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT + NULLIF ( + - MAX( 37 ), + ( 23 ) ) + ( 81 - 31 * - 64 ) AS col1
----
2028

skipif mysql # not compatible
query I rowsort label-4716
SELECT + NULLIF ( + - MAX ( 37 ), + ( 23 ) ) + ( 81 - 31 * - 64 ) AS col1
----
2028

query I rowsort
SELECT + NULLIF ( + ( + + 97 ), + 55 + - 62 )
----
97

query I rowsort
SELECT - 89 * 83 * + 56 * + + 52 + + 41
----
-21510903

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT 56 DIV - + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4719
SELECT 56 / - + 85 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4720
SELECT - ( 0 ) * + - CAST( NULL AS SIGNED ) + - 97 - - - CASE - ( - 45 ) WHEN + 49 * - COUNT( * ) + CASE + 24 WHEN - 10 * - 38 + 23 THEN - 0 * + 30 + 40 / - 95 END THEN + 6 * 11 WHEN 97 THEN NULL WHEN COUNT( ALL - CASE + 58 WHEN - 35 / 36 THEN + 5 WHEN - ( 68 ) THEN 34 END ) + - MIN( DISTINCT + 15 - + 66 ) / - COUNT( * ) THEN - ( 87 ) ELSE NULL END * - NULLIF ( COUNT( * ) + 57, - 19 ) - + SUM( + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT - ( 0 ) * + - CAST ( NULL AS INTEGER ) + - 97 - - - CASE - ( - 45 ) WHEN + 49 * - COUNT ( * ) + CASE + 24 WHEN - 10 * - 38 + 23 THEN - 0 * + 30 + 40 / - 95 END THEN + 6 * 11 WHEN 97 THEN NULL WHEN COUNT ( ALL - CASE + 58 WHEN - 35 / 36 THEN + 5 WHEN - ( 68 ) THEN 34 END ) + - MIN ( DISTINCT + 15 - + 66 ) / - COUNT ( * ) THEN - ( 87 ) ELSE NULL END * - NULLIF ( COUNT ( * ) + 57, - 19 ) - + SUM ( + 99 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT 36 * + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4721
SELECT 36 * + COUNT ( * )
----
36

query I rowsort
SELECT DISTINCT + 6 + + 46 * - 50 * 46 * - + 22 AS col2
----
2327606

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL - 52 + MAX( + + 94 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL - 52 + MAX ( + + 94 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT + 51 * - - 74 * NULLIF ( + CASE + 88 WHEN + 92 THEN 94 - 7 * COUNT( * ) WHEN + 41 THEN COUNT( * ) END, + COUNT( * ) * - 15 ) + COUNT( * ) * 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT + 51 * - - 74 * NULLIF ( + CASE + 88 WHEN + 92 THEN 94 - 7 * COUNT ( * ) WHEN + 41 THEN COUNT ( * ) END, + COUNT ( * ) * - 15 ) + COUNT ( * ) * 1 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 7 + 48
----
55

query II rowsort
SELECT - 90, - 0 + - 53 + 29 + 34 + + 88 * - 21 AS col0
----
-90
-1838

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4727
SELECT ALL + 89 + - 77 + - ( + 45 ) + - ( - CAST( NULL AS DECIMAL ) ) * 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL + 89 + - 77 + - ( + 45 ) + - ( - CAST ( NULL AS REAL ) ) * 61 AS col2
----
NULL

query I rowsort
SELECT 51 * + 72 AS col1
----
3672

query I rowsort
SELECT ALL - 62 * + + 57
----
-3534

query I rowsort
SELECT ALL - 89 + + 45
----
-44

query I rowsort
SELECT 77 * - 41 AS col2
----
-3157

query I rowsort
SELECT DISTINCT 96 * 19
----
1824

query I rowsort
SELECT ALL - NULLIF ( - + 97, - 17 - + + 30 - - - 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT COUNT( * ) * + 35 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4734
SELECT COUNT ( * ) * + 35 AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT DISTINCT - + 93 * - + 22 + + - 1 + - CAST( NULL AS SIGNED ) * + - ( 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT - + 93 * - + 22 + + - 1 + - CAST ( NULL AS INTEGER ) * + - ( 42 )
----
NULL

query II rowsort
SELECT - COALESCE ( + 85, + 13 ), 13 col0
----
-85
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT - 6 * 73 * COUNT( * ) + + - 65 + - + 24 * 74
----
-2279

skipif mysql # not compatible
query I rowsort label-4737
SELECT - 6 * 73 * COUNT ( * ) + + - 65 + - + 24 * 74
----
-2279

query I rowsort
SELECT - - CASE - 10 WHEN - - 63 THEN NULL ELSE + 41 END
----
41

query I rowsort
SELECT 49 - 44
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4740
SELECT DISTINCT - SUM( - 20 ) DIV - 64 col2
----
0

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT - SUM ( - 20 ) / - 64 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT MIN( ALL 46 ) col1
----
46

skipif mysql # not compatible
query I rowsort label-4741
SELECT MIN ( ALL 46 ) col1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4742
SELECT - 51 DIV COUNT( * ) * 71
----
-3621

skipif mysql # not compatible
query I rowsort label-4742
SELECT - 51 / COUNT ( * ) * 71
----
-3621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4743
SELECT - CAST( + COUNT( * ) AS SIGNED ) / - 39 + 64 / - + CASE + MIN( NULLIF ( 62, - 65 ) ) WHEN ( COALESCE ( - 87, + COUNT( * ) ) ) * + COUNT( * ) THEN + COUNT( * ) END * + 95 - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) / - 39 + 64 / - + CASE + MIN ( NULLIF ( 62, - 65 ) ) WHEN ( COALESCE ( - 87, + COUNT ( * ) ) ) * + COUNT ( * ) THEN + COUNT ( * ) END * + 95 - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT DISTINCT - + SUM( + ( - 96 ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT - + SUM ( + ( - 96 ) ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT + COUNT( * ) * + 21 + - 33
----
-12

skipif mysql # not compatible
query I rowsort label-4745
SELECT + COUNT ( * ) * + 21 + - 33
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4746
SELECT + ( + 56 ) * COUNT( * ) * + CASE + - COUNT( * ) WHEN 73 * + CAST( NULL AS SIGNED ) THEN NULL WHEN COALESCE ( COUNT( * ), + 13, + 38 DIV 77 ) THEN + 78 DIV - 6 ELSE NULLIF ( + 57, + COUNT( * ) ) END
----
3192

skipif mysql # not compatible
query I rowsort label-4746
SELECT + ( + 56 ) * COUNT ( * ) * + CASE + - COUNT ( * ) WHEN 73 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN COALESCE ( COUNT ( * ), + 13, + 38 / 77 ) THEN + 78 / - 6 ELSE NULLIF ( + 57, + COUNT ( * ) ) END
----
3192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4747
SELECT - - 57 / + 68 + - + 92 + 95 + - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT - - 57 / + 68 + - + 92 + 95 + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4748
SELECT DISTINCT + 83 + - + CAST( NULL AS SIGNED ), 90 * + ( - - 52 ) * 29 AS col2
----
NULL
135720

skipif mysql # not compatible
query II rowsort label-4748
SELECT DISTINCT + 83 + - + CAST ( NULL AS INTEGER ), 90 * + ( - - 52 ) * 29 AS col2
----
NULL
135720

query II rowsort
SELECT ALL - 1 AS col2, 67
----
-1
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT 36 * + - 42 * + COUNT( * )
----
-1512

skipif mysql # not compatible
query I rowsort label-4750
SELECT 36 * + - 42 * + COUNT ( * )
----
-1512

query II rowsort
SELECT ALL 87 + 42, - 27 col0
----
129
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL COALESCE ( + 81, + COUNT( * ) * - 60 + + 37 ) + + 90 + - ( - 0 ) * - 81
----
171

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL COALESCE ( + 81, + COUNT ( * ) * - 60 + + 37 ) + + 90 + - ( - 0 ) * - 81
----
171

query I rowsort
SELECT DISTINCT 4 * 1 AS col1
----
4

query I rowsort
SELECT ALL - 65 + - 84 AS col0
----
-149

onlyif mysql # aggregate syntax: 
query II rowsort label-4755
SELECT + COUNT( * ) AS col1, - 20 * + - 29 * + 72 + - + 47 * + 65
----
1
38705

skipif mysql # not compatible
query II rowsort label-4755
SELECT + COUNT ( * ) AS col1, - 20 * + - 29 * + 72 + - + 47 * + 65
----
1
38705

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4756
SELECT ALL - 91, 14 + CAST( NULL AS SIGNED ) * - 15 col0
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-4756
SELECT ALL - 91, 14 + CAST ( NULL AS INTEGER ) * - 15 col0
----
-91
NULL

query I rowsort
SELECT 56 * - 67 * 70 * + 22 * + + 14 + + + 70 AS col0
----
-80893050

query I rowsort
SELECT 62 * - + 12 AS col1
----
-744

query II rowsort
SELECT 65 AS col2, 41 AS col1
----
65
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL 33 + + - COUNT( * ) - - MIN( 78 )
----
110

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL 33 + + - COUNT ( * ) - - MIN ( 78 )
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-4761
SELECT + COUNT( * ), 13 AS col1
----
1
13

skipif mysql # not compatible
query II rowsort label-4761
SELECT + COUNT ( * ), 13 AS col1
----
1
13

query I rowsort
SELECT AVG ( + - 97 ) - + CASE - 29 WHEN - 99 + 10 THEN 92 * - 96 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT + MIN( DISTINCT 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4763
SELECT + MIN ( DISTINCT 34 )
----
34

query II rowsort
SELECT 16 col0, 52 + 92
----
16
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4765
SELECT DISTINCT COUNT( * ) DIV + - 43 * - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT COUNT ( * ) / + - 43 * - 55 AS col1
----
0

query I rowsort
SELECT ALL - 30 * - 44 AS col1
----
1320

query I rowsort
SELECT ALL 73 + - 75 + 65 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT DISTINCT 32 + - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT 32 + - COUNT ( * )
----
31

query I rowsort
SELECT DISTINCT 91 * 94 * + - 51
----
-436254

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ALL - MIN( - - 13 ) - + 41
----
-54

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL - MIN ( - - 13 ) - + 41
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT 86 - - + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-4771
SELECT 86 - - + COUNT ( * )
----
87

query I rowsort
SELECT DISTINCT 67 * + - 66 * 27
----
-119394

query I rowsort
SELECT 96 - + + 67 AS col1
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT DISTINCT - 67, COUNT( * ) AS col2
----
-67
1

skipif mysql # not compatible
query II rowsort label-4774
SELECT DISTINCT - 67, COUNT ( * ) AS col2
----
-67
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4775
SELECT ALL - 19 - - - 95 DIV + 85 - 33 + + 31 + - - CAST( + 9 AS SIGNED ) + - 67
----
-80

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL - 19 - - - 95 / + 85 - 33 + + 31 + - - CAST ( + 9 AS INTEGER ) + - 67
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4776
SELECT - 99 + CAST( NULL AS SIGNED ) + + 25 + + - COUNT( * ) + + CAST( NULL AS SIGNED ) / - ( - SUM( DISTINCT 92 ) ) + + 65 * 78 * COUNT( * ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT - 99 + CAST ( NULL AS INTEGER ) + + 25 + + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) / - ( - SUM ( DISTINCT 92 ) ) + + 65 * 78 * COUNT ( * ) * 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4777
SELECT - - 75 * COUNT( * ) DIV + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4777
SELECT - - 75 * COUNT ( * ) / + COUNT ( * ) AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT - 13 + NULLIF ( - + 47, + CAST( NULL AS SIGNED ) * - 47 + - ( - 73 ) * 4 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4778
SELECT - 13 + NULLIF ( - + 47, + CAST ( NULL AS INTEGER ) * - 47 + - ( - 73 ) * 4 ) AS col0
----
-60

query I rowsort
SELECT - + 47 * + 21 AS col1
----
-987

onlyif mysql # aggregate syntax: 
query II rowsort label-4780
SELECT ALL + 7 AS col1, + 3 * + COUNT( * ) + + 53
----
7
56

skipif mysql # not compatible
query II rowsort label-4780
SELECT ALL + 7 AS col1, + 3 * + COUNT ( * ) + + 53
----
7
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4781
SELECT ALL + COUNT( * ), 5 + 35 AS col2
----
1
40

skipif mysql # not compatible
query II rowsort label-4781
SELECT ALL + COUNT ( * ), 5 + 35 AS col2
----
1
40

query I rowsort
SELECT ALL - + 16 * - - 76 + - 46
----
-1262

query I rowsort
SELECT - + 97 + + 69 AS col0
----
-28

query I rowsort
SELECT ALL - 92 * + 11
----
-1012

query I rowsort
SELECT - - NULLIF ( + 91, + 41 ) + 2 * - 35
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-4786
SELECT COUNT( * ) AS col0, - 66 - + 7
----
1
-73

skipif mysql # not compatible
query II rowsort label-4786
SELECT COUNT ( * ) AS col0, - 66 - + 7
----
1
-73

query I rowsort
SELECT DISTINCT + + 86 + + 4 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4788
SELECT + - CAST( + - 43 AS SIGNED ) + + 50 - + ( COUNT( * ) ) + - - 85 + 26
----
203

skipif mysql # not compatible
query I rowsort label-4788
SELECT + - CAST ( + - 43 AS INTEGER ) + + 50 - + ( COUNT ( * ) ) + - - 85 + 26
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL + SUM( ALL 91 ) col2
----
91

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL + SUM ( ALL 91 ) col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT - - COUNT( * ) + + ( + ( - 89 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-4790
SELECT - - COUNT ( * ) + + ( + ( - 89 ) )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4791
SELECT NULLIF ( + + NULLIF ( + - 69, COUNT( ALL - - 27 ) ), + COUNT( * ) / - COUNT( * ) + + ( 98 + CAST( 40 AS SIGNED ) ) + NULLIF ( + AVG ( 32 ), 42 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-4791
SELECT NULLIF ( + + NULLIF ( + - 69, COUNT ( ALL - - 27 ) ), + COUNT ( * ) / - COUNT ( * ) + + ( 98 + CAST ( 40 AS INTEGER ) ) + NULLIF ( + AVG ( 32 ), 42 ) )
----
-69

query I rowsort
SELECT ALL - 78 * - 12 + + 41 col2
----
977

query I rowsort
SELECT ALL + 11 * + 95 + - + 92
----
953

query II rowsort
SELECT ALL 55 * + 50 + + - 13 AS col0, 44
----
2737
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL + ( - - COUNT( - - 90 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL + ( - - COUNT ( - - 90 ) )
----
1

query I rowsort
SELECT COALESCE ( 51, + - 91 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT + CASE - SUM( DISTINCT + 80 ) WHEN + 35 * 5 + - 44 * + 80 THEN CASE 14 WHEN + AVG ( ALL 93 ) THEN NULL WHEN COALESCE ( 72, 67 / 96 + - 90, + AVG ( 5 ), + 84 * + ( - 87 ) ) - - 77 THEN - 37 + 45 END WHEN 14 THEN 1 WHEN - 70 * 45 THEN - 34 END + + 45 * NULLIF ( - 13 / 10, - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT + CASE - SUM ( DISTINCT + 80 ) WHEN + 35 * 5 + - 44 * + 80 THEN CASE 14 WHEN + AVG ( ALL 93 ) THEN NULL WHEN COALESCE ( 72, 67 / 96 + - 90, + AVG ( 5 ), + 84 * + ( - 87 ) ) - - 77 THEN - 37 + 45 END WHEN 14 THEN 1 WHEN - 70 * 45 THEN - 34 END + + 45 * NULLIF ( - 13 / 10, - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT ALL SUM( DISTINCT + + 99 ) * - 61 * - COUNT( * ) * + - 87 + + 17 + 30
----
-525346

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL SUM ( DISTINCT + + 99 ) * - 61 * - COUNT ( * ) * + - 87 + + 17 + 30
----
-525346

query I rowsort
SELECT COALESCE ( - 80, - 17 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT + 92 + + - 20 + - - MIN( ALL + - 4 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4800
SELECT + 92 + + - 20 + - - MIN ( ALL + - 4 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT ALL + CASE 57 WHEN + + 88 THEN NULL ELSE 51 * COUNT( * ) + - 70 + 0 + + 1 END * COUNT( * ) - + COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + CASE 57 WHEN + + 88 THEN NULL ELSE 51 * COUNT ( * ) + - 70 + 0 + + 1 END * COUNT ( * ) - + COUNT ( * ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT + CASE - - 78 WHEN + 1 THEN 79 WHEN - 61 - COALESCE ( + + NULLIF ( + 67, - COUNT( * ) ), + COUNT( * ) * - COUNT( * ) - + NULLIF ( + COALESCE ( + 70, + 54 + - 95 / ( - 78 * - 37 ) ), ( + 61 ) ) * 21 ) + - 6 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT + CASE - - 78 WHEN + 1 THEN 79 WHEN - 61 - COALESCE ( + + NULLIF ( + 67, - COUNT ( * ) ), + COUNT ( * ) * - COUNT ( * ) - + NULLIF ( + COALESCE ( + 70, + 54 + - 95 / ( - 78 * - 37 ) ), ( + 61 ) ) * 21 ) + - 6 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4803
SELECT ALL CAST( + - 16 AS SIGNED ) * + + 86 * + COALESCE ( + 68, - 94, ( - 24 ), - 22 + + 61 * 19 ) + + COUNT( * ) * 4 - 6 DIV - 43
----
-93564

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL CAST ( + - 16 AS INTEGER ) * + + 86 * + COALESCE ( + 68, - 94, ( - 24 ), - 22 + + 61 * 19 ) + + COUNT ( * ) * 4 - 6 / - 43
----
-93564

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT + COALESCE ( - 69, + + 5, - 70, + - CASE + + 92 WHEN + 15 THEN COUNT( * ) * - NULLIF ( - 70 * 99, - 33 ) WHEN - 5 THEN 62 END )
----
-69

skipif mysql # not compatible
query I rowsort label-4804
SELECT + COALESCE ( - 69, + + 5, - 70, + - CASE + + 92 WHEN + 15 THEN COUNT ( * ) * - NULLIF ( - 70 * 99, - 33 ) WHEN - 5 THEN 62 END )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT + 38 + COALESCE ( - - NULLIF ( + - ( + 0 ), - 97 * 42 + 5 ), - 57, COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-4805
SELECT + 38 + COALESCE ( - - NULLIF ( + - ( + 0 ), - 97 * 42 + 5 ), - 57, COUNT ( * ) )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT + COUNT( * ) * + ( ( - 10 ) ) * 45 + - + 21 + 73 * 42
----
2595

skipif mysql # not compatible
query I rowsort label-4806
SELECT + COUNT ( * ) * + ( ( - 10 ) ) * 45 + - + 21 + 73 * 42
----
2595

query I rowsort
SELECT + 14 + - + 18 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT ALL 20 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL 20 / 79
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT + COALESCE ( 41, - 5 * + 35 ) DIV - 24 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4809
SELECT + COALESCE ( 41, - 5 * + 35 ) / - 24 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4810
SELECT DISTINCT MAX( 41 ), 77 AS col0
----
41
77

skipif mysql # not compatible
query II rowsort label-4810
SELECT DISTINCT MAX ( 41 ), 77 AS col0
----
41
77

query I rowsort
SELECT ALL 27 * + 88 AS col0
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT + - COUNT( * ) * - + COALESCE ( + 34, 97 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + - COUNT ( * ) * - + COALESCE ( + 34, 97 ) AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4813
SELECT ALL - - 63 * + + 48 DIV - - COUNT( * ) AS col2
----
3024

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL - - 63 * + + 48 / - - COUNT ( * ) AS col2
----
3024

query I rowsort
SELECT + + 1 * + 93 AS col1
----
93

query I rowsort
SELECT DISTINCT 55 col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL + 63 * + + ( + COUNT( * ) ) + + 32 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + 63 * + + ( + COUNT ( * ) ) + + 32 AS col2
----
95

query I rowsort
SELECT + + 57 + - + ( + 70 ) + + + 74 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT - - COUNT( ALL + 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4818
SELECT - - COUNT ( ALL + 75 ) AS col1
----
1

query I rowsort
SELECT ALL + - 84 + - - ( 47 ) AS col2
----
-37

query II rowsort
SELECT DISTINCT - ( + 8 ) AS col2, 82
----
-8
82

query I rowsort
SELECT - 74 * + 73
----
-5402

query I rowsort
SELECT - - 78 col2
----
78

query I rowsort
SELECT ALL ( - 44 ) AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4824
SELECT - ( - + COUNT( * ) ) - - + 74 - - CAST( 71 AS SIGNED ) AS col0
----
146

skipif mysql # not compatible
query I rowsort label-4824
SELECT - ( - + COUNT ( * ) ) - - + 74 - - CAST ( 71 AS INTEGER ) AS col0
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-4825
SELECT ALL + 11 + - 34 DIV 96 * - 85 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL + 11 + - 34 / 96 * - 85 AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4826
SELECT CAST( + - 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-4826
SELECT CAST ( + - 14 AS INTEGER )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT - - 42 * + 49 * - - COUNT( * )
----
2058

skipif mysql # not compatible
query I rowsort label-4827
SELECT - - 42 * + 49 * - - COUNT ( * )
----
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT ALL + 30 + - CASE MAX( DISTINCT - ( 2 ) ) WHEN + 13 + + ( + MIN( ALL 76 ) ) + + COUNT( 7 ) THEN NULL ELSE + COUNT( * ) * ( 68 ) END + + ( 22 + COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL + 30 + - CASE MAX ( DISTINCT - ( 2 ) ) WHEN + 13 + + ( + MIN ( ALL 76 ) ) + + COUNT ( 7 ) THEN NULL ELSE + COUNT ( * ) * ( 68 ) END + + ( 22 + COUNT ( * ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL - 38 + - + COUNT( * ) * NULLIF ( + 87, + + 38 )
----
-125

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL - 38 + - + COUNT ( * ) * NULLIF ( + 87, + + 38 )
----
-125

query I rowsort
SELECT DISTINCT + 47 * - 3 * - 48
----
6768

onlyif mysql # aggregate syntax: 
query II rowsort label-4831
SELECT - 89 * 18 + 66 + - + 29 + + 42 * - - COUNT( * ), 44 col1
----
-1523
44

skipif mysql # not compatible
query II rowsort label-4831
SELECT - 89 * 18 + 66 + - + 29 + + 42 * - - COUNT ( * ), 44 col1
----
-1523
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4832
SELECT - COUNT( * ) - + 65 + - ( - COUNT( * ) ) DIV + 84 + + 18 * CAST( + 5 AS SIGNED ) - + 49 col2
----
-25

skipif mysql # not compatible
query I rowsort label-4832
SELECT - COUNT ( * ) - + 65 + - ( - COUNT ( * ) ) / + 84 + + 18 * CAST ( + 5 AS INTEGER ) - + 49 col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT + SUM( + 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4833
SELECT + SUM ( + 49 ) AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4834
SELECT - 87 - - 25 - + 29 + - - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT - 87 - - 25 - + 29 + - - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 21, 94 AS col0
----
21
94

query I rowsort
SELECT - 16 * + + 84 AS col2
----
-1344

onlyif mysql # DIV for integer division: 
query I rowsort label-4837
SELECT + 38 DIV - - 18 + - 83 + + 11 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4837
SELECT + 38 / - - 18 + - 83 + + 11 AS col0
----
-70

query I rowsort
SELECT ALL + ( - 40 ) AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4839
SELECT ALL - 3 * - + CAST( 90 AS SIGNED ), + 48 * + COUNT( * ) - - + COUNT( * ) + 0 AS col2
----
270
49

skipif mysql # not compatible
query II rowsort label-4839
SELECT ALL - 3 * - + CAST ( 90 AS INTEGER ), + 48 * + COUNT ( * ) - - + COUNT ( * ) + 0 AS col2
----
270
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4840
SELECT ALL COALESCE ( 3, + + 29 + - CASE - 74 WHEN + - 27 THEN NULL ELSE - ( - 75 ) END * - SUM( DISTINCT + 14 ), 44 ) / CAST( NULL AS DECIMAL ) - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL COALESCE ( 3, + + 29 + - CASE - 74 WHEN + - 27 THEN NULL ELSE - ( - 75 ) END * - SUM ( DISTINCT + 14 ), 44 ) / CAST ( NULL AS REAL ) - 85 AS col0
----
NULL

query I rowsort
SELECT - ( - 26 ) * 3 col0
----
78

query I rowsort
SELECT ALL + ( - + 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - COUNT( * ) * 25 / - - CASE + - ( - 27 ) WHEN AVG ( ALL 20 ) + + 68 THEN 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT - COUNT ( * ) * 25 / - - CASE + - ( - 27 ) WHEN AVG ( ALL 20 ) + + 68 THEN 95 END
----
NULL

query I rowsort
SELECT 77 - + + 68 + - - NULLIF ( ( 16 ), 92 + - 39 ) + - - 67 * 34
----
2303

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT COUNT( * ) * + 14
----
14

skipif mysql # not compatible
query I rowsort label-4845
SELECT COUNT ( * ) * + 14
----
14

query II rowsort
SELECT 86 + - ( 8 ) AS col1, 80
----
78
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT ALL + - MAX( - 94 ) * + 44 - + ( + - 92 ) AS col2
----
4228

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL + - MAX ( - 94 ) * + 44 - + ( + - 92 ) AS col2
----
4228

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT + 95 + CASE + NULLIF ( + + MAX( + 9 ), - ( + 24 ) ) WHEN + COALESCE ( 63, 61 ) THEN 23 - + COUNT( * ) ELSE NULL END - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT + 95 + CASE + NULLIF ( + + MAX ( + 9 ), - ( + 24 ) ) WHEN + COALESCE ( 63, 61 ) THEN 23 - + COUNT ( * ) ELSE NULL END - 41
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4849
SELECT ALL + CAST( 56 AS SIGNED ) + CAST( SUM( + + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL + CAST ( 56 AS INTEGER ) + CAST ( SUM ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 8 * - - 49 AS col1
----
392

query I rowsort
SELECT 24 + + 46 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL SUM( + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL SUM ( + 95 )
----
95

query I rowsort
SELECT - 44 + 50 + - 56 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT + 84 + + 27 * + COUNT( * ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-4854
SELECT + 84 + + 27 * + COUNT ( * ) AS col2
----
111

query I rowsort
SELECT - NULLIF ( + 35, - 69 )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4856
SELECT DISTINCT + 84 + CAST( NULL AS SIGNED ) + 7 * + 36 AS col1, 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-4856
SELECT DISTINCT + 84 + CAST ( NULL AS INTEGER ) + 7 * + 36 AS col1, 21
----
NULL
21

query I rowsort
SELECT ALL - 51 + + 20 col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT ALL - CAST( NULL AS SIGNED ) + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - CAST ( NULL AS INTEGER ) + + 70
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT ( 75 ) + + 2 + - - 76 / + 89 - + 16 * - CAST( NULL AS SIGNED ) - + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT ( 75 ) + + 2 + - - 76 / + 89 - + 16 * - CAST ( NULL AS INTEGER ) - + 29 AS col0
----
NULL

query I rowsort
SELECT ALL + CASE - 22 WHEN - + ( CASE + 6 WHEN + 97 THEN + + 50 + + - 97 - + 89 / + AVG ( ( 48 ) + 21 ) END ) THEN - 43 ELSE NULL END + + 56 AS col1
----
NULL

query I rowsort
SELECT - 33 * - 60
----
1980

query I rowsort
SELECT ALL 3 * - 79
----
-237

query I rowsort
SELECT ALL - 90 + 42
----
-48

query I rowsort
SELECT DISTINCT + 32 + - 82
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4865
SELECT DISTINCT ( CASE - - 54 WHEN CAST( + - 48 AS SIGNED ) THEN 66 ELSE NULL END ) + + COUNT( DISTINCT 95 ) * 83 - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT ( CASE - - 54 WHEN CAST ( + - 48 AS INTEGER ) THEN 66 ELSE NULL END ) + + COUNT ( DISTINCT 95 ) * 83 - 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4866
SELECT 74 + 61 + + 17 DIV + 2 col0, + 62 + + - COUNT( + - 73 ) AS col2
----
143
61

skipif mysql # not compatible
query II rowsort label-4866
SELECT 74 + 61 + + 17 / + 2 col0, + 62 + + - COUNT ( + - 73 ) AS col2
----
143
61

query II rowsort
SELECT DISTINCT - 89 - 17 AS col1, 92
----
-106
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT CAST( ( + + 17 ) AS SIGNED ) * + 89
----
1513

skipif mysql # not compatible
query I rowsort label-4868
SELECT CAST ( ( + + 17 ) AS INTEGER ) * + 89
----
1513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4869
SELECT 96 + + 71 - - 40 + COUNT( DISTINCT + 2 ) DIV NULLIF ( + 78, - - 0 * + 13 DIV 30 ) AS col1
----
207

skipif mysql # not compatible
query I rowsort label-4869
SELECT 96 + + 71 - - 40 + COUNT ( DISTINCT + 2 ) / NULLIF ( + 78, - - 0 * + 13 / 30 ) AS col1
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT - MIN( ALL + + 97 ) * 45 + + 28 * + - 14
----
-4757

skipif mysql # not compatible
query I rowsort label-4870
SELECT - MIN ( ALL + + 97 ) * 45 + + 28 * + - 14
----
-4757

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT ALL - CAST( - ( - 53 ) AS SIGNED ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL - CAST ( - ( - 53 ) AS INTEGER ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT DISTINCT - CASE - 66 WHEN + 73 THEN - MAX( DISTINCT 62 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - CASE - 66 WHEN + 73 THEN - MAX ( DISTINCT 62 ) END
----
NULL

query II rowsort
SELECT DISTINCT + + 55 * - 46, 55 - - + 56 col0
----
-2530
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT DISTINCT - + 42 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT - + 42 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4875
SELECT 49 DIV SUM( ALL - 63 )
----
0

skipif mysql # not compatible
query I rowsort label-4875
SELECT 49 / SUM ( ALL - 63 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT 93 + + 78 + + - ( - 36 ) + - - COALESCE ( 63, - 32 + + MIN( ALL 79 ) )
----
270

skipif mysql # not compatible
query I rowsort label-4876
SELECT 93 + + 78 + + - ( - 36 ) + - - COALESCE ( 63, - 32 + + MIN ( ALL 79 ) )
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL - COUNT( * ) + - - 98 - - 58 * - - 61
----
3635

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL - COUNT ( * ) + - - 98 - - 58 * - - 61
----
3635

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT COUNT( * ) * ( + 79 ) * + 14 AS col2
----
1106

skipif mysql # not compatible
query I rowsort label-4878
SELECT COUNT ( * ) * ( + 79 ) * + 14 AS col2
----
1106

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4879
SELECT DISTINCT + 13 * - 12 * + 85 * + 95, COUNT( * ) * COUNT( * ) DIV + 73 DIV + + ( + 8 ) + 56 * MIN( 35 ) AS col1
----
-1259700
1960

skipif mysql # not compatible
query II rowsort label-4879
SELECT DISTINCT + 13 * - 12 * + 85 * + 95, COUNT ( * ) * COUNT ( * ) / + 73 / + + ( + 8 ) + 56 * MIN ( 35 ) AS col1
----
-1259700
1960

query I rowsort
SELECT ALL - 55 + - - 11 - 42 AS col2
----
-86

query I rowsort
SELECT ALL - 44 + + + 49
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT ALL - COALESCE ( + 30, - 91, SUM( + - 21 ) - - COUNT( * ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL - COALESCE ( + 30, - 91, SUM ( + - 21 ) - - COUNT ( * ) ) AS col1
----
-30

query I rowsort
SELECT 18 * + + 54
----
972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT DISTINCT + ( + 82 ) * 29 - - + 7 * - CAST( + 20 AS SIGNED )
----
2238

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT + ( + 82 ) * 29 - - + 7 * - CAST ( + 20 AS INTEGER )
----
2238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT ALL - 94 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL - 94 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 37 * + ( + 20 ) - ( - - 7 )
----
733

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT DISTINCT - ( - 21 ) + + 74 + + CAST( + 73 AS SIGNED ) AS col0
----
168

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT - ( - 21 ) + + 74 + + CAST ( + 73 AS INTEGER ) AS col0
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT - 75 + - 5 + + - 25 DIV - 35 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-4888
SELECT - 75 + - 5 + + - 25 / - 35 AS col2
----
-80

query I rowsort
SELECT + NULLIF ( 8, - - 82 )
----
8

query I rowsort
SELECT 45 * - 18 AS col2
----
-810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4891
SELECT 81 * 33 * NULLIF ( + CAST( + 87 AS SIGNED ), CAST( COUNT( * ) AS SIGNED ) ) AS col0
----
232551

skipif mysql # not compatible
query I rowsort label-4891
SELECT 81 * 33 * NULLIF ( + CAST ( + 87 AS INTEGER ), CAST ( COUNT ( * ) AS INTEGER ) ) AS col0
----
232551

onlyif mysql # DIV for integer division: 
query I rowsort label-4892
SELECT ALL 10 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL 10 / 96
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4893
SELECT SUM( 58 ) - - + 32 * - + NULLIF ( CAST( + - 54 AS SIGNED ), + 79 ) AS col2
----
1786

skipif mysql # not compatible
query I rowsort label-4893
SELECT SUM ( 58 ) - - + 32 * - + NULLIF ( CAST ( + - 54 AS INTEGER ), + 79 ) AS col2
----
1786

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL COUNT( ALL 76 )
----
1

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL COUNT ( ALL 76 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT DISTINCT COALESCE ( - + ( + 95 ), + + COUNT( * ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT COALESCE ( - + ( + 95 ), + + COUNT ( * ) ) AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4896
SELECT 64 + MAX( + 25 ) * - + COUNT( * ) - - + NULLIF ( + COUNT( * ), 13 * + - MAX( + 24 ) ) + - 70 DIV 59 * 64
----
-24

skipif mysql # not compatible
query I rowsort label-4896
SELECT 64 + MAX ( + 25 ) * - + COUNT ( * ) - - + NULLIF ( + COUNT ( * ), 13 * + - MAX ( + 24 ) ) + - 70 / 59 * 64
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT 71 * + - MAX( ALL + 61 ) AS col1
----
-4331

skipif mysql # not compatible
query I rowsort label-4897
SELECT 71 * + - MAX ( ALL + 61 ) AS col1
----
-4331

onlyif mysql # DIV for integer division: 
query I rowsort label-4898
SELECT ALL 74 DIV - ( 87 )
----
0

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL 74 / - ( 87 )
----
0

query I rowsort
SELECT ALL 9 * 11
----
99

query I rowsort
SELECT ALL 27 * 79 AS col0
----
2133

query I rowsort
SELECT 61 * 3 AS col2
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4902
SELECT + CAST( + 42 AS SIGNED ) - - COALESCE ( + - 92, COUNT( * ) )
----
-50

skipif mysql # not compatible
query I rowsort label-4902
SELECT + CAST ( + 42 AS INTEGER ) - - COALESCE ( + - 92, COUNT ( * ) )
----
-50

query I rowsort
SELECT + ( 48 ) * ( + + 81 ) + - + 93 + + 93 - 36 * ( 55 )
----
1908

query II rowsort
SELECT - 15 * + + 9 * 59, CASE + 55 WHEN + - 40 THEN NULL WHEN - NULLIF ( 86, - ( + ( 69 ) ) ) THEN 2 WHEN - 7 * 12 THEN NULL END AS col1
----
-7965
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT 13 * + + 22 * - COALESCE ( 14, - COUNT( * ) ) - - - ( COUNT( * ) ) * + CASE 66 WHEN - 15 + COUNT( * ) THEN NULL ELSE 98 END + COALESCE ( 46 - 38, 53 ) AS col0
----
-4094

skipif mysql # not compatible
query I rowsort label-4905
SELECT 13 * + + 22 * - COALESCE ( 14, - COUNT ( * ) ) - - - ( COUNT ( * ) ) * + CASE 66 WHEN - 15 + COUNT ( * ) THEN NULL ELSE 98 END + COALESCE ( 46 - 38, 53 ) AS col0
----
-4094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4906
SELECT + CASE 51 WHEN + + CASE - - 76 WHEN - 20 / + CAST( + + 37 AS SIGNED ) * - 82 * - + 59 + 95 THEN 63 WHEN + COUNT( * ) * + 31 THEN NULL END THEN - MAX( 96 ) * + COUNT( * ) + 45 / - 85 END / 51 + 52 * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT + CASE 51 WHEN + + CASE - - 76 WHEN - 20 / + CAST ( + + 37 AS INTEGER ) * - 82 * - + 59 + 95 THEN 63 WHEN + COUNT ( * ) * + 31 THEN NULL END THEN - MAX ( 96 ) * + COUNT ( * ) + 45 / - 85 END / 51 + 52 * - 77
----
NULL

query I rowsort
SELECT ALL 67 * + 97 AS col1
----
6499

onlyif mysql # aggregate syntax: 
query II rowsort label-4908
SELECT DISTINCT + 28, + MIN( ALL 80 ) AS col0
----
28
80

skipif mysql # not compatible
query II rowsort label-4908
SELECT DISTINCT + 28, + MIN ( ALL 80 ) AS col0
----
28
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT + NULLIF ( + + 69, + 25 * 54 + - 60 ) + CASE - 46 WHEN + - 8 * + COUNT( * ) THEN + 34 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT + NULLIF ( + + 69, + 25 * 54 + - 60 ) + CASE - 46 WHEN + - 8 * + COUNT ( * ) THEN + 34 + + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4910
SELECT CASE - + COUNT( - + NULLIF ( - 17, 72 ) ) WHEN CAST( - 81 AS DECIMAL ) * - ( + + 56 ) THEN + 44 / 85 + 43 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT CASE - + COUNT ( - + NULLIF ( - 17, 72 ) ) WHEN CAST ( - 81 AS REAL ) * - ( + + 56 ) THEN + 44 / 85 + 43 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL COUNT( * ) * 27 + + - COUNT( 49 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL COUNT ( * ) * 27 + + - COUNT ( 49 ) AS col0
----
26

query I rowsort
SELECT ALL 16 * + - 7 + + 82 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4913
SELECT 41 col0, - 80 * + - COUNT( * ) + 5
----
41
85

skipif mysql # not compatible
query II rowsort label-4913
SELECT 41 col0, - 80 * + - COUNT ( * ) + 5
----
41
85

query I rowsort
SELECT - - 14 * 19
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT + - 97 * COUNT( ( + 42 ) ) + - 82 AS col1
----
-179

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT + - 97 * COUNT ( ( + 42 ) ) + - 82 AS col1
----
-179

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT - - 64 DIV - - 27
----
2

skipif mysql # not compatible
query I rowsort label-4916
SELECT - - 64 / - - 27
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4917
SELECT + + COALESCE ( - COUNT( * ), CASE + AVG ( CAST( NULL AS SIGNED ) ) WHEN - 29 THEN 16 DIV + ( 84 ) END )
----
-1

skipif mysql # not compatible
query I rowsort label-4917
SELECT + + COALESCE ( - COUNT ( * ), CASE + AVG ( CAST ( NULL AS INTEGER ) ) WHEN - 29 THEN 16 / + ( 84 ) END )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT + MIN( - 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4918
SELECT + MIN ( - 3 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4919
SELECT - SUM( DISTINCT + 97 ) + - 32 + - 91 * 29, 46 AS col2
----
-2768
46

skipif mysql # not compatible
query II rowsort label-4919
SELECT - SUM ( DISTINCT + 97 ) + - 32 + - 91 * 29, 46 AS col2
----
-2768
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4920
SELECT ALL 40 * 70 - CASE - NULLIF ( - CAST( NULL AS SIGNED ), + - ( - - SUM( - 50 ) ) * + 93 + 96 ) WHEN + MAX( DISTINCT + ( - NULLIF ( ( + 50 ), 70 ) ) ) * 36 THEN NULL WHEN 95 THEN 54 / 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL 40 * 70 - CASE - NULLIF ( - CAST ( NULL AS INTEGER ), + - ( - - SUM ( - 50 ) ) * + 93 + 96 ) WHEN + MAX ( DISTINCT + ( - NULLIF ( ( + 50 ), 70 ) ) ) * 36 THEN NULL WHEN 95 THEN 54 / 96 ELSE NULL END
----
NULL

query I rowsort
SELECT ( + - 65 ) * - - 60 + + + 29 AS col0
----
-3871

query I rowsort
SELECT DISTINCT + ( + 73 ) AS col2
----
73

query I rowsort
SELECT ALL - + 89 - - - 38 + + 79 * - + 37 col1
----
-3050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4924
SELECT ALL - + 73 DIV 86 + COALESCE ( - + SUM( ALL + COALESCE ( - 68, - 64, + 31 ) ), - 74 * + 91 - + 97 + 36, - 59 * 25 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL - + 73 / 86 + COALESCE ( - + SUM ( ALL + COALESCE ( - 68, - 64, + 31 ) ), - 74 * + 91 - + 97 + 36, - 59 * 25 ) AS col2
----
68

query II rowsort
SELECT ALL COALESCE ( + + 33, + 0 ) AS col0, 38 + + - 26
----
33
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4926
SELECT - - 63 + + 17 DIV - 3 + - COALESCE ( + COALESCE ( MAX( DISTINCT 62 ), + - CAST( + + 36 AS SIGNED ) ), - NULLIF ( + 78, 31 + - 64 * - NULLIF ( + 86, 37 ) ), 71 * 55 ) + 28 * 31 * ( - 17 * - 38 )
----
560724

skipif mysql # not compatible
query I rowsort label-4926
SELECT - - 63 + + 17 / - 3 + - COALESCE ( + COALESCE ( MAX ( DISTINCT 62 ), + - CAST ( + + 36 AS INTEGER ) ), - NULLIF ( + 78, 31 + - 64 * - NULLIF ( + 86, 37 ) ), 71 * 55 ) + 28 * 31 * ( - 17 * - 38 )
----
560724

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT + COUNT( * ) * + + 42 + - 82
----
-40

skipif mysql # not compatible
query I rowsort label-4927
SELECT + COUNT ( * ) * + + 42 + - 82
----
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4928
SELECT ALL - 46, - MIN( ALL NULLIF ( - 31, 85 ) ) * + + CAST( NULL AS DECIMAL ) AS col0
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-4928
SELECT ALL - 46, - MIN ( ALL NULLIF ( - 31, 85 ) ) * + + CAST ( NULL AS REAL ) AS col0
----
-46
NULL

query I rowsort
SELECT + - 13 + - - 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT ALL - 8 * MIN( + - 27 ) AS col2
----
216

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL - 8 * MIN ( + - 27 ) AS col2
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4931
SELECT - 75 + 9 + - NULLIF ( COALESCE ( + + CAST( NULL AS SIGNED ), - - MAX( 58 ) ), + AVG ( DISTINCT - + 4 ) ) col0
----
-124

skipif mysql # not compatible
query I rowsort label-4931
SELECT - 75 + 9 + - NULLIF ( COALESCE ( + + CAST ( NULL AS INTEGER ), - - MAX ( 58 ) ), + AVG ( DISTINCT - + 4 ) ) col0
----
-124

query I rowsort
SELECT DISTINCT CASE + 34 WHEN + - ( - 87 ) THEN 25 - + - 1 / - - 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT DISTINCT COALESCE ( + - 62, - COUNT( * ) + - COUNT( * ), + 59 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT COALESCE ( + - 62, - COUNT ( * ) + - COUNT ( * ), + 59 ) AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4934
SELECT ALL 63, + 15 + + - CAST( + 15 AS SIGNED ) col2
----
63
0

skipif mysql # not compatible
query II rowsort label-4934
SELECT ALL 63, + 15 + + - CAST ( + 15 AS INTEGER ) col2
----
63
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT DISTINCT 22 * + CAST( NULL AS SIGNED ) * - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT 22 * + CAST ( NULL AS INTEGER ) * - 88 AS col2
----
NULL

query I rowsort
SELECT - 28 + 21
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4937
SELECT ALL - 44 * 26 * COUNT( DISTINCT - 43 ) * + - 26 * - 20 DIV - COUNT( * ) - + ( - - 46 ) + 98 AS col0
----
594932

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL - 44 * 26 * COUNT ( DISTINCT - 43 ) * + - 26 * - 20 / - COUNT ( * ) - + ( - - 46 ) + 98 AS col0
----
594932

onlyif mysql # aggregate syntax: 
query II rowsort label-4938
SELECT DISTINCT ( + - COUNT( * ) ), COALESCE ( 10, 14, - 36 ) AS col2
----
-1
10

skipif mysql # not compatible
query II rowsort label-4938
SELECT DISTINCT ( + - COUNT ( * ) ), COALESCE ( 10, 14, - 36 ) AS col2
----
-1
10

query I rowsort
SELECT ALL ( 26 ) col0
----
26

query I rowsort
SELECT + 98 + + - 73 * + 44 * + + 28
----
-89838

query I rowsort
SELECT + 15 * + COALESCE ( + 93, 10, - 37 ) * + ( - + 98 )
----
-136710

query I rowsort
SELECT DISTINCT 21 + 2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT - ( - + COALESCE ( + + 81, - - 43 * COUNT( * ) ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4943
SELECT - ( - + COALESCE ( + + 81, - - 43 * COUNT ( * ) ) ) AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4944
SELECT ALL CAST( + - 14 AS SIGNED ) / + 52 + CASE CAST( NULL AS SIGNED ) WHEN + + 2 * + + 21 + + - 12 THEN - + 80 - - 46 / - 87 + + 56 WHEN ( 13 ) + 88 * 26 THEN - COUNT( * ) END / - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL CAST ( + - 14 AS INTEGER ) / + 52 + CASE CAST ( NULL AS INTEGER ) WHEN + + 2 * + + 21 + + - 12 THEN - + 80 - - 46 / - 87 + + 56 WHEN ( 13 ) + 88 * 26 THEN - COUNT ( * ) END / - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT + 55 * + COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4945
SELECT + 55 * + COUNT ( * ) AS col0
----
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4946
SELECT CAST( 73 AS SIGNED ) AS col1, 26 DIV - 95
----
73
0

skipif mysql # not compatible
query II rowsort label-4946
SELECT CAST ( 73 AS INTEGER ) AS col1, 26 / - 95
----
73
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT - 6 DIV + 47 + - MAX( - - 15 ) * - 56
----
840

skipif mysql # not compatible
query I rowsort label-4947
SELECT - 6 / + 47 + - MAX ( - - 15 ) * - 56
----
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4948
SELECT DISTINCT + 84 / CAST( NULL AS SIGNED ) + + COALESCE ( 6, - 4 + - 95 ) * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT + 84 / CAST ( NULL AS INTEGER ) + + COALESCE ( 6, - 4 + - 95 ) * + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL 14 * - COUNT( ALL - - 70 )
----
-14

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL 14 * - COUNT ( ALL - - 70 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4950
SELECT DISTINCT + 40 DIV + COUNT( * ) + + COALESCE ( + CAST( NULL AS SIGNED ), + 51 * 94 + + 86, - - 75 * - + 2 ) + + 55 + - COUNT( * ) AS col0
----
4974

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT + 40 / + COUNT ( * ) + + COALESCE ( + CAST ( NULL AS INTEGER ), + 51 * 94 + + 86, - - 75 * - + 2 ) + + 55 + - COUNT ( * ) AS col0
----
4974

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT - + MAX( 33 ) * 20 + 17 + + COUNT( * ) + 17
----
-625

skipif mysql # not compatible
query I rowsort label-4951
SELECT - + MAX ( 33 ) * 20 + 17 + + COUNT ( * ) + 17
----
-625

query I rowsort
SELECT ALL - + 22 * + ( + 20 ) + + + 10 + - 8
----
-438

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT ALL + - COUNT( ALL 67 ) * - + COUNT( * ) * + 17 + + 18
----
35

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL + - COUNT ( ALL 67 ) * - + COUNT ( * ) * + 17 + + 18
----
35

query I rowsort
SELECT DISTINCT + 86 * - + 55
----
-4730

query II rowsort
SELECT + 46, - 80 AS col0
----
46
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-4956
SELECT ALL + + 47 AS col0, COUNT( * )
----
47
1

skipif mysql # not compatible
query II rowsort label-4956
SELECT ALL + + 47 AS col0, COUNT ( * )
----
47
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4957
SELECT DISTINCT - + 37 * + 39 + + COUNT( ALL - + ( + 27 ) ) - + 61 + - 16 + - 89 + + 16 * 64 + - CASE ( 49 ) WHEN - 65 THEN NULL ELSE COALESCE ( - 11, + 76, - ( - 84 ), 14 * + 67 ) END DIV 91
----
-584

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT - + 37 * + 39 + + COUNT ( ALL - + ( + 27 ) ) - + 61 + - 16 + - 89 + + 16 * 64 + - CASE ( 49 ) WHEN - 65 THEN NULL ELSE COALESCE ( - 11, + 76, - ( - 84 ), 14 * + 67 ) END / 91
----
-584

query I rowsort
SELECT DISTINCT + - ( - 0 )
----
0

query II rowsort
SELECT + 30 AS col1, - CASE + - 43 WHEN 73 * + 25 + - 92 THEN - 26 WHEN - 11 THEN - 23 ELSE NULL END
----
30
NULL

query II rowsort
SELECT ALL + 22 AS col2, + 27 + + 70 + - 34 * + 82 * + - 14 AS col0
----
22
39129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT ALL + 3 / - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + 3 / - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query III rowsort
SELECT + 69 AS col1, 57 AS col2, + NULLIF ( + 70, 67 ) AS col1
----
69
57
70

query II rowsort
SELECT ALL + 14 AS col2, - 27 AS col1
----
14
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4964
SELECT + COUNT( * ), + 36 AS col2
----
1
36

skipif mysql # not compatible
query II rowsort label-4964
SELECT + COUNT ( * ), + 36 AS col2
----
1
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT - NULLIF ( COUNT( * ), + COUNT( * ) ) * - - 2 + + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT - NULLIF ( COUNT ( * ), + COUNT ( * ) ) * - - 2 + + 11 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4966
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), + 6 / + 95 ) * + - 70, SUM( - CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4966
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), + 6 / + 95 ) * + - 70, SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT DISTINCT NULLIF ( - ( + COUNT( * ) ), + 26 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT NULLIF ( - ( + COUNT ( * ) ), + 26 ) AS col2
----
-1

query I rowsort
SELECT + 16 + - + 3 + + 28 * - 61 AS col1
----
-1695

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4969
SELECT COUNT( * ) DIV - 62 * + COUNT( * ) * - 6
----
0

skipif mysql # not compatible
query I rowsort label-4969
SELECT COUNT ( * ) / - 62 * + COUNT ( * ) * - 6
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT DISTINCT + 67 + + + ( 76 ) - + COUNT( * ) * + 58
----
85

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT + 67 + + + ( 76 ) - + COUNT ( * ) * + 58
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4971
SELECT ALL - COUNT( * ) + 88 AS col2, 62 AS col1
----
87
62

skipif mysql # not compatible
query II rowsort label-4971
SELECT ALL - COUNT ( * ) + 88 AS col2, 62 AS col1
----
87
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4972
SELECT 89 - 41 + 76 + - 23 * + 93 - 85 + + + 27 + ( + - COUNT( DISTINCT + + 42 ) ) + - CAST( NULL AS SIGNED ) * - - 33 / - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT 89 - 41 + 76 + - 23 * + 93 - 85 + + + 27 + ( + - COUNT ( DISTINCT + + 42 ) ) + - CAST ( NULL AS INTEGER ) * - - 33 / - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL - 13 + + + 5 - - ( NULLIF ( + 75, + + COUNT( * ) * 10 ) ) + MIN( - - 61 ) * - - 63 + + ( - + 53 )
----
3857

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - 13 + + + 5 - - ( NULLIF ( + 75, + + COUNT ( * ) * 10 ) ) + MIN ( - - 61 ) * - - 63 + + ( - + 53 )
----
3857

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT DISTINCT SUM( + 65 ) + 2
----
67

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT SUM ( + 65 ) + 2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4975
SELECT 14 / ( - CAST( NULL AS SIGNED ) ) - - NULLIF ( 41, - 0 / + + 27 ) + + + 69 + - 15 / + + CAST( NULL AS SIGNED ) - + NULLIF ( - 45, + ( + SUM( DISTINCT 88 ) ) ) + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT 14 / ( - CAST ( NULL AS INTEGER ) ) - - NULLIF ( 41, - 0 / + + 27 ) + + + 69 + - 15 / + + CAST ( NULL AS INTEGER ) - + NULLIF ( - 45, + ( + SUM ( DISTINCT 88 ) ) ) + - 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4976
SELECT ALL 55 + - 87 + + ( + 35 ) + + + CAST( NULL AS SIGNED ) + + 14 - - 44 * + + 9 + - + COUNT( * ) * + 77 AS col0, 98 * 2
----
NULL
196

skipif mysql # not compatible
query II rowsort label-4976
SELECT ALL 55 + - 87 + + ( + 35 ) + + + CAST ( NULL AS INTEGER ) + + 14 - - 44 * + + 9 + - + COUNT ( * ) * + 77 AS col0, 98 * 2
----
NULL
196

onlyif mysql # aggregate syntax: 
query II rowsort label-4977
SELECT + COUNT( ALL + 55 ) AS col0, 1 col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4977
SELECT + COUNT ( ALL + 55 ) AS col0, 1 col1
----
1
1

query II rowsort
SELECT - 39 + - 78, 49 col0
----
-117
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL - + SUM( + - 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL - + SUM ( + - 77 ) AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4980
SELECT + - NULLIF ( + 23, 67 * - ( + 85 ) + - 55 * + 9 ) AS col2, + CAST( - + 77 AS SIGNED ) * + 63
----
-23
-4851

skipif mysql # not compatible
query II rowsort label-4980
SELECT + - NULLIF ( + 23, 67 * - ( + 85 ) + - 55 * + 9 ) AS col2, + CAST ( - + 77 AS INTEGER ) * + 63
----
-23
-4851

query I rowsort
SELECT ALL - ( 18 ) AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4982
SELECT DISTINCT + 65 DIV - + 55
----
-1

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT + 65 / - + 55
----
-1

query I rowsort
SELECT - 10 * 41 * - 75 + 1
----
30751

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT - 88 DIV 80 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4984
SELECT - 88 / 80 AS col1
----
-1

query I rowsort
SELECT - 28 + 10 AS col2
----
-18

query II rowsort
SELECT ALL - 16 * 67 AS col0, + 67
----
-1072
67

query I rowsort
SELECT ALL + ( 87 ) * + 82
----
7134

query I rowsort
SELECT 27 + + ( + 81 ) + - 1 AS col2
----
107

query I rowsort
SELECT + + 42 AS col0
----
42

query II rowsort
SELECT ALL - ( - 80 ) AS col0, 34 - + 66 * - 90 + 92 AS col2
----
80
6066

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT 86 * - 37 + - CASE - 14 WHEN - COUNT( * ) * + 87 * + 60 * + 96 THEN + COUNT( * ) END * + ( 9 ) + 97 + - 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4991
SELECT 86 * - 37 + - CASE - 14 WHEN - COUNT ( * ) * + 87 * + 60 * + 96 THEN + COUNT ( * ) END * + ( 9 ) + 97 + - 2 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT DISTINCT - + MAX( ALL + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT - + MAX ( ALL + 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT ( - ( CASE 32 WHEN - + 85 * - + COUNT( * ) / COALESCE ( 28, + 9 ) THEN 93 / SUM( DISTINCT 46 ) WHEN - 29 THEN + 49 * - 34 END ) ) + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT ( - ( CASE 32 WHEN - + 85 * - + COUNT ( * ) / COALESCE ( 28, + 9 ) THEN 93 / SUM ( DISTINCT 46 ) WHEN - 29 THEN + 49 * - 34 END ) ) + 49
----
NULL

query I rowsort
SELECT 9 + - 47 col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL COUNT( DISTINCT 24 ) + 10 * + - 66 + - NULLIF ( 1, + + 31 )
----
-660

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL COUNT ( DISTINCT 24 ) + 10 * + - 66 + - NULLIF ( 1, + + 31 )
----
-660

onlyif mysql # aggregate syntax: 
query II rowsort label-4996
SELECT ( 92 ) + - 76, CASE 49 WHEN - 48 THEN NULL WHEN + + 2 * + - 37 + 69 + - - 86 + + 80 * 18 * - 80 * - COUNT( * ) THEN 73 ELSE + 98 + ( 19 ) END AS col1
----
16
117

skipif mysql # not compatible
query II rowsort label-4996
SELECT ( 92 ) + - 76, CASE 49 WHEN - 48 THEN NULL WHEN + + 2 * + - 37 + 69 + - - 86 + + 80 * 18 * - 80 * - COUNT ( * ) THEN 73 ELSE + 98 + ( 19 ) END AS col1
----
16
117

query I rowsort
SELECT DISTINCT 9 + 58 + + 19 + 70
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4998
SELECT 96, COALESCE ( - + CAST( NULL AS SIGNED ), NULLIF ( - COUNT( DISTINCT - + 21 ), + COUNT( * ) ) - - 81 ) + + 26 col2
----
96
106

skipif mysql # not compatible
query II rowsort label-4998
SELECT 96, COALESCE ( - + CAST ( NULL AS INTEGER ), NULLIF ( - COUNT ( DISTINCT - + 21 ), + COUNT ( * ) ) - - 81 ) + + 26 col2
----
96
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT DISTINCT 86 + - 1 + ( - - 37 ) + COUNT( * ) + - - 61
----
184

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT 86 + - 1 + ( - - 37 ) + COUNT ( * ) + - - 61
----
184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5000
SELECT ALL 44 + - 88 DIV 32 * - + ( + COUNT( + 82 ) ) + 57 + 55 * + 29 AS col2
----
1698

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL 44 + - 88 / 32 * - + ( + COUNT ( + 82 ) ) + 57 + 55 * + 29 AS col2
----
1698

query I rowsort
SELECT 8 * 4
----
32

query I rowsort
SELECT ALL - 81 + 50 AS col0
----
-31

query I rowsort
SELECT 24 + - 39
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT - COUNT( - 75 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5004
SELECT - COUNT ( - 75 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT 34 + 56 + + CAST( NULL AS SIGNED ) - + NULLIF ( - - 80, + 82 * + 11 / 33 + + - 9 / 82 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT 34 + 56 + + CAST ( NULL AS INTEGER ) - + NULLIF ( - - 80, + 82 * + 11 / 33 + + - 9 / 82 ) col0
----
NULL

query I rowsort
SELECT ALL - ( + - 25 ) + 26 + 43
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5007
SELECT - COUNT( * ), CASE - - 2 WHEN - 88 + 98 THEN 54 * - + 16 * - + 49 END - + 12 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5007
SELECT - COUNT ( * ), CASE - - 2 WHEN - 88 + 98 THEN 54 * - + 16 * - + 49 END - + 12 AS col0
----
-1
NULL

query I rowsort
SELECT 43 + 76 + + - ( - 39 ) * - - 60 col0
----
2459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5009
SELECT ALL - COALESCE ( - 45, - + CAST( 73 AS SIGNED ) ) - + 16 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL - COALESCE ( - 45, - + CAST ( 73 AS INTEGER ) ) - + 16 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT ALL - NULLIF ( - COUNT( * ), - 82 + + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL - NULLIF ( - COUNT ( * ), - 82 + + 81 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5011
SELECT DISTINCT ( + + CASE - - 30 WHEN - + 11 + - 91 + COALESCE ( + - CAST( - CASE WHEN ( 50 ) IS NULL THEN COUNT( * ) - + 27 WHEN NOT 16 + 73 <= ( + 52 * 22 + 81 ) THEN - ( - 7 ) ELSE NULL END AS DECIMAL ), - MIN( 44 ) * 65 ) THEN 52 / - 12 END ) - - 35 * NULLIF ( 37, + ( + 79 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT ( + + CASE - - 30 WHEN - + 11 + - 91 + COALESCE ( + - CAST ( - CASE WHEN ( 50 ) IS NULL THEN COUNT ( * ) - + 27 WHEN NOT 16 + 73 <= ( + 52 * 22 + 81 ) THEN - ( - 7 ) ELSE NULL END AS REAL ), - MIN ( 44 ) * 65 ) THEN 52 / - 12 END ) - - 35 * NULLIF ( 37, + ( + 79 ) )
----
NULL

query I rowsort
SELECT ALL + - ( + - 40 ) * + 24 * + - 34
----
-32640

onlyif mysql # aggregate syntax: 
query III rowsort label-5013
SELECT ALL - - 2 AS col1, - 7 - + MIN( - 29 ) + ( + - 2 ), 92 + 93 col0
----
2
20
185

skipif mysql # not compatible
query III rowsort label-5013
SELECT ALL - - 2 AS col1, - 7 - + MIN ( - 29 ) + ( + - 2 ), 92 + 93 col0
----
2
20
185

query I rowsort
SELECT DISTINCT + + 29 * - 66 + + ( 82 )
----
-1832

query I rowsort
SELECT ALL + 36 * - 92
----
-3312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5016
SELECT 47, 23 * + + 98 * 88 + + 44 / + ( + CAST( NULL AS SIGNED ) ) * + - ( 27 ) / + - ( + COUNT( * ) ) + - COUNT( * ) + - 96 * - COUNT( * ) + + 95 * - 4 AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-5016
SELECT 47, 23 * + + 98 * 88 + + 44 / + ( + CAST ( NULL AS INTEGER ) ) * + - ( 27 ) / + - ( + COUNT ( * ) ) + - COUNT ( * ) + - 96 * - COUNT ( * ) + + 95 * - 4 AS col2
----
47
NULL

query I rowsort
SELECT ( 71 ) + 72
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5018
SELECT + CAST( ( NULLIF ( - COUNT( * ), NULLIF ( + - COUNT( * ), + AVG ( DISTINCT 60 ) * - 61 * 63 + - 98 + - COUNT( * ) / + COALESCE ( + CASE 5 WHEN + 23 THEN - 10 END, + MIN( + CAST( 28 AS SIGNED ) ), - 89, COUNT( * ) ) + + 94 * 53 ) ) ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT + CAST ( ( NULLIF ( - COUNT ( * ), NULLIF ( + - COUNT ( * ), + AVG ( DISTINCT 60 ) * - 61 * 63 + - 98 + - COUNT ( * ) / + COALESCE ( + CASE 5 WHEN + 23 THEN - 10 END, + MIN ( + CAST ( 28 AS INTEGER ) ), - 89, COUNT ( * ) ) + + 94 * 53 ) ) ) AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5019
SELECT + + CAST( COUNT( ALL + + ( 55 ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5019
SELECT + + CAST ( COUNT ( ALL + + ( 55 ) ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5020
SELECT ALL + COUNT( * ) DIV - 1
----
-1

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL + COUNT ( * ) / - 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL ( CASE - 2 WHEN - COUNT( * ) - - - 58 + + - 16 - - 10 THEN + 58 END ) * - + ( 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL ( CASE - 2 WHEN - COUNT ( * ) - - - 58 + + - 16 - - 10 THEN + 58 END ) * - + ( 49 )
----
NULL

query I rowsort
SELECT DISTINCT 19 * - + 62 AS col1
----
-1178

onlyif mysql # aggregate syntax: 
query II rowsort label-5023
SELECT ALL - - COUNT( * ) + - 50 - - + COUNT( * ) AS col2, - 70 * 53 + - 71 + + - 26 + - 49
----
-48
-3856

skipif mysql # not compatible
query II rowsort label-5023
SELECT ALL - - COUNT ( * ) + - 50 - - + COUNT ( * ) AS col2, - 70 * 53 + - 71 + + - 26 + - 49
----
-48
-3856

query II rowsort
SELECT - ( - 86 ) * 85 col0, + 2 AS col1
----
7310
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT - COUNT( ALL - 5 ) * + - CASE - COUNT( * ) WHEN + COALESCE ( + - CAST( NULL AS SIGNED ), - - 27 / + MAX( + 15 ) + + 56 ) THEN NULL WHEN + + 46 + + ( 34 ) - + - 8 + + 30 / 4 THEN 52 * CAST( NULL AS SIGNED ) END * + COALESCE ( + 11 * + 17, - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT - COUNT ( ALL - 5 ) * + - CASE - COUNT ( * ) WHEN + COALESCE ( + - CAST ( NULL AS INTEGER ), - - 27 / + MAX ( + 15 ) + + 56 ) THEN NULL WHEN + + 46 + + ( 34 ) - + - 8 + + 30 / 4 THEN 52 * CAST ( NULL AS INTEGER ) END * + COALESCE ( + 11 * + 17, - 80 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5026
SELECT + 75 / + CAST( NULL AS SIGNED ) AS col1, - 64 + + - 75 + + + COALESCE ( + 81, - 39, COUNT( 91 ) + + - 9 ) col1, + - ( - 47 ) + 60 * + + COALESCE ( 85, 60 + 47 ) AS col0
----
NULL
-58
5147

skipif mysql # not compatible
query III rowsort label-5026
SELECT + 75 / + CAST ( NULL AS INTEGER ) AS col1, - 64 + + - 75 + + + COALESCE ( + 81, - 39, COUNT ( 91 ) + + - 9 ) col1, + - ( - 47 ) + 60 * + + COALESCE ( 85, 60 + 47 ) AS col0
----
NULL
-58
5147

query I rowsort
SELECT ( - + 97 ) * - 97 - - 45 - - - 29 + - 78 AS col2
----
9347

query I rowsort
SELECT ALL + 22 * + + 46
----
1012

query II rowsort
SELECT ALL + 13 + - 13 AS col0, 79 AS col2
----
0
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT - CASE - - 39 WHEN - COUNT( * ) THEN - 7 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT - CASE - - 39 WHEN - COUNT ( * ) THEN - 7 * + COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT ALL ( - 30 ) + + + 30 DIV 60 * - - 24 * - 45
----
-30

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL ( - 30 ) + + + 30 / 60 * - - 24 * - 45
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT - NULLIF ( - 14, + + ( NULLIF ( + + 62, + COUNT( * ) ) ) * - 2 * - ( - 68 ) - COUNT( * ) + + 20 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5032
SELECT - NULLIF ( - 14, + + ( NULLIF ( + + 62, + COUNT ( * ) ) ) * - 2 * - ( - 68 ) - COUNT ( * ) + + 20 ) AS col1
----
14

query II rowsort
SELECT + 73 + - - 71 * ( 90 ) col0, 0
----
6463
0

query I rowsort
SELECT ALL 43 * NULLIF ( + + 32, ( - - ( + - 22 ) ) ) AS col2
----
1376

query I rowsort
SELECT + 49 + 45 AS col1
----
94

query I rowsort
SELECT ALL 55 * - 71 AS col2
----
-3905

query I rowsort
SELECT + 66 * - NULLIF ( NULLIF ( + 50, - 37 ), + 4 ) AS col2
----
-3300

query I rowsort
SELECT + ( 18 ) + 62
----
80

query I rowsort
SELECT ALL 90 - - 30 + - 97 + - 73 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT - COUNT( * ) / - COUNT( + + 3 ) + CASE 87 WHEN - SUM( ALL 86 ) THEN - 48 * + COUNT( * ) * - ( - + COUNT( * ) ) + 57 * + 21 + 87 + + 59 WHEN - ( 7 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT - COUNT ( * ) / - COUNT ( + + 3 ) + CASE 87 WHEN - SUM ( ALL 86 ) THEN - 48 * + COUNT ( * ) * - ( - + COUNT ( * ) ) + 57 * + 21 + 87 + + 59 WHEN - ( 7 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT + + MAX( - 94 ) * + ( - 8 ) - - MIN( ALL + 84 ) + + 18 col2
----
854

skipif mysql # not compatible
query I rowsort label-5041
SELECT + + MAX ( - 94 ) * + ( - 8 ) - - MIN ( ALL + 84 ) + + 18 col2
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT - COUNT( DISTINCT - + ( + 8 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5042
SELECT - COUNT ( DISTINCT - + ( + 8 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5043
SELECT + CASE - - 73 WHEN 15 * - 26 / COUNT( * ) / 87 + + 74 + + 52 * 12 / - 26 * - COUNT( + 4 ) THEN NULL WHEN + + CASE + + 30 WHEN ( + 43 ) * + 40 THEN - 37 + - 52 * + 11 WHEN 84 THEN 77 * 41 WHEN + 4 + 92 THEN NULL ELSE NULL END THEN 50 ELSE CAST( NULL AS DECIMAL ) + - 64 * + 6 END / - 56 - 54 * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT + CASE - - 73 WHEN 15 * - 26 / COUNT ( * ) / 87 + + 74 + + 52 * 12 / - 26 * - COUNT ( + 4 ) THEN NULL WHEN + + CASE + + 30 WHEN ( + 43 ) * + 40 THEN - 37 + - 52 * + 11 WHEN 84 THEN 77 * 41 WHEN + 4 + 92 THEN NULL ELSE NULL END THEN 50 ELSE CAST ( NULL AS REAL ) + - 64 * + 6 END / - 56 - 54 * 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT - + COUNT( * ) + - 49 + + - 53 AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-5044
SELECT - + COUNT ( * ) + - 49 + + - 53 AS col1
----
-103

query II rowsort
SELECT + + 10 / - + 24 + - CASE 45 WHEN - 66 * - 45 THEN NULL WHEN - 7 * + 99 THEN - 27 ELSE NULL END AS col2, + 51 AS col1
----
NULL
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT + + MAX( - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5046
SELECT + + MAX ( - 16 ) AS col0
----
-16

query I rowsort
SELECT DISTINCT + + 97 AS col2
----
97

query I rowsort
SELECT DISTINCT + + ( + ( 74 ) )
----
74

query II rowsort
SELECT - + 60 + + 35 AS col1, 74 AS col1
----
-25
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 16 * + 87 + + 78 + - 33 * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 16 * + 87 + + 78 + - 33 * + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT ALL + + ( 8 ) * + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL + + ( 8 ) * + + COUNT ( * )
----
8

query I rowsort
SELECT - 59 * + + 13 * + 70 AS col1
----
-53690

query I rowsort
SELECT + NULLIF ( + + 63, + 3 ) AS col2
----
63

query I rowsort
SELECT 83 * - ( + 14 ) + - 76
----
-1238

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL COUNT( * ) * + - 31 + 60 * - + 93 + + 47 AS col2
----
-5564

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL COUNT ( * ) * + - 31 + 60 * - + 93 + + 47 AS col2
----
-5564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5056
SELECT - + 8 + 4 + - + 26 + MIN( - ( - CAST( NULL AS SIGNED ) ) ) / + AVG ( DISTINCT + - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT - + 8 + 4 + - + 26 + MIN ( - ( - CAST ( NULL AS INTEGER ) ) ) / + AVG ( DISTINCT + - 38 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5057
SELECT NULLIF ( - 67, NULLIF ( 93, + + 71 ) ), + COUNT( * ) + - 6 AS col2
----
-67
-5

skipif mysql # not compatible
query II rowsort label-5057
SELECT NULLIF ( - 67, NULLIF ( 93, + + 71 ) ), + COUNT ( * ) + - 6 AS col2
----
-67
-5

query I rowsort
SELECT COALESCE ( 96, - 36 * + 6 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT + CASE 84 WHEN + - 75 THEN NULL WHEN - 89 * + 56 THEN - 37 + 89 + 65 * 75 / - ( 44 ) - 27 * - MIN( - - NULLIF ( + + ( - 60 ), 62 ) ) / - 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5059
SELECT + CASE 84 WHEN + - 75 THEN NULL WHEN - 89 * + 56 THEN - 37 + 89 + 65 * 75 / - ( 44 ) - 27 * - MIN ( - - NULLIF ( + + ( - 60 ), 62 ) ) / - 34 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT + CASE + 46 WHEN 31 * - - 75 * - 95 * 7 THEN NULL WHEN - 55 THEN NULL WHEN + - 68 THEN + SUM( ALL + 7 ) * - + 49 + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT + CASE + 46 WHEN 31 * - - 75 * - 95 * 7 THEN NULL WHEN - 55 THEN NULL WHEN + - 68 THEN + SUM ( ALL + 7 ) * - + 49 + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5061
SELECT NULLIF ( 69, + 70 ) * + CAST( NULL AS SIGNED ) + + 34 + CAST( - 26 AS DECIMAL ) + + - 49 * 32 + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT NULLIF ( 69, + 70 ) * + CAST ( NULL AS INTEGER ) + + 34 + CAST ( - 26 AS REAL ) + + - 49 * 32 + - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL + NULLIF ( - 1, + 71 ) * MAX( DISTINCT 9 ) + + + 5
----
-4

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL + NULLIF ( - 1, + 71 ) * MAX ( DISTINCT 9 ) + + + 5
----
-4

query I rowsort
SELECT + 33 + + 12 * 85 AS col0
----
1053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT ALL CAST( + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL CAST ( + 0 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5065
SELECT DISTINCT + 8 * + 91 * - 60 - - 69 + - - 43 DIV - 59, 44 AS col2
----
-43611
44

skipif mysql # not compatible
query II rowsort label-5065
SELECT DISTINCT + 8 * + 91 * - 60 - - 69 + - - 43 / - 59, 44 AS col2
----
-43611
44

query I rowsort
SELECT + 85 + 97 * 94 + - 72
----
9131

query I rowsort
SELECT ALL 91 - + 62 AS col0
----
29

query I rowsort
SELECT - 97 * - + 65 AS col0
----
6305

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT + COUNT( ALL - + 58 ) + + 26
----
27

skipif mysql # not compatible
query I rowsort label-5069
SELECT + COUNT ( ALL - + 58 ) + + 26
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT - 73 * - COUNT( * ) * - + 18 AS col0
----
-1314

skipif mysql # not compatible
query I rowsort label-5070
SELECT - 73 * - COUNT ( * ) * - + 18 AS col0
----
-1314

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5071
SELECT - 67 + - COUNT( * ) + - 57 + + 73 DIV 22 + - COUNT( * ) * 62 + + COUNT( * ) + 80 + 2 DIV - - COUNT( * ) AS col0, 69 DIV - COUNT( * ) AS col0
----
-101
-69

skipif mysql # not compatible
query II rowsort label-5071
SELECT - 67 + - COUNT ( * ) + - 57 + + 73 / 22 + - COUNT ( * ) * 62 + + COUNT ( * ) + 80 + 2 / - - COUNT ( * ) AS col0, 69 / - COUNT ( * ) AS col0
----
-101
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT + - 50 + COUNT( * ) - 61
----
-110

skipif mysql # not compatible
query I rowsort label-5072
SELECT + - 50 + COUNT ( * ) - 61
----
-110

query I rowsort
SELECT DISTINCT - 86 * + 29 AS col1
----
-2494

query I rowsort
SELECT + - 48 + - 34 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT DISTINCT - 42 + COUNT( ALL - 70 )
----
-41

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT - 42 + COUNT ( ALL - 70 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5076
SELECT DISTINCT - COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 34 + + - 83 * - 93
----
7753

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT - CASE + 99 WHEN + SUM( ALL - 87 ) THEN + COUNT( * ) * - ( - 19 ) * + AVG ( 58 ) - + - ( + ( - NULLIF ( - 98, - COUNT( * ) + - ( 68 ) + - COUNT( * ) ) ) ) / COUNT( * ) + 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT - CASE + 99 WHEN + SUM ( ALL - 87 ) THEN + COUNT ( * ) * - ( - 19 ) * + AVG ( 58 ) - + - ( + ( - NULLIF ( - 98, - COUNT ( * ) + - ( 68 ) + - COUNT ( * ) ) ) ) / COUNT ( * ) + 10 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 36 + + ( + - 49 ) col1
----
-13

query I rowsort
SELECT - ( - 34 ) + + - ( 70 ) col2
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5081
SELECT DISTINCT + COUNT( * ) DIV + - 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT + COUNT ( * ) / + - 2 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT ALL + COUNT( * ) * 52 * 28 col2
----
1456

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL + COUNT ( * ) * 52 * 28 col2
----
1456

onlyif mysql # aggregate syntax: 
query II rowsort label-5083
SELECT 98 col2, SUM( + 28 ) AS col2
----
98
28

skipif mysql # not compatible
query II rowsort label-5083
SELECT 98 col2, SUM ( + 28 ) AS col2
----
98
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5084
SELECT ALL 69 + + 1 * - ( - MAX( - NULLIF ( 98, 97 - - 6 ) ) ) - - ( 38 ) DIV + + CASE - - NULLIF ( + + 94, + 52 ) WHEN - + 54 + - 82 * - 7 THEN NULL WHEN MAX( DISTINCT 55 ) THEN NULL ELSE COUNT( 55 ) END AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL 69 + + 1 * - ( - MAX ( - NULLIF ( 98, 97 - - 6 ) ) ) - - ( 38 ) / + + CASE - - NULLIF ( + + 94, + 52 ) WHEN - + 54 + - 82 * - 7 THEN NULL WHEN MAX ( DISTINCT 55 ) THEN NULL ELSE COUNT ( 55 ) END AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT DISTINCT - SUM( - 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT - SUM ( - 18 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL - COUNT( * ) - - ( - 50 ) * + 18 * + 94
----
-84601

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL - COUNT ( * ) - - ( - 50 ) * + 18 * + 94
----
-84601

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT DISTINCT - NULLIF ( + - 49, 3 + + - SUM( - 95 ) ) * + 20 + - 9 AS col2
----
971

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT - NULLIF ( + - 49, 3 + + - SUM ( - 95 ) ) * + 20 + - 9 AS col2
----
971

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT - MIN( 75 ) - 11 * - + 82 + 76
----
903

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT - MIN ( 75 ) - 11 * - + 82 + 76
----
903

query I rowsort
SELECT ALL - 50 - + - 54 AS col0
----
4

query I rowsort
SELECT 95 * 49 AS col0
----
4655

query I rowsort
SELECT DISTINCT - ( + - 87 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5092
SELECT ALL 33 AS col1, + 51 + - 34 + + 4 + - 63 * + MIN( - ( - 61 ) ) + + 8
----
33
-3814

skipif mysql # not compatible
query II rowsort label-5092
SELECT ALL 33 AS col1, + 51 + - 34 + + 4 + - 63 * + MIN ( - ( - 61 ) ) + + 8
----
33
-3814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT 87 * + 57 * - ( + + 72 ) - 65 + - 49 * - CAST( 69 AS SIGNED ) AS col0
----
-353732

skipif mysql # not compatible
query I rowsort label-5093
SELECT 87 * + 57 * - ( + + 72 ) - 65 + - 49 * - CAST ( 69 AS INTEGER ) AS col0
----
-353732

onlyif mysql # aggregate syntax: 
query II rowsort label-5094
SELECT ALL 90 AS col2, - 88 * - ( COUNT( * ) )
----
90
88

skipif mysql # not compatible
query II rowsort label-5094
SELECT ALL 90 AS col2, - 88 * - ( COUNT ( * ) )
----
90
88

onlyif mysql # DIV for integer division: 
query II rowsort label-5095
SELECT 28 AS col0, - 76 + + 79 + - + COALESCE ( 64, 1 + + - 17 DIV - 50 ) * 11
----
28
-701

skipif mysql # not compatible
query II rowsort label-5095
SELECT 28 AS col0, - 76 + + 79 + - + COALESCE ( 64, 1 + + - 17 / - 50 ) * 11
----
28
-701

query II rowsort
SELECT DISTINCT 92 col0, - 20 * + + 30 + + + 59 - + - 78 col0
----
92
-463

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT ALL 37 * + - MAX( - - 31 ) AS col2
----
-1147

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL 37 * + - MAX ( - - 31 ) AS col2
----
-1147

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT 40 DIV - 28 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5098
SELECT 40 / - 28 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5099
SELECT ALL 47 AS col0, - ( - + CAST( - CAST( - 5 AS SIGNED ) AS SIGNED ) ) + + 92
----
47
97

skipif mysql # not compatible
query II rowsort label-5099
SELECT ALL 47 AS col0, - ( - + CAST ( - CAST ( - 5 AS INTEGER ) AS INTEGER ) ) + + 92
----
47
97

query I rowsort
SELECT DISTINCT 55 * - 26 * - 39 AS col1
----
55770

query I rowsort
SELECT + 56 + + 65 * - + 13
----
-789

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5102
SELECT ALL + CAST( NULL AS DECIMAL ) * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT ALL + CAST ( NULL AS REAL ) * 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT - 65 DIV 60 col2
----
-1

skipif mysql # not compatible
query I rowsort label-5103
SELECT - 65 / 60 col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5104
SELECT ALL 22 + 40 DIV + - 6 + + 10 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL 22 + 40 / + - 6 + + 10 AS col2
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-5105
SELECT 16 + - 97 DIV + 47 + 64 + - 98 + 0 + + 88 + + - 87 * + - 68, - 92 * 29 AS col2
----
5984
-2668

skipif mysql # not compatible
query II rowsort label-5105
SELECT 16 + - 97 / + 47 + 64 + - 98 + 0 + + 88 + + - 87 * + - 68, - 92 * 29 AS col2
----
5984
-2668

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5106
SELECT ALL + + CASE - 77 WHEN - 18 + 4 * + 94 + - 62 + + - 24 + CAST( NULL AS DECIMAL ) * + 88 * 34 THEN 60 + - 12 ELSE NULL END * COALESCE ( + 66, + COUNT( * ) / 48 + 60, - 43 + 30 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL + + CASE - 77 WHEN - 18 + 4 * + 94 + - 62 + + - 24 + CAST ( NULL AS REAL ) * + 88 * 34 THEN 60 + - 12 ELSE NULL END * COALESCE ( + 66, + COUNT ( * ) / 48 + 60, - 43 + 30 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5107
SELECT ( - - 88 ) DIV 45 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5107
SELECT ( - - 88 ) / 45 AS col1
----
1

query I rowsort
SELECT + 5 + - 39
----
-34

query I rowsort
SELECT ALL - 13 * - 46
----
598

query I rowsort
SELECT ALL ( + - 18 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-5111
SELECT + COUNT( * ) * + 56, + 58 + + 5 + + 19 AS col0
----
56
82

skipif mysql # not compatible
query II rowsort label-5111
SELECT + COUNT ( * ) * + 56, + 58 + + 5 + + 19 AS col0
----
56
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5112
SELECT ALL - SUM( DISTINCT - + CAST( NULL AS DECIMAL ) ) + 76 + 43 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL - SUM ( DISTINCT - + CAST ( NULL AS REAL ) ) + 76 + 43 * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5113
SELECT ALL 72 AS col2, - COUNT( * ) * - 6 + - - NULLIF ( 88, + MAX( DISTINCT - 10 ) * 21 ) col1
----
72
94

skipif mysql # not compatible
query II rowsort label-5113
SELECT ALL 72 AS col2, - COUNT ( * ) * - 6 + - - NULLIF ( 88, + MAX ( DISTINCT - 10 ) * 21 ) col1
----
72
94

query I rowsort
SELECT DISTINCT + COALESCE ( 16, + 9 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT - MIN( DISTINCT + 71 ) * - 57
----
4047

skipif mysql # not compatible
query I rowsort label-5115
SELECT - MIN ( DISTINCT + 71 ) * - 57
----
4047

query I rowsort
SELECT DISTINCT + 30 + + 3 * 4 AS col0
----
42

query I rowsort
SELECT + + 62 col0
----
62

query I rowsort
SELECT - 68 + + + 0
----
-68

query I rowsort
SELECT DISTINCT - ( - 93 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT ALL + 81 * + COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL + 81 * + COUNT ( * ) AS col0
----
81

query I rowsort
SELECT DISTINCT 65 - + 75 AS col0
----
-10

query I rowsort
SELECT DISTINCT - - 70 col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5123
SELECT DISTINCT - SUM( - 77 ), + 25 + COUNT( * ) col1
----
77
26

skipif mysql # not compatible
query II rowsort label-5123
SELECT DISTINCT - SUM ( - 77 ), + 25 + COUNT ( * ) col1
----
77
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT ( + - 14 ) * - 2 DIV + 31 - - 99
----
99

skipif mysql # not compatible
query I rowsort label-5124
SELECT ( + - 14 ) * - 2 / + 31 - - 99
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT ALL COUNT( * ) - + 15
----
-14

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL COUNT ( * ) - + 15
----
-14

query I rowsort
SELECT 99 + 29 AS col0
----
128

query II rowsort
SELECT ( - 38 ) * - - 0 AS col1, - 43 AS col2
----
0
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5128
SELECT ALL ( - 32 ) DIV COUNT( + - 75 ) * + 13 + - 75 + MIN( 71 )
----
-420

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL ( - 32 ) / COUNT ( + - 75 ) * + 13 + - 75 + MIN ( 71 )
----
-420

query I rowsort
SELECT 91 * + + 74 + 22 + - 20
----
6736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5130
SELECT ALL - CASE 10 WHEN + 2 - 11 / + 18 * - CAST( - 19 AS SIGNED ) THEN + - 21 * - 24 WHEN MIN( ALL - + 86 ) * - 94 + + CAST( NULL AS SIGNED ) THEN + + 57 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL - CASE 10 WHEN + 2 - 11 / + 18 * - CAST ( - 19 AS INTEGER ) THEN + - 21 * - 24 WHEN MIN ( ALL - + 86 ) * - 94 + + CAST ( NULL AS INTEGER ) THEN + + 57 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT ALL - MAX( ALL 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - MAX ( ALL 89 )
----
-89

query I rowsort
SELECT DISTINCT - 1 * + + ( + + 72 ) * + 2 + 49 AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5133
SELECT 43 + + + MIN( - + CAST( - 8 AS SIGNED ) )
----
51

skipif mysql # not compatible
query I rowsort label-5133
SELECT 43 + + + MIN ( - + CAST ( - 8 AS INTEGER ) )
----
51

query I rowsort
SELECT 49 + COALESCE ( + + NULLIF ( - - 67, - 91 ), 64 )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT - MAX( ALL 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5135
SELECT - MAX ( ALL 30 ) AS col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT 59 + + 2 DIV - - 22
----
59

skipif mysql # not compatible
query I rowsort label-5136
SELECT 59 + + 2 / - - 22
----
59

query I rowsort
SELECT CASE - 3 WHEN - ( ( + + 55 ) ) + - 83 * + 82 THEN NULL ELSE + + 13 + + 10 END
----
23

query I rowsort
SELECT - - CASE + - 41 WHEN 24 THEN 56 + + 30 END
----
NULL

query I rowsort
SELECT DISTINCT + - 19 + - 41 + + 32 AS col0
----
-28

query II rowsort
SELECT ALL - - 57 + 75 AS col1, - 93
----
132
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5141
SELECT CASE + AVG ( ALL - 41 ) WHEN - 29 THEN NULL WHEN - ( - ( 35 ) ) THEN NULL ELSE + 72 * + NULLIF ( + 15, + 96 ) - - + 10 + - 38 + + 92 * - COUNT( * ) + + 65 + + 67 + 14 * 47 * NULLIF ( + COUNT( * ) + + MIN( + 56 ), NULLIF ( + 46, CAST( 37 AS SIGNED ) ) ) + - 23 END AS col0
----
38575

skipif mysql # not compatible
query I rowsort label-5141
SELECT CASE + AVG ( ALL - 41 ) WHEN - 29 THEN NULL WHEN - ( - ( 35 ) ) THEN NULL ELSE + 72 * + NULLIF ( + 15, + 96 ) - - + 10 + - 38 + + 92 * - COUNT ( * ) + + 65 + + 67 + 14 * 47 * NULLIF ( + COUNT ( * ) + + MIN ( + 56 ), NULLIF ( + 46, CAST ( 37 AS INTEGER ) ) ) + - 23 END AS col0
----
38575

query I rowsort
SELECT DISTINCT - 59 + - 85 * - 26 * + 65 AS col0
----
143591

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5143
SELECT ALL + - 44 DIV + 93 * + + 55 * - 85 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL + - 44 / + 93 * + + 55 * - 85 * - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT - - 82 + + 73 * - MIN( ALL + + 51 ) col0
----
-3641

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT - - 82 + + 73 * - MIN ( ALL + + 51 ) col0
----
-3641

onlyif mysql # aggregate syntax: 
query II rowsort label-5145
SELECT - ( 89 ) AS col0, + MAX( DISTINCT ( - COALESCE ( 23, 97, CASE + NULLIF ( + - 20, 98 ) WHEN + + 25 + - + 38 + - 65 THEN - 47 * + 64 ELSE 66 + + 92 END * + 44 ) ) ) * SUM( - 84 * + 49 ) AS col2
----
-89
94668

skipif mysql # not compatible
query II rowsort label-5145
SELECT - ( 89 ) AS col0, + MAX ( DISTINCT ( - COALESCE ( 23, 97, CASE + NULLIF ( + - 20, 98 ) WHEN + + 25 + - + 38 + - 65 THEN - 47 * + 64 ELSE 66 + + 92 END * + 44 ) ) ) * SUM ( - 84 * + 49 ) AS col2
----
-89
94668

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5146
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5147
SELECT ALL - + 31 + - 48 * + 64 AS col1, COUNT( * ) AS col0
----
-3103
1

skipif mysql # not compatible
query II rowsort label-5147
SELECT ALL - + 31 + - 48 * + 64 AS col1, COUNT ( * ) AS col0
----
-3103
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT - COALESCE ( + CASE - CASE - + 15 WHEN - - 74 + + ( - - 57 ) THEN NULL ELSE - COUNT( * ) END WHEN - - 99 THEN NULL ELSE 80 END, 15 - 45, - + 71 ) * - 8 + - 45 AS col2
----
595

skipif mysql # not compatible
query I rowsort label-5148
SELECT - COALESCE ( + CASE - CASE - + 15 WHEN - - 74 + + ( - - 57 ) THEN NULL ELSE - COUNT ( * ) END WHEN - - 99 THEN NULL ELSE 80 END, 15 - 45, - + 71 ) * - 8 + - 45 AS col2
----
595

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT - - MAX( DISTINCT 40 ) + + - 27 + - 47 * 71
----
-3324

skipif mysql # not compatible
query I rowsort label-5149
SELECT - - MAX ( DISTINCT 40 ) + + - 27 + - 47 * 71
----
-3324

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT ALL - + 39 + - + 21 + + 60 - COUNT( * ) * + ( ( + 58 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL - + 39 + - + 21 + + 60 - COUNT ( * ) * + ( ( + 58 ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT - - COUNT( * ) * - + 66 + ( COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-5151
SELECT - - COUNT ( * ) * - + 66 + ( COUNT ( * ) )
----
-65

query I rowsort
SELECT ALL + 10 * - - 82 + - 41 col0
----
779

query I rowsort
SELECT DISTINCT + - ( 26 ) * 83
----
-2158

query I rowsort
SELECT - - 71 / - + 31 / - CASE + + 15 WHEN 29 * 62 THEN - 48 / 7 END * + 12 + - 82 * - 59 + - 25 - - 36 + - + 87 * + + 93 * - - 36 AS col2
----
NULL

query I rowsort
SELECT ALL + - 59 col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT NULLIF ( 17, - + 57 * - SUM( + + 20 ) ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5156
SELECT NULLIF ( 17, - + 57 * - SUM ( + + 20 ) ) AS col1
----
17

query I rowsort
SELECT + 10 + + - 93 + - + 60 * - 92
----
5437

query II rowsort
SELECT ALL + 70 AS col1, - 81
----
70
-81

query II rowsort
SELECT + 67, 36 AS col0
----
67
36

query II rowsort
SELECT NULLIF ( 22, - 31 ), 51 AS col0
----
22
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5161
SELECT + 33 DIV + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-5161
SELECT + 33 / + COUNT ( * )
----
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5162
SELECT CASE 59 WHEN - 14 + CAST( NULL AS DECIMAL ) THEN - - 34 * 77 WHEN - ( - + 43 ) / 61 * + MAX( ALL 21 ) THEN NULL WHEN + + 29 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT CASE 59 WHEN - 14 + CAST ( NULL AS REAL ) THEN - - 34 * 77 WHEN - ( - + 43 ) / 61 * + MAX ( ALL 21 ) THEN NULL WHEN + + 29 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT DISTINCT ( - ( - 18 ) ) * COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT ( - ( - 18 ) ) * COUNT ( * )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5164
SELECT + COUNT( * ) * 77 DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-5164
SELECT + COUNT ( * ) * 77 / - - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT - 14 - + + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-5165
SELECT - 14 - + + COUNT ( * )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5166
SELECT ALL CAST( NULL AS DECIMAL ) * + + NULLIF ( 91, + - 74 ) * 2 * - 25 / + SUM( DISTINCT 35 ) * ( AVG ( 31 ) ) + 82 + - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL CAST ( NULL AS REAL ) * + + NULLIF ( 91, + - 74 ) * 2 * - 25 / + SUM ( DISTINCT 35 ) * ( AVG ( 31 ) ) + 82 + - 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL + 16 * + COUNT( * ) * - 70 + + 81
----
-1039

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL + 16 * + COUNT ( * ) * - 70 + + 81
----
-1039

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT MIN( - 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5168
SELECT MIN ( - 2 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT MIN( DISTINCT - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-5169
SELECT MIN ( DISTINCT - 79 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5170
SELECT + ( COUNT( * ) ) * + - CASE + COUNT( * ) WHEN + 87 THEN + CASE - ( + 15 ) WHEN 44 THEN + 14 ELSE NULL END * + - 49 - CASE + 55 WHEN 86 THEN + 24 WHEN 28 + ( - COUNT( * ) ) THEN + 99 ELSE NULL END + COUNT( * ) * 35 END / + COUNT( * ) + - CAST( NULL AS SIGNED ) * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT + ( COUNT ( * ) ) * + - CASE + COUNT ( * ) WHEN + 87 THEN + CASE - ( + 15 ) WHEN 44 THEN + 14 ELSE NULL END * + - 49 - CASE + 55 WHEN 86 THEN + 24 WHEN 28 + ( - COUNT ( * ) ) THEN + 99 ELSE NULL END + COUNT ( * ) * 35 END / + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + 14
----
NULL

query I rowsort
SELECT ALL CASE - 21 WHEN + + 14 THEN + - 75 ELSE - - 89 END * + - 92 + + ( - 97 )
----
-8285

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT MIN( + - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-5172
SELECT MIN ( + - 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT - COUNT( * ) * - 39
----
39

skipif mysql # not compatible
query I rowsort label-5173
SELECT - COUNT ( * ) * - 39
----
39

query I rowsort
SELECT - + 96 * + 41 + + 87 - 32 AS col2
----
-3881

query II rowsort
SELECT ALL + 41, 97 AS col2
----
41
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT + 67 * ( + + 77 ) * + COUNT( * ) + + COUNT( * )
----
5160

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT + 67 * ( + + 77 ) * + COUNT ( * ) + + COUNT ( * )
----
5160

query I rowsort
SELECT ALL - 66 * - 57 AS col2
----
3762

onlyif mysql # aggregate syntax: 
query II rowsort label-5178
SELECT + COUNT( * ), NULLIF ( - 60, - + ( - 46 ) ) * - 56 AS col1
----
1
3360

skipif mysql # not compatible
query II rowsort label-5178
SELECT + COUNT ( * ), NULLIF ( - 60, - + ( - 46 ) ) * - 56 AS col1
----
1
3360

query I rowsort
SELECT DISTINCT + 75 * + - 17 AS col1
----
-1275

query I rowsort
SELECT + 40 + - 45 AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT - CAST( - 70 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5181
SELECT - CAST ( - 70 AS INTEGER ) AS col1
----
70

query I rowsort
SELECT + + 41 + - 6 AS col2
----
35

query I rowsort
SELECT - + 36 - 13 col0
----
-49

query II rowsort
SELECT DISTINCT 24, - 25 AS col1
----
24
-25

query I rowsort
SELECT ALL - + 37 - - 84
----
47

query I rowsort
SELECT ALL + 81 - - 32 AS col0
----
113

query I rowsort
SELECT - 90 + - + 89 col2
----
-179

onlyif mysql # DIV for integer division: 
query II rowsort label-5188
SELECT ALL 92 AS col1, 42 DIV 41 AS col0
----
92
1

skipif mysql # not compatible
query II rowsort label-5188
SELECT ALL 92 AS col1, 42 / 41 AS col0
----
92
1

query I rowsort
SELECT DISTINCT - - 8 - - 10 AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5190
SELECT DISTINCT - COUNT( * ) DIV + 16 AS col0, MAX( 99 ) * 42 AS col1
----
0
4158

skipif mysql # not compatible
query II rowsort label-5190
SELECT DISTINCT - COUNT ( * ) / + 16 AS col0, MAX ( 99 ) * 42 AS col1
----
0
4158

query I rowsort
SELECT - 69 + + + CASE 80 WHEN + + 51 THEN - 40 WHEN - 33 / - + ( - 4 ) + ( 54 ) THEN NULL WHEN + + 20 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 81 * + + 91 * + 73 AS col1
----
-538083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5193
SELECT - 86 * - MIN( ALL - - 5 ) * - 61 AS col0, - NULLIF ( COUNT( * ), 47 * + ( - 28 ) * ( + CAST( NULL AS SIGNED ) ) )
----
-26230
-1

skipif mysql # not compatible
query II rowsort label-5193
SELECT - 86 * - MIN ( ALL - - 5 ) * - 61 AS col0, - NULLIF ( COUNT ( * ), 47 * + ( - 28 ) * ( + CAST ( NULL AS INTEGER ) ) )
----
-26230
-1

query I rowsort
SELECT ALL - ( + 25 ) * + - 6 * + 37 AS col2
----
5550

query I rowsort
SELECT - 57 * + 90
----
-5130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5196
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 28 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5197
SELECT DISTINCT + CASE ( - 33 ) WHEN + COALESCE ( + - 44, 95 - COALESCE ( + 41, + + MAX( ALL + 28 ) ) ) * + - COUNT( * ) + + CAST( NULL AS SIGNED ) * + + 43 + + + 61 * - COUNT( + - 99 ) THEN 43 + - + 60 / + 70 WHEN - 16 + + NULLIF ( - ( ( 45 ) ), 71 ) THEN - COUNT( * ) / + 89 ELSE COUNT( * ) * COALESCE ( - 73, 7 ) END
----
-73

skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT + CASE ( - 33 ) WHEN + COALESCE ( + - 44, 95 - COALESCE ( + 41, + + MAX ( ALL + 28 ) ) ) * + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + + 43 + + + 61 * - COUNT ( + - 99 ) THEN 43 + - + 60 / + 70 WHEN - 16 + + NULLIF ( - ( ( 45 ) ), 71 ) THEN - COUNT ( * ) / + 89 ELSE COUNT ( * ) * COALESCE ( - 73, 7 ) END
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT ALL - MIN( - 41 ) * + + COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL - MIN ( - 41 ) * + + COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5199
SELECT - 27 * - + 82, COUNT( * ) * + COALESCE ( - 35, - + COUNT( * ) DIV + + 5 + + 81 ) AS col0
----
2214
-35

skipif mysql # not compatible
query II rowsort label-5199
SELECT - 27 * - + 82, COUNT ( * ) * + COALESCE ( - 35, - + COUNT ( * ) / + + 5 + + 81 ) AS col0
----
2214
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5200
SELECT 28 * - 28 + + 10 DIV - 68 AS col0, 5 + - COUNT( * ) DIV 91
----
-784
5

skipif mysql # not compatible
query II rowsort label-5200
SELECT 28 * - 28 + + 10 / - 68 AS col0, 5 + - COUNT ( * ) / 91
----
-784
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5201
SELECT ALL + 72 DIV - + 36 + + 66
----
64

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL + 72 / - + 36 + + 66
----
64

query I rowsort
SELECT - 91 + 68 * + + 81 AS col1
----
5417

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT + 92 * - 84 * + SUM( - 73 ) * + 64 - - 43
----
36105259

skipif mysql # not compatible
query I rowsort label-5203
SELECT + 92 * - 84 * + SUM ( - 73 ) * + 64 - - 43
----
36105259

onlyif mysql # aggregate syntax: 
query II rowsort label-5204
SELECT + MAX( 33 ), ( + - 44 ) AS col2
----
33
-44

skipif mysql # not compatible
query II rowsort label-5204
SELECT + MAX ( 33 ), ( + - 44 ) AS col2
----
33
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT + MIN( + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-5205
SELECT + MIN ( + 57 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5206
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5206
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 32
----
NULL

query I rowsort
SELECT ALL 72 * + + 22 * + ( 77 )
----
121968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5208
SELECT ALL 23 * - 88 DIV + - 8 + + + 40 + + - 37 + - + 32 * 76 * + + COUNT( * ) AS col0
----
-2176

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL 23 * - 88 / + - 8 + + + 40 + + - 37 + - + 32 * 76 * + + COUNT ( * ) AS col0
----
-2176

query II rowsort
SELECT + 35 * + + ( 75 ) + - - 57 + - 6 + + 23 - + 47 * + ( - 21 ) + - - 60 AS col1, ( - - 7 )
----
3746
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL - 77 * - 33 - + 2 + - COALESCE ( + 9, + ( + ( 72 ) ) * - 64, + 68 * 80 ) + COUNT( ALL - 27 )
----
2531

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL - 77 * - 33 - + 2 + - COALESCE ( + 9, + ( + ( 72 ) ) * - 64, + 68 * 80 ) + COUNT ( ALL - 27 )
----
2531

query I rowsort
SELECT + + 99 col1
----
99

query I rowsort
SELECT 14 + - + 16 + - 54
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5213
SELECT + 81 * 58 + - 33 DIV + CASE 58 WHEN - 15 + + 31 THEN + 95 WHEN - CAST( - NULLIF ( + 49, - 18 ) AS SIGNED ) + + 33 THEN - - 23 + + 54 ELSE 53 END DIV - + 77 DIV 49 AS col1
----
4698

skipif mysql # not compatible
query I rowsort label-5213
SELECT + 81 * 58 + - 33 / + CASE 58 WHEN - 15 + + 31 THEN + 95 WHEN - CAST ( - NULLIF ( + 49, - 18 ) AS INTEGER ) + + 33 THEN - - 23 + + 54 ELSE 53 END / - + 77 / 49 AS col1
----
4698

query I rowsort
SELECT - CASE - - 39 WHEN + 65 THEN - ( 1 ) ELSE - ( + 18 ) END AS col1
----
18

query I rowsort
SELECT 91 + + 91 * 51 * + 37
----
171808

query I rowsort
SELECT - 47 * + - 77
----
3619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5217
SELECT + MIN( DISTINCT CASE - 3 WHEN - 50 + - - 87 / - + 98 * - 70 * - 27 THEN + + 82 - - + 55 + + 17 * - 73 + + CAST( NULL AS SIGNED ) + 8 * + 25 / + 84 * - 54 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT + MIN ( DISTINCT CASE - 3 WHEN - 50 + - - 87 / - + 98 * - 70 * - 27 THEN + + 82 - - + 55 + + 17 * - 73 + + CAST ( NULL AS INTEGER ) + 8 * + 25 / + 84 * - 54 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5218
SELECT ALL 91 - - 10 DIV + NULLIF ( 3, 55 - - + 63 )
----
94

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL 91 - - 10 / + NULLIF ( 3, 55 - - + 63 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5219
SELECT - 74 DIV COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5219
SELECT - 74 / COUNT ( * ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5220
SELECT + 83 + - COUNT( * ) / + CAST( NULL AS SIGNED ) * - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT + 83 + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) * - - 44
----
NULL

query I rowsort
SELECT - ( 6 )
----
-6

query I rowsort
SELECT DISTINCT + + 72 * + 33 + - 35 AS col0
----
2341

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT ALL - + 10 - + - COALESCE ( - NULLIF ( - 16, + - 40 ), COUNT( * ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL - + 10 - + - COALESCE ( - NULLIF ( - 16, + - 40 ), COUNT ( * ) ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5224
SELECT + COALESCE ( - CAST( - 77 AS SIGNED ), 50 ) * - COUNT( * ) * - 54
----
4158

skipif mysql # not compatible
query I rowsort label-5224
SELECT + COALESCE ( - CAST ( - 77 AS INTEGER ), 50 ) * - COUNT ( * ) * - 54
----
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - ( - 7 ) * + COUNT( DISTINCT - + ( - + 26 ) )
----
7

skipif mysql # not compatible
query I rowsort label-5225
SELECT - ( - 7 ) * + COUNT ( DISTINCT - + ( - + 26 ) )
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5226
SELECT - 33 + + COUNT( * ) * + + 35 * - + CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col0, 55 * + 14 AS col1
----
NULL
770

skipif mysql # not compatible
query II rowsort label-5226
SELECT - 33 + + COUNT ( * ) * + + 35 * - + CAST ( NULL AS REAL ) * - COUNT ( * ) AS col0, 55 * + 14 AS col1
----
NULL
770

query I rowsort
SELECT - - 19 AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5228
SELECT 34 + - NULLIF ( COUNT( * ), + NULLIF ( - 75, 41 * + 56 + + + 94 + ( 52 ) ) * + 33 + AVG ( + + 91 ) * CASE + 14 WHEN - - 38 + ( - + 58 ) * 20 THEN NULL WHEN 17 + - COUNT( * ) THEN NULL ELSE 22 * 44 END + 23 ) DIV 34
----
34

skipif mysql # not compatible
query I rowsort label-5228
SELECT 34 + - NULLIF ( COUNT ( * ), + NULLIF ( - 75, 41 * + 56 + + + 94 + ( 52 ) ) * + 33 + AVG ( + + 91 ) * CASE + 14 WHEN - - 38 + ( - + 58 ) * 20 THEN NULL WHEN 17 + - COUNT ( * ) THEN NULL ELSE 22 * 44 END + 23 ) / 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL - COUNT( * ) * COALESCE ( 30, - 1, - 16 )
----
-30

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL - COUNT ( * ) * COALESCE ( 30, - 1, - 16 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5230
SELECT 8 * + + 28 * CAST( - MIN( - 45 ) AS SIGNED ), CAST( ( + 34 ) AS SIGNED ) AS col2
----
10080
34

skipif mysql # not compatible
query II rowsort label-5230
SELECT 8 * + + 28 * CAST ( - MIN ( - 45 ) AS INTEGER ), CAST ( ( + 34 ) AS INTEGER ) AS col2
----
10080
34

query I rowsort
SELECT 44 * - - 36
----
1584

query I rowsort
SELECT 15 + + 56 - - + 26 * - 64 + + ( + 18 ) * 53 + - - 77 AS col1
----
-562

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT NULLIF ( + 84, + COUNT( * ) * + + 8 ) - + 76 * - COUNT( * ) AS col0
----
160

skipif mysql # not compatible
query I rowsort label-5233
SELECT NULLIF ( + 84, + COUNT ( * ) * + + 8 ) - + 76 * - COUNT ( * ) AS col0
----
160

query II rowsort
SELECT ALL 62 AS col1, + 21
----
62
21

query I rowsort
SELECT 34 * 3 col1
----
102

query I rowsort
SELECT ALL - ( + 75 ) col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5237
SELECT + 13 DIV 48 + + 85 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-5237
SELECT + 13 / 48 + + 85 AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5238
SELECT ALL - CAST( ( 46 ) AS SIGNED ) DIV + 61 + + 35 + + 6 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL - CAST ( ( 46 ) AS INTEGER ) / + 61 + + 35 + + 6 AS col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT 24 DIV - - 41 * 83 * - + 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT 24 / - - 41 * 83 * - + 9 AS col1
----
0

query I rowsort
SELECT ALL - 60 + - + 67 AS col1
----
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5241
SELECT + 25 * 19 + - - CAST( NULL AS SIGNED ) * - + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT + 25 * 19 + - - CAST ( NULL AS INTEGER ) * - + 39 AS col2
----
NULL

query I rowsort
SELECT ALL + 97 + 26 + + - 90 * + 12 AS col1
----
-957

query II rowsort
SELECT + 86, - 95 AS col0
----
86
-95

query I rowsort
SELECT DISTINCT + 88 * - + 96
----
-8448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5245
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 37 + 60 AS col2, - ( 90 ) + - 4
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-5245
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 37 + 60 AS col2, - ( 90 ) + - 4
----
NULL
-94

query I rowsort
SELECT 59 * 80
----
4720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5247
SELECT ALL + SUM( - 98 ) + + + 15 * 10 DIV - 82 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + SUM ( - 98 ) + + + 15 * 10 / - 82 AS col0
----
-99

query I rowsort
SELECT DISTINCT - 43 * + 74 col2
----
-3182

query II rowsort
SELECT + 49 AS col2, 63 + 40
----
49
103

query I rowsort
SELECT + - 29 col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT 16 - + 68 + - + CAST( NULL AS SIGNED ) + + 57 - - - CAST( + 59 AS SIGNED ) - - NULLIF ( 93, + 10 ) * + 26 * + + 47 * + 21 + - 63 * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT 16 - + 68 + - + CAST ( NULL AS INTEGER ) + + 57 - - - CAST ( + 59 AS INTEGER ) - - NULLIF ( 93, + 10 ) * + 26 * + + 47 * + 21 + - 63 * + 73
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5252
SELECT + 8, 31 + + - COUNT( DISTINCT + - 25 ) AS col2
----
8
30

skipif mysql # not compatible
query II rowsort label-5252
SELECT + 8, 31 + + - COUNT ( DISTINCT + - 25 ) AS col2
----
8
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL + MIN( - 33 ) - + + 47
----
-80

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL + MIN ( - 33 ) - + + 47
----
-80

query I rowsort
SELECT 85 - + 58 + + 8 AS col2
----
35

query I rowsort
SELECT ALL ( + 11 ) * 67 + + 25 + + ( + - ( + 56 ) ) + - 11 AS col0
----
695

query I rowsort
SELECT + 72 - - 19 * - 35 + + 63 + + 48 + - NULLIF ( - + ( 41 ), + 42 + + 29 ) * + 91 AS col0
----
3249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5257
SELECT ALL - + 66 DIV - - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL - + 66 / - - COUNT ( * )
----
-66

query I rowsort
SELECT + 81 * - ( 79 ) + + ( + - 14 ) * + + 88
----
-7631

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT DISTINCT 20 * - ( + + CAST( 48 AS SIGNED ) )
----
-960

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT 20 * - ( + + CAST ( 48 AS INTEGER ) )
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL SUM( + + 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL SUM ( + + 69 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5261
SELECT - 65, COUNT( * ) * 83 * 18 AS col1
----
-65
1494

skipif mysql # not compatible
query II rowsort label-5261
SELECT - 65, COUNT ( * ) * 83 * 18 AS col1
----
-65
1494

query I rowsort
SELECT ALL - + 91 * - + 34
----
3094

query I rowsort
SELECT 55 - + 58
----
-3

query I rowsort
SELECT 85 * 86 + + - 13 * 98 AS col0
----
6036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5265
SELECT CASE - 29 WHEN + ( - 6 ) * 93 / + + 10 THEN CASE - + 3 WHEN + - 63 * - + 43 * - COUNT( * ) / + 29 THEN 56 * CAST( NULL AS SIGNED ) ELSE - - COUNT( * ) END / COALESCE ( - 87, + 26, 99 ) - 56 * + 65 WHEN - COUNT( * ) * 90 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT CASE - 29 WHEN + ( - 6 ) * 93 / + + 10 THEN CASE - + 3 WHEN + - 63 * - + 43 * - COUNT ( * ) / + 29 THEN 56 * CAST ( NULL AS INTEGER ) ELSE - - COUNT ( * ) END / COALESCE ( - 87, + 26, 99 ) - 56 * + 65 WHEN - COUNT ( * ) * 90 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5266
SELECT 47 * CASE 11 WHEN + + 86 + 41 THEN + COUNT( ALL + 52 ) WHEN - 63 + + 34 * 37 * 66 THEN + 59 * - CAST( NULL AS SIGNED ) ELSE NULL END + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT 47 * CASE 11 WHEN + + 86 + 41 THEN + COUNT ( ALL + 52 ) WHEN - 63 + + 34 * 37 * 66 THEN + 59 * - CAST ( NULL AS INTEGER ) ELSE NULL END + - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT ALL SUM( DISTINCT + - 24 ) + 41 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL SUM ( DISTINCT + - 24 ) + 41 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT DISTINCT MIN( DISTINCT 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT MIN ( DISTINCT 6 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5269
SELECT DISTINCT 10 AS col1, + COUNT( * ) AS col1
----
10
1

skipif mysql # not compatible
query II rowsort label-5269
SELECT DISTINCT 10 AS col1, + COUNT ( * ) AS col1
----
10
1

query I rowsort
SELECT ALL 39 + - + 47 col1
----
-8

query I rowsort
SELECT ALL - 73 * - + 90
----
6570

onlyif mysql # DIV for integer division: 
query II rowsort label-5272
SELECT 58 AS col0, 99 DIV + 45 col2
----
58
2

skipif mysql # not compatible
query II rowsort label-5272
SELECT 58 AS col0, 99 / + 45 col2
----
58
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5273
SELECT COALESCE ( - CAST( + 0 AS SIGNED ), + + COUNT( * ) - COUNT( * ) * + CAST( NULL AS SIGNED ), - COUNT( 21 ) - - 81 + + - 58 * + 88 * 29 * - + COUNT( * ) ) + NULLIF ( + + 9, + - 21 ) col2
----
9

skipif mysql # not compatible
query I rowsort label-5273
SELECT COALESCE ( - CAST ( + 0 AS INTEGER ), + + COUNT ( * ) - COUNT ( * ) * + CAST ( NULL AS INTEGER ), - COUNT ( 21 ) - - 81 + + - 58 * + 88 * 29 * - + COUNT ( * ) ) + NULLIF ( + + 9, + - 21 ) col2
----
9

query I rowsort
SELECT ALL ( 18 ) + - 68 - 76
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT ALL 62 * - NULLIF ( - 64, NULLIF ( 46, + + COUNT( * ) ) )
----
3968

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL 62 * - NULLIF ( - 64, NULLIF ( 46, + + COUNT ( * ) ) )
----
3968

query I rowsort
SELECT CASE - + 36 WHEN - 68 THEN - 98 WHEN 55 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 40 - + 69 AS col2
----
-29

query I rowsort
SELECT DISTINCT - 24 * + + 6 + + 91
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5279
SELECT ALL + 40 * + CAST( ( 60 ) AS SIGNED ) * - 15 + - 24 AS col0, 93 AS col1
----
-36024
93

skipif mysql # not compatible
query II rowsort label-5279
SELECT ALL + 40 * + CAST ( ( 60 ) AS INTEGER ) * - 15 + - 24 AS col0, 93 AS col1
----
-36024
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5280
SELECT 2 DIV + 40 + + 47 + - 37 + + 11
----
21

skipif mysql # not compatible
query I rowsort label-5280
SELECT 2 / + 40 + + 47 + - 37 + + 11
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5281
SELECT ALL - COUNT( * ) DIV + - COALESCE ( 94, + 58 ), 31 * + 23 AS col2
----
0
713

skipif mysql # not compatible
query II rowsort label-5281
SELECT ALL - COUNT ( * ) / + - COALESCE ( 94, + 58 ), 31 * + 23 AS col2
----
0
713

query II rowsort
SELECT + 47 col0, 48
----
47
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT - COUNT( * ) - 0
----
-1

skipif mysql # not compatible
query I rowsort label-5283
SELECT - COUNT ( * ) - 0
----
-1

query I rowsort
SELECT + 7 + - - 88 + - 35 * - 12 AS col0
----
515

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL 6 * + 76 * + - ( - ( - MIN( ALL 68 ) ) ) * - ( COUNT( * ) ) - - 9 + 40 AS col2
----
31057

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL 6 * + 76 * + - ( - ( - MIN ( ALL 68 ) ) ) * - ( COUNT ( * ) ) - - 9 + 40 AS col2
----
31057

query I rowsort
SELECT + - ( + + ( 12 ) )
----
-12

query I rowsort
SELECT + 20 * - 22 AS col1
----
-440

query I rowsort
SELECT - - 49 + - 72 AS col0
----
-23

query I rowsort
SELECT - - 38 + + - ( - + 69 ) col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT - - NULLIF ( - - ( + COUNT( * ) ), + 71 ) * - 79 + + 67
----
-12

skipif mysql # not compatible
query I rowsort label-5290
SELECT - - NULLIF ( - - ( + COUNT ( * ) ), + 71 ) * - 79 + + 67
----
-12

query I rowsort
SELECT DISTINCT + + 93 * + 41
----
3813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5292
SELECT + COALESCE ( COUNT( * ), + ( CASE MIN( - + 57 ) WHEN + 60 + + COALESCE ( - SUM( + 73 ), - 99, CAST( NULL AS SIGNED ) ) THEN NULL WHEN MIN( 98 ) THEN + 48 END ) DIV + 47 + + - 36 ) * + 65 + - + 46
----
19

skipif mysql # not compatible
query I rowsort label-5292
SELECT + COALESCE ( COUNT ( * ), + ( CASE MIN ( - + 57 ) WHEN + 60 + + COALESCE ( - SUM ( + 73 ), - 99, CAST ( NULL AS INTEGER ) ) THEN NULL WHEN MIN ( 98 ) THEN + 48 END ) / + 47 + + - 36 ) * + 65 + - + 46
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-5293
SELECT ALL + - CASE + - 35 WHEN + + COUNT( * ) THEN NULL ELSE - 76 END col1, 62 + - + 59 + - + 69 * COUNT( * ) * - 48 AS col2
----
76
3315

skipif mysql # not compatible
query II rowsort label-5293
SELECT ALL + - CASE + - 35 WHEN + + COUNT ( * ) THEN NULL ELSE - 76 END col1, 62 + - + 59 + - + 69 * COUNT ( * ) * - 48 AS col2
----
76
3315

query I rowsort
SELECT DISTINCT + + 1 * - 76
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5295
SELECT - 92 + + COALESCE ( + + COUNT( * ), + + 30 DIV + 26 + - + 6 ) + - COALESCE ( - 9, + CAST( NULL AS SIGNED ), 49 - - 85 + 40 + - - COUNT( ALL - 13 ) * - 26 * - SUM( DISTINCT - 98 ) * - 71 - - 98 * - + 82 + + + 84 * 98 ) - + COUNT( * ) * 49
----
-131

skipif mysql # not compatible
query I rowsort label-5295
SELECT - 92 + + COALESCE ( + + COUNT ( * ), + + 30 / + 26 + - + 6 ) + - COALESCE ( - 9, + CAST ( NULL AS INTEGER ), 49 - - 85 + 40 + - - COUNT ( ALL - 13 ) * - 26 * - SUM ( DISTINCT - 98 ) * - 71 - - 98 * - + 82 + + + 84 * 98 ) - + COUNT ( * ) * 49
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT - 6 + 89 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT - 6 + 89 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT - + MIN( + 6 ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-5297
SELECT - + MIN ( + 6 ) col2
----
-6

query I rowsort
SELECT + + 30 * 94 * + 17 AS col2
----
47940

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT + + 72 + 18 * - 1 * 45 + - 82 - - 69 - 34 + - - COUNT( * ) * - 94 * COUNT( - 38 ) + NULLIF ( 39, - 99 * - 78 ) + - 66 + - - 50 AS col1
----
-856

skipif mysql # not compatible
query I rowsort label-5299
SELECT + + 72 + 18 * - 1 * 45 + - 82 - - 69 - 34 + - - COUNT ( * ) * - 94 * COUNT ( - 38 ) + NULLIF ( 39, - 99 * - 78 ) + - 66 + - - 50 AS col1
----
-856

query I rowsort
SELECT ALL - 92 + 89 AS col0
----
-3

query I rowsort
SELECT - 51 + + + 1 + - 25
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL - 32 + + COUNT( 30 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL - 32 + + COUNT ( 30 ) AS col2
----
-31

query I rowsort
SELECT ALL 98 + - 92
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5304
SELECT - 15 DIV 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-5304
SELECT - 15 / 77 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT - 74 - + MAX( + 94 ) + 90 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5305
SELECT - 74 - + MAX ( + 94 ) + 90 AS col2
----
-78

query I rowsort
SELECT + 97 + - - 20 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT + CASE - 60 WHEN + + 43 - - 96 * + 17 * + COUNT( * ) THEN - 55 + 77 + COUNT( * ) ELSE + + 72 * - 64 + - - 71 * ( + 88 ) END * ( + 66 ) AS col0
----
108240

skipif mysql # not compatible
query I rowsort label-5307
SELECT + CASE - 60 WHEN + + 43 - - 96 * + 17 * + COUNT ( * ) THEN - 55 + 77 + COUNT ( * ) ELSE + + 72 * - 64 + - - 71 * ( + 88 ) END * ( + 66 ) AS col0
----
108240

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT - MAX( ALL + ( 98 ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-5308
SELECT - MAX ( ALL + ( 98 ) ) AS col0
----
-98

query I rowsort
SELECT + CASE WHEN NULL = 84 THEN 41 END + + + ( + 35 )
----
NULL

query II rowsort
SELECT DISTINCT - ( - + 13 ) - 64 AS col2, 20 AS col0
----
-51
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT DISTINCT 49 - + - COUNT( * ) * - 58 col0
----
-9

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT 49 - + - COUNT ( * ) * - 58 col0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT DISTINCT 61 DIV 50 * 99 * 14 AS col0
----
1386

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT 61 / 50 * 99 * 14 AS col0
----
1386

query I rowsort
SELECT + ( - 6 ) * - - 1 * + 5
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5314
SELECT + 67 / + - CAST( NULL AS SIGNED ) * - 58 * + 12 * - + 89 * + 0 + - 68 * CASE 53 WHEN NULLIF ( + 35, - - 42 + + + CASE 50 WHEN - 4 * - SUM( - - ( + + 93 ) ) THEN COUNT( * ) WHEN + - 2 THEN + CASE + 89 WHEN - 51 + + 26 THEN NULL WHEN - AVG ( DISTINCT - 5 ) * 88 + - 50 THEN 28 / 32 END * 40 + + 19 ELSE + 80 END ) / + MIN( DISTINCT + 1 ) THEN 74 + 54 WHEN COUNT( * ) THEN NULL END * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT + 67 / + - CAST ( NULL AS INTEGER ) * - 58 * + 12 * - + 89 * + 0 + - 68 * CASE 53 WHEN NULLIF ( + 35, - - 42 + + + CASE 50 WHEN - 4 * - SUM ( - - ( + + 93 ) ) THEN COUNT ( * ) WHEN + - 2 THEN + CASE + 89 WHEN - 51 + + 26 THEN NULL WHEN - AVG ( DISTINCT - 5 ) * 88 + - 50 THEN 28 / 32 END * 40 + + 19 ELSE + 80 END ) / + MIN ( DISTINCT + 1 ) THEN 74 + 54 WHEN COUNT ( * ) THEN NULL END * 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT + COUNT( + - 29 ) * - ( + 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-5315
SELECT + COUNT ( + - 29 ) * - ( + 7 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5316
SELECT DISTINCT 39 * 9 * - - ( CAST( - - ( - 40 ) AS SIGNED ) )
----
-14040

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT 39 * 9 * - - ( CAST ( - - ( - 40 ) AS INTEGER ) )
----
-14040

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT ALL + MIN( DISTINCT + - ( + 82 ) ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL + MIN ( DISTINCT + - ( + 82 ) ) AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT DISTINCT + + CASE + 3 WHEN - 65 * - COUNT( + + 36 ) - 67 + - NULLIF ( - COUNT( * ), - 19 ) * 13 + - - 20 + + COALESCE ( + + ( + 29 ), + COALESCE ( SUM( DISTINCT - 79 ), + + COALESCE ( + 65, - 80 * 18 ) ) * + - CASE CAST( ( 18 ) AS SIGNED ) WHEN - 58 THEN COUNT( * ) * MIN( + 99 ) + - 74 WHEN + 92 THEN 96 WHEN - 17 + 68 * 59 THEN 78 + NULLIF ( 90, MIN( + 9 ) * 26 ) ELSE + 42 END, 78 ) THEN NULL ELSE - 95 * + 89 END
----
-8455

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT + + CASE + 3 WHEN - 65 * - COUNT ( + + 36 ) - 67 + - NULLIF ( - COUNT ( * ), - 19 ) * 13 + - - 20 + + COALESCE ( + + ( + 29 ), + COALESCE ( SUM ( DISTINCT - 79 ), + + COALESCE ( + 65, - 80 * 18 ) ) * + - CASE CAST ( ( 18 ) AS INTEGER ) WHEN - 58 THEN COUNT ( * ) * MIN ( + 99 ) + - 74 WHEN + 92 THEN 96 WHEN - 17 + 68 * 59 THEN 78 + NULLIF ( 90, MIN ( + 9 ) * 26 ) ELSE + 42 END, 78 ) THEN NULL ELSE - 95 * + 89 END
----
-8455

query II rowsort
SELECT ALL + + ( 19 ) AS col2, + 51 AS col0
----
19
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT DISTINCT + + SUM( 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT + + SUM ( 66 ) AS col0
----
66

query I rowsort
SELECT - NULLIF ( + - 66, - 39 * + 10 )
----
66

query I rowsort
SELECT DISTINCT + + 19 AS col1
----
19

query I rowsort
SELECT ( ( - 94 ) )
----
-94

query II rowsort
SELECT + - 56 + + - 62, 16 AS col1
----
-118
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5325
SELECT - 99 DIV + - COUNT( * ), 63 + - 79 col1
----
99
-16

skipif mysql # not compatible
query II rowsort label-5325
SELECT - 99 / + - COUNT ( * ), 63 + - 79 col1
----
99
-16

query I rowsort
SELECT DISTINCT + + 28 * NULLIF ( + 40, 29 ) + + 24 + 71 * ( 21 ) + + ( + 12 ) + - 50
----
2597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5327
SELECT + COUNT( * ) * 60 - - + 4 AS col2, - CAST( NULL AS SIGNED )
----
64
NULL

skipif mysql # not compatible
query II rowsort label-5327
SELECT + COUNT ( * ) * 60 - - + 4 AS col2, - CAST ( NULL AS INTEGER )
----
64
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5328
SELECT - 57 - + COUNT( * ) AS col0, 46
----
-58
46

skipif mysql # not compatible
query II rowsort label-5328
SELECT - 57 - + COUNT ( * ) AS col0, 46
----
-58
46

query I rowsort
SELECT ALL 26 * + 95 AS col1
----
2470

onlyif mysql # DIV for integer division: 
query II rowsort label-5330
SELECT - 66 DIV + + 28 AS col1, - 25
----
-2
-25

skipif mysql # not compatible
query II rowsort label-5330
SELECT - 66 / + + 28 AS col1, - 25
----
-2
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT - MIN( - 9 ) + 69 + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5331
SELECT - MIN ( - 9 ) + 69 + COUNT ( * ) AS col1
----
79

query I rowsort
SELECT ALL - - 94 * - 67 + 7 AS col2
----
-6291

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT + 74 + - NULLIF ( 49, + ( - 90 ) * 89 * + + COUNT( * ) ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5333
SELECT + 74 + - NULLIF ( 49, + ( - 90 ) * 89 * + + COUNT ( * ) ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL ( - COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT - MIN( ALL + 56 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-5335
SELECT - MIN ( ALL + 56 ) AS col0
----
-56

query I rowsort
SELECT - 56 - 0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT DISTINCT CAST( + - 13 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT CAST ( + - 13 AS INTEGER )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5338
SELECT - COALESCE ( - + 78, + 28, - 94 + - - COUNT( * ), + 75 + - NULLIF ( - 97, 43 * + ( + 11 ) ) ) - CAST( ( - - COUNT( * ) ) AS SIGNED ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5338
SELECT - COALESCE ( - + 78, + 28, - 94 + - - COUNT ( * ), + 75 + - NULLIF ( - 97, 43 * + ( + 11 ) ) ) - CAST ( ( - - COUNT ( * ) ) AS INTEGER ) AS col0
----
77

query I rowsort
SELECT DISTINCT - ( + 71 ) - + - 5
----
-66

query I rowsort
SELECT ALL - 83 - 46 * 55 AS col1
----
-2613

query I rowsort
SELECT 52 + 67
----
119

query II rowsort
SELECT ALL 23 AS col0, - 81 AS col0
----
23
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-5343
SELECT DISTINCT 30, 35 DIV - 7 AS col0
----
30
-5

skipif mysql # not compatible
query II rowsort label-5343
SELECT DISTINCT 30, 35 / - 7 AS col0
----
30
-5

query II rowsort
SELECT - 33, 64 * + COALESCE ( 91, - 9 ) + - ( + 10 ) AS col2
----
-33
5814

query I rowsort
SELECT 49 + - + 15
----
34

query I rowsort
SELECT DISTINCT - 66 - 16
----
-82

query I rowsort
SELECT ALL + 12 * + 14 * 66 AS col1
----
11088

query I rowsort
SELECT 58 + + + 56 + - 90 * - 9
----
924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5349
SELECT DISTINCT - - CASE - MAX( 8 ) WHEN - 67 * + NULLIF ( - COUNT( * ), + ( + 71 ) ) + + CAST( - 87 AS SIGNED ) THEN NULL ELSE + CAST( COUNT( * ) AS SIGNED ) END
----
1

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT - - CASE - MAX ( 8 ) WHEN - 67 * + NULLIF ( - COUNT ( * ), + ( + 71 ) ) + + CAST ( - 87 AS INTEGER ) THEN NULL ELSE + CAST ( COUNT ( * ) AS INTEGER ) END
----
1

query I rowsort
SELECT + 43 * - - 61 + + 60
----
2683

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT DISTINCT - + COUNT( + 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT - + COUNT ( + 86 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5352
SELECT ALL SUM( ALL + + 72 ) * + COUNT( * ) AS col1, NULLIF ( + 15, - - 20 + - 43 ) * - 78 + + + 33
----
72
-1137

skipif mysql # not compatible
query II rowsort label-5352
SELECT ALL SUM ( ALL + + 72 ) * + COUNT ( * ) AS col1, NULLIF ( + 15, - - 20 + - 43 ) * - 78 + + + 33
----
72
-1137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5353
SELECT CASE + + 3 WHEN + 93 * 10 * + 12 THEN - CASE + 93 WHEN + CASE - COUNT( * ) WHEN - 85 THEN - 99 * - 53 + - 89 + - - 90 / - 99 END * CAST( 62 AS SIGNED ) + - - 55 + - - 92 / - 32 THEN NULL WHEN + 98 / 31 * + 98 - MIN( DISTINCT 52 ) * + 10 THEN NULL ELSE - 13 END WHEN + AVG ( + 92 ) / 71 THEN NULL ELSE 35 + COALESCE ( - 83, - 90 ) * + CAST( 9 + - 56 AS SIGNED ) END + 62 * ( - 29 )
----
2138

skipif mysql # not compatible
query I rowsort label-5353
SELECT CASE + + 3 WHEN + 93 * 10 * + 12 THEN - CASE + 93 WHEN + CASE - COUNT ( * ) WHEN - 85 THEN - 99 * - 53 + - 89 + - - 90 / - 99 END * CAST ( 62 AS INTEGER ) + - - 55 + - - 92 / - 32 THEN NULL WHEN + 98 / 31 * + 98 - MIN ( DISTINCT 52 ) * + 10 THEN NULL ELSE - 13 END WHEN + AVG ( + 92 ) / 71 THEN NULL ELSE 35 + COALESCE ( - 83, - 90 ) * + CAST ( 9 + - 56 AS INTEGER ) END + 62 * ( - 29 )
----
2138

query I rowsort
SELECT ALL - 66 + 74
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT COUNT( * ) - - 52
----
53

skipif mysql # not compatible
query I rowsort label-5355
SELECT COUNT ( * ) - - 52
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5356
SELECT - + COALESCE ( MIN( DISTINCT - - 64 ), - 80 ) * - + ( 0 ) * 2 - - 53 AS col0, - ( + COUNT( * ) ) * - 43 AS col1
----
53
43

skipif mysql # not compatible
query II rowsort label-5356
SELECT - + COALESCE ( MIN ( DISTINCT - - 64 ), - 80 ) * - + ( 0 ) * 2 - - 53 AS col0, - ( + COUNT ( * ) ) * - 43 AS col1
----
53
43

query II rowsort
SELECT + 56 AS col1, + 77 col2
----
56
77

query I rowsort
SELECT + 18 * 64 + + 80 - - 89 AS col1
----
1321

onlyif mysql # aggregate syntax: 
query II rowsort label-5359
SELECT 40 + + COUNT( 13 ) + + - 99 col0, COUNT( * ) * 90 col1
----
-58
90

skipif mysql # not compatible
query II rowsort label-5359
SELECT 40 + + COUNT ( 13 ) + + - 99 col0, COUNT ( * ) * 90 col1
----
-58
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5360
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 71 + - 66 * + 76
----
-4945

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT - CASE - 76 WHEN + + COUNT( * ) THEN 85 END + - 44 + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT - CASE - 76 WHEN + + COUNT ( * ) THEN 85 END + - 44 + + 58 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5363
SELECT ALL + 89 + + - 9 + - 5 DIV + 97 * + - ( + 4 ) + + 82 * - 73
----
-5906

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL + 89 + + - 9 + - 5 / + 97 * + - ( + 4 ) + + 82 * - 73
----
-5906

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT + + ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5364
SELECT + + ( - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5365
SELECT 85 AS col2, + 41 * - ( CAST( + 9 AS SIGNED ) )
----
85
-369

skipif mysql # not compatible
query II rowsort label-5365
SELECT 85 AS col2, + 41 * - ( CAST ( + 9 AS INTEGER ) )
----
85
-369

query I rowsort
SELECT 53 + + 65 * - 5 * + 97 * + 92
----
-2900247

query I rowsort
SELECT + 97 * - 4 + - + 82 AS col0
----
-470

query I rowsort
SELECT 72 + 7 AS col0
----
79

query II rowsort
SELECT ALL - 15 - + - COALESCE ( 39, 78 ) AS col1, - 33 AS col0
----
24
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT 43 * - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-5370
SELECT 43 * - COUNT ( * )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5371
SELECT ALL 50 / CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL 50 / CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 49 + + 19 * + 21 * + 39 + - + 13 AS col1
----
15597

onlyif mysql # aggregate syntax: 
query II rowsort label-5373
SELECT ( + 10 ) * + 27 + COUNT( * ) + - 33 + + NULLIF ( - MIN( DISTINCT 26 ), 97 ) * + 83 AS col0, + 58 + - - 74
----
-1920
132

skipif mysql # not compatible
query II rowsort label-5373
SELECT ( + 10 ) * + 27 + COUNT ( * ) + - 33 + + NULLIF ( - MIN ( DISTINCT 26 ), 97 ) * + 83 AS col0, + 58 + - - 74
----
-1920
132

query I rowsort
SELECT ALL + 43 * - + 77 * 80 AS col2
----
-264880

query I rowsort
SELECT 59 + - + 12 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT 68 * + CASE + ( + + 18 ) WHEN - COUNT( * ) THEN + ( - + 10 ) * 30 + - + 28 WHEN 0 * - COUNT( * ) + - + ( 46 ) + - 82 + + 29 THEN NULL ELSE - MAX( - 26 ) END * - + 64
----
-113152

skipif mysql # not compatible
query I rowsort label-5376
SELECT 68 * + CASE + ( + + 18 ) WHEN - COUNT ( * ) THEN + ( - + 10 ) * 30 + - + 28 WHEN 0 * - COUNT ( * ) + - + ( 46 ) + - 82 + + 29 THEN NULL ELSE - MAX ( - 26 ) END * - + 64
----
-113152

query I rowsort
SELECT ALL 79 * + 21
----
1659

query I rowsort
SELECT 78 * + 96 AS col1
----
7488

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5379
SELECT 87 DIV - 97 AS col0, + COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-5379
SELECT 87 / - 97 AS col0, + COUNT ( * ) AS col1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT 94 + + SUM( 18 )
----
112

skipif mysql # not compatible
query I rowsort label-5380
SELECT 94 + + SUM ( 18 )
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT 68 * + CAST( NULL AS SIGNED ) * - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT 68 * + CAST ( NULL AS INTEGER ) * - + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT COUNT( * ) + MIN( - - 87 )
----
88

skipif mysql # not compatible
query I rowsort label-5382
SELECT COUNT ( * ) + MIN ( - - 87 )
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5383
SELECT DISTINCT MIN( - 61 ) AS col2, 20 + + ( - 40 ) + 38
----
-61
18

skipif mysql # not compatible
query II rowsort label-5383
SELECT DISTINCT MIN ( - 61 ) AS col2, 20 + + ( - 40 ) + 38
----
-61
18

query I rowsort
SELECT 87 - - 62 + + - 4 col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT ALL - + COUNT( * ) * + - 45
----
45

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL - + COUNT ( * ) * + - 45
----
45

query I rowsort
SELECT 6 * 45 AS col1
----
270

query I rowsort
SELECT + ( 56 )
----
56

query I rowsort
SELECT + + ( - - 90 ) AS col0
----
90

query I rowsort
SELECT 29 + ( + - 74 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT MIN( - 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5390
SELECT MIN ( - 85 ) AS col2
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-5391
SELECT - 72 DIV - 19 AS col2, 70 AS col1
----
3
70

skipif mysql # not compatible
query II rowsort label-5391
SELECT - 72 / - 19 AS col2, 70 AS col1
----
3
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT ALL + 76 * 5 * - - 51 * 29 + - - ( - SUM( - 30 ) )
----
562050

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL + 76 * 5 * - - 51 * 29 + - - ( - SUM ( - 30 ) )
----
562050

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT COUNT( * ) * + 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-5393
SELECT COUNT ( * ) * + 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT ALL - + COUNT( * ) * + + ( - - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL - + COUNT ( * ) * + + ( - - 54 ) AS col1
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5395
SELECT ALL + COUNT( * ) DIV + 75 col0
----
0

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL + COUNT ( * ) / + 75 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT + 39 DIV - ( - 77 )
----
0

skipif mysql # not compatible
query I rowsort label-5396
SELECT + 39 / - ( - 77 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT ALL - - 40 + + COUNT( * ) + + 48 * + - SUM( + - 48 )
----
2345

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL - - 40 + + COUNT ( * ) + + 48 * + - SUM ( + - 48 )
----
2345

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT - COUNT( * ) * - COUNT( - 94 )
----
1

skipif mysql # not compatible
query I rowsort label-5398
SELECT - COUNT ( * ) * - COUNT ( - 94 )
----
1

query I rowsort
SELECT DISTINCT 87 * - - 49 AS col1
----
4263

query I rowsort
SELECT - 14 * + 77
----
-1078

query I rowsort
SELECT - 68 * + - 58 + 43 * - 68
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT COUNT( DISTINCT + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-5402
SELECT COUNT ( DISTINCT + 23 )
----
1

query II rowsort
SELECT 84, ( 89 ) * 57 col0
----
84
5073

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT + SUM( + + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-5404
SELECT + SUM ( + + 13 )
----
13

query I rowsort
SELECT - 56 * 0 * - 40 - + 54
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5406
SELECT ALL + CASE + COUNT( * ) WHEN + ( + 62 ) * - + 32 * - 42 THEN NULL ELSE 73 DIV + - ( ( - - 64 ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL + CASE + COUNT ( * ) WHEN + ( + 62 ) * - + 32 * - 42 THEN NULL ELSE 73 / + - ( ( - - 64 ) ) END
----
-1

query I rowsort
SELECT DISTINCT - 56 * + ( - 59 ) col0
----
3304

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT + MAX( ALL - 48 ) + + 53 + 90
----
95

skipif mysql # not compatible
query I rowsort label-5408
SELECT + MAX ( ALL - 48 ) + + 53 + 90
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5409
SELECT + 91 * - 20 * COALESCE ( - MIN( DISTINCT + - 93 ), + 65 + CAST( NULL AS SIGNED ) )
----
-169260

skipif mysql # not compatible
query I rowsort label-5409
SELECT + 91 * - 20 * COALESCE ( - MIN ( DISTINCT + - 93 ), + 65 + CAST ( NULL AS INTEGER ) )
----
-169260

query I rowsort
SELECT + 3 * - + ( + + 10 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT + MAX( 51 ) + - 53 + + - 82
----
-84

skipif mysql # not compatible
query I rowsort label-5411
SELECT + MAX ( 51 ) + - 53 + + - 82
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT - COUNT( * ) - - 25 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5412
SELECT - COUNT ( * ) - - 25 AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT + 55 DIV + ( + 31 )
----
1

skipif mysql # not compatible
query I rowsort label-5413
SELECT + 55 / + ( + 31 )
----
1

query I rowsort
SELECT - 61 * + 44
----
-2684

query I rowsort
SELECT - CASE + + 99 WHEN - + 47 THEN - 72 WHEN - + 72 + - + 94 THEN NULL ELSE - - 19 * - 62 - - - ( - 79 ) + 35 * + 50 + + 61 END AS col2
----
-712

query I rowsort
SELECT DISTINCT 96 + 4 * 92
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT + COUNT( * ) + + 68 + + 71
----
140

skipif mysql # not compatible
query I rowsort label-5417
SELECT + COUNT ( * ) + + 68 + + 71
----
140

query I rowsort
SELECT ALL - 49 * + 33
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT - 7 * COUNT( * ) * MAX( DISTINCT - - ( + + 89 ) ) * + 63 * - + 14 + - COUNT( * ) AS col0
----
549485

skipif mysql # not compatible
query I rowsort label-5419
SELECT - 7 * COUNT ( * ) * MAX ( DISTINCT - - ( + + 89 ) ) * + 63 * - + 14 + - COUNT ( * ) AS col0
----
549485

query I rowsort
SELECT + 46 + - + 56 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + + 60 * COUNT( * ) col0
----
60

skipif mysql # not compatible
query I rowsort label-5421
SELECT + + 60 * COUNT ( * ) col0
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5422
SELECT + 73 + + 11 - + 69 - - COUNT( * ) - 14 DIV + 84 * + 63 + - 34 + + NULLIF ( 20, + 29 ) * 51 - - - 85 + - 16 AS col0
----
901

skipif mysql # not compatible
query I rowsort label-5422
SELECT + 73 + + 11 - + 69 - - COUNT ( * ) - 14 / + 84 * + 63 + - 34 + + NULLIF ( 20, + 29 ) * 51 - - - 85 + - 16 AS col0
----
901

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT - - 63 * + ( - SUM( - 21 ) ) AS col2
----
1323

skipif mysql # not compatible
query I rowsort label-5423
SELECT - - 63 * + ( - SUM ( - 21 ) ) AS col2
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT - MIN( DISTINCT + 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5424
SELECT - MIN ( DISTINCT + 67 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT - + ( 5 ) * 12 + + 38 + + COUNT( * ) + - ( - - 60 )
----
-81

skipif mysql # not compatible
query I rowsort label-5425
SELECT - + ( 5 ) * 12 + + 38 + + COUNT ( * ) + - ( - - 60 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL - - 10 * - 22 - + COUNT( - 52 )
----
-221

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL - - 10 * - 22 - + COUNT ( - 52 )
----
-221

query I rowsort
SELECT DISTINCT + + 97 AS col1
----
97

query I rowsort
SELECT - 36 + 76 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT - COUNT( * ) * - 50 + - - 17 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5429
SELECT - COUNT ( * ) * - 50 + - - 17 AS col2
----
67

query I rowsort
SELECT ALL - 31 * - + 20 AS col0
----
620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5431
SELECT + - CASE WHEN NOT NULL IS NULL OR + 58 < NULL THEN NULL ELSE 69 DIV - + 75 * - COUNT( * ) + - 4 + + MIN( ALL 24 ) + - + SUM( - + 67 ) END
----
-87

skipif mysql # not compatible
query I rowsort label-5431
SELECT + - CASE WHEN NOT NULL IS NULL OR + 58 < NULL THEN NULL ELSE 69 / - + 75 * - COUNT ( * ) + - 4 + + MIN ( ALL 24 ) + - + SUM ( - + 67 ) END
----
-87

query I rowsort
SELECT 87 * + 49 + - 70 + + 11 * - - 96 + - 50 col0
----
5199

query I rowsort
SELECT ALL + 99 * - + 7 - - 96 * + 43 - 80 AS col2
----
3355

query I rowsort
SELECT - - 76 * 90 AS col0
----
6840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5435
SELECT - NULLIF ( + ( - CAST( NULL AS SIGNED ) ), - - COUNT( ALL + 3 ) + ( + 77 ) / COALESCE ( + - SUM( ALL - + 14 ), - 85 ) ) + - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT - NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), - - COUNT ( ALL + 3 ) + ( + 77 ) / COALESCE ( + - SUM ( ALL - + 14 ), - 85 ) ) + - 17 AS col0
----
NULL

query II rowsort
SELECT ALL + 14 AS col2, + 20
----
14
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5437
SELECT - 98 + + + 38 / 95 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT - 98 + + + 38 / 95 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT ALL + 79 / + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + 79 / + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT - COUNT( * ) + - 24 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-5439
SELECT - COUNT ( * ) + - 24 AS col1
----
-25

query II rowsort
SELECT + 19 col0, + 54 + + 92 AS col0
----
19
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT + 67 + COUNT( * ) - + COUNT( * ) + + 61 * 32
----
2019

skipif mysql # not compatible
query I rowsort label-5441
SELECT + 67 + COUNT ( * ) - + COUNT ( * ) + + 61 * 32
----
2019

onlyif mysql # DIV for integer division: 
query II rowsort label-5442
SELECT - 79 * + 52, 76 DIV + 5 AS col2
----
-4108
15

skipif mysql # not compatible
query II rowsort label-5442
SELECT - 79 * + 52, 76 / + 5 AS col2
----
-4108
15

query I rowsort
SELECT + 85 * - 19
----
-1615

query I rowsort
SELECT DISTINCT 95 * + + CASE 67 WHEN + + 85 THEN + 73 + - + COALESCE ( + + 8, + - 40 ) + 13 END + 35
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5445
SELECT ALL 75, + 81 + - - COUNT( * ) * - 85 AS col0
----
75
-4

skipif mysql # not compatible
query II rowsort label-5445
SELECT ALL 75, + 81 + - - COUNT ( * ) * - 85 AS col0
----
75
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5446
SELECT COUNT( * ) AS col0, + 5 AS col2
----
1
5

skipif mysql # not compatible
query II rowsort label-5446
SELECT COUNT ( * ) AS col0, + 5 AS col2
----
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT MAX( ALL + 59 ) col1
----
59

skipif mysql # not compatible
query I rowsort label-5447
SELECT MAX ( ALL + 59 ) col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ALL 43 + + MAX( - + 10 ) col1
----
33

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL 43 + + MAX ( - + 10 ) col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT + COUNT( * ) + + + ( + - 40 )
----
-39

skipif mysql # not compatible
query I rowsort label-5449
SELECT + COUNT ( * ) + + + ( + - 40 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5450
SELECT DISTINCT - 8 + - CAST( + 16 AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT - 8 + - CAST ( + 16 AS INTEGER )
----
-24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5451
SELECT + CAST( NULL AS SIGNED ) + - - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT + CAST ( NULL AS INTEGER ) + - - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT + MAX( ALL - 6 ) * + 95
----
-570

skipif mysql # not compatible
query I rowsort label-5452
SELECT + MAX ( ALL - 6 ) * + 95
----
-570

query I rowsort
SELECT ALL 90 + 79 AS col1
----
169

onlyif mysql # aggregate syntax: 
query II rowsort label-5454
SELECT ALL - 79 AS col1, + 64 + + - COUNT( * ) + - 47 + - NULLIF ( COUNT( * ), - COUNT( * ) )
----
-79
15

skipif mysql # not compatible
query II rowsort label-5454
SELECT ALL - 79 AS col1, + 64 + + - COUNT ( * ) + - 47 + - NULLIF ( COUNT ( * ), - COUNT ( * ) )
----
-79
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT + NULLIF ( + CASE - - 62 WHEN - - 6 THEN NULL WHEN + 0 THEN 29 WHEN - ( - 68 ) THEN SUM( DISTINCT - - 37 ) * + ( - + 7 ) + + 39 * + 95 + - + 70 + - - 64 + + ( + - 92 ) * + - COUNT( * ) ELSE - + COUNT( * ) END, - COUNT( 48 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT + NULLIF ( + CASE - - 62 WHEN - - 6 THEN NULL WHEN + 0 THEN 29 WHEN - ( - 68 ) THEN SUM ( DISTINCT - - 37 ) * + ( - + 7 ) + + 39 * + 95 + - + 70 + - - 64 + + ( + - 92 ) * + - COUNT ( * ) ELSE - + COUNT ( * ) END, - COUNT ( 48 ) ) AS col0
----
NULL

query I rowsort
SELECT + + 67 + + 54 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + NULLIF ( + - 28, + CASE - 54 WHEN + + COALESCE ( 78, - 51 ) / - - AVG ( 17 ) + - 0 * - - 5 THEN - 17 ELSE NULL END ) * - + 73 + - NULLIF ( - COUNT( * ), 93 * + 34 + - 64 - 83 + + COUNT( * ) + + COUNT( * ) ) + + 35 AS col1
----
2080

skipif mysql # not compatible
query I rowsort label-5457
SELECT + NULLIF ( + - 28, + CASE - 54 WHEN + + COALESCE ( 78, - 51 ) / - - AVG ( 17 ) + - 0 * - - 5 THEN - 17 ELSE NULL END ) * - + 73 + - NULLIF ( - COUNT ( * ), 93 * + 34 + - 64 - 83 + + COUNT ( * ) + + COUNT ( * ) ) + + 35 AS col1
----
2080

query II rowsort
SELECT - - ( - + 54 ), + 4 * ( - + 39 ) AS col0
----
-54
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT + - 93 + + COUNT( * ) - 69
----
-161

skipif mysql # not compatible
query I rowsort label-5459
SELECT + - 93 + + COUNT ( * ) - 69
----
-161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5460
SELECT ALL COALESCE ( 53, - CAST( COUNT( * ) AS SIGNED ) * + - 7, + COUNT( DISTINCT + 91 ) + - + 86 )
----
53

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL COALESCE ( 53, - CAST ( COUNT ( * ) AS INTEGER ) * + - 7, + COUNT ( DISTINCT + 91 ) + - + 86 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT + + COALESCE ( - 47, COUNT( * ) + + 73 ) * 60
----
-2820

skipif mysql # not compatible
query I rowsort label-5461
SELECT + + COALESCE ( - 47, COUNT ( * ) + + 73 ) * 60
----
-2820

onlyif mysql # DIV for integer division: 
query I rowsort label-5462
SELECT + 94 DIV 20
----
4

skipif mysql # not compatible
query I rowsort label-5462
SELECT + 94 / 20
----
4

query I rowsort
SELECT ALL 63 - 35
----
28

query I rowsort
SELECT ALL - - 52 - + 56 AS col1
----
-4

query I rowsort
SELECT DISTINCT NULLIF ( - 73, - 14 / + + 25 * - 79 ) col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5466
SELECT CAST( - - 14 AS SIGNED ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5466
SELECT CAST ( - - 14 AS INTEGER ) AS col0
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-5467
SELECT - + 66 DIV - - 70 AS col2, + 76 * + 8 * - 91 AS col1
----
0
-55328

skipif mysql # not compatible
query II rowsort label-5467
SELECT - + 66 / - - 70 AS col2, + 76 * + 8 * - 91 AS col1
----
0
-55328

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL ( + COALESCE ( + ( - 43 ), ( + COALESCE ( - MAX( ALL - 45 ), + COALESCE ( 23, + COUNT( * ) * - 23 ) ) ) ) ) * + - COUNT( * ) * + 66 * - 52 - 25 * - 14
----
-147226

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL ( + COALESCE ( + ( - 43 ), ( + COALESCE ( - MAX ( ALL - 45 ), + COALESCE ( 23, + COUNT ( * ) * - 23 ) ) ) ) ) * + - COUNT ( * ) * + 66 * - 52 - 25 * - 14
----
-147226

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5469
SELECT 61 AS col2, - 42 * + CAST( NULL AS SIGNED )
----
61
NULL

skipif mysql # not compatible
query II rowsort label-5469
SELECT 61 AS col2, - 42 * + CAST ( NULL AS INTEGER )
----
61
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5470
SELECT + - COALESCE ( - CASE - - COUNT( * ) WHEN + + 57 DIV 3 DIV - - 99 THEN - 60 * + 73 WHEN - 61 THEN + 16 ELSE + - 26 END, - 27 DIV + - 79 - + ( 44 ) ) * 8 * - COALESCE ( - 63, - MIN( - + CAST( 95 AS SIGNED ) ) + + 35 + - 8, + ( ( + ( SUM( ALL - 3 ) ) ) ) ) * COUNT( 13 * 4 )
----
-13104

skipif mysql # not compatible
query I rowsort label-5470
SELECT + - COALESCE ( - CASE - - COUNT ( * ) WHEN + + 57 / 3 / - - 99 THEN - 60 * + 73 WHEN - 61 THEN + 16 ELSE + - 26 END, - 27 / + - 79 - + ( 44 ) ) * 8 * - COALESCE ( - 63, - MIN ( - + CAST ( 95 AS INTEGER ) ) + + 35 + - 8, + ( ( + ( SUM ( ALL - 3 ) ) ) ) ) * COUNT ( 13 * 4 )
----
-13104

onlyif mysql # aggregate syntax: 
query II rowsort label-5471
SELECT ALL + + COUNT( * ), 35 * - 66 AS col0
----
1
-2310

skipif mysql # not compatible
query II rowsort label-5471
SELECT ALL + + COUNT ( * ), 35 * - 66 AS col0
----
1
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL - COUNT( * ) * + ( - - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL - COUNT ( * ) * + ( - - 21 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5473
SELECT ALL - - SUM( ALL + - 22 ) col0, - CAST( + + NULLIF ( + 63, - 75 ) AS SIGNED )
----
-22
-63

skipif mysql # not compatible
query II rowsort label-5473
SELECT ALL - - SUM ( ALL + - 22 ) col0, - CAST ( + + NULLIF ( + 63, - 75 ) AS INTEGER )
----
-22
-63

query III rowsort
SELECT - 81 AS col2, 16 AS col1, - 65 * + 13 * + 47 + + 82 * 89
----
-81
16
-32417

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5475
SELECT ALL - MAX( ALL - 56 ) AS col1, - 50 DIV - 95
----
56
0

skipif mysql # not compatible
query II rowsort label-5475
SELECT ALL - MAX ( ALL - 56 ) AS col1, - 50 / - 95
----
56
0

query I rowsort
SELECT ALL + 84 * - 98 * 12
----
-98784

query I rowsort
SELECT 42 + - 73 + + 21 * - 64
----
-1375

query I rowsort
SELECT + 9 col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5479
SELECT ALL + 93 + - + ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL + 93 + - + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT ( - 47 ) + - 6 + - - 90 * 59 + + CASE + + MIN( ALL + COALESCE ( + - 62, 61 ) ) WHEN + NULLIF ( + 14, 62 + - + COUNT( * ) ) THEN + 56 * - + MAX( ALL + 0 ) - + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT ( - 47 ) + - 6 + - - 90 * 59 + + CASE + + MIN ( ALL + COALESCE ( + - 62, 61 ) ) WHEN + NULLIF ( + 14, 62 + - + COUNT ( * ) ) THEN + 56 * - + MAX ( ALL + 0 ) - + 12 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT 58 DIV - NULLIF ( - ( + + 38 ), 18 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5481
SELECT 58 / - NULLIF ( - ( + + 38 ), 18 ) AS col1
----
1

query I rowsort
SELECT 93 * - 93 + + - 79 col0
----
-8728

onlyif mysql # DIV for integer division: 
query I rowsort label-5483
SELECT ALL 20 + 57 DIV + ( 87 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL 20 + 57 / + ( 87 ) AS col2
----
20

query I rowsort
SELECT + 9 * - 84 - + + 53
----
-809

query I rowsort
SELECT ALL - ( 85 )
----
-85

query I rowsort
SELECT DISTINCT + 76 + 86
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT COUNT( ALL 43 ) + + 75 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5487
SELECT COUNT ( ALL 43 ) + + 75 AS col2
----
76

query I rowsort
SELECT 77 + - + 52 * + + 74
----
-3771

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT DISTINCT + 31 + + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT + 31 + + COUNT ( * ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5490
SELECT 86 + ( CAST( - AVG ( DISTINCT + 81 ) AS SIGNED ) ) * + COUNT( + 21 ) * - 53 col0
----
4379

skipif mysql # not compatible
query I rowsort label-5490
SELECT 86 + ( CAST ( - AVG ( DISTINCT + 81 ) AS INTEGER ) ) * + COUNT ( + 21 ) * - 53 col0
----
4379

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5491
SELECT + CAST( NULL AS SIGNED ) + + + 26, 70 AS col2
----
NULL
70

skipif mysql # not compatible
query II rowsort label-5491
SELECT + CAST ( NULL AS INTEGER ) + + + 26, 70 AS col2
----
NULL
70

query I rowsort
SELECT 14 * - 17 * + 8 * + - 19
----
36176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5493
SELECT - CAST( - 37 AS SIGNED ) + - + 16 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5493
SELECT - CAST ( - 37 AS INTEGER ) + - + 16 AS col1
----
21

query II rowsort
SELECT + 44 + - 21, 52 AS col0
----
23
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT + COUNT( * ) * + 78
----
78

skipif mysql # not compatible
query I rowsort label-5495
SELECT + COUNT ( * ) * + 78
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5496
SELECT ALL CASE + - 83 WHEN + 93 THEN 85 - + 14 ELSE - 75 * + NULLIF ( + - ( 14 ), + - 80 ) END - + + 23 + + COUNT( * ) col1, COALESCE ( + + 21, + 26 ) DIV + ( 51 ) AS col2
----
1028
0

skipif mysql # not compatible
query II rowsort label-5496
SELECT ALL CASE + - 83 WHEN + 93 THEN 85 - + 14 ELSE - 75 * + NULLIF ( + - ( 14 ), + - 80 ) END - + + 23 + + COUNT ( * ) col1, COALESCE ( + + 21, + 26 ) / + ( 51 ) AS col2
----
1028
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT 32 + + ( - + 93 ) * - 59 + + + COUNT( * ) * + MAX( + 34 ) + + + 98
----
5651

skipif mysql # not compatible
query I rowsort label-5497
SELECT 32 + + ( - + 93 ) * - 59 + + + COUNT ( * ) * + MAX ( + 34 ) + + + 98
----
5651

query I rowsort
SELECT 63 + 52 AS col2
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-5499
SELECT - SUM( DISTINCT 34 ) * + + 19 * - ( - - 88 ) + + NULLIF ( + 93, + 8 + - 43 ) + + + 92 AS col2, + COUNT( * ) col1
----
57033
1

skipif mysql # not compatible
query II rowsort label-5499
SELECT - SUM ( DISTINCT 34 ) * + + 19 * - ( - - 88 ) + + NULLIF ( + 93, + 8 + - 43 ) + + + 92 AS col2, + COUNT ( * ) col1
----
57033
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT ALL 82 DIV 70 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL 82 / 70 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5501
SELECT ALL - NULLIF ( - + 64, CAST( + 52 AS SIGNED ) ) AS col0, 43
----
64
43

skipif mysql # not compatible
query II rowsort label-5501
SELECT ALL - NULLIF ( - + 64, CAST ( + 52 AS INTEGER ) ) AS col0, 43
----
64
43

query I rowsort
SELECT DISTINCT 22 * - ( - 52 ) AS col0
----
1144

query I rowsort
SELECT ALL 80 + 83
----
163

query I rowsort
SELECT ( ( - 34 ) ) * - 22 * ( 40 ) * 19 + - 12 - - 62 * + - 28 * - 91 AS col1
----
726444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5505
SELECT + 6 DIV + + 46 + - 98 + - COALESCE ( COUNT( * ), - COUNT( * ) * - MIN( DISTINCT - + 25 ) - + - 71, - - 62 ) * - 6 * + 64
----
286

skipif mysql # not compatible
query I rowsort label-5505
SELECT + 6 / + + 46 + - 98 + - COALESCE ( COUNT ( * ), - COUNT ( * ) * - MIN ( DISTINCT - + 25 ) - + - 71, - - 62 ) * - 6 * + 64
----
286

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT DISTINCT 9 DIV 12
----
0

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT 9 / 12
----
0

query I rowsort
SELECT DISTINCT + 80 + 35 col1
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT DISTINCT 79 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT 79 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 62 + + 56
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ALL 14 + + MAX( ALL - 92 ) * + COUNT( * ) + + 78
----
0

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL 14 + + MAX ( ALL - 92 ) * + COUNT ( * ) + + 78
----
0

query I rowsort
SELECT 12 * + 5 * 34 AS col0
----
2040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5512
SELECT CAST( + SUM( ALL - 35 ) AS SIGNED ) + + COUNT( * ) * 23
----
-12

skipif mysql # not compatible
query I rowsort label-5512
SELECT CAST ( + SUM ( ALL - 35 ) AS INTEGER ) + + COUNT ( * ) * 23
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5513
SELECT + COUNT( * ) AS col2, + NULLIF ( CAST( NULL AS SIGNED ), - 45 ) * + 82
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5513
SELECT + COUNT ( * ) AS col2, + NULLIF ( CAST ( NULL AS INTEGER ), - 45 ) * + 82
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT 22 + + - MAX( ALL - 99 ) AS col2
----
121

skipif mysql # not compatible
query I rowsort label-5514
SELECT 22 + + - MAX ( ALL - 99 ) AS col2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5515
SELECT ALL 40 col0, CAST( NULL AS SIGNED )
----
40
NULL

skipif mysql # not compatible
query II rowsort label-5515
SELECT ALL 40 col0, CAST ( NULL AS INTEGER )
----
40
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5516
SELECT 2 * CAST( - 26 AS SIGNED ), - 55 * + + ( 6 ) AS col2
----
-52
-330

skipif mysql # not compatible
query II rowsort label-5516
SELECT 2 * CAST ( - 26 AS INTEGER ), - 55 * + + ( 6 ) AS col2
----
-52
-330

query I rowsort
SELECT DISTINCT + 60 - - - 27
----
33

query II rowsort
SELECT ALL NULLIF ( 42, 64 ), - 60 AS col2
----
42
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5519
SELECT DISTINCT + - 60 - COUNT( * ) - - COUNT( * ) + - 25 * CAST( NULL AS SIGNED ) * 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT + - 60 - COUNT ( * ) - - COUNT ( * ) + - 25 * CAST ( NULL AS INTEGER ) * 45 AS col2
----
NULL

query I rowsort
SELECT + ( + - ( + 43 ) ) + - 28 - + - 17 col0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-5521
SELECT - + COUNT( * ) AS col2, + 32
----
-1
32

skipif mysql # not compatible
query II rowsort label-5521
SELECT - + COUNT ( * ) AS col2, + 32
----
-1
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT + 33 - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT + 33 - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT - 42 * + - COUNT( ALL - + 56 ) + - + 19 + - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-5523
SELECT - 42 * + - COUNT ( ALL - + 56 ) + - + 19 + - COUNT ( * )
----
22

query II rowsort
SELECT 98 + - - 91 + + - 22 col2, 82
----
167
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT - COUNT( * ) + + - COUNT( * ) + - COUNT( * ) - 98 * COUNT( * ) AS col2
----
-101

skipif mysql # not compatible
query I rowsort label-5525
SELECT - COUNT ( * ) + + - COUNT ( * ) + - COUNT ( * ) - 98 * COUNT ( * ) AS col2
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-5526
SELECT 65, + COUNT( * ) col1
----
65
1

skipif mysql # not compatible
query II rowsort label-5526
SELECT 65, + COUNT ( * ) col1
----
65
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5527
SELECT DISTINCT + COUNT( * ), + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5527
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT - MAX( ALL NULLIF ( + 31, + - 8 / + - 18 ) ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-5528
SELECT - MAX ( ALL NULLIF ( + 31, + - 8 / + - 18 ) ) col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5529
SELECT ALL CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) * - 23 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5529
SELECT ALL CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * - 23 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT DISTINCT + ( - - 70 ) * - + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT + ( - - 70 ) * - + COUNT ( * )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT + + 64 * COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5531
SELECT + + 64 * COUNT ( * ) AS col1
----
64

query I rowsort
SELECT ALL + 93 * - 49 + + 57 col0
----
-4500

query I rowsort
SELECT - 58 * - 50
----
2900

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT + SUM( ALL 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5534
SELECT + SUM ( ALL 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5535
SELECT CASE - MIN( 26 ) WHEN 27 * + 63 THEN NULL ELSE - - SUM( + - 57 ) END AS col2, 12 * - 19 * 51 + - - 2 + + 27
----
-57
-11599

skipif mysql # not compatible
query II rowsort label-5535
SELECT CASE - MIN ( 26 ) WHEN 27 * + 63 THEN NULL ELSE - - SUM ( + - 57 ) END AS col2, 12 * - 19 * 51 + - - 2 + + 27
----
-57
-11599

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5536
SELECT ALL 39 * - 84 + 46 DIV 42, MAX( + - 34 ) AS col0
----
-3275
-34

skipif mysql # not compatible
query II rowsort label-5536
SELECT ALL 39 * - 84 + 46 / 42, MAX ( + - 34 ) AS col0
----
-3275
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT COALESCE ( + + COALESCE ( + COUNT( * ), - 44 ), 80 + NULLIF ( - 11, + + 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5537
SELECT COALESCE ( + + COALESCE ( + COUNT ( * ), - 44 ), 80 + NULLIF ( - 11, + + 37 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5538
SELECT - 39 * 74 DIV 65 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-5538
SELECT - 39 * 74 / 65 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT ALL 51 * - COUNT( * ) * MIN( - 93 ) + + 55
----
4798

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL 51 * - COUNT ( * ) * MIN ( - 93 ) + + 55
----
4798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5540
SELECT ALL + ( + CAST( + + 95 AS SIGNED ) )
----
95

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL + ( + CAST ( + + 95 AS INTEGER ) )
----
95

query II rowsort
SELECT ALL 20 * 70, 91 AS col1
----
1400
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5542
SELECT DISTINCT 32 DIV 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT 32 / 49 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT + CASE COUNT( * ) WHEN - - 72 + 27 THEN - + 5 WHEN + + 31 THEN + 28 + 45 * + 29 + + 84 + + SUM( - 40 ) * - - CASE + + 37 WHEN 55 THEN + + 54 + 28 * 46 / - 58 WHEN - AVG ( 27 ) THEN NULL WHEN - 5 THEN NULL ELSE + CASE WHEN 29 IS NOT NULL THEN + + COUNT( * ) + + 43 ELSE + COALESCE ( - 34, 55 - 71 ) END + 61 * + 83 END ELSE - 24 END AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-5543
SELECT + CASE COUNT ( * ) WHEN - - 72 + 27 THEN - + 5 WHEN + + 31 THEN + 28 + 45 * + 29 + + 84 + + SUM ( - 40 ) * - - CASE + + 37 WHEN 55 THEN + + 54 + 28 * 46 / - 58 WHEN - AVG ( 27 ) THEN NULL WHEN - 5 THEN NULL ELSE + CASE WHEN 29 IS NOT NULL THEN + + COUNT ( * ) + + 43 ELSE + COALESCE ( - 34, 55 - 71 ) END + 61 * + 83 END ELSE - 24 END AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT COUNT( DISTINCT - 73 )
----
1

skipif mysql # not compatible
query I rowsort label-5544
SELECT COUNT ( DISTINCT - 73 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5545
SELECT 68 * + COUNT( * ) + - ( + CASE - - 93 WHEN + CAST( - ( 83 ) AS SIGNED ) + + SUM( ALL - CASE - 86 WHEN 0 THEN 65 END ) THEN NULL ELSE - 49 END ) AS col2, + 4 AS col2, - 12 + + - 76 + - 77 + 94
----
117
4
-71

skipif mysql # not compatible
query III rowsort label-5545
SELECT 68 * + COUNT ( * ) + - ( + CASE - - 93 WHEN + CAST ( - ( 83 ) AS INTEGER ) + + SUM ( ALL - CASE - 86 WHEN 0 THEN 65 END ) THEN NULL ELSE - 49 END ) AS col2, + 4 AS col2, - 12 + + - 76 + - 77 + 94
----
117
4
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-5546
SELECT + 43 DIV + - 26 col1
----
-1

skipif mysql # not compatible
query I rowsort label-5546
SELECT + 43 / + - 26 col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5547
SELECT ALL COUNT( ALL ( + ( 67 ) ) ) DIV + + 39 * + 62
----
0

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL COUNT ( ALL ( + ( 67 ) ) ) / + + 39 * + 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT ALL + CASE + + 16 WHEN COUNT( * ) THEN + 88 WHEN MAX( DISTINCT 7 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL + CASE + + 16 WHEN COUNT ( * ) THEN + 88 WHEN MAX ( DISTINCT 7 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 19 + - 20 * 93 AS col0
----
-1841

query I rowsort
SELECT + - 61 + + 9 + 61 AS col2
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5551
SELECT ALL NULLIF ( + 11, CAST( + ( ( - - 65 ) ) AS DECIMAL ) )
----
11

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL NULLIF ( + 11, CAST ( + ( ( - - 65 ) ) AS REAL ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT + COUNT( * ) * + - 46 * + - 25 AS col0
----
1150

skipif mysql # not compatible
query I rowsort label-5552
SELECT + COUNT ( * ) * + - 46 * + - 25 AS col0
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT + COUNT( * ) + - 19 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5553
SELECT + COUNT ( * ) + - 19 AS col1
----
-18

query I rowsort
SELECT - + 36 col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT - + COUNT( ALL - 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-5555
SELECT - + COUNT ( ALL - 48 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT - CAST( NULL AS SIGNED ) + - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT - CAST ( NULL AS INTEGER ) + - 80 AS col2
----
NULL

query I rowsort
SELECT ALL - 15 * + 31 col2
----
-465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5558
SELECT - - 4 * - + COUNT( * ) + - + 34 + + 59 DIV - 6 - - COUNT( * ) + - - 48 * - - 5 * - + 11 AS col2
----
-2686

skipif mysql # not compatible
query I rowsort label-5558
SELECT - - 4 * - + COUNT ( * ) + - + 34 + + 59 / - 6 - - COUNT ( * ) + - - 48 * - - 5 * - + 11 AS col2
----
-2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5559
SELECT DISTINCT + 87 * - CAST( + COUNT( * ) AS SIGNED ) + 95 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT + 87 * - CAST ( + COUNT ( * ) AS INTEGER ) + 95 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT - + COUNT( * ) - - - 50 + + 88
----
37

skipif mysql # not compatible
query I rowsort label-5560
SELECT - + COUNT ( * ) - - - 50 + + 88
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5561
SELECT ALL + CAST( - + COALESCE ( COUNT( * ), - NULLIF ( 32, 23 ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL + CAST ( - + COALESCE ( COUNT ( * ), - NULLIF ( 32, 23 ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT DISTINCT + ( - ( ( + + SUM( - 0 ) ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT + ( - ( ( + + SUM ( - 0 ) ) ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5563
SELECT ALL - 34 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL - 34 / 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT - COUNT( * ) + - - 45 * + SUM( DISTINCT - 42 ) AS col2
----
-1891

skipif mysql # not compatible
query I rowsort label-5564
SELECT - COUNT ( * ) + - - 45 * + SUM ( DISTINCT - 42 ) AS col2
----
-1891

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT - COUNT( ALL 32 ) + + - 12
----
-13

skipif mysql # not compatible
query I rowsort label-5565
SELECT - COUNT ( ALL 32 ) + + - 12
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT DISTINCT + 53 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT + 53 / - 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5567
SELECT ALL 79 DIV 9 * + - 35 * + 31 + + COUNT( * ) * - 94
----
-8774

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL 79 / 9 * + - 35 * + 31 + + COUNT ( * ) * - 94
----
-8774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5568
SELECT 25 * + - ( - COUNT( * ) ) * CAST( NULL AS SIGNED ) - 26 - + 19 * COUNT( * ) + 3 - + 14 + + MIN( - - 80 ) - - 29 - + - 58 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT 25 * + - ( - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) - 26 - + 19 * COUNT ( * ) + 3 - + 14 + + MIN ( - - 80 ) - - 29 - + - 58 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT DISTINCT + NULLIF ( MAX( ALL + 70 ), + + 41 )
----
70

skipif mysql # not compatible
query I rowsort label-5569
SELECT DISTINCT + NULLIF ( MAX ( ALL + 70 ), + + 41 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5570
SELECT - 97 * + COALESCE ( + 75, - + CAST( + 92 AS SIGNED ) )
----
-7275

skipif mysql # not compatible
query I rowsort label-5570
SELECT - 97 * + COALESCE ( + 75, - + CAST ( + 92 AS INTEGER ) )
----
-7275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5571
SELECT - 3 * - - ( MIN( ALL CAST( NULL AS SIGNED ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5571
SELECT - 3 * - - ( MIN ( ALL CAST ( NULL AS INTEGER ) ) ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5572
SELECT DISTINCT 91 DIV - 2 - - + COUNT( * ) * - ( 84 ) DIV 66 * - + CAST( - 7 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT 91 / - 2 - - + COUNT ( * ) * - ( 84 ) / 66 * - + CAST ( - 7 AS INTEGER )
----
-52

query I rowsort
SELECT ALL + ( - - 74 )
----
74

query II rowsort
SELECT 63 * + + ( - 8 ) + - + 39 + - 59 AS col0, + 22 * + 37
----
-602
814

query I rowsort
SELECT - 67 * + + 31
----
-2077

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5576
SELECT - MIN( + 31 ) DIV + 44 * - - 55 + - + 98 * - - 29 * - 0 + - - 34 - + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5576
SELECT - MIN ( + 31 ) / + 44 * - - 55 + - + 98 * - - 29 * - 0 + - - 34 - + COUNT ( * ) AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5577
SELECT DISTINCT COUNT( * ) DIV - NULLIF ( - - 54, - 86 ) - - + COUNT( 83 ) * - - COUNT( * ) * - 38 AS col2, CAST( NULL AS DECIMAL )
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-5577
SELECT DISTINCT COUNT ( * ) / - NULLIF ( - - 54, - 86 ) - - + COUNT ( 83 ) * - - COUNT ( * ) * - 38 AS col2, CAST ( NULL AS REAL )
----
-38
NULL

query I rowsort
SELECT ALL + ( + 9 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5579
SELECT + 19 DIV + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-5579
SELECT + 19 / + COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT DISTINCT + MIN( - + 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT + MIN ( - + 76 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT + ( - SUM( 29 ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-5581
SELECT + ( - SUM ( 29 ) ) AS col1
----
-29

query II rowsort
SELECT ALL 18 * 74 + 92, 9 AS col2
----
1424
9

query I rowsort
SELECT - 88 - - ( - + 61 ) + - 76
----
-225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5584
SELECT + COUNT( + 13 ) / - - CAST( NULL AS SIGNED ) - - 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT + COUNT ( + 13 ) / - - CAST ( NULL AS INTEGER ) - - 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT - + CASE 80 WHEN 38 + - 30 * 46 THEN NULL WHEN + - 86 / + 57 THEN + 67 * + ( - 6 ) * - COUNT( * ) ELSE NULL END + + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT - + CASE 80 WHEN 38 + - 30 * 46 THEN NULL WHEN + - 86 / + 57 THEN + 67 * + ( - 6 ) * - COUNT ( * ) ELSE NULL END + + + 97
----
NULL

query II rowsort
SELECT ALL - 19 * + NULLIF ( - COALESCE ( + 26, 26 ), - 74 ) AS col1, 55 AS col2
----
494
55

query I rowsort
SELECT + NULLIF ( 15, + - 32 ) col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT + ( - + 87 ) * - + COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5588
SELECT + ( - + 87 ) * - + COUNT ( * ) AS col1
----
87

query I rowsort
SELECT ALL 63 + 9 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT DISTINCT 3 * - COALESCE ( - SUM( DISTINCT 74 ), + 45, - MIN( - 97 ) * CASE + - COALESCE ( - + 81, + - 77 * - 85 + - 33 + COUNT( * ) * - - 99 * + - COUNT( * ) + 53 + SUM( ALL - + CASE - 26 WHEN + 99 * - - 81 THEN NULL WHEN + 86 THEN NULL ELSE - 16 END ) ) WHEN 71 THEN - 70 END ) * - 55 + 26 * - 12 * - 69 * COUNT( * ) AS col2
----
9318

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT 3 * - COALESCE ( - SUM ( DISTINCT 74 ), + 45, - MIN ( - 97 ) * CASE + - COALESCE ( - + 81, + - 77 * - 85 + - 33 + COUNT ( * ) * - - 99 * + - COUNT ( * ) + 53 + SUM ( ALL - + CASE - 26 WHEN + 99 * - - 81 THEN NULL WHEN + 86 THEN NULL ELSE - 16 END ) ) WHEN 71 THEN - 70 END ) * - 55 + 26 * - 12 * - 69 * COUNT ( * ) AS col2
----
9318

query I rowsort
SELECT ALL - 58 * + 61 AS col1
----
-3538

query I rowsort
SELECT - 47 + + 35 + + - 58
----
-70

query I rowsort
SELECT ALL 30 + + 30 + + COALESCE ( + - ( - - 45 ), - + 24 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL COUNT( * ) + + 17 + + 95
----
113

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL COUNT ( * ) + + 17 + + 95
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-5595
SELECT ALL NULLIF ( COUNT( * ), + 93 * - COUNT( * ) * + 40 + + 53 * 3 * 89 ) + - 72 + - 67, 74 AS col0
----
-138
74

skipif mysql # not compatible
query II rowsort label-5595
SELECT ALL NULLIF ( COUNT ( * ), + 93 * - COUNT ( * ) * + 40 + + 53 * 3 * 89 ) + - 72 + - 67, 74 AS col0
----
-138
74

query II rowsort
SELECT 26 AS col0, - 87
----
26
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5597
SELECT CAST( 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-5597
SELECT CAST ( 18 AS INTEGER )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT ALL + COUNT( * ) * + + 91 + COUNT( * ) * - 94
----
-3

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL + COUNT ( * ) * + + 91 + COUNT ( * ) * - 94
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5599
SELECT CASE - + ( + 34 ) WHEN + 88 THEN + - 1 END * ( ( - 82 ) ), - CAST( NULL AS SIGNED ) - + COUNT( * ) + 79
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5599
SELECT CASE - + ( + 34 ) WHEN + 88 THEN + - 1 END * ( ( - 82 ) ), - CAST ( NULL AS INTEGER ) - + COUNT ( * ) + 79
----
NULL
NULL

query I rowsort
SELECT + 10 + + - 38
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5601
SELECT MAX( DISTINCT 55 ) + - 53 DIV - - 27
----
54

skipif mysql # not compatible
query I rowsort label-5601
SELECT MAX ( DISTINCT 55 ) + - 53 / - - 27
----
54

query II rowsort
SELECT ALL 21 * + - 70 AS col2, COALESCE ( - + 96, - 24, - - 92 * ( + + 54 ) + + 48 + 70 * + 71 ) AS col1
----
-1470
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5603
SELECT CASE - 47 WHEN CAST( + - 30 AS DECIMAL ) THEN - 71 * 77 END * 84 * - 62 / + - 27 * - ( 51 ) * + 67 * + ( - + 57 ) * - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5603
SELECT CASE - 47 WHEN CAST ( + - 30 AS REAL ) THEN - 71 * 77 END * 84 * - 62 / + - 27 * - ( 51 ) * + 67 * + ( - + 57 ) * - - 51
----
NULL

query I rowsort
SELECT ALL 15 - + - 18 + ( 1 ) * + + 87
----
120

onlyif mysql # DIV for integer division: 
query II rowsort label-5605
SELECT 3 * 48, + 80 DIV - COALESCE ( + + 75, - 22 * + 71 ) AS col1
----
144
-1

skipif mysql # not compatible
query II rowsort label-5605
SELECT 3 * 48, + 80 / - COALESCE ( + + 75, - 22 * + 71 ) AS col1
----
144
-1

query II rowsort
SELECT 91, + 46 col2
----
91
46

query II rowsort
SELECT + 15, 76 AS col0
----
15
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5608
SELECT ALL + 4 DIV - 93 * - 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL + 4 / - 93 * - 12 AS col1
----
0

query II rowsort
SELECT + 68 AS col2, - 51 - NULLIF ( + - 45, 47 ) col2
----
68
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-5610
SELECT 34 AS col0, + 61 * - - 63 * - + 1 * + COUNT( * ) + - 84 AS col1
----
34
-3927

skipif mysql # not compatible
query II rowsort label-5610
SELECT 34 AS col0, + 61 * - - 63 * - + 1 * + COUNT ( * ) + - 84 AS col1
----
34
-3927

query I rowsort
SELECT 93 * + 87
----
8091

onlyif mysql # aggregate syntax: 
query II rowsort label-5612
SELECT ALL - 67, + 99 * - - COUNT( * ) * - - 87 AS col0
----
-67
8613

skipif mysql # not compatible
query II rowsort label-5612
SELECT ALL - 67, + 99 * - - COUNT ( * ) * - - 87 AS col0
----
-67
8613

onlyif mysql # DIV for integer division: 
query II rowsort label-5613
SELECT ALL + 4 DIV - 32, 72 AS col2
----
0
72

skipif mysql # not compatible
query II rowsort label-5613
SELECT ALL + 4 / - 32, 72 AS col2
----
0
72

query I rowsort
SELECT 12 - - 92
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT ALL + 59 * - 8 * - COALESCE ( + ( + 25 ), 43, + + SUM( ALL - - 31 ) ) AS col0
----
11800

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL + 59 * - 8 * - COALESCE ( + ( + 25 ), 43, + + SUM ( ALL - - 31 ) ) AS col0
----
11800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5616
SELECT DISTINCT - CASE 73 WHEN - NULLIF ( CAST( COUNT( * ) AS DECIMAL ), - COUNT( * ) - MIN( DISTINCT - 8 ) ) - + - 2 + - - 34 THEN NULLIF ( COUNT( * ), - 53 ) / + 47 * - 20 WHEN + - ( + 75 ) + 31 THEN NULL WHEN 61 THEN + COUNT( * ) + + MIN( ALL + CAST( NULL AS SIGNED ) ) ELSE NULL END, 85 * + 33 AS col0
----
NULL
2805

skipif mysql # not compatible
query II rowsort label-5616
SELECT DISTINCT - CASE 73 WHEN - NULLIF ( CAST ( COUNT ( * ) AS REAL ), - COUNT ( * ) - MIN ( DISTINCT - 8 ) ) - + - 2 + - - 34 THEN NULLIF ( COUNT ( * ), - 53 ) / + 47 * - 20 WHEN + - ( + 75 ) + 31 THEN NULL WHEN 61 THEN + COUNT ( * ) + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) ELSE NULL END, 85 * + 33 AS col0
----
NULL
2805

query I rowsort
SELECT 28 * - 67 * - + 28 AS col2
----
52528

onlyif mysql # aggregate syntax: 
query II rowsort label-5618
SELECT DISTINCT - 99, COALESCE ( + + COALESCE ( + + 17, - + 72 * - + 55 + + 56 ), - 51 + + 71 + - - 1 ) + + CASE + COUNT( * ) WHEN + 37 THEN + - 76 + + 70 + 67 * + AVG ( 1 ) WHEN - 32 THEN NULL END * + 90 AS col1
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-5618
SELECT DISTINCT - 99, COALESCE ( + + COALESCE ( + + 17, - + 72 * - + 55 + + 56 ), - 51 + + 71 + - - 1 ) + + CASE + COUNT ( * ) WHEN + 37 THEN + - 76 + + 70 + 67 * + AVG ( 1 ) WHEN - 32 THEN NULL END * + 90 AS col1
----
-99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5619
SELECT + CASE + COALESCE ( NULLIF ( - + 46, + + 21 ), - + ( + CAST( NULL AS SIGNED ) ) + - COUNT( DISTINCT - 65 ) + 22 - + + 33 / 86 - 86 + - COUNT( * ), COALESCE ( - ( - COUNT( * ) ), - + CASE + + 20 WHEN - 3 * - 35 THEN NULL WHEN - 99 THEN + - ( SUM( + - 87 ) ) ELSE NULL END + - + 64 * 96 ) + + - 77, + 6 + + 83 + + NULLIF ( - SUM( DISTINCT - CAST( NULL AS SIGNED ) ), + COALESCE ( ( 20 ), - ( 36 ) + - 69 / 40 ) * - 73 ) + COUNT( * ) * - CAST( NULL AS DECIMAL ) ) WHEN - 73 THEN NULL WHEN + 65 THEN 43 * CASE WHEN NOT ( 91 ) IS NULL THEN - CASE 1 WHEN - 15 + + 35 THEN + 54 END ELSE + COUNT( * ) * CAST( NULL AS DECIMAL ) + 14 END WHEN 40 THEN NULL END * CASE - MAX( 23 ) * 2 WHEN 42 * COALESCE ( 14, CAST( NULL AS SIGNED ) ) + + 79 * 46 THEN - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5619
SELECT + CASE + COALESCE ( NULLIF ( - + 46, + + 21 ), - + ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( DISTINCT - 65 ) + 22 - + + 33 / 86 - 86 + - COUNT ( * ), COALESCE ( - ( - COUNT ( * ) ), - + CASE + + 20 WHEN - 3 * - 35 THEN NULL WHEN - 99 THEN + - ( SUM ( + - 87 ) ) ELSE NULL END + - + 64 * 96 ) + + - 77, + 6 + + 83 + + NULLIF ( - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ), + COALESCE ( ( 20 ), - ( 36 ) + - 69 / 40 ) * - 73 ) + COUNT ( * ) * - CAST ( NULL AS REAL ) ) WHEN - 73 THEN NULL WHEN + 65 THEN 43 * CASE WHEN NOT ( 91 ) IS NULL THEN - CASE 1 WHEN - 15 + + 35 THEN + 54 END ELSE + COUNT ( * ) * CAST ( NULL AS REAL ) + 14 END WHEN 40 THEN NULL END * CASE - MAX ( 23 ) * 2 WHEN 42 * COALESCE ( 14, CAST ( NULL AS INTEGER ) ) + + 79 * 46 THEN - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT + CAST( NULL AS SIGNED ) * + + 56 + + 47 + - 64 + 65 * 89 * - 62 - 97 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5620
SELECT + CAST ( NULL AS INTEGER ) * + + 56 + + 47 + - 64 + 65 * 89 * - 62 - 97 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT - NULLIF ( + NULLIF ( + 60, + + 10 / 79 * - + SUM( + + 86 ) * - 80 ), + 55 )
----
-60

skipif mysql # not compatible
query I rowsort label-5621
SELECT - NULLIF ( + NULLIF ( + 60, + + 10 / 79 * - + SUM ( + + 86 ) * - 80 ), + 55 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT NULLIF ( - 98, COUNT( * ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-5622
SELECT NULLIF ( - 98, COUNT ( * ) ) AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5623
SELECT DISTINCT - CASE WHEN NULL <= NULL THEN - CAST( NULL AS DECIMAL ) WHEN 53 NOT IN ( - 68, - 7, 25 ) THEN - 28 * - - 18 * - 6 END + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT DISTINCT - CASE WHEN NULL <= NULL THEN - CAST ( NULL AS REAL ) WHEN 53 NOT IN ( - 68, - 7, 25 ) THEN - 28 * - - 18 * - 6 END + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 98 + - + 28
----
70

query I rowsort
SELECT DISTINCT - 29 + - 97
----
-126

query I rowsort
SELECT - 35 + - 23 + + + 47
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5627
SELECT ALL + + 19 + + 9 + 29 - ( + - CAST( NULL AS SIGNED ) ) * + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL + + 19 + + 9 + 29 - ( + - CAST ( NULL AS INTEGER ) ) * + 95 AS col1
----
NULL

query I rowsort
SELECT + ( - - 88 )
----
88

query I rowsort
SELECT DISTINCT + + 69 * + + 66 * - 56
----
-255024

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5630
SELECT - + CAST( NULL AS SIGNED ) col0, 43 AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-5630
SELECT - + CAST ( NULL AS INTEGER ) col0, 43 AS col1
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT 24 * ( COUNT( * ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5631
SELECT 24 * ( COUNT ( * ) ) AS col2
----
24

query I rowsort
SELECT + 85 * - - ( 77 ) AS col0
----
6545

query I rowsort
SELECT ALL - 71 * - 61 AS col0
----
4331

query I rowsort
SELECT DISTINCT - 13 * + + 7 AS col2
----
-91

query I rowsort
SELECT ALL 77 + 36 + + + 79 AS col2
----
192

query I rowsort
SELECT ALL - 22 + 45 AS col2
----
23

query I rowsort
SELECT - 51 * 39 AS col0
----
-1989

query II rowsort
SELECT + 85 AS col1, 41 + + 65 AS col2
----
85
106

query I rowsort
SELECT ALL 15 - 33 * - + ( 85 )
----
2820

query I rowsort
SELECT 68 + - + 80 * 29
----
-2252

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT 3 - - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5641
SELECT 3 - - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT 87 + + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-5642
SELECT 87 + + COUNT ( * )
----
88

query I rowsort
SELECT ALL COALESCE ( - 57, - 97 + 76 - + 11 ) * 81 * 22
----
-101574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5644
SELECT ( CAST( - 93 AS SIGNED ) ) + - NULLIF ( + 95, + + 48 )
----
-188

skipif mysql # not compatible
query I rowsort label-5644
SELECT ( CAST ( - 93 AS INTEGER ) ) + - NULLIF ( + 95, + + 48 )
----
-188

query I rowsort
SELECT ALL 49 * - 54
----
-2646

onlyif mysql # DIV for integer division: 
query I rowsort label-5646
SELECT 28 DIV 71 col2
----
0

skipif mysql # not compatible
query I rowsort label-5646
SELECT 28 / 71 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT DISTINCT - MAX( ALL - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT - MAX ( ALL - 84 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5648
SELECT CAST( NULL AS SIGNED ) * + CAST( - ( - COALESCE ( + - 31, + COUNT( * ) / + 0 + 98 ) ) AS SIGNED ) * + 3 + - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5648
SELECT CAST ( NULL AS INTEGER ) * + CAST ( - ( - COALESCE ( + - 31, + COUNT ( * ) / + 0 + 98 ) ) AS INTEGER ) * + 3 + - - 37
----
NULL

query I rowsort
SELECT - 0 * 56 * - 77 + + - 1 + - 13 * + 82
----
-1067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5650
SELECT CAST( NULL AS SIGNED ) / - ( 90 ) * - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT CAST ( NULL AS INTEGER ) / - ( 90 ) * - 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT - 62 * - + COUNT( ALL - 89 ) + 44 + + - SUM( - + 93 ) + - 18 * - COUNT( * ) + + 40
----
257

skipif mysql # not compatible
query I rowsort label-5651
SELECT - 62 * - + COUNT ( ALL - 89 ) + 44 + + - SUM ( - + 93 ) + - 18 * - COUNT ( * ) + + 40
----
257

query I rowsort
SELECT ALL - 84 * + + 56 * - 24 + + 90 + - 15 AS col0
----
112971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5653
SELECT ALL - COALESCE ( - - ( - 27 ), 24 * + - 12 * 19 ) / + 92 + + - 4 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL - COALESCE ( - - ( - 27 ), 24 * + - 12 * 19 ) / + 92 + + - 4 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT ALL + COUNT( * ) * - + ( - + 65 ) + 42
----
107

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL + COUNT ( * ) * - + ( - + 65 ) + 42
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5655
SELECT DISTINCT - - COUNT( * ) * + CASE 60 WHEN 44 THEN + SUM( + CAST( + 17 AS SIGNED ) ) + COUNT( * ) END * COUNT( * ) + + + 74 * - 56 / + - CASE - 35 WHEN - 91 THEN NULL WHEN - + 49 * 63 THEN + CAST( 96 AS SIGNED ) + - 10 ELSE + 70 END, MIN( ALL 45 ) AS col2
----
NULL
45

skipif mysql # not compatible
query II rowsort label-5655
SELECT DISTINCT - - COUNT ( * ) * + CASE 60 WHEN 44 THEN + SUM ( + CAST ( + 17 AS INTEGER ) ) + COUNT ( * ) END * COUNT ( * ) + + + 74 * - 56 / + - CASE - 35 WHEN - 91 THEN NULL WHEN - + 49 * 63 THEN + CAST ( 96 AS INTEGER ) + - 10 ELSE + 70 END, MIN ( ALL 45 ) AS col2
----
NULL
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5656
SELECT ALL + CASE - COUNT( * ) WHEN - MAX( DISTINCT + + 38 ) + 68 / + + ( + + 70 ) THEN NULL WHEN CAST( NULL AS SIGNED ) * - 17 + + CAST( NULL AS SIGNED ) THEN NULL ELSE 60 + + 24 END * + 64 + + CAST( + 74 AS SIGNED ) + - 49 + - + MIN( 13 ) AS col0
----
5388

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL + CASE - COUNT ( * ) WHEN - MAX ( DISTINCT + + 38 ) + 68 / + + ( + + 70 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 17 + + CAST ( NULL AS INTEGER ) THEN NULL ELSE 60 + + 24 END * + 64 + + CAST ( + 74 AS INTEGER ) + - 49 + - + MIN ( 13 ) AS col0
----
5388

query I rowsort
SELECT DISTINCT + + 17 * 98
----
1666

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT - SUM( ALL + 2 ) + + 29 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5658
SELECT - SUM ( ALL + 2 ) + + 29 AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5659
SELECT + ( - 45 ) AS col0, MIN( DISTINCT + 72 ) DIV + + 29 - + - 6 AS col0
----
-45
8

skipif mysql # not compatible
query II rowsort label-5659
SELECT + ( - 45 ) AS col0, MIN ( DISTINCT + 72 ) / + + 29 - + - 6 AS col0
----
-45
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5660
SELECT DISTINCT + CAST( - 6 AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT + CAST ( - 6 AS INTEGER ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT - - 37 * + 85 + - SUM( + 10 ) + - 42 - + - 46 AS col2
----
3139

skipif mysql # not compatible
query I rowsort label-5661
SELECT - - 37 * + 85 + - SUM ( + 10 ) + - 42 - + - 46 AS col2
----
3139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5662
SELECT + 83 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5662
SELECT + 83 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT ALL - + COUNT( * ) - - 58 - - 59 + + + 65 - - 33 * + - 51 col1
----
-1502

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL - + COUNT ( * ) - - 58 - - 59 + + + 65 - - 33 * + - 51 col1
----
-1502

query I rowsort
SELECT - - 29 + - - 50
----
79

query I rowsort
SELECT DISTINCT - 23 - - NULLIF ( - 64, + - 88 ) * 90 AS col1
----
-5783

query I rowsort
SELECT ALL - 90 - 16
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5667
SELECT DISTINCT + 21 DIV + COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT + 21 / + COUNT ( * ) AS col0
----
21

query II rowsort
SELECT - ( - 25 ) * - 29 + - 75, 82 col0
----
-800
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ALL - COUNT( * ) * + ( - 35 ) * - - 10 AS col2
----
350

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL - COUNT ( * ) * + ( - 35 ) * - - 10 AS col2
----
350

query I rowsort
SELECT + 80 + 57 AS col2
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5671
SELECT DISTINCT 3 * + CAST( + + 23 AS SIGNED ) * 12 + + + CAST( NULL AS DECIMAL ) + + 36 - - 18 * + - MAX( ALL ( - + 70 ) ) * + ( - - 5 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT 3 * + CAST ( + + 23 AS INTEGER ) * 12 + + + CAST ( NULL AS REAL ) + + 36 - - 18 * + - MAX ( ALL ( - + 70 ) ) * + ( - - 5 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 4 * 30
----
-120

query I rowsort
SELECT ALL + 40 * 34
----
1360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT DISTINCT - AVG ( DISTINCT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT - AVG ( DISTINCT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + 25
----
NULL

query I rowsort
SELECT ALL + 31 * + 74 * + - ( - 84 ) AS col2
----
192696

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT ALL 90 DIV - 5
----
-18

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL 90 / - 5
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5677
SELECT DISTINCT 26 AS col0, MAX( - 63 ) * SUM( DISTINCT 65 ) * ( 25 ) - + - 20 + - 10 * - + 16 * + 52 + - 36 + - 46 + + + NULLIF ( + + CAST( NULL AS SIGNED ), 90 ) AS col2
----
26
NULL

skipif mysql # not compatible
query II rowsort label-5677
SELECT DISTINCT 26 AS col0, MAX ( - 63 ) * SUM ( DISTINCT 65 ) * ( 25 ) - + - 20 + - 10 * - + 16 * + 52 + - 36 + - 46 + + + NULLIF ( + + CAST ( NULL AS INTEGER ), 90 ) AS col2
----
26
NULL

query I rowsort
SELECT - 84 - - 25 AS col2
----
-59

query I rowsort
SELECT ALL 54 + 58 col0
----
112

query I rowsort
SELECT + 60 - + 78 AS col1
----
-18

query I rowsort
SELECT + 36 * 17
----
612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5682
SELECT ALL - 67 / + 28 * - CAST( NULL AS SIGNED ) * 63 + + - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL - 67 / + 28 * - CAST ( NULL AS INTEGER ) * 63 + + - 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5683
SELECT DISTINCT + - COUNT( * ) DIV + 22 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT + - COUNT ( * ) / + 22 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL + ( - COUNT( * ) ) * + 11
----
-11

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL + ( - COUNT ( * ) ) * + 11
----
-11

query I rowsort
SELECT DISTINCT + - 96 AS col1
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-5686
SELECT + 70 + 7 + + 82 + 52 + 15 DIV + 50, 96 AS col2
----
211
96

skipif mysql # not compatible
query II rowsort label-5686
SELECT + 70 + 7 + + 82 + 52 + 15 / + 50, 96 AS col2
----
211
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5687
SELECT - NULLIF ( + 62, - 37 / + - 53 + + + 89 + + CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5687
SELECT - NULLIF ( + 62, - 37 / + - 53 + + + 89 + + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5688
SELECT + + COALESCE ( - + 87, + + 46 - + + 10 DIV - 85 * - - 1, 48 )
----
-87

skipif mysql # not compatible
query I rowsort label-5688
SELECT + + COALESCE ( - + 87, + + 46 - + + 10 / - 85 * - - 1, 48 )
----
-87

query I rowsort
SELECT + 84 + ( - 40 ) + - 75 col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT + 48 / + + 34 * 58 * - + 62 + 53 - - 58 * + CAST( NULL AS SIGNED ) + - 94 * - - 82 + - 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT + 48 / + + 34 * 58 * - + 62 + 53 - - 58 * + CAST ( NULL AS INTEGER ) + - 94 * - - 82 + - 43 AS col0
----
NULL

query II rowsort
SELECT - ( - 62 ) * - 69 + - 16 AS col0, - 62
----
-4294
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-5692
SELECT ALL - + 52 DIV - 57 * + - 11 * - - 23, 27 AS col1
----
0
27

skipif mysql # not compatible
query II rowsort label-5692
SELECT ALL - + 52 / - 57 * + - 11 * - - 23, 27 AS col1
----
0
27

query II rowsort
SELECT + + 49 * + ( 63 ) AS col2, 34 AS col2
----
3087
34

query I rowsort
SELECT DISTINCT - + 2 * + - 5 * + 88
----
880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5695
SELECT DISTINCT + - CASE + + 32 WHEN + 98 THEN + - 55 + 53 ELSE - COALESCE ( - + 80, + CASE 63 WHEN ( 45 ) + + 26 THEN + - 59 ELSE COUNT( * ) END * + + 5 + + 81 + + 85 DIV + - CAST( NULL AS SIGNED ), 91 - + - ( + + ( - 39 ) ) ) END
----
-80

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT + - CASE + + 32 WHEN + 98 THEN + - 55 + 53 ELSE - COALESCE ( - + 80, + CASE 63 WHEN ( 45 ) + + 26 THEN + - 59 ELSE COUNT ( * ) END * + + 5 + + 81 + + 85 / + - CAST ( NULL AS INTEGER ), 91 - + - ( + + ( - 39 ) ) ) END
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5696
SELECT ALL - 94 DIV + - 68 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL - 94 / + - 68 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5697
SELECT - 43 * - + 74 DIV - + COUNT( * )
----
-3182

skipif mysql # not compatible
query I rowsort label-5697
SELECT - 43 * - + 74 / - + COUNT ( * )
----
-3182

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT - - COUNT( * ) + + 36 - + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5698
SELECT - - COUNT ( * ) + + 36 - + COUNT ( * ) AS col2
----
36

query II rowsort
SELECT ALL 72 * - - 66 - + + 82 AS col1, + 41
----
4670
41

query I rowsort
SELECT - 15 + 98 + + 90
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5701
SELECT ALL CASE + + 11 WHEN + 43 THEN NULL WHEN - 45 THEN 75 - + - 83 + + - CAST( COUNT( * ) AS SIGNED ) - + 92 / SUM( DISTINCT + 66 ) + + - 28 ELSE NULL END, 38 / CAST( NULL AS SIGNED ) * - ( - 49 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5701
SELECT ALL CASE + + 11 WHEN + 43 THEN NULL WHEN - 45 THEN 75 - + - 83 + + - CAST ( COUNT ( * ) AS INTEGER ) - + 92 / SUM ( DISTINCT + 66 ) + + - 28 ELSE NULL END, 38 / CAST ( NULL AS INTEGER ) * - ( - 49 )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT DISTINCT - COUNT( * ) * 10
----
-10

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT - COUNT ( * ) * 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT DISTINCT + MIN( ( 84 ) ) + 90
----
174

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT + MIN ( ( 84 ) ) + 90
----
174

query I rowsort
SELECT ALL ( + - ( - 2 ) ) col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT - 84 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT - 84 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 90 - - 29
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT ALL + COUNT( * ) + + + 20 + 29 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL + COUNT ( * ) + + + 20 + 29 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT - 61 + COUNT( + 53 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-5708
SELECT - 61 + COUNT ( + 53 ) AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5709
SELECT COALESCE ( ( 66 ), + 92 * - 75 * - MAX( DISTINCT 72 ) ) - + COUNT( * ) + + COUNT( * ) + ( - COUNT( * ) ) * + - CAST( NULL AS SIGNED ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5709
SELECT COALESCE ( ( 66 ), + 92 * - 75 * - MAX ( DISTINCT 72 ) ) - + COUNT ( * ) + + COUNT ( * ) + ( - COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) * 28
----
NULL

query I rowsort
SELECT 57 + + 94
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5711
SELECT ALL COUNT( * ) + + 46 + + 98 + + MIN( - 27 ) + - 10 + - 66 DIV + 64 + - - 53
----
160

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL COUNT ( * ) + + 46 + + 98 + + MIN ( - 27 ) + - 10 + - 66 / + 64 + - - 53
----
160

query I rowsort
SELECT ALL + 10 + - + 82 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT ALL 1 + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL 1 + + COUNT ( * ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5714
SELECT - 96 DIV CAST( - 1 AS SIGNED ) + + CASE + + 23 WHEN + + MIN( + 41 ) DIV 44 * 55 THEN NULL ELSE - 56 * - + 22 + 34 DIV - 94 + - + 29 + - 60 END AS col2
----
1239

skipif mysql # not compatible
query I rowsort label-5714
SELECT - 96 / CAST ( - 1 AS INTEGER ) + + CASE + + 23 WHEN + + MIN ( + 41 ) / 44 * 55 THEN NULL ELSE - 56 * - + 22 + 34 / - 94 + - + 29 + - 60 END AS col2
----
1239

query I rowsort
SELECT ALL - 0 + - + 9 * + 19
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5716
SELECT DISTINCT + COUNT( * ) * 10 * - COALESCE ( - - CASE + CAST( - 8 AS SIGNED ) WHEN - + 31 THEN - 90 END, - - 26 ) AS col2, CAST( NULL AS SIGNED ) AS col0
----
-260
NULL

skipif mysql # not compatible
query II rowsort label-5716
SELECT DISTINCT + COUNT ( * ) * 10 * - COALESCE ( - - CASE + CAST ( - 8 AS INTEGER ) WHEN - + 31 THEN - 90 END, - - 26 ) AS col2, CAST ( NULL AS INTEGER ) AS col0
----
-260
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5717
SELECT 51 + - COUNT( CAST( NULL AS SIGNED ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5717
SELECT 51 + - COUNT ( CAST ( NULL AS INTEGER ) ) AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5718
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 80
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-5720
SELECT ALL 85 + 68, - COALESCE ( - + MAX( + 36 ), + 10, + 53 ) + 61 * 19 AS col2
----
153
1195

skipif mysql # not compatible
query II rowsort label-5720
SELECT ALL 85 + 68, - COALESCE ( - + MAX ( + 36 ), + 10, + 53 ) + 61 * 19 AS col2
----
153
1195

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT COUNT( * ) * + - NULLIF ( - SUM( ALL + + 16 ), + 25 - + - 62 ) * - + 26 col0
----
-416

skipif mysql # not compatible
query I rowsort label-5721
SELECT COUNT ( * ) * + - NULLIF ( - SUM ( ALL + + 16 ), + 25 - + - 62 ) * - + 26 col0
----
-416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT ALL - 84 - + + CAST( + + 13 AS SIGNED ) + + ( + + 64 ) + - + 74 AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL - 84 - + + CAST ( + + 13 AS INTEGER ) + + ( + + 64 ) + - + 74 AS col1
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5723
SELECT - AVG ( DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5723
SELECT - AVG ( DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5724
SELECT DISTINCT CAST( + 49 AS SIGNED ) - 8
----
41

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT CAST ( + 49 AS INTEGER ) - 8
----
41

query I rowsort
SELECT ALL 44 * - - 45 * - 48 AS col1
----
-95040

query I rowsort
SELECT ALL - - 71
----
71

query II rowsort
SELECT 76 * + 5, 8 * 58 * - 46 + 7 * - 6 + + 35 AS col2
----
380
-21351

query I rowsort
SELECT ALL - 32 * 41 * + + 84
----
-110208

onlyif mysql # aggregate syntax: 
query II rowsort label-5729
SELECT COALESCE ( + 21, - + 1 * + + 43 * 33 * - COUNT( * ), + 30 ) AS col2, - 78
----
21
-78

skipif mysql # not compatible
query II rowsort label-5729
SELECT COALESCE ( + 21, - + 1 * + + 43 * 33 * - COUNT ( * ), + 30 ) AS col2, - 78
----
21
-78

query I rowsort
SELECT DISTINCT - - 28 AS col1
----
28

query I rowsort
SELECT 93 * 48 - - 50 - + 79 + 80 col1
----
4515

query I rowsort
SELECT + 37 col1
----
37

query I rowsort
SELECT ALL - + 37 AS col0
----
-37

query I rowsort
SELECT 22 + + - 98 - + 19 + ( + 71 )
----
-24

query II rowsort
SELECT 92 AS col0, 58 AS col1
----
92
58

query I rowsort
SELECT ALL + 40 + + 80
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5737
SELECT NULLIF ( - 23, + 30 * - 9 * - CAST( + + COUNT( * ) AS SIGNED ) ) + - 71 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-5737
SELECT NULLIF ( - 23, + 30 * - 9 * - CAST ( + + COUNT ( * ) AS INTEGER ) ) + - 71 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT 26 + ( + + SUM( - 40 ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT 26 + ( + + SUM ( - 40 ) ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT DISTINCT - 68 + + COUNT( * ) * + 31
----
-37

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT - 68 + + COUNT ( * ) * + 31
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5740
SELECT DISTINCT 13 AS col2, - COUNT( * ) * + - 27 * - CASE + 76 WHEN - 2 * + 41 * - 84 * - CAST( - + MIN( + + 54 ) AS SIGNED ) + + - 94 - 23 + + 98 THEN + 88 WHEN + COALESCE ( - 56, - + CAST( + CASE + 0 WHEN - CAST( + - 12 AS SIGNED ) THEN SUM( 96 ) END AS SIGNED ) ) + + CASE + 59 WHEN + 39 THEN - + 41 + - 82 ELSE NULL END + AVG ( ALL + + 72 ) + + + 74 * - - 81 * - 30 * + 88 / + 58 THEN NULL ELSE SUM( DISTINCT 37 ) * - 54 END
----
13
53946

skipif mysql # not compatible
query II rowsort label-5740
SELECT DISTINCT 13 AS col2, - COUNT ( * ) * + - 27 * - CASE + 76 WHEN - 2 * + 41 * - 84 * - CAST ( - + MIN ( + + 54 ) AS INTEGER ) + + - 94 - 23 + + 98 THEN + 88 WHEN + COALESCE ( - 56, - + CAST ( + CASE + 0 WHEN - CAST ( + - 12 AS INTEGER ) THEN SUM ( 96 ) END AS INTEGER ) ) + + CASE + 59 WHEN + 39 THEN - + 41 + - 82 ELSE NULL END + AVG ( ALL + + 72 ) + + + 74 * - - 81 * - 30 * + 88 / + 58 THEN NULL ELSE SUM ( DISTINCT 37 ) * - 54 END
----
13
53946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5741
SELECT 47 + + CAST( NULL AS SIGNED ) + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5741
SELECT 47 + + CAST ( NULL AS INTEGER ) + 83 AS col1
----
NULL

query I rowsort
SELECT ALL - ( - - 98 ) + - + ( 92 ) AS col0
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT 57 + - + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-5743
SELECT 57 + - + COUNT ( * )
----
56

query II rowsort
SELECT DISTINCT 80 col1, 77 AS col1
----
80
77

query I rowsort
SELECT ALL 37 * - 49 col0
----
-1813

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5746
SELECT DISTINCT - 24 + - 75 + + 0 + + 22 + + 83 + 19 DIV + ( COALESCE ( - 77, - 88 * + - 44 * COUNT( * ) + - 68 * + + 53 + + - MAX( - + 87 ) - + - 6 ) ) * 45
----
6

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT - 24 + - 75 + + 0 + + 22 + + 83 + 19 / + ( COALESCE ( - 77, - 88 * + - 44 * COUNT ( * ) + - 68 * + + 53 + + - MAX ( - + 87 ) - + - 6 ) ) * 45
----
6

query I rowsort
SELECT ALL - 48 - - 69
----
21

query I rowsort
SELECT - - ( 53 )
----
53

query I rowsort
SELECT - 13 * 10 + + 32 * 94 AS col2
----
2878

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5750
SELECT + 52 + + COUNT( * ) DIV + - 37 AS col2, + CAST( NULL AS DECIMAL ) * 96
----
52
NULL

skipif mysql # not compatible
query II rowsort label-5750
SELECT + 52 + + COUNT ( * ) / + - 37 AS col2, + CAST ( NULL AS REAL ) * 96
----
52
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5751
SELECT COUNT( * ) DIV 35 * + 60 + ( 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5751
SELECT COUNT ( * ) / 35 * + 60 + ( 87 ) AS col1
----
87

query I rowsort
SELECT - 61 * + - 52 + + 18 + 99 * - - 19
----
5071

query I rowsort
SELECT - ( - + 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT DISTINCT + 55 * - 37 * - + COUNT( * ) * + 78 AS col0
----
158730

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT + 55 * - 37 * - + COUNT ( * ) * + 78 AS col0
----
158730

query I rowsort
SELECT + 80 * 96 AS col2
----
7680

query I rowsort
SELECT ALL + 44 * - 58
----
-2552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5757
SELECT + MAX( ALL 87 ) DIV - - 54 + + - SUM( - 49 ) - + 31 * 23
----
-663

skipif mysql # not compatible
query I rowsort label-5757
SELECT + MAX ( ALL 87 ) / - - 54 + + - SUM ( - 49 ) - + 31 * 23
----
-663

query I rowsort
SELECT ALL + + 68 * + - 22
----
-1496

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT ALL + 72 DIV - 92 + 80 DIV + - 22
----
-3

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL + 72 / - 92 + 80 / + - 22
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5760
SELECT ( + ( + 18 ) ) DIV - 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5760
SELECT ( + ( + 18 ) ) / - 37 AS col1
----
0

query I rowsort
SELECT ALL - + 94 col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT + - MAX( DISTINCT - - 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-5762
SELECT + - MAX ( DISTINCT - - 63 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT CASE - 79 WHEN 91 + - 93 THEN NULL ELSE + 14 + + ( - COUNT( * ) ) - + NULLIF ( 56, - 50 * + - SUM( 13 ) + + 37 + - - 51 / - - 75 * + 30 ) END + - + 6
----
-49

skipif mysql # not compatible
query I rowsort label-5763
SELECT CASE - 79 WHEN 91 + - 93 THEN NULL ELSE + 14 + + ( - COUNT ( * ) ) - + NULLIF ( 56, - 50 * + - SUM ( 13 ) + + 37 + - - 51 / - - 75 * + 30 ) END + - + 6
----
-49

query I rowsort
SELECT DISTINCT - + 26 AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5765
SELECT DISTINCT - NULLIF ( COUNT( * ), - ( + 74 ) + + 60 * ( - - CAST( NULL AS SIGNED ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT - NULLIF ( COUNT ( * ), - ( + 74 ) + + 60 * ( - - CAST ( NULL AS INTEGER ) ) ) AS col1
----
-1

query I rowsort
SELECT ALL ( 61 ) + 95
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5767
SELECT COUNT( * ) + 79 + - CAST( + 87 AS SIGNED ) - - 61 * + 86 * 68 AS col0
----
356721

skipif mysql # not compatible
query I rowsort label-5767
SELECT COUNT ( * ) + 79 + - CAST ( + 87 AS INTEGER ) - - 61 * + 86 * 68 AS col0
----
356721

query I rowsort
SELECT ALL 85 * - 73 AS col1
----
-6205

query I rowsort
SELECT DISTINCT 44 + - + 49
----
-5

query II rowsort
SELECT + 6 col1, - 1 AS col1
----
6
-1

query I rowsort
SELECT ALL 79 + + + 15 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT COUNT( * ) * 48 * + 1 * + 48 AS col1
----
2304

skipif mysql # not compatible
query I rowsort label-5772
SELECT COUNT ( * ) * 48 * + 1 * + 48 AS col1
----
2304

query I rowsort
SELECT - CASE 4 WHEN - 14 * - COALESCE ( + - 52, - NULLIF ( - 23, 70 + - 85 ) ) + + - 80 * - 21 / 16 + ( + ( - ( 5 ) ) ) * + 31 + + 15 THEN + 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT - MAX( - + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-5774
SELECT - MAX ( - + 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT ALL 25 + + 21 + - MAX( - 95 ) AS col1
----
141

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL 25 + + 21 + - MAX ( - 95 ) AS col1
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5776
SELECT + COUNT( * ) - - CAST( NULL AS SIGNED ) * + NULLIF ( 49, 40 ) + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * + NULLIF ( 49, 40 ) + 43
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5777
SELECT DISTINCT 77 AS col1, - 77 * - - 63 * COUNT( * ) * + COUNT( * ) + + 41 AS col1
----
77
-4810

skipif mysql # not compatible
query II rowsort label-5777
SELECT DISTINCT 77 AS col1, - 77 * - - 63 * COUNT ( * ) * + COUNT ( * ) + + 41 AS col1
----
77
-4810

query II rowsort
SELECT ALL 28 col0, 57
----
28
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT + 7 + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-5779
SELECT + 7 + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5780
SELECT ALL ( COUNT( * ) ) DIV 16 - + - 0, 71 AS col0
----
0
71

skipif mysql # not compatible
query II rowsort label-5780
SELECT ALL ( COUNT ( * ) ) / 16 - + - 0, 71 AS col0
----
0
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5781
SELECT + CASE + - 89 WHEN - 30 THEN - - AVG ( DISTINCT - 36 ) WHEN 3 / - + 4 THEN 17 * + - COUNT( * ) * - 11 * 34 * - 27 * - 55 / 89 + - 56 ELSE NULL END + - ( 33 ) / + 96 - - 35 - 25 + 72 / 55, - 29 * + 89 + 21 AS col2
----
NULL
-2560

skipif mysql # not compatible
query II rowsort label-5781
SELECT + CASE + - 89 WHEN - 30 THEN - - AVG ( DISTINCT - 36 ) WHEN 3 / - + 4 THEN 17 * + - COUNT ( * ) * - 11 * 34 * - 27 * - 55 / 89 + - 56 ELSE NULL END + - ( 33 ) / + 96 - - 35 - 25 + 72 / 55, - 29 * + 89 + 21 AS col2
----
NULL
-2560

query I rowsort
SELECT + 71 + - 52
----
19

query I rowsort
SELECT - 93 - + 88 AS col0
----
-181

query I rowsort
SELECT + + 28 + 86
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT - 6 - + SUM( + 35 )
----
-41

skipif mysql # not compatible
query I rowsort label-5785
SELECT - 6 - + SUM ( + 35 )
----
-41

query I rowsort
SELECT - 20 + 69 AS col2
----
49

query I rowsort
SELECT DISTINCT + 89 - + 57 * - + 83 col2
----
4820

query I rowsort
SELECT DISTINCT - COALESCE ( + - 82, - ( - - 43 ) + - 36 ) AS col0
----
82

query I rowsort
SELECT DISTINCT - 15 * + 21 + 30
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL 47 * + + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL 47 * + + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT - + MIN( ALL + 42 ) + - ( - + 9 ) * 58 col1
----
480

skipif mysql # not compatible
query I rowsort label-5791
SELECT - + MIN ( ALL + 42 ) + - ( - + 9 ) * 58 col1
----
480

query II rowsort
SELECT DISTINCT + 11 AS col1, - 81 + - 75 AS col2
----
11
-156

query II rowsort
SELECT ALL + 26 AS col0, + 39 AS col1
----
26
39

query II rowsort
SELECT + 37 AS col1, 51 * + 69 AS col1
----
37
3519

query I rowsort
SELECT + + NULLIF ( - 20, - 57 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5796
SELECT + - CAST( NULL AS SIGNED ) AS col2, 20 AS col2
----
NULL
20

skipif mysql # not compatible
query II rowsort label-5796
SELECT + - CAST ( NULL AS INTEGER ) AS col2, 20 AS col2
----
NULL
20

query II rowsort
SELECT 1 AS col0, 90
----
1
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5798
SELECT ALL + 15 DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL + 15 / - 65 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5799
SELECT + CAST( NULL AS SIGNED ) AS col2, CASE - COUNT( * ) WHEN - 77 THEN NULL WHEN 99 THEN NULL ELSE - + 21 END AS col0
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-5799
SELECT + CAST ( NULL AS INTEGER ) AS col2, CASE - COUNT ( * ) WHEN - 77 THEN NULL WHEN 99 THEN NULL ELSE - + 21 END AS col0
----
NULL
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-5800
SELECT 46 * + 17 + + + 48 DIV 17
----
784

skipif mysql # not compatible
query I rowsort label-5800
SELECT 46 * + 17 + + + 48 / 17
----
784

onlyif mysql # aggregate syntax: 
query II rowsort label-5801
SELECT + + 93 AS col1, 47 * + CASE 80 WHEN - + 3 THEN NULL WHEN - 80 THEN - COUNT( * ) + - 28 ELSE NULL END
----
93
NULL

skipif mysql # not compatible
query II rowsort label-5801
SELECT + + 93 AS col1, 47 * + CASE 80 WHEN - + 3 THEN NULL WHEN - 80 THEN - COUNT ( * ) + - 28 ELSE NULL END
----
93
NULL

query I rowsort
SELECT - 80 * + + ( 11 ) * - 72
----
63360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5803
SELECT - + CASE + + NULLIF ( - 29, + + 19 + - 75 ) WHEN + - CAST( + 40 AS SIGNED ) THEN NULL WHEN 83 THEN 63 ELSE + COUNT( ALL - - 8 ) + - 7 * - + 37 END DIV + 30 + + 1
----
-7

skipif mysql # not compatible
query I rowsort label-5803
SELECT - + CASE + + NULLIF ( - 29, + + 19 + - 75 ) WHEN + - CAST ( + 40 AS INTEGER ) THEN NULL WHEN 83 THEN 63 ELSE + COUNT ( ALL - - 8 ) + - 7 * - + 37 END / + 30 + + 1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT ALL - 44 * + 30 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - 44 * + 30 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5805
SELECT ALL + CAST( NULL AS SIGNED ) * 86 + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL + CAST ( NULL AS INTEGER ) * 86 + 77
----
NULL

query II rowsort
SELECT 44 AS col2, 23 AS col2
----
44
23

query I rowsort
SELECT ALL + COALESCE ( - 50, + + 47 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT DISTINCT COUNT( * ) * + MAX( 75 ) + - 17 col1
----
58

skipif mysql # not compatible
query I rowsort label-5808
SELECT DISTINCT COUNT ( * ) * + MAX ( 75 ) + - 17 col1
----
58

query I rowsort
SELECT - 80 * + - COALESCE ( - 46, 84 ) AS col2
----
-3680

query I rowsort
SELECT DISTINCT - 95 * + 12 * + 33
----
-37620

query I rowsort
SELECT ALL - 67 * 84 + - 25 AS col0
----
-5653

query I rowsort
SELECT ALL + ( - - 93 ) * + - 18 + 72 AS col2
----
-1602

query I rowsort
SELECT COALESCE ( + 56, 41 * - + 81 + + 90 ) col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT + MAX( ALL + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-5814
SELECT + MAX ( ALL + 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5815
SELECT + 67 + + + CAST( 30 AS SIGNED ) col0
----
97

skipif mysql # not compatible
query I rowsort label-5815
SELECT + 67 + + + CAST ( 30 AS INTEGER ) col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT + CASE + 15 WHEN 8 + - - 81 THEN - COUNT( * ) / - + 86 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5816
SELECT + CASE + 15 WHEN 8 + - - 81 THEN - COUNT ( * ) / - + 86 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT + MAX( + ( - + 45 ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5817
SELECT + MAX ( + ( - + 45 ) ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT + COUNT( * ) + + ( - 47 ) + + ( - 30 ) * - + 16
----
434

skipif mysql # not compatible
query I rowsort label-5818
SELECT + COUNT ( * ) + + ( - 47 ) + + ( - 30 ) * - + 16
----
434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5819
SELECT ALL - 51 * - + 19 + CAST( NULL AS SIGNED ) * + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL - 51 * - + 19 + CAST ( NULL AS INTEGER ) * + 99 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + CASE 25 WHEN - + 65 THEN - - 98 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 31 + + 96
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT DISTINCT - 24 * - COUNT( * ) - 92 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT - 24 * - COUNT ( * ) - 92 AS col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5823
SELECT ALL CAST( - 98 AS SIGNED ) AS col1, - 49 * - 70 * + 94 + MIN( - 43 )
----
-98
322377

skipif mysql # not compatible
query II rowsort label-5823
SELECT ALL CAST ( - 98 AS INTEGER ) AS col1, - 49 * - 70 * + 94 + MIN ( - 43 )
----
-98
322377

query I rowsort
SELECT DISTINCT ( 64 ) * - 28
----
-1792

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5825
SELECT ALL CAST( NULL AS SIGNED ) - 47, 41 col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-5825
SELECT ALL CAST ( NULL AS INTEGER ) - 47, 41 col2
----
NULL
41

query I rowsort
SELECT - 54 * + + 8 * - - 44 * + + 41 AS col1
----
-779328

query I rowsort
SELECT - NULLIF ( - 92, - 76 ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5828
SELECT + CAST( NULL AS SIGNED ) * 57 + + 10 - + 77 * + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT + CAST ( NULL AS INTEGER ) * 57 + + 10 - + 77 * + + 79 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5829
SELECT ALL COALESCE ( + CASE 78 WHEN + 38 THEN - + 99 * + COUNT( * ) + + 70 DIV 72 * COUNT( * ) WHEN + 39 DIV - 48 THEN NULL END, MIN( DISTINCT - 7 ) ) AS col2, 82 * 72 + - 75 + + - 2 AS col1
----
-7
5827

skipif mysql # not compatible
query II rowsort label-5829
SELECT ALL COALESCE ( + CASE 78 WHEN + 38 THEN - + 99 * + COUNT ( * ) + + 70 / 72 * COUNT ( * ) WHEN + 39 / - 48 THEN NULL END, MIN ( DISTINCT - 7 ) ) AS col2, 82 * 72 + - 75 + + - 2 AS col1
----
-7
5827

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5830
SELECT + - 66 DIV - - 71 * - + COUNT( * ) col1, 74
----
0
74

skipif mysql # not compatible
query II rowsort label-5830
SELECT + - 66 / - - 71 * - + COUNT ( * ) col1, 74
----
0
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT DISTINCT 92 DIV 47 col0
----
1

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT 92 / 47 col0
----
1

query I rowsort
SELECT ALL + NULLIF ( + - 31, - - 78 ) AS col2
----
-31

query I rowsort
SELECT + - 16 * + 80
----
-1280

query I rowsort
SELECT ALL + - 30 * - - 90
----
-2700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5835
SELECT ALL - CAST( + + 72 AS SIGNED ) AS col2, - 38
----
-72
-38

skipif mysql # not compatible
query II rowsort label-5835
SELECT ALL - CAST ( + + 72 AS INTEGER ) AS col2, - 38
----
-72
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT + COUNT( * ) - - + 61
----
62

skipif mysql # not compatible
query I rowsort label-5836
SELECT + COUNT ( * ) - - + 61
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT + COUNT( * ) - - + 28 + 39
----
68

skipif mysql # not compatible
query I rowsort label-5837
SELECT + COUNT ( * ) - - + 28 + 39
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5838
SELECT ALL CAST( + 99 AS SIGNED ) + - 85 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL CAST ( + 99 AS INTEGER ) + - 85 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT + CASE COUNT( * ) WHEN - COALESCE ( 47, - 76 * + 22 + - - COUNT( 95 ) - COUNT( * ) ) THEN AVG ( - + 70 ) WHEN - + MAX( + 70 ) THEN MIN( 97 ) * + + ( - - 12 ) * + COALESCE ( + 29, 98, + COUNT( DISTINCT + 10 ) + 69 ) + - + 56 + SUM( DISTINCT 43 ) + 76 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT + CASE COUNT ( * ) WHEN - COALESCE ( 47, - 76 * + 22 + - - COUNT ( 95 ) - COUNT ( * ) ) THEN AVG ( - + 70 ) WHEN - + MAX ( + 70 ) THEN MIN ( 97 ) * + + ( - - 12 ) * + COALESCE ( + 29, 98, + COUNT ( DISTINCT + 10 ) + 69 ) + - + 56 + SUM ( DISTINCT 43 ) + 76 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5840
SELECT ALL + 54 DIV + - 88 * 94 + - ( - - 76 ) - 16 * 84 * - 32 + + + 36 AS col2
----
42968

skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL + 54 / + - 88 * 94 + - ( - - 76 ) - 16 * 84 * - 32 + + + 36 AS col2
----
42968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5841
SELECT - + 97 DIV + - COUNT( * ) - + - COUNT( DISTINCT 48 )
----
98

skipif mysql # not compatible
query I rowsort label-5841
SELECT - + 97 / + - COUNT ( * ) - + - COUNT ( DISTINCT 48 )
----
98

query I rowsort
SELECT ALL - NULLIF ( 13, - 77 ) * + - 21 AS col1
----
273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5843
SELECT DISTINCT - 23 DIV + MAX( 15 ) + 43 * - 28 AS col1
----
-1205

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT - 23 / + MAX ( 15 ) + 43 * - 28 AS col1
----
-1205

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT DISTINCT - 27 * - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT - 27 * - COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5845
SELECT 91 * + 35 + - COUNT( * ) AS col0, - 44 AS col0
----
3184
-44

skipif mysql # not compatible
query II rowsort label-5845
SELECT 91 * + 35 + - COUNT ( * ) AS col0, - 44 AS col0
----
3184
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-5846
SELECT 50 - + COUNT( * ) + + 46 * + + COUNT( * ) AS col1, + MIN( + 21 ) AS col2
----
95
21

skipif mysql # not compatible
query II rowsort label-5846
SELECT 50 - + COUNT ( * ) + + 46 * + + COUNT ( * ) AS col1, + MIN ( + 21 ) AS col2
----
95
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT DISTINCT - COALESCE ( - - CASE - - 20 WHEN - 91 + - 65 THEN + ( MIN( - 30 ) ) + + + 67 WHEN + 95 + - - 50 + CASE 70 WHEN + - 40 THEN 21 + + - 41 WHEN + NULLIF ( + - CASE - 38 WHEN - + 1 THEN NULL WHEN + 93 + 34 THEN - 75 * 82 + - 91 ELSE NULL END, AVG ( - 73 ) ) + + 60 + - 57 * - 45 THEN 16 END * - 84 THEN NULL END, - 87 ) - MIN( - 63 )
----
150

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT - COALESCE ( - - CASE - - 20 WHEN - 91 + - 65 THEN + ( MIN ( - 30 ) ) + + + 67 WHEN + 95 + - - 50 + CASE 70 WHEN + - 40 THEN 21 + + - 41 WHEN + NULLIF ( + - CASE - 38 WHEN - + 1 THEN NULL WHEN + 93 + 34 THEN - 75 * 82 + - 91 ELSE NULL END, AVG ( - 73 ) ) + + 60 + - 57 * - 45 THEN 16 END * - 84 THEN NULL END, - 87 ) - MIN ( - 63 )
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5848
SELECT ALL + 55 - - CAST( + 78 AS SIGNED )
----
133

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL + 55 - - CAST ( + 78 AS INTEGER )
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT ALL - MAX( DISTINCT - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL - MAX ( DISTINCT - 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL - 92 - - 29 * ( - 25 ) * - 31 - - 37 + + SUM( ALL - + 80 ) * + + COUNT( + 24 ) AS col1
----
22340

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL - 92 - - 29 * ( - 25 ) * - 31 - - 37 + + SUM ( ALL - + 80 ) * + + COUNT ( + 24 ) AS col1
----
22340

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5851
SELECT ALL - CAST( NULL AS DECIMAL ) * + - SUM( DISTINCT - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL - CAST ( NULL AS REAL ) * + - SUM ( DISTINCT - 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL - CASE WHEN ( NOT NULL IS NULL ) THEN NULL WHEN 88 = NULL THEN + 96 END - + ( + MAX( DISTINCT - 22 ) ) - - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL - CASE WHEN ( NOT NULL IS NULL ) THEN NULL WHEN 88 = NULL THEN + 96 END - + ( + MAX ( DISTINCT - 22 ) ) - - 11 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5853
SELECT 30 DIV + + 61
----
0

skipif mysql # not compatible
query I rowsort label-5853
SELECT 30 / + + 61
----
0

query I rowsort
SELECT 66 * - - 57 * + 63
----
237006

query I rowsort
SELECT 40 * - 12 * 10 AS col2
----
-4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5856
SELECT 62 - + + ( + MIN( ALL 46 ) ), CAST( NULL AS SIGNED ) AS col1
----
16
NULL

skipif mysql # not compatible
query II rowsort label-5856
SELECT 62 - + + ( + MIN ( ALL 46 ) ), CAST ( NULL AS INTEGER ) AS col1
----
16
NULL

query II rowsort
SELECT DISTINCT 87, 39 AS col0
----
87
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT 28 + + ( 52 ) + - + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-5858
SELECT 28 + + ( 52 ) + - + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5859
SELECT - + COUNT( * ), - 77 + + + 59 AS col0
----
-1
-18

skipif mysql # not compatible
query II rowsort label-5859
SELECT - + COUNT ( * ), - 77 + + + 59 AS col0
----
-1
-18

query I rowsort
SELECT ALL - ( - - 63 ) AS col0
----
-63

query I rowsort
SELECT ALL 99 * + 52
----
5148

query I rowsort
SELECT ALL - 65 + - 8 + - 64 + + + 53 AS col1
----
-84

query I rowsort
SELECT 7 + - 9
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT 97 - - 58 / + 21 - + COUNT( * ) * CASE - ( 41 ) WHEN - + 87 / - COUNT( * ) THEN 31 + + - COUNT( * ) WHEN - 61 THEN NULL WHEN MAX( + + 66 ) / 40 + + 18 - - AVG ( 14 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT 97 - - 58 / + 21 - + COUNT ( * ) * CASE - ( 41 ) WHEN - + 87 / - COUNT ( * ) THEN 31 + + - COUNT ( * ) WHEN - 61 THEN NULL WHEN MAX ( + + 66 ) / 40 + + 18 - - AVG ( 14 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 65 + - 92 AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5866
SELECT 99 + - - CASE - CAST( NULL AS SIGNED ) WHEN - - ( + COUNT( * ) ) THEN + COUNT( * ) / 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5866
SELECT 99 + - - CASE - CAST ( NULL AS INTEGER ) WHEN - - ( + COUNT ( * ) ) THEN + COUNT ( * ) / 20 END
----
NULL

query I rowsort
SELECT DISTINCT 83 + - 89 * + 1 col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL - COUNT( * ) + 30
----
29

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL - COUNT ( * ) + 30
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT - + SUM( ALL 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-5869
SELECT - + SUM ( ALL 49 )
----
-49

query I rowsort
SELECT ALL - - 7 + + 30
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5871
SELECT ALL 10 DIV 77 * - + 75 AS col1, CASE + 26 WHEN + 9 THEN NULL WHEN + 75 THEN NULL ELSE - ( + SUM( DISTINCT - 5 ) ) END DIV + 36 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-5871
SELECT ALL 10 / 77 * - + 75 AS col1, CASE + 26 WHEN + 9 THEN NULL WHEN + 75 THEN NULL ELSE - ( + SUM ( DISTINCT - 5 ) ) END / + 36 AS col2
----
0
0

query I rowsort
SELECT ALL - 74 + + 2 + 87 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5873
SELECT ALL 54 + + MIN( DISTINCT - CAST( - + 1 AS SIGNED ) ) + - COUNT( * ) * + COALESCE ( - + ( + + COALESCE ( - CASE + 87 WHEN 19 * 67 THEN - - 78 + - ( + ( - - COUNT( * ) ) ) + 79 DIV + - 39 + - + 76 ELSE + 20 END, + 86 ) ), - NULLIF ( - 56, 31 DIV + 80 ) ) + + 18 * - NULLIF ( - + 39, - COUNT( * ) * - + 22 * + 42 + - 17 + + COUNT( * ) DIV COALESCE ( + 86, + 91 ) + - - CASE 14 WHEN + 79 THEN 49 END * - NULLIF ( - 12, + 87 ) ) * + 14 AS col1
----
9863

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL 54 + + MIN ( DISTINCT - CAST ( - + 1 AS INTEGER ) ) + - COUNT ( * ) * + COALESCE ( - + ( + + COALESCE ( - CASE + 87 WHEN 19 * 67 THEN - - 78 + - ( + ( - - COUNT ( * ) ) ) + 79 / + - 39 + - + 76 ELSE + 20 END, + 86 ) ), - NULLIF ( - 56, 31 / + 80 ) ) + + 18 * - NULLIF ( - + 39, - COUNT ( * ) * - + 22 * + 42 + - 17 + + COUNT ( * ) / COALESCE ( + 86, + 91 ) + - - CASE 14 WHEN + 79 THEN 49 END * - NULLIF ( - 12, + 87 ) ) * + 14 AS col1
----
9863

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT + - COUNT( DISTINCT + + 29 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5874
SELECT + - COUNT ( DISTINCT + + 29 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT - 98 + - CASE CAST( NULL AS SIGNED ) WHEN 64 THEN + - 56 * + - 18 WHEN + AVG ( + 44 ) THEN + 38 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT - 98 + - CASE CAST ( NULL AS INTEGER ) WHEN 64 THEN + - 56 * + - 18 WHEN + AVG ( + 44 ) THEN + 38 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT ALL CASE - 15 WHEN COUNT( * ) THEN 68 / - 68 END + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL CASE - 15 WHEN COUNT ( * ) THEN 68 / - 68 END + 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT - 37 * + + 18 * - SUM( + + 53 ) AS col0
----
35298

skipif mysql # not compatible
query I rowsort label-5877
SELECT - 37 * + + 18 * - SUM ( + + 53 ) AS col0
----
35298

onlyif mysql # aggregate syntax: 
query II rowsort label-5878
SELECT ( + MIN( ALL + 1 ) ) * + - 33, 16 AS col1
----
-33
16

skipif mysql # not compatible
query II rowsort label-5878
SELECT ( + MIN ( ALL + 1 ) ) * + - 33, 16 AS col1
----
-33
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5879
SELECT - 79 * + + COUNT( * ) + ( - 31 ) - - 65, - 60 * - ( + 19 ) AS col0
----
-45
1140

skipif mysql # not compatible
query II rowsort label-5879
SELECT - 79 * + + COUNT ( * ) + ( - 31 ) - - 65, - 60 * - ( + 19 ) AS col0
----
-45
1140

query I rowsort
SELECT ALL - 23 - - 77 * NULLIF ( + 90, AVG ( - - 61 ) ) AS col0
----
6907

query I rowsort
SELECT 31 * 93 * 31 * + 78 * - - 94
----
655282836

query I rowsort
SELECT ALL 20 * - 61
----
-1220

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT + MIN( ALL + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-5883
SELECT + MIN ( ALL + 47 )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5884
SELECT ALL - MIN( ALL + 68 ) col0, COALESCE ( + 49, - 51 + - 16 + + 28 * COUNT( * ) * - 33 * + COUNT( + + 29 ) - - COALESCE ( - 6, + 86 ) * MAX( - 9 ) + - + 29, + + COUNT( * ) + - 76 * + + 16 + + COUNT( - 63 ) + - 96 * ( - 77 ) DIV + 51 * 8 + + 14 + - 87 + - 43 * + - 24 ) AS col2
----
-68
49

skipif mysql # not compatible
query II rowsort label-5884
SELECT ALL - MIN ( ALL + 68 ) col0, COALESCE ( + 49, - 51 + - 16 + + 28 * COUNT ( * ) * - 33 * + COUNT ( + + 29 ) - - COALESCE ( - 6, + 86 ) * MAX ( - 9 ) + - + 29, + + COUNT ( * ) + - 76 * + + 16 + + COUNT ( - 63 ) + - 96 * ( - 77 ) / + 51 * 8 + + 14 + - 87 + - 43 * + - 24 ) AS col2
----
-68
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT 61 * COUNT( * ) - MIN( + 19 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-5885
SELECT 61 * COUNT ( * ) - MIN ( + 19 ) AS col1
----
42

query I rowsort
SELECT 75 * - 26
----
-1950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5887
SELECT ALL - 88 DIV - - NULLIF ( - COUNT( * ), SUM( + 40 ) )
----
88

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL - 88 / - - NULLIF ( - COUNT ( * ), SUM ( + 40 ) )
----
88

query I rowsort
SELECT 46 * 46 * - - 20 AS col0
----
42320

query I rowsort
SELECT 82 + + 23
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5890
SELECT DISTINCT - 79 * CAST( + + 59 AS SIGNED )
----
-4661

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT - 79 * CAST ( + + 59 AS INTEGER )
----
-4661

query I rowsort
SELECT DISTINCT 65 + - 69 AS col0
----
-4

query I rowsort
SELECT ALL + ( 89 ) + + + 45
----
134

query I rowsort
SELECT DISTINCT - 22 + 37 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5894
SELECT - CAST( 84 AS SIGNED ) DIV - - 60
----
-1

skipif mysql # not compatible
query I rowsort label-5894
SELECT - CAST ( 84 AS INTEGER ) / - - 60
----
-1

query I rowsort
SELECT 76 * + + 47 * - 28
----
-100016

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT ALL - COUNT( * ) + - 79 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL - COUNT ( * ) + - 79 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5897
SELECT CASE - + CAST( + 34 AS SIGNED ) WHEN + 4 THEN NULL WHEN 46 THEN + COALESCE ( ( - - 58 ), 71, - CASE 79 WHEN - 6 * + 81 THEN 13 - - 45 ELSE NULL END ) + + - CASE + 15 WHEN 11 DIV - 92 THEN - + 4 * - 21 + - SUM( ALL + 65 ) * COUNT( * ) WHEN - 58 + CAST( + MAX( DISTINCT - 81 ) AS SIGNED ) * - 43 THEN - + 76 * 11 * + 78 * - 31 + - 12 + - 8 * + 12 - + COUNT( * ) WHEN + - 46 THEN NULL END + CASE - 91 WHEN 58 DIV - 0 + - 36 THEN 89 * + 32 WHEN 6 DIV + NULLIF ( 91, - 55 ) THEN - 59 * + 76 END DIV AVG ( + 74 ) ELSE - 24 END + 81
----
57

skipif mysql # not compatible
query I rowsort label-5897
SELECT CASE - + CAST ( + 34 AS INTEGER ) WHEN + 4 THEN NULL WHEN 46 THEN + COALESCE ( ( - - 58 ), 71, - CASE 79 WHEN - 6 * + 81 THEN 13 - - 45 ELSE NULL END ) + + - CASE + 15 WHEN 11 / - 92 THEN - + 4 * - 21 + - SUM ( ALL + 65 ) * COUNT ( * ) WHEN - 58 + CAST ( + MAX ( DISTINCT - 81 ) AS INTEGER ) * - 43 THEN - + 76 * 11 * + 78 * - 31 + - 12 + - 8 * + 12 - + COUNT ( * ) WHEN + - 46 THEN NULL END + CASE - 91 WHEN 58 / - 0 + - 36 THEN 89 * + 32 WHEN 6 / + NULLIF ( 91, - 55 ) THEN - 59 * + 76 END / AVG ( + 74 ) ELSE - 24 END + 81
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-5898
SELECT + 19 DIV 62 + + ( 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5898
SELECT + 19 / 62 + + ( 32 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT ALL + COUNT( * ) + 82 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL + COUNT ( * ) + 82 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT ALL - - COUNT( * ) + 62 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL - - COUNT ( * ) + 62 AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5901
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * + + 97 DIV - 83 + 58 + - - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * + + 97 / - 83 + 58 + - - COUNT ( * )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5902
SELECT - COUNT( DISTINCT - 87 ) * 10 DIV 71 + + - ( + - 36 ) * 7
----
252

skipif mysql # not compatible
query I rowsort label-5902
SELECT - COUNT ( DISTINCT - 87 ) * 10 / 71 + + - ( + - 36 ) * 7
----
252

query I rowsort
SELECT - - 83 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT - + 12 - SUM( 52 ) * COUNT( + 4 ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-5904
SELECT - + 12 - SUM ( 52 ) * COUNT ( + 4 ) col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT - - COALESCE ( - - COALESCE ( COUNT( * ), - + 43, COUNT( * ) ), + + 94 * - - 19, 47 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5905
SELECT - - COALESCE ( - - COALESCE ( COUNT ( * ), - + 43, COUNT ( * ) ), + + 94 * - - 19, 47 ) AS col0
----
1

query I rowsort
SELECT + - 32 * + 16 * - 76 AS col0
----
38912

query I rowsort
SELECT - 21 + + 49 col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT COALESCE ( + - COUNT( * ), 90 * + 39 + 26, - - 9 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5908
SELECT COALESCE ( + - COUNT ( * ), 90 * + 39 + 26, - - 9 ) col2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5909
SELECT ALL - 36 * - 93 - 38 - + 88 + + 55 DIV + 18 AS col1, - 75 * - 43 AS col1
----
3225
3225

skipif mysql # not compatible
query II rowsort label-5909
SELECT ALL - 36 * - 93 - 38 - + 88 + + 55 / + 18 AS col1, - 75 * - 43 AS col1
----
3225
3225

query II rowsort
SELECT + 15 * - + 54 * 68, 57 col0
----
-55080
57

onlyif mysql # DIV for integer division: 
query I rowsort label-5911
SELECT ALL 26 DIV - + 52
----
0

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL 26 / - + 52
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5912
SELECT DISTINCT + CASE 0 WHEN ( + SUM( ALL - - 76 ) ) THEN 35 WHEN + 53 THEN - - CASE + - 57 WHEN 29 - 70 + + ( + + 94 ) * + - ( - 45 ) THEN NULL WHEN COUNT( - 33 ) THEN NULL WHEN + 62 / - - 15 * - 37 + + 69 * - 17 THEN - COALESCE ( + ( - - COUNT( + 56 ) ), + - CAST( + 99 AS SIGNED ) ) * 48 * + 19 - - CAST( NULL AS DECIMAL ) + + - 60 - + - 43 - + ( - ( + ( - - 49 ) ) ) + + 70 * COUNT( * ) * + 57 * 21 + 36 ELSE NULL END ELSE - CAST( NULL AS SIGNED ) + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT + CASE 0 WHEN ( + SUM ( ALL - - 76 ) ) THEN 35 WHEN + 53 THEN - - CASE + - 57 WHEN 29 - 70 + + ( + + 94 ) * + - ( - 45 ) THEN NULL WHEN COUNT ( - 33 ) THEN NULL WHEN + 62 / - - 15 * - 37 + + 69 * - 17 THEN - COALESCE ( + ( - - COUNT ( + 56 ) ), + - CAST ( + 99 AS INTEGER ) ) * 48 * + 19 - - CAST ( NULL AS REAL ) + + - 60 - + - 43 - + ( - ( + ( - - 49 ) ) ) + + 70 * COUNT ( * ) * + 57 * 21 + 36 ELSE NULL END ELSE - CAST ( NULL AS INTEGER ) + 68 END
----
NULL

query I rowsort
SELECT ALL 61 * - 12
----
-732

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT + MAX( + 36 ) + - - ( + 16 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-5914
SELECT + MAX ( + 36 ) + - - ( + 16 ) AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5915
SELECT ALL + SUM( ALL 63 ) * + CAST( NULL AS DECIMAL ) * + COUNT( * ) - 74 * - - 3 * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL + SUM ( ALL 63 ) * + CAST ( NULL AS REAL ) * + COUNT ( * ) - 74 * - - 3 * 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT + 61 * + + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5916
SELECT + 61 * + + COUNT ( * ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT + 31 + - - ( + 39 ) + - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-5917
SELECT + 31 + - - ( + 39 ) + - COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT DISTINCT 2 * - CASE + 90 WHEN - 80 THEN COUNT( DISTINCT - 55 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT 2 * - CASE + 90 WHEN - 80 THEN COUNT ( DISTINCT - 55 ) END
----
NULL

query I rowsort
SELECT 65 * - 78 + + 14
----
-5056

query I rowsort
SELECT - 13 - + 67
----
-80

query I rowsort
SELECT ALL 19 * + - 38 AS col0
----
-722

query I rowsort
SELECT + 25 * - 68 * - 64 AS col2
----
108800

query I rowsort
SELECT + CASE - 13 WHEN 78 THEN 63 WHEN + 57 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 77 + + 73 AS col2
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-5925
SELECT + MAX( DISTINCT - + 24 ) * 13 AS col0, + 47 * 37 AS col0
----
-312
1739

skipif mysql # not compatible
query II rowsort label-5925
SELECT + MAX ( DISTINCT - + 24 ) * 13 AS col0, + 47 * 37 AS col0
----
-312
1739

onlyif mysql # DIV for integer division: 
query I rowsort label-5926
SELECT ALL 73 * NULLIF ( 89, + + 62 ) DIV + 17 + - 42
----
340

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL 73 * NULLIF ( 89, + + 62 ) / + 17 + - 42
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT - COUNT( * ) * + + ( - 65 ) + 2
----
67

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT - COUNT ( * ) * + + ( - 65 ) + 2
----
67

query I rowsort
SELECT + ( 15 ) col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT ALL 7 * + 6 * + ( + NULLIF ( + + 92, MAX( DISTINCT + 75 ) + + 16 ) ) + + 1 + + ( + SUM( - 82 ) ) * + 55 * - 47
----
215835

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL 7 * + 6 * + ( + NULLIF ( + + 92, MAX ( DISTINCT + 75 ) + + 16 ) ) + + 1 + + ( + SUM ( - 82 ) ) * + 55 * - 47
----
215835

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5930
SELECT CAST( NULL AS SIGNED ) * + 85 * 9 + + + CAST( NULL AS SIGNED ) + - 96 AS col0, - COALESCE ( - 47, + 64 * 28 - + + 19 ) AS col2
----
NULL
47

skipif mysql # not compatible
query II rowsort label-5930
SELECT CAST ( NULL AS INTEGER ) * + 85 * 9 + + + CAST ( NULL AS INTEGER ) + - 96 AS col0, - COALESCE ( - 47, + 64 * 28 - + + 19 ) AS col2
----
NULL
47

query I rowsort
SELECT + 3 + 76 - + 92 + + + 6
----
-7

query I rowsort
SELECT ALL - - 94 + - 18 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ALL + 99 * + 26 + - + CASE + MAX( DISTINCT + 69 ) WHEN - - 7 THEN COUNT( * ) END + - + 14 * - 7 + + 28 + 19 - - 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL + 99 * + 26 + - + CASE + MAX ( DISTINCT + 69 ) WHEN - - 7 THEN COUNT ( * ) END + - + 14 * - 7 + + 28 + 19 - - 67 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT + 17 + 83 - + - 64 + - 68 * + MIN( ALL - 46 ) + - 93
----
3199

skipif mysql # not compatible
query I rowsort label-5934
SELECT + 17 + 83 - + - 64 + - 68 * + MIN ( ALL - 46 ) + - 93
----
3199

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL 87 + + - SUM( 13 ) + - - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL 87 + + - SUM ( 13 ) + - - COUNT ( * )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5936
SELECT - 26 + - - 87 + - 10 DIV + + 57 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-5936
SELECT - 26 + - - 87 + - 10 / + + 57 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT DISTINCT + - CASE 32 WHEN + COUNT( * ) * 92 THEN - 29 END * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT + - CASE 32 WHEN + COUNT ( * ) * 92 THEN - 29 END * 85
----
NULL

query I rowsort
SELECT ALL - - 19 + - 45 * + 30 * + - 85
----
114769

query I rowsort
SELECT - + 2 + 68 AS col1
----
66

query I rowsort
SELECT ALL - 96 + + 17
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT - - 27 + + + ( - 76 ) - 48 DIV + 18
----
-51

skipif mysql # not compatible
query I rowsort label-5941
SELECT - - 27 + + + ( - 76 ) - 48 / + 18
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT ALL + ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL + ( COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT - - COALESCE ( 65, + + 12 * 51 * 42 ) AS col1
----
65

query I rowsort
SELECT + - 41 + 3 AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5945
SELECT + - 83 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5945
SELECT + - 83 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5946
SELECT ALL CAST( 0 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL CAST ( 0 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT - + 67 + - 93 AS col1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT - 89 + COALESCE ( + NULLIF ( - NULLIF ( + + MAX( ALL - 82 ), 79 + - - MAX( - 16 ) ), + - 77 ), - + 25 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5948
SELECT - 89 + COALESCE ( + NULLIF ( - NULLIF ( + + MAX ( ALL - 82 ), 79 + - - MAX ( - 16 ) ), + - 77 ), - + 25 ) AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5949
SELECT - COUNT( * ) * - COALESCE ( + 59, + - 51 + + 38 + - 16 * + + 79 + + 16, + 87 DIV - 1 + - + 32 + 68 ) * + 85
----
5015

skipif mysql # not compatible
query I rowsort label-5949
SELECT - COUNT ( * ) * - COALESCE ( + 59, + - 51 + + 38 + - 16 * + + 79 + + 16, + 87 / - 1 + - + 32 + 68 ) * + 85
----
5015

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5950
SELECT DISTINCT CAST( + - 10 AS SIGNED ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT CAST ( + - 10 AS INTEGER ) col1
----
-10

query I rowsort
SELECT ALL - 96 * + 37 AS col0
----
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT - 91 + + COUNT( 33 )
----
-90

skipif mysql # not compatible
query I rowsort label-5952
SELECT - 91 + + COUNT ( 33 )
----
-90

query I rowsort
SELECT ALL ( 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT DISTINCT + COUNT( * ) * 62 * - COUNT( * ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT + COUNT ( * ) * 62 * - COUNT ( * ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL + 88 * - MAX( ALL - 8 ) * - 98 AS col2
----
-68992

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + 88 * - MAX ( ALL - 8 ) * - 98 AS col2
----
-68992

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5956
SELECT CAST( NULLIF ( - + 86, 0 * - ( + + 58 ) ) AS SIGNED ) AS col0, CAST( NULL AS SIGNED )
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-5956
SELECT CAST ( NULLIF ( - + 86, 0 * - ( + + 58 ) ) AS INTEGER ) AS col0, CAST ( NULL AS INTEGER )
----
-86
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT - COUNT( * ) * CASE - - 97 WHEN + 5 THEN - 41 WHEN 83 THEN + - 56 + - 25 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5957
SELECT - COUNT ( * ) * CASE - - 97 WHEN + 5 THEN - 41 WHEN 83 THEN + - 56 + - 25 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 14 * + + ( - 16 ) + + 17 AS col2
----
-207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5959
SELECT - COUNT( * ) / + 71 * + 14 * 99 * + + AVG ( ALL ( + 10 ) ) / - CAST( NULL AS SIGNED ) / 6 * - 9 * - + ( - 19 ) AS col1, COUNT( * ) * - 68
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-5959
SELECT - COUNT ( * ) / + 71 * + 14 * 99 * + + AVG ( ALL ( + 10 ) ) / - CAST ( NULL AS INTEGER ) / 6 * - 9 * - + ( - 19 ) AS col1, COUNT ( * ) * - 68
----
NULL
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5960
SELECT CAST( NULL AS SIGNED ), 43 * 65 AS col1
----
NULL
2795

skipif mysql # not compatible
query II rowsort label-5960
SELECT CAST ( NULL AS INTEGER ), 43 * 65 AS col1
----
NULL
2795

onlyif mysql # DIV for integer division: 
query I rowsort label-5961
SELECT ALL 69 DIV + 25 + - ( + ( 62 ) ) DIV + - 29 - - 55 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL 69 / + 25 + - ( + ( 62 ) ) / + - 29 - - 55 AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5962
SELECT ALL 38 DIV CAST( + 88 AS SIGNED ) * + 55 + 76
----
76

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL 38 / CAST ( + 88 AS INTEGER ) * + 55 + 76
----
76

query I rowsort
SELECT + ( + - 18 ) AS col2
----
-18

query I rowsort
SELECT ALL ( - + 77 ) * - 28 + - + 3 AS col0
----
2153

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT ALL + 55 col2, CASE + - 94 WHEN - - COUNT( * ) THEN + 99 - - 52 WHEN 1 * + 16 THEN + 2 END * 6 * - - 67 AS col2
----
55
NULL

skipif mysql # not compatible
query II rowsort label-5965
SELECT ALL + 55 col2, CASE + - 94 WHEN - - COUNT ( * ) THEN + 99 - - 52 WHEN 1 * + 16 THEN + 2 END * 6 * - - 67 AS col2
----
55
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5966
SELECT ( + 63 ) * 56 + - 18 + + COALESCE ( + - 58, + - COUNT( * ) DIV - 44 ) + - + 88 * - 74 + + 2
----
9966

skipif mysql # not compatible
query I rowsort label-5966
SELECT ( + 63 ) * 56 + - 18 + + COALESCE ( + - 58, + - COUNT ( * ) / - 44 ) + - + 88 * - 74 + + 2
----
9966

query I rowsort
SELECT ALL 4 * + - 35
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5968
SELECT - SUM( DISTINCT 76 ) DIV + ( - 7 ) AS col0, SUM( - 39 ) AS col1
----
10
-39

skipif mysql # not compatible
query II rowsort label-5968
SELECT - SUM ( DISTINCT 76 ) / + ( - 7 ) AS col0, SUM ( - 39 ) AS col1
----
10
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT + 96 * - 27 - + - COUNT( * )
----
-2591

skipif mysql # not compatible
query I rowsort label-5969
SELECT + 96 * - 27 - + - COUNT ( * )
----
-2591

query II rowsort
SELECT 6 AS col0, 97
----
6
97

query I rowsort
SELECT DISTINCT COALESCE ( + + 14, + - 51, 43 ) * 92 + 99
----
1387

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT + + 31 * + + 26 + - - ( - - COUNT( * ) ) AS col1
----
807

skipif mysql # not compatible
query I rowsort label-5972
SELECT + + 31 * + + 26 + - - ( - - COUNT ( * ) ) AS col1
----
807

query I rowsort
SELECT ALL + 23 * - 51 - - 70
----
-1103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5974
SELECT - + COALESCE ( - - 56, COUNT( * ) * - 84 DIV - ( + ( + 77 ) ) - - + 64 + - - 64 DIV 58 * 70 + + - 40 + - 23 * - 0 * - CASE - - 28 WHEN - - COUNT( * ) THEN NULL WHEN + + COALESCE ( 74, + - 41, + + 84 DIV + 54 ) THEN NULL ELSE + 12 END )
----
-56

skipif mysql # not compatible
query I rowsort label-5974
SELECT - + COALESCE ( - - 56, COUNT ( * ) * - 84 / - ( + ( + 77 ) ) - - + 64 + - - 64 / 58 * 70 + + - 40 + - 23 * - 0 * - CASE - - 28 WHEN - - COUNT ( * ) THEN NULL WHEN + + COALESCE ( 74, + - 41, + + 84 / + 54 ) THEN NULL ELSE + 12 END )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5975
SELECT ALL - 64, + 58 + + 20 + + NULLIF ( - CAST( NULL AS SIGNED ), + - 12 ) - + ( + 37 ) * + 59 + + - 42 + - 17 + - 37 AS col1
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-5975
SELECT ALL - 64, + 58 + + 20 + + NULLIF ( - CAST ( NULL AS INTEGER ), + - 12 ) - + ( + 37 ) * + 59 + + - 42 + - 17 + - 37 AS col1
----
-64
NULL

query I rowsort
SELECT - 90 * + + ( + 98 ) AS col1
----
-8820

query II rowsort
SELECT 99, - 14 + 66 AS col2
----
99
52

query II rowsort
SELECT - + 97 col2, 5 AS col2
----
-97
5

query II rowsort
SELECT ALL + 41, + 97 + 6 col1
----
41
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT ALL + + 87 - + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL + + 87 - + COUNT ( * ) AS col1
----
86

query I rowsort
SELECT DISTINCT + 93 * + 18
----
1674

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5982
SELECT DISTINCT - 5, + CAST( NULL AS SIGNED ) AS col2
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-5982
SELECT DISTINCT - 5, + CAST ( NULL AS INTEGER ) AS col2
----
-5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5983
SELECT MIN( ALL - - 54 ) * + 91 * + 2, 73 col2
----
9828
73

skipif mysql # not compatible
query II rowsort label-5983
SELECT MIN ( ALL - - 54 ) * + 91 * + 2, 73 col2
----
9828
73

query I rowsort
SELECT 60 * - 26
----
-1560

onlyif mysql # aggregate syntax: 
query II rowsort label-5985
SELECT 30 + 75 AS col1, 48 - 63 * 91 * - 86 + - COUNT( * ) AS col0
----
105
493085

skipif mysql # not compatible
query II rowsort label-5985
SELECT 30 + 75 AS col1, 48 - 63 * 91 * - 86 + - COUNT ( * ) AS col0
----
105
493085

onlyif mysql # aggregate syntax: 
query II rowsort label-5986
SELECT 46 * 42 col0, + MIN( ALL + 27 )
----
1932
27

skipif mysql # not compatible
query II rowsort label-5986
SELECT 46 * 42 col0, + MIN ( ALL + 27 )
----
1932
27

query I rowsort
SELECT 50 + 83 col2
----
133

query II rowsort
SELECT 85 * 49 AS col2, 10 AS col0
----
4165
10

onlyif mysql # DIV for integer division: 
query II rowsort label-5989
SELECT ALL - 29 DIV + + 74 AS col1, 20 * + + ( - 51 )
----
0
-1020

skipif mysql # not compatible
query II rowsort label-5989
SELECT ALL - 29 / + + 74 AS col1, 20 * + + ( - 51 )
----
0
-1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5990
SELECT + COUNT( * ) DIV - 27 * + 3 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5990
SELECT + COUNT ( * ) / - 27 * + 3 + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5991
SELECT ALL ( + 52 ) + - ( 44 ) + - 36 - ( + 57 ) + - NULLIF ( - 58, - COUNT( DISTINCT + 87 ) ) * - CAST( 94 AS SIGNED ) AS col0
----
-5537

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL ( + 52 ) + - ( 44 ) + - 36 - ( + 57 ) + - NULLIF ( - 58, - COUNT ( DISTINCT + 87 ) ) * - CAST ( 94 AS INTEGER ) AS col0
----
-5537

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT ALL + 57 + - 11 * + 64 * + - ( - + 62 ) * 92 + - 75 DIV - + 92
----
-4015559

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL + 57 + - 11 * + 64 * + - ( - + 62 ) * 92 + - 75 / - + 92
----
-4015559

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ALL - COUNT( * ) + - 60 - + 20 * - - 16 * - - 84 * - + 79
----
2123459

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL - COUNT ( * ) + - 60 - + 20 * - - 16 * - - 84 * - + 79
----
2123459

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT 75 + 60 + - 47 * COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-5994
SELECT 75 + 60 + - 47 * COUNT ( * )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5995
SELECT DISTINCT - NULLIF ( 71, - 82 + ( - - CAST( + CAST( 37 AS SIGNED ) AS SIGNED ) ) * + 28 + + + 53 * 88 - - NULLIF ( + + COUNT( * ), + 1 ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT - NULLIF ( 71, - 82 + ( - - CAST ( + CAST ( 37 AS INTEGER ) AS INTEGER ) ) * + 28 + + + 53 * 88 - - NULLIF ( + + COUNT ( * ), + 1 ) ) AS col2
----
-71

query I rowsort
SELECT ALL + 57 + 18 + + - ( - 11 ) + - 58
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT 65 + - CASE - MAX( ALL 50 ) WHEN + + COUNT( * ) * - COUNT( * ) * + COUNT( * ) THEN NULL WHEN ( + - 2 ) THEN - 91 * 96 ELSE NULL END - + + 31 * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT 65 + - CASE - MAX ( ALL 50 ) WHEN + + COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) THEN NULL WHEN ( + - 2 ) THEN - 91 * 96 ELSE NULL END - + + 31 * 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT ALL + 39 + + - MAX( - 97 ) col0
----
136

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL + 39 + + - MAX ( - 97 ) col0
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-5999
SELECT 74 + + 35, 21 * - CASE NULLIF ( - SUM( DISTINCT - - 41 ), COUNT( * ) ) WHEN + ( - - COUNT( * ) ) THEN 97 WHEN + 27 THEN NULL END + + AVG ( ALL + ( + 64 ) ) AS col2
----
109
NULL

skipif mysql # not compatible
query II rowsort label-5999
SELECT 74 + + 35, 21 * - CASE NULLIF ( - SUM ( DISTINCT - - 41 ), COUNT ( * ) ) WHEN + ( - - COUNT ( * ) ) THEN 97 WHEN + 27 THEN NULL END + + AVG ( ALL + ( + 64 ) ) AS col2
----
109
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT NULLIF ( - 59, - - 39 * + COUNT( * ) ) * + 29
----
-1711

skipif mysql # not compatible
query I rowsort label-6000
SELECT NULLIF ( - 59, - - 39 * + COUNT ( * ) ) * + 29
----
-1711

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT ALL + - 40 * - COUNT( * ) - - 65 * - - 14 AS col0
----
950

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL + - 40 * - COUNT ( * ) - - 65 * - - 14 AS col0
----
950

query I rowsort
SELECT 33 - - + 30
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6003
SELECT ALL - + COALESCE ( + COUNT( * ), - MIN( ALL - 50 ) * 85 * 62 + - 88 + COALESCE ( 6, CAST( NULL AS SIGNED ), + 10 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL - + COALESCE ( + COUNT ( * ), - MIN ( ALL - 50 ) * 85 * 62 + - 88 + COALESCE ( 6, CAST ( NULL AS INTEGER ), + 10 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT DISTINCT - COUNT( * ) - + - 36 * + 69 * + 71 AS col2
----
176363

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT - COUNT ( * ) - + - 36 * + 69 * + 71 AS col2
----
176363

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT 12 + + - SUM( 95 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-6005
SELECT 12 + + - SUM ( 95 ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT - CASE + 13 WHEN 93 THEN + 20 END * + COUNT( + ( + 79 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT - CASE + 13 WHEN 93 THEN + 20 END * + COUNT ( + ( + 79 ) ) AS col2
----
NULL

query I rowsort
SELECT 89 * + 75 AS col1
----
6675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6008
SELECT ALL - 5 DIV + MIN( DISTINCT 76 ) * 8 + + NULLIF ( - 94, - - 62 * - + 53 ) + + - ( + 59 )
----
-153

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - 5 / + MIN ( DISTINCT 76 ) * 8 + + NULLIF ( - 94, - - 62 * - + 53 ) + + - ( + 59 )
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6009
SELECT - 74 + + 73 AS col2, CAST( + - 86 AS SIGNED ) + 36 * - + NULLIF ( - - 59, 11 * 45 ) col0
----
-1
-2210

skipif mysql # not compatible
query II rowsort label-6009
SELECT - 74 + + 73 AS col2, CAST ( + - 86 AS INTEGER ) + 36 * - + NULLIF ( - - 59, 11 * 45 ) col0
----
-1
-2210

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT COUNT( DISTINCT 38 )
----
1

skipif mysql # not compatible
query I rowsort label-6010
SELECT COUNT ( DISTINCT 38 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6011
SELECT 81 DIV + + 68 - + 53
----
-52

skipif mysql # not compatible
query I rowsort label-6011
SELECT 81 / + + 68 - + 53
----
-52

query I rowsort
SELECT ALL 32 * + 53 + + 68
----
1764

onlyif mysql # aggregate syntax: 
query II rowsort label-6013
SELECT ( + - COUNT( * ) ) AS col1, 97
----
-1
97

skipif mysql # not compatible
query II rowsort label-6013
SELECT ( + - COUNT ( * ) ) AS col1, 97
----
-1
97

query I rowsort
SELECT ALL - 64 * + + 91 AS col1
----
-5824

query II rowsort
SELECT - 24 + 32 AS col1, 57 AS col0
----
8
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6016
SELECT DISTINCT + CAST( - 87 AS SIGNED ) * - 2 AS col2
----
174

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT + CAST ( - 87 AS INTEGER ) * - 2 AS col2
----
174

query I rowsort
SELECT ALL - COALESCE ( + 24, 80, + + 37 * + 92, 89 ) AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6018
SELECT ALL + 20 * - - CAST( + 42 AS SIGNED ) * - - COUNT( DISTINCT NULLIF ( - + 37, 51 ) ) + + NULLIF ( - 49, SUM( ALL - 25 ) ) + - + 47
----
744

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL + 20 * - - CAST ( + 42 AS INTEGER ) * - - COUNT ( DISTINCT NULLIF ( - + 37, 51 ) ) + + NULLIF ( - 49, SUM ( ALL - 25 ) ) + - + 47
----
744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6019
SELECT 37 + + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT 37 + + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT MIN( ALL - + 65 ) + + 29 * - 51
----
-1544

skipif mysql # not compatible
query I rowsort label-6020
SELECT MIN ( ALL - + 65 ) + + 29 * - 51
----
-1544

onlyif mysql # aggregate syntax: 
query II rowsort label-6021
SELECT - 43, - CASE 27 WHEN 72 * + COUNT( * ) THEN NULL WHEN + 92 THEN - 12 END col0
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-6021
SELECT - 43, - CASE 27 WHEN 72 * + COUNT ( * ) THEN NULL WHEN + 92 THEN - 12 END col0
----
-43
NULL

query II rowsort
SELECT 92, - 9 AS col0
----
92
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ( COUNT( * ) ) * + 14 * - 10
----
-140

skipif mysql # not compatible
query I rowsort label-6023
SELECT ( COUNT ( * ) ) * + 14 * - 10
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT ALL 3 + - ( + + 48 ) + + 38 + + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL 3 + - ( + + 48 ) + + 38 + + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-6025
SELECT 73 AS col2, - 92 - + - 13 * + - ( - CASE - COUNT( * ) WHEN - COUNT( * ) THEN - 39 END ) AS col0
----
73
-599

skipif mysql # not compatible
query II rowsort label-6025
SELECT 73 AS col2, - 92 - + - 13 * + - ( - CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN - 39 END ) AS col0
----
73
-599

query I rowsort
SELECT 85 + - - 76
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT DISTINCT 79 * COUNT( * ) * - 26 AS col2
----
-2054

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT 79 * COUNT ( * ) * - 26 AS col2
----
-2054

onlyif mysql # DIV for integer division: 
query I rowsort label-6028
SELECT 59 DIV - - 65
----
0

skipif mysql # not compatible
query I rowsort label-6028
SELECT 59 / - - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT ALL - COUNT( * ) + + 87 * - 56
----
-4873

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL - COUNT ( * ) + + 87 * - 56
----
-4873

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6030
SELECT ALL 8 DIV - - MAX( DISTINCT + - 6 ) AS col0, + 47 * - 71
----
-1
-3337

skipif mysql # not compatible
query II rowsort label-6030
SELECT ALL 8 / - - MAX ( DISTINCT + - 6 ) AS col0, + 47 * - 71
----
-1
-3337

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT ALL + COUNT( + 18 ) + 9 * + - 96 AS col0
----
-863

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL + COUNT ( + 18 ) + 9 * + - 96 AS col0
----
-863

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6032
SELECT DISTINCT 2 + - 56 + 75 * + COUNT( * ) DIV - - ( - - COUNT( * ) ), 45 + + 72 AS col1
----
21
117

skipif mysql # not compatible
query II rowsort label-6032
SELECT DISTINCT 2 + - 56 + 75 * + COUNT ( * ) / - - ( - - COUNT ( * ) ), 45 + + 72 AS col1
----
21
117

onlyif mysql # DIV for integer division: 
query I rowsort label-6033
SELECT 74 DIV 30 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6033
SELECT 74 / 30 AS col1
----
2

query I rowsort
SELECT 35 * - + COALESCE ( - 76, + 58 + + 83 ) + 13
----
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT COUNT( DISTINCT - + 21 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6035
SELECT COUNT ( DISTINCT - + 21 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6036
SELECT - 67 DIV - + MAX( DISTINCT - 3 ) + + 67 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6036
SELECT - 67 / - + MAX ( DISTINCT - 3 ) + + 67 AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6037
SELECT COUNT( * ) AS col2, 74 AS col1
----
1
74

skipif mysql # not compatible
query II rowsort label-6037
SELECT COUNT ( * ) AS col2, 74 AS col1
----
1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT MAX( + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-6038
SELECT MAX ( + 54 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6039
SELECT 65 + SUM( ALL + - CAST( - 90 AS SIGNED ) ) DIV + 52
----
66

skipif mysql # not compatible
query I rowsort label-6039
SELECT 65 + SUM ( ALL + - CAST ( - 90 AS INTEGER ) ) / + 52
----
66

query I rowsort
SELECT ALL + 20 * 10
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6041
SELECT ALL - - CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL - - CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT - 63 * - ( 89 ) col0
----
5607

query I rowsort
SELECT - - 48 + - 53 AS col0
----
-5

query I rowsort
SELECT DISTINCT - + 95 * + 61
----
-5795

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT ALL + CASE + 53 WHEN ( + - 61 ) THEN + - ( - + 53 ) - - NULLIF ( - NULLIF ( + - MIN( - 56 ), NULLIF ( + 73, + + 77 ) ), + 74 ) ELSE 70 END
----
70

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL + CASE + 53 WHEN ( + - 61 ) THEN + - ( - + 53 ) - - NULLIF ( - NULLIF ( + - MIN ( - 56 ), NULLIF ( + 73, + + 77 ) ), + 74 ) ELSE 70 END
----
70

query I rowsort
SELECT + + CASE - ( + ( 25 ) ) WHEN - + 67 THEN - 42 WHEN - + 44 THEN - 3 ELSE + + 61 + + 0 END + 56 * - + 29
----
-1563

query II rowsort
SELECT ALL - ( + 29 ) * - 75 * + + 88, + 13 * 34 AS col0
----
191400
442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6048
SELECT - - CAST( NULL AS SIGNED ) * 22 * - 22 * + - ( - 41 ) + + + 74 + - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6048
SELECT - - CAST ( NULL AS INTEGER ) * 22 * - 22 * + - ( - 41 ) + + + 74 + - 66 AS col1
----
NULL

query I rowsort
SELECT - 35 * + 77 * - 50 * - 27 AS col1
----
-3638250

onlyif mysql # aggregate syntax: 
query II rowsort label-6050
SELECT DISTINCT - 47 + + 85, + 55 + - ( MIN( DISTINCT + - 1 ) ) * + 79 * MIN( - 27 ) AS col1
----
38
-2078

skipif mysql # not compatible
query II rowsort label-6050
SELECT DISTINCT - 47 + + 85, + 55 + - ( MIN ( DISTINCT + - 1 ) ) * + 79 * MIN ( - 27 ) AS col1
----
38
-2078

query I rowsort
SELECT DISTINCT ( - 74 ) AS col2
----
-74

query I rowsort
SELECT - 32 * - 36 AS col0
----
1152

query I rowsort
SELECT ALL 44 * - 71
----
-3124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT - NULLIF ( + CAST( + - 61 AS SIGNED ), - - 31 ) * 53
----
3233

skipif mysql # not compatible
query I rowsort label-6054
SELECT - NULLIF ( + CAST ( + - 61 AS INTEGER ), - - 31 ) * 53
----
3233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6055
SELECT DISTINCT - ( - NULLIF ( - - 4, + + 62 + 63 - + COUNT( - - 25 ) + + + COUNT( * ) DIV CAST( + 12 AS SIGNED ) ) ) DIV ( + 38 )
----
0

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT - ( - NULLIF ( - - 4, + + 62 + 63 - + COUNT ( - - 25 ) + + + COUNT ( * ) / CAST ( + 12 AS INTEGER ) ) ) / ( + 38 )
----
0

query I rowsort
SELECT ALL 97 + + 92 + 78
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT + COUNT( * ) - 15
----
-14

skipif mysql # not compatible
query I rowsort label-6057
SELECT + COUNT ( * ) - 15
----
-14

query I rowsort
SELECT ALL + 29 * 13
----
377

query I rowsort
SELECT + 79 * 21 AS col1
----
1659

query I rowsort
SELECT DISTINCT 2 * + ( - - 30 ) AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6061
SELECT - COALESCE ( + + CAST( NULLIF ( 47, + 26 * + 74 ) AS SIGNED ), - 2 * COUNT( * ) * + SUM( ALL + 36 ) * + 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6061
SELECT - COALESCE ( + + CAST ( NULLIF ( 47, + 26 * + 74 ) AS INTEGER ), - 2 * COUNT ( * ) * + SUM ( ALL + 36 ) * + 47 ) AS col2
----
-47

query I rowsort
SELECT + 25 - - + 42
----
67

query I rowsort
SELECT ALL 1 - - 89 * 1 AS col2
----
90

query II rowsort
SELECT + 12 * - + 92 AS col1, - 49 AS col1
----
-1104
-49

query I rowsort
SELECT DISTINCT 42 * + 39
----
1638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6066
SELECT DISTINCT 42 DIV - 66 - + + COUNT( + 57 ) + - ( + 94 )
----
-95

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT 42 / - 66 - + + COUNT ( + 57 ) + - ( + 94 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6067
SELECT + 81 + 33 * - + SUM( DISTINCT + CAST( + 8 AS SIGNED ) )
----
-183

skipif mysql # not compatible
query I rowsort label-6067
SELECT + 81 + 33 * - + SUM ( DISTINCT + CAST ( + 8 AS INTEGER ) )
----
-183

query I rowsort
SELECT ALL - - 72 * + 6
----
432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT + + CAST( NULL AS SIGNED ) * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT + + CAST ( NULL AS INTEGER ) * 91
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + ( + + 90 ), + 37, 23 ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT MAX( 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6071
SELECT MAX ( 10 ) AS col2
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-6072
SELECT - + 94 DIV + 8 AS col1, - 59 AS col0
----
-11
-59

skipif mysql # not compatible
query II rowsort label-6072
SELECT - + 94 / + 8 AS col1, - 59 AS col0
----
-11
-59

query I rowsort
SELECT ALL + + 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT + - NULLIF ( - 46, + COUNT( * ) / 12 + - 8 + - 44 * - MIN( + + 37 ) + - 88 - + 32 ) + - COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6074
SELECT + - NULLIF ( - 46, + COUNT ( * ) / 12 + - 8 + - 44 * - MIN ( + + 37 ) + - 88 - + 32 ) + - COUNT ( * ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT DISTINCT + - ( - SUM( DISTINCT + 83 ) )
----
83

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT + - ( - SUM ( DISTINCT + 83 ) )
----
83

query I rowsort
SELECT ALL - 53 * + CASE + COALESCE ( - - ( - 57 ), + 78 * + 6 - - 57 + 61 + 90 * + 99 / + + 75 ) WHEN 0 THEN NULL WHEN - 57 THEN NULL ELSE 69 END + - 78 + - + AVG ( ALL + 44 )
----
NULL

query I rowsort
SELECT ALL + - 27 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6078
SELECT DISTINCT - + 47 * - COUNT( * ) + 92 DIV + 62, - CAST( + + COUNT( DISTINCT - ( + 27 ) ) AS SIGNED ) + - - COUNT( ALL + 83 ) AS col1
----
48
0

skipif mysql # not compatible
query II rowsort label-6078
SELECT DISTINCT - + 47 * - COUNT ( * ) + 92 / + 62, - CAST ( + + COUNT ( DISTINCT - ( + 27 ) ) AS INTEGER ) + - - COUNT ( ALL + 83 ) AS col1
----
48
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6079
SELECT - COUNT( * ) + - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6079
SELECT - COUNT ( * ) + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-2

query I rowsort
SELECT + COALESCE ( - - 52, - 87 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT - 42 - + ( + 36 ) + 98 * COUNT( * ) * + 7
----
608

skipif mysql # not compatible
query I rowsort label-6081
SELECT - 42 - + ( + 36 ) + 98 * COUNT ( * ) * + 7
----
608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6082
SELECT - ( + 54 ) - - 75 + + CAST( NULL AS SIGNED ) + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT - ( + 54 ) - - 75 + + CAST ( NULL AS INTEGER ) + 88 AS col2
----
NULL

query I rowsort
SELECT ALL - 42 * + COALESCE ( - 29, - 67 )
----
1218

query I rowsort
SELECT - 9 + 30 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT - COUNT( * ) * - CASE 10 WHEN + 13 THEN NULL ELSE + - 90 END col0
----
-90

skipif mysql # not compatible
query I rowsort label-6085
SELECT - COUNT ( * ) * - CASE 10 WHEN + 13 THEN NULL ELSE + - 90 END col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT ALL 35 * 90 + - ( - 53 ) / + CASE 92 WHEN COUNT( * ) + - 27 - - + 31 THEN 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL 35 * 90 + - ( - 53 ) / + CASE 92 WHEN COUNT ( * ) + - 27 - - + 31 THEN 32 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT DISTINCT - SUM( 70 ) * + - 73 col2
----
5110

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT - SUM ( 70 ) * + - 73 col2
----
5110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6088
SELECT ALL ( COUNT( * ) ) * SUM( ALL CAST( - 18 AS SIGNED ) ) - - 37 + 86
----
105

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL ( COUNT ( * ) ) * SUM ( ALL CAST ( - 18 AS INTEGER ) ) - - 37 + 86
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6089
SELECT - ( 25 ) + CAST( + - 1 AS SIGNED ) * 25, 65 AS col0
----
-50
65

skipif mysql # not compatible
query II rowsort label-6089
SELECT - ( 25 ) + CAST ( + - 1 AS INTEGER ) * 25, 65 AS col0
----
-50
65

query I rowsort
SELECT DISTINCT - 88 + - - 71
----
-17

query I rowsort
SELECT - 55 + + - ( + 99 ) + + 97 * + 76 AS col0
----
7218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6092
SELECT DISTINCT CAST( - 26 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT CAST ( - 26 AS INTEGER )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT - COUNT( * ) * + - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6093
SELECT - COUNT ( * ) * + - COUNT ( * ) AS col2
----
1

query II rowsort
SELECT + ( - + 14 ) + - 46 AS col2, 89 AS col0
----
-60
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6095
SELECT - COUNT( * ) DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-6095
SELECT - COUNT ( * ) / + 71
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT ALL + 98 DIV 95 * + + 6 * - + 55
----
-330

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL + 98 / 95 * + + 6 * - + 55
----
-330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6097
SELECT + 25 + 5 - COUNT( - + 39 ) * - - 36 - + 94 + - 6 DIV + COUNT( * ) AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-6097
SELECT + 25 + 5 - COUNT ( - + 39 ) * - - 36 - + 94 + - 6 / + COUNT ( * ) AS col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL COUNT( * ) - + 0
----
1

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL COUNT ( * ) - + 0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6099
SELECT - ( + 95 ) DIV + + 55
----
-1

skipif mysql # not compatible
query I rowsort label-6099
SELECT - ( + 95 ) / + + 55
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6100
SELECT ALL + 99 DIV - + 1 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL + 99 / - + 1 AS col0
----
-99

query I rowsort
SELECT ALL 83 * - 17
----
-1411

query I rowsort
SELECT ALL + 81 * - 92
----
-7452

query I rowsort
SELECT DISTINCT - 26 * 54 AS col1
----
-1404

query II rowsort
SELECT - + 49 AS col1, 94 * 33 AS col1
----
-49
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT + COUNT( * ) * + 55 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6105
SELECT + COUNT ( * ) * + 55 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT 95 * + COUNT( * ) * + 29
----
2755

skipif mysql # not compatible
query I rowsort label-6106
SELECT 95 * + COUNT ( * ) * + 29
----
2755

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6107
SELECT + - 99 * - 94 - - - 26 + COUNT( * ) DIV + ( 89 )
----
9280

skipif mysql # not compatible
query I rowsort label-6107
SELECT + - 99 * - 94 - - - 26 + COUNT ( * ) / + ( 89 )
----
9280

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT MIN( + + 88 ) * - + 3 AS col2
----
-264

skipif mysql # not compatible
query I rowsort label-6108
SELECT MIN ( + + 88 ) * - + 3 AS col2
----
-264

query I rowsort
SELECT 18 * ( + 50 ) AS col0
----
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6110
SELECT DISTINCT - ( - 5 ) + + COUNT( * ) + - CASE + CAST( NULL AS SIGNED ) WHEN 58 / + + 19 THEN NULL ELSE 66 + - COALESCE ( SUM( ALL + 84 ), + 67 + ( 7 ) ) END * - - 60 AS col1
----
1086

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT - ( - 5 ) + + COUNT ( * ) + - CASE + CAST ( NULL AS INTEGER ) WHEN 58 / + + 19 THEN NULL ELSE 66 + - COALESCE ( SUM ( ALL + 84 ), + 67 + ( 7 ) ) END * - - 60 AS col1
----
1086

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL 12 + + COUNT( * ) + + - 67 * + + ( - 22 ) * - 90 / + CASE + - COUNT( * ) WHEN + 57 THEN - CASE + 93 WHEN + 36 THEN - - NULLIF ( 90, + COALESCE ( - - 60, + - SUM( + ( - 2 ) ) ) ) / + - CASE - 1 WHEN 57 THEN - MAX( + 90 ) * + SUM( ALL + 70 ) END - - 6 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL 12 + + COUNT ( * ) + + - 67 * + + ( - 22 ) * - 90 / + CASE + - COUNT ( * ) WHEN + 57 THEN - CASE + 93 WHEN + 36 THEN - - NULLIF ( 90, + COALESCE ( - - 60, + - SUM ( + ( - 2 ) ) ) ) / + - CASE - 1 WHEN 57 THEN - MAX ( + 90 ) * + SUM ( ALL + 70 ) END - - 6 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT ALL - 77 + + - 74 + ( - + 27 ) * + 26 * + 90 * - MIN( ALL 44 )
----
2779769

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL - 77 + + - 74 + ( - + 27 ) * + 26 * + 90 * - MIN ( ALL 44 )
----
2779769

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT COUNT( ALL + 90 ) + - 28 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-6113
SELECT COUNT ( ALL + 90 ) + - 28 AS col0
----
-27

query I rowsort
SELECT DISTINCT 60 + - 49
----
11

query II rowsort
SELECT ALL - + 34, - 73 AS col0
----
-34
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6116
SELECT - 57 * + COALESCE ( + 86, - 12 ) + - - CAST( NULL AS SIGNED ) / + CASE ( + 23 ) WHEN - 16 - + 20 + + 50 THEN ( + ( - 67 ) ) * COUNT( * ) END - + NULLIF ( + - 28, - 68 ) * - + NULLIF ( + - 45, 72 ) - 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT - 57 * + COALESCE ( + 86, - 12 ) + - - CAST ( NULL AS INTEGER ) / + CASE ( + 23 ) WHEN - 16 - + 20 + + 50 THEN ( + ( - 67 ) ) * COUNT ( * ) END - + NULLIF ( + - 28, - 68 ) * - + NULLIF ( + - 45, 72 ) - 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT ALL - 33 + - CASE 93 WHEN + COUNT( * ) THEN NULL WHEN ( + 30 ) + + 50 THEN + - 77 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL - 33 + - CASE 93 WHEN + COUNT ( * ) THEN NULL WHEN ( + 30 ) + + 50 THEN + - 77 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6118
SELECT 77 * - + 0 DIV + - MAX( ALL - 63 )
----
0

skipif mysql # not compatible
query I rowsort label-6118
SELECT 77 * - + 0 / + - MAX ( ALL - 63 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6119
SELECT ALL - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT DISTINCT - 83 + COALESCE ( + - 33, + 62, - + 39 + + 89 + - - 3 * - 73 * - + COUNT( * ) + 37 )
----
-116

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT - 83 + COALESCE ( + - 33, + 62, - + 39 + + 89 + - - 3 * - 73 * - + COUNT ( * ) + 37 )
----
-116

query I rowsort
SELECT 82 * 95 * - + ( - COALESCE ( 13, + 13 ) ) - + 95 + 26 * - 89 * + + 45 AS col2
----
-2955

query I rowsort
SELECT ALL + + 61 + + 17 + + ( - 2 ) * - 46 * - - 73 * - ( + 30 ) + - 98 + + 2
----
-201498

onlyif mysql # aggregate syntax: 
query II rowsort label-6123
SELECT DISTINCT - 92, + COUNT( + 96 ) AS col1
----
-92
1

skipif mysql # not compatible
query II rowsort label-6123
SELECT DISTINCT - 92, + COUNT ( + 96 ) AS col1
----
-92
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6124
SELECT ALL + SUM( ALL + 49 ) * + - 97 + CASE - + 65 WHEN 83 / + MIN( - NULLIF ( + CAST( NULL AS SIGNED ), + 21 ) ) THEN - COUNT( * ) + - + 20 + + - MAX( + 55 ) ELSE NULL END + + 64 + + 23 * + 77 + - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL + SUM ( ALL + 49 ) * + - 97 + CASE - + 65 WHEN 83 / + MIN ( - NULLIF ( + CAST ( NULL AS INTEGER ), + 21 ) ) THEN - COUNT ( * ) + - + 20 + + - MAX ( + 55 ) ELSE NULL END + + 64 + + 23 * + 77 + - 92 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6125
SELECT 75 DIV - + 7 col2
----
-10

skipif mysql # not compatible
query I rowsort label-6125
SELECT 75 / - + 7 col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL 85 - COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL 85 - COUNT ( * ) AS col2
----
84

query I rowsort
SELECT ALL - 11 * - + 43 AS col1
----
473

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6128
SELECT + 18 * - 0 * + - 60 - - COUNT( * ) DIV 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6128
SELECT + 18 * - 0 * + - 60 - - COUNT ( * ) / 79 AS col2
----
0

query II rowsort
SELECT - 4 AS col2, + 45 AS col0
----
-4
45

query I rowsort
SELECT 65 - + 12 AS col2
----
53

query I rowsort
SELECT ALL + 12 * 85 AS col2
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT DISTINCT + 94 * - + CASE - 9 WHEN + 51 THEN NULL WHEN + + COUNT( * ) + - + 40 + - 83 * 73 THEN + - 10 / + + 32 WHEN - + MIN( DISTINCT + 61 ) / 27 + - 68 + 58 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT DISTINCT + 94 * - + CASE - 9 WHEN + 51 THEN NULL WHEN + + COUNT ( * ) + - + 40 + - 83 * 73 THEN + - 10 / + + 32 WHEN - + MIN ( DISTINCT + 61 ) / 27 + - 68 + 58 THEN NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6133
SELECT - 18 AS col2, + 41 - - CAST( NULL AS SIGNED ) * - 75
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-6133
SELECT - 18 AS col2, + 41 - - CAST ( NULL AS INTEGER ) * - 75
----
-18
NULL

query I rowsort
SELECT 94 * - 50 AS col1
----
-4700

query I rowsort
SELECT ALL 78 * - 55 * - 91
----
390390

onlyif mysql # DIV for integer division: 
query II rowsort label-6136
SELECT 0 - + 84 + - + NULLIF ( + + 56, + + 86 * + 18 ) * - 56 DIV + ( + - 1 ) AS col1, 22 DIV - 31 AS col0
----
-3220
0

skipif mysql # not compatible
query II rowsort label-6136
SELECT 0 - + 84 + - + NULLIF ( + + 56, + + 86 * + 18 ) * - 56 / + ( + - 1 ) AS col1, 22 / - 31 AS col0
----
-3220
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6137
SELECT DISTINCT + 94 * + 78 AS col1, + SUM( ALL - 92 ) DIV 26
----
7332
-3

skipif mysql # not compatible
query II rowsort label-6137
SELECT DISTINCT + 94 * + 78 AS col1, + SUM ( ALL - 92 ) / 26
----
7332
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6138
SELECT ALL ( - + 31 ) DIV - - MAX( ALL + - 10 ) + + + 62 col1
----
65

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL ( - + 31 ) / - - MAX ( ALL + - 10 ) + + + 62 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT COUNT( * ) * - 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6139
SELECT COUNT ( * ) * - 20 AS col2
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6140
SELECT COUNT( * ) DIV - + 63 * - + 93 * - MIN( ALL - + ( + 84 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6140
SELECT COUNT ( * ) / - + 63 * - + 93 * - MIN ( ALL - + ( + 84 ) ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6141
SELECT - COALESCE ( - 94, - 3 * + - ( - 17 ) - - COALESCE ( - 15, - 53 ) + - + SUM( ALL 1 ) * - + ( + 89 ), + - COALESCE ( 94, CASE - 30 WHEN + COUNT( - 26 ) + 14 * - 30 DIV - 96 + 88 + + 70 THEN + + 20 END DIV + - 15 + + NULLIF ( + 61, + + 35 ), - + COUNT( * ) - - NULLIF ( 63, + COALESCE ( SUM( 16 ), + 71 + + 43 + 42 + - 18 * - COUNT( * ) ) - + 48 ) * - 44 * - 60, 43 - 33 + + 27 + - 67 DIV + CAST( NULL AS SIGNED ) ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-6141
SELECT - COALESCE ( - 94, - 3 * + - ( - 17 ) - - COALESCE ( - 15, - 53 ) + - + SUM ( ALL 1 ) * - + ( + 89 ), + - COALESCE ( 94, CASE - 30 WHEN + COUNT ( - 26 ) + 14 * - 30 / - 96 + 88 + + 70 THEN + + 20 END / + - 15 + + NULLIF ( + 61, + + 35 ), - + COUNT ( * ) - - NULLIF ( 63, + COALESCE ( SUM ( 16 ), + 71 + + 43 + 42 + - 18 * - COUNT ( * ) ) - + 48 ) * - 44 * - 60, 43 - 33 + + 27 + - 67 / + CAST ( NULL AS INTEGER ) ) ) AS col2
----
94

query II rowsort
SELECT - 82, + 19 - - 83 AS col2
----
-82
102

query I rowsort
SELECT 12 + + 42
----
54

query I rowsort
SELECT - 99 - + - 74 - - 27 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6145
SELECT COUNT( * ) DIV - 29 * - 32
----
0

skipif mysql # not compatible
query I rowsort label-6145
SELECT COUNT ( * ) / - 29 * - 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT - COUNT( * ) + 23
----
22

skipif mysql # not compatible
query I rowsort label-6146
SELECT - COUNT ( * ) + 23
----
22

query I rowsort
SELECT ALL - 28 + + - 11 + - 11 AS col0
----
-50

query I rowsort
SELECT ALL 5 + 48
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6149
SELECT - ( 89 ) DIV 14 DIV 14 + + - 96
----
-96

skipif mysql # not compatible
query I rowsort label-6149
SELECT - ( 89 ) / 14 / 14 + + - 96
----
-96

query I rowsort
SELECT 12 * - - 7 col0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6151
SELECT DISTINCT + + 84 * + 41 - - 15 DIV + 58
----
3444

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT + + 84 * + 41 - - 15 / + 58
----
3444

query I rowsort
SELECT 40 * - 96 + - 43
----
-3883

query II rowsort
SELECT 22, 54 AS col2
----
22
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT DISTINCT - - MAX( 98 ) - + - COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT - - MAX ( 98 ) - + - COUNT ( * ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT ( + 11 ) * + 15 + ( - 93 ) + COUNT( ALL ( 98 ) ) - + + 7 - - 96 * + - 15 * - COUNT( * ) * 89 * - 46
----
-5895294

skipif mysql # not compatible
query I rowsort label-6155
SELECT ( + 11 ) * + 15 + ( - 93 ) + COUNT ( ALL ( 98 ) ) - + + 7 - - 96 * + - 15 * - COUNT ( * ) * 89 * - 46
----
-5895294

query II rowsort
SELECT ALL 85 - - + 88 AS col0, + 39
----
173
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6157
SELECT ALL 44 DIV + 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL 44 / + 54 AS col1
----
0

query I rowsort
SELECT DISTINCT 79 * + 59 AS col0
----
4661

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT + 52 * - - 97 + MIN( + + 3 ) AS col2
----
5047

skipif mysql # not compatible
query I rowsort label-6159
SELECT + 52 * - - 97 + MIN ( + + 3 ) AS col2
----
5047

query I rowsort
SELECT 10 - - + 53
----
63

query I rowsort
SELECT DISTINCT 43 * - 55 * + 81 AS col2
----
-191565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6162
SELECT 94 * - CAST( + + 91 AS SIGNED )
----
-8554

skipif mysql # not compatible
query I rowsort label-6162
SELECT 94 * - CAST ( + + 91 AS INTEGER )
----
-8554

query II rowsort
SELECT 0 + - 48 AS col0, + 28 col0
----
-48
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6164
SELECT DISTINCT - 35 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT - 35 / 76
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6165
SELECT ALL SUM( DISTINCT + 5 ) AS col1, 25 + - - 59 + + 8 * + 42
----
5
420

skipif mysql # not compatible
query II rowsort label-6165
SELECT ALL SUM ( DISTINCT + 5 ) AS col1, 25 + - - 59 + + 8 * + 42
----
5
420

query I rowsort
SELECT + 66 + 33
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT - 42 + - COUNT( 90 ) + + 57 + 32 * - + 50 * - 30 AS col1
----
48014

skipif mysql # not compatible
query I rowsort label-6167
SELECT - 42 + - COUNT ( 90 ) + + 57 + 32 * - + 50 * - 30 AS col1
----
48014

query I rowsort
SELECT - 18 + 4
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT ALL COALESCE ( - + 92, - COALESCE ( + + 24, COUNT( + 88 ), - 73 ), - MIN( ( 64 ) ) ) + - 67 * 35 * - 84 + MAX( - + 45 ) AS col1
----
196843

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL COALESCE ( - + 92, - COALESCE ( + + 24, COUNT ( + 88 ), - 73 ), - MIN ( ( 64 ) ) ) + - 67 * 35 * - 84 + MAX ( - + 45 ) AS col1
----
196843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6170
SELECT - CASE + CASE AVG ( 60 ) WHEN + - MAX( DISTINCT + ( + ( + CAST( NULL AS DECIMAL ) ) ) ) THEN - 0 + 87 END WHEN 20 * + 48 + 11 THEN 1 WHEN - CAST( COUNT( ALL - 13 ) AS SIGNED ) * 70 THEN NULL WHEN 92 THEN SUM( DISTINCT + 54 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT - CASE + CASE AVG ( 60 ) WHEN + - MAX ( DISTINCT + ( + ( + CAST ( NULL AS REAL ) ) ) ) THEN - 0 + 87 END WHEN 20 * + 48 + 11 THEN 1 WHEN - CAST ( COUNT ( ALL - 13 ) AS INTEGER ) * 70 THEN NULL WHEN 92 THEN SUM ( DISTINCT + 54 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6171
SELECT DISTINCT + - 61 + + 90 * CASE + MAX( ALL - 11 ) WHEN - 56 THEN - 40 WHEN 91 + + CAST( NULL AS SIGNED ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT DISTINCT + - 61 + + 90 * CASE + MAX ( ALL - 11 ) WHEN - 56 THEN - 40 WHEN 91 + + CAST ( NULL AS INTEGER ) THEN NULL END col2
----
NULL

query II rowsort
SELECT DISTINCT - 99 + 69 * NULLIF ( - 18, + 80 + - ( + + 82 ) ) AS col2, 71
----
-1341
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6173
SELECT ALL - - CAST( NULL AS SIGNED ) + ( - 88 ) + + COALESCE ( - 92, + + 65 * - 16 * ( + 44 ), 24 ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL - - CAST ( NULL AS INTEGER ) + ( - 88 ) + + COALESCE ( - 92, + + 65 * - 16 * ( + 44 ), 24 ) * 0
----
NULL

query I rowsort
SELECT ALL - - 85 * + 4 * + 9 + + 23 + + ( - 5 ) + - 86 + 56 + + 66 AS col2
----
3114

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT + ( - - MAX( DISTINCT 24 ) )
----
24

skipif mysql # not compatible
query I rowsort label-6175
SELECT + ( - - MAX ( DISTINCT 24 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL - 33 * + - COUNT( + - 27 )
----
33

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - 33 * + - COUNT ( + - 27 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6177
SELECT ALL CAST( NULL AS SIGNED ) * - - CASE - 19 WHEN - COUNT( ALL + 38 ) + - 79 + 29 THEN ( 8 ) * - - 38 ELSE - 97 + 22 + - ( + 78 ) + - 50 + + 94 * + 34 + - - 16 * - 11 * + 47 + - - 19 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL CAST ( NULL AS INTEGER ) * - - CASE - 19 WHEN - COUNT ( ALL + 38 ) + - 79 + 29 THEN ( 8 ) * - - 38 ELSE - 97 + 22 + - ( + 78 ) + - 50 + + 94 * + 34 + - - 16 * - 11 * + 47 + - - 19 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT ALL - 84 * COUNT( * ) * 92 AS col0
----
-7728

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL - 84 * COUNT ( * ) * 92 AS col0
----
-7728

query I rowsort
SELECT - 50 * - 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6180
SELECT - COALESCE ( 89, + 75 + - 92 ) * 85 + + + 53, + COUNT( * ) AS col1
----
-7512
1

skipif mysql # not compatible
query II rowsort label-6180
SELECT - COALESCE ( 89, + 75 + - 92 ) * 85 + + + 53, + COUNT ( * ) AS col1
----
-7512
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + COUNT( 27 )
----
1

skipif mysql # not compatible
query I rowsort label-6181
SELECT + COUNT ( 27 )
----
1

query I rowsort
SELECT ALL + 11 * - 62
----
-682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6183
SELECT COALESCE ( - 61, + + CAST( NULL AS SIGNED ) * + + 47 DIV + + MAX( ALL + 64 ) - + + 37, + 6 ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-6183
SELECT COALESCE ( - 61, + + CAST ( NULL AS INTEGER ) * + + 47 / + + MAX ( ALL + 64 ) - + + 37, + 6 ) col2
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6184
SELECT - 91 * - 0 DIV - 17 + + - 60 + 13 * - 47 * 68 AS col2
----
-41608

skipif mysql # not compatible
query I rowsort label-6184
SELECT - 91 * - 0 / - 17 + + - 60 + 13 * - 47 * 68 AS col2
----
-41608

query II rowsort
SELECT + 48 AS col2, + 26 col2
----
48
26

query I rowsort
SELECT + 85 * - 79
----
-6715

query I rowsort
SELECT - 96 * 95
----
-9120

onlyif mysql # aggregate syntax: 
query II rowsort label-6188
SELECT MIN( DISTINCT - + CASE 61 WHEN COALESCE ( + - 29, NULLIF ( - 17, - - 66 ) * + - 37 ) THEN ( + + 51 ) END ), + CASE - 16 WHEN ( COALESCE ( + 98, + 38, - 93 / 63 * - 13 ) ) THEN NULL ELSE SUM( + + 26 ) + - 50 END * 82 * - + 58 AS col1
----
NULL
114144

skipif mysql # not compatible
query II rowsort label-6188
SELECT MIN ( DISTINCT - + CASE 61 WHEN COALESCE ( + - 29, NULLIF ( - 17, - - 66 ) * + - 37 ) THEN ( + + 51 ) END ), + CASE - 16 WHEN ( COALESCE ( + 98, + 38, - 93 / 63 * - 13 ) ) THEN NULL ELSE SUM ( + + 26 ) + - 50 END * 82 * - + 58 AS col1
----
NULL
114144

query II rowsort
SELECT DISTINCT + 32, - 37 * + - 36 col0
----
32
1332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6190
SELECT ALL + COALESCE ( + 64, - + CAST( NULL AS SIGNED ) )
----
64

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL + COALESCE ( + 64, - + CAST ( NULL AS INTEGER ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT + 66 * - NULLIF ( + - COUNT( * ), - 2 * + 53 ) col2
----
66

skipif mysql # not compatible
query I rowsort label-6191
SELECT + 66 * - NULLIF ( + - COUNT ( * ), - 2 * + 53 ) col2
----
66

query I rowsort
SELECT ALL 78 * - 58 AS col1
----
-4524

onlyif mysql # aggregate syntax: 
query II rowsort label-6193
SELECT COUNT( * ) AS col2, + COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-6193
SELECT COUNT ( * ) AS col2, + COUNT ( * ) col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT - ( - COUNT( 19 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6194
SELECT - ( - COUNT ( 19 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6195
SELECT + 19 DIV + + 94
----
0

skipif mysql # not compatible
query I rowsort label-6195
SELECT + 19 / + + 94
----
0

query I rowsort
SELECT ALL 24 + + + 52
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT + 30 - - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-6197
SELECT + 30 - - COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT COUNT( - + 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6198
SELECT COUNT ( - + 30 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6199
SELECT + 83 DIV + - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-6199
SELECT + 83 / + - COUNT ( * )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6200
SELECT ALL SUM( DISTINCT 70 ) + - ( - - 68 ) + + COUNT( ALL - 44 ) * CAST( - 30 AS SIGNED ) * 80 + - - 85 AS col0
----
-2313

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL SUM ( DISTINCT 70 ) + - ( - - 68 ) + + COUNT ( ALL - 44 ) * CAST ( - 30 AS INTEGER ) * 80 + - - 85 AS col0
----
-2313

onlyif mysql # DIV for integer division: 
query I rowsort label-6201
SELECT DISTINCT - 39 DIV + 95 + + 20 * - - ( 54 ) * - 9
----
-9720

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT - 39 / + 95 + + 20 * - - ( 54 ) * - 9
----
-9720

query I rowsort
SELECT ALL 64 + 65 + - 5 * - 12 * + + 28 AS col2
----
1809

query I rowsort
SELECT ALL - ( - 29 ) + 2 AS col0
----
31

query I rowsort
SELECT + 48 - + 97 AS col1
----
-49

query I rowsort
SELECT + - 89 * 51
----
-4539

onlyif mysql # DIV for integer division: 
query I rowsort label-6206
SELECT DISTINCT + 78 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT + 78 / 88 AS col2
----
0

query I rowsort
SELECT - ( + 35 ) AS col1
----
-35

query I rowsort
SELECT ALL - 45 + - 40 * - ( + + 31 ) * 99 AS col1
----
122715

query I rowsort
SELECT + - 40 + - 20
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6210
SELECT + + 65 + 58 + COUNT( * ) DIV COUNT( * ) * COUNT( * ) * - 9 * - 15 * - 65 * - ( + 44 )
----
386223

skipif mysql # not compatible
query I rowsort label-6210
SELECT + + 65 + 58 + COUNT ( * ) / COUNT ( * ) * COUNT ( * ) * - 9 * - 15 * - 65 * - ( + 44 )
----
386223

query I rowsort
SELECT ALL - 54 * + 41 + + - 33
----
-2247

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT + - COUNT( DISTINCT - 84 ) + 28 + + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-6212
SELECT + - COUNT ( DISTINCT - 84 ) + 28 + + COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6213
SELECT ALL + 34, + 51 * COUNT( ALL - 13 ) AS col2
----
34
51

skipif mysql # not compatible
query II rowsort label-6213
SELECT ALL + 34, + 51 * COUNT ( ALL - 13 ) AS col2
----
34
51

query I rowsort
SELECT - - 21 col0
----
21

query I rowsort
SELECT ALL + COALESCE ( - 19, + 95 + + 71 + + 93, + 9, 15 )
----
-19

query I rowsort
SELECT ALL 33 * + - 30
----
-990

query I rowsort
SELECT - 77 + 82
----
5

query I rowsort
SELECT + - ( 88 )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6219
SELECT + - 38 DIV + 37 + 78 AS col1, COUNT( - 7 ) AS col1
----
77
1

skipif mysql # not compatible
query II rowsort label-6219
SELECT + - 38 / + 37 + 78 AS col1, COUNT ( - 7 ) AS col1
----
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT - COUNT( * ) * 37 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-6220
SELECT - COUNT ( * ) * 37 AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6221
SELECT COUNT( * ) * - 83 + CAST( 16 AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6221
SELECT COUNT ( * ) * - 83 + CAST ( 16 AS INTEGER ) AS col1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-6222
SELECT - 85 + + 4 DIV 22 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6222
SELECT - 85 + + 4 / 22 AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6223
SELECT DISTINCT + COALESCE ( + 85, + MAX( ALL 99 ) - + + 82, + 16, + ( CASE - 17 WHEN + 33 * + 2 * + 9 / 31 - + 9 + 12 * + 97 + - CAST( + SUM( + - 28 ) AS SIGNED ) + + COUNT( * ) * 41 THEN + COUNT( * ) WHEN - 40 * - 54 * + 21 THEN NULL END ) - + - 78 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT + COALESCE ( + 85, + MAX ( ALL 99 ) - + + 82, + 16, + ( CASE - 17 WHEN + 33 * + 2 * + 9 / 31 - + 9 + 12 * + 97 + - CAST ( + SUM ( + - 28 ) AS INTEGER ) + + COUNT ( * ) * 41 THEN + COUNT ( * ) WHEN - 40 * - 54 * + 21 THEN NULL END ) - + - 78 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT 44 * + - 86 * - - ( + 18 ) - MAX( - ( + 89 ) )
----
-68023

skipif mysql # not compatible
query I rowsort label-6224
SELECT 44 * + - 86 * - - ( + 18 ) - MAX ( - ( + 89 ) )
----
-68023

query I rowsort
SELECT ALL + 53 * 67 AS col2
----
3551

query I rowsort
SELECT 19 * 4 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6227
SELECT ALL - 81 + 26 + 36 + + 7 * + COUNT( * ) * CASE - 35 WHEN - + 53 THEN NULL WHEN - CAST( + - 99 AS SIGNED ) / - - 59 * - 91 - + + 79 / + NULLIF ( + 63, - 49 ) * - + 73 - CASE - 3 WHEN + 27 THEN COUNT( * ) + - ( + 80 ) * + 39 / - - 62 * - - 67 + - - SUM( - 45 ) END + - COUNT( * ) THEN - NULLIF ( - + 94, 17 * - 1 * + 57 + + - 85 ) / - COUNT( * ) END / - - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL - 81 + 26 + 36 + + 7 * + COUNT ( * ) * CASE - 35 WHEN - + 53 THEN NULL WHEN - CAST ( + - 99 AS INTEGER ) / - - 59 * - 91 - + + 79 / + NULLIF ( + 63, - 49 ) * - + 73 - CASE - 3 WHEN + 27 THEN COUNT ( * ) + - ( + 80 ) * + 39 / - - 62 * - - 67 + - - SUM ( - 45 ) END + - COUNT ( * ) THEN - NULLIF ( - + 94, 17 * - 1 * + 57 + + - 85 ) / - COUNT ( * ) END / - - 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT COUNT( * ) - - 75
----
76

skipif mysql # not compatible
query I rowsort label-6228
SELECT COUNT ( * ) - - 75
----
76

query I rowsort
SELECT DISTINCT - ( - - 64 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT DISTINCT 36 + - ( - + COUNT( * ) ) col0
----
37

skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT 36 + - ( - + COUNT ( * ) ) col0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6231
SELECT DISTINCT - 64 + - 25 + - 27 DIV - 1
----
-62

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT - 64 + - 25 + - 27 / - 1
----
-62

query I rowsort
SELECT ALL 49 + 64 + - + 11 + - 47 AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-6233
SELECT + 18 + - + 93 + - 87 + + - 98 DIV - 59 + - 96 * - 25
----
2239

skipif mysql # not compatible
query I rowsort label-6233
SELECT + 18 + - + 93 + - 87 + + - 98 / - 59 + - 96 * - 25
----
2239

onlyif mysql # aggregate syntax: 
query II rowsort label-6234
SELECT COUNT( DISTINCT 79 ), 37 col0
----
1
37

skipif mysql # not compatible
query II rowsort label-6234
SELECT COUNT ( DISTINCT 79 ), 37 col0
----
1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT - COALESCE ( - - COUNT( * ), COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6235
SELECT - COALESCE ( - - COUNT ( * ), COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT + 45 + - 49 + - 90 AS col1
----
-94

query I rowsort
SELECT ALL - 49 - 0 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT + 85 * COALESCE ( + COUNT( * ), + - COALESCE ( 63, + 98 + 40 ), + 17 )
----
85

skipif mysql # not compatible
query I rowsort label-6238
SELECT + 85 * COALESCE ( + COUNT ( * ), + - COALESCE ( 63, + 98 + 40 ), + 17 )
----
85

query I rowsort
SELECT 64 * - + 83
----
-5312

onlyif mysql # aggregate syntax: 
query II rowsort label-6240
SELECT + ( - COUNT( * ) ) + + + 47 * - 13 AS col1, - 69 AS col0
----
-612
-69

skipif mysql # not compatible
query II rowsort label-6240
SELECT + ( - COUNT ( * ) ) + + + 47 * - 13 AS col1, - 69 AS col0
----
-612
-69

query I rowsort
SELECT DISTINCT - 16 - + ( - + 28 ) + + 51 + - + 6 * - - ( - - 39 ) AS col0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT NULLIF ( - 61, COUNT( * ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-6242
SELECT NULLIF ( - 61, COUNT ( * ) ) AS col2
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6243
SELECT 56 + - 18 DIV 17 * + 73 DIV - + ( + + 27 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-6243
SELECT 56 + - 18 / 17 * + 73 / - + ( + + 27 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT COUNT( * ) * + 31 * 41
----
1271

skipif mysql # not compatible
query I rowsort label-6244
SELECT COUNT ( * ) * + 31 * 41
----
1271

query I rowsort
SELECT DISTINCT + 55 * - - 97 + - - 10
----
5345

query I rowsort
SELECT ALL + ( + - 47 )
----
-47

query I rowsort
SELECT 66 + 26 + + 27 AS col1
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6248
SELECT DISTINCT + NULLIF ( CAST( - 98 AS SIGNED ), + + ( - 5 ) ) * + 7 * - 49 + 51 * + - 34 - - 99 AS col0
----
31979

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT + NULLIF ( CAST ( - 98 AS INTEGER ), + + ( - 5 ) ) * + 7 * - 49 + 51 * + - 34 - - 99 AS col0
----
31979

query I rowsort
SELECT + 75 * + - 57 + - 6 AS col1
----
-4281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6250
SELECT ALL + SUM( DISTINCT - 55 ) DIV COALESCE ( - - 52, - 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL + SUM ( DISTINCT - 55 ) / COALESCE ( - - 52, - 99 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6251
SELECT 46 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6251
SELECT 46 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6252
SELECT + 64 / + 89 * - + 31 * + + CAST( NULL AS SIGNED ) + - - 58 + - CAST( NULL AS SIGNED ) - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6252
SELECT + 64 / + 89 * - + 31 * + + CAST ( NULL AS INTEGER ) + - - 58 + - CAST ( NULL AS INTEGER ) - - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT 10 + + - MAX( ALL - 86 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6253
SELECT 10 + + - MAX ( ALL - 86 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT DISTINCT - 66 * - 68 * + COUNT( * ) col0
----
4488

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT - 66 * - 68 * + COUNT ( * ) col0
----
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL + 12 + - COUNT( * ) * + COUNT( * ) - - - COALESCE ( + 56, + 17, COUNT( * ), + 67 )
----
-45

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL + 12 + - COUNT ( * ) * + COUNT ( * ) - - - COALESCE ( + 56, + 17, COUNT ( * ), + 67 )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-6256
SELECT 91, 66 - - COUNT( * ) AS col1
----
91
67

skipif mysql # not compatible
query II rowsort label-6256
SELECT 91, 66 - - COUNT ( * ) AS col1
----
91
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT COALESCE ( ( - 65 ), - 49 ) + COUNT( * ) * - 16 + 69 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-6257
SELECT COALESCE ( ( - 65 ), - 49 ) + COUNT ( * ) * - 16 + 69 AS col2
----
-12

query I rowsort
SELECT DISTINCT 14 + + 42 + + 69 * - 2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT ALL COUNT( * ) + - 88 + - MAX( + 40 ) AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL COUNT ( * ) + - 88 + - MAX ( + 40 ) AS col0
----
-127

onlyif mysql # DIV for integer division: 
query I rowsort label-6260
SELECT ALL + 22 DIV + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL + 22 / + 90 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6261
SELECT ( + 15 ) DIV CAST( - 78 AS SIGNED ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6261
SELECT ( + 15 ) / CAST ( - 78 AS INTEGER ) * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT DISTINCT + COUNT( * ) * 64 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT + COUNT ( * ) * 64 AS col1
----
64

query II rowsort
SELECT DISTINCT - 61, 90 * - 55 col0
----
-61
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-6264
SELECT 35 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-6264
SELECT 35 / + 61
----
0

query I rowsort
SELECT DISTINCT + 77 * - 41 col0
----
-3157

query I rowsort
SELECT DISTINCT + 5 * 7
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6267
SELECT - 25 * ( 94 ) - - 31 DIV - COUNT( * )
----
-2381

skipif mysql # not compatible
query I rowsort label-6267
SELECT - 25 * ( 94 ) - - 31 / - COUNT ( * )
----
-2381

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT MIN( - 42 ) * + 4
----
-168

skipif mysql # not compatible
query I rowsort label-6268
SELECT MIN ( - 42 ) * + 4
----
-168

query I rowsort
SELECT 34 - 83 col1
----
-49

query I rowsort
SELECT 70 * 63 AS col2
----
4410

query I rowsort
SELECT 44 + 96
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT DISTINCT + NULLIF ( + 48, CASE WHEN ( + 42 ) IS NOT NULL THEN 39 WHEN 42 * 43 NOT IN ( + 17 ) THEN NULL END * 62 ) * COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT + NULLIF ( + 48, CASE WHEN ( + 42 ) IS NOT NULL THEN 39 WHEN 42 * 43 NOT IN ( + 17 ) THEN NULL END * 62 ) * COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT DISTINCT - MAX( DISTINCT + 85 ) - 49 * - 52
----
2463

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT - MAX ( DISTINCT + 85 ) - 49 * - 52
----
2463

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL COUNT( ALL + 88 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL COUNT ( ALL + 88 ) col0
----
1

query I rowsort
SELECT 69 - 4 * 43
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT MAX( 0 ) - + COUNT( ALL 69 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6276
SELECT MAX ( 0 ) - + COUNT ( ALL 69 ) AS col2
----
-1

query I rowsort
SELECT 49 * + 37 col2
----
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT MIN( - 18 ) * + 51
----
-918

skipif mysql # not compatible
query I rowsort label-6278
SELECT MIN ( - 18 ) * + 51
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT ALL NULLIF ( 33, + COUNT( * ) )
----
33

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL NULLIF ( 33, + COUNT ( * ) )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6280
SELECT AVG ( ( + 42 ) ) + - 5 * ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT AVG ( ( + 42 ) ) + - 5 * ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL COUNT( * ) * + 51
----
51

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL COUNT ( * ) * + 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT MAX( + 49 ) * - 70 col0
----
-3430

skipif mysql # not compatible
query I rowsort label-6282
SELECT MAX ( + 49 ) * - 70 col0
----
-3430

query I rowsort
SELECT 78 + - 61 * - 18 AS col0
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT DISTINCT + 71 * COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT + 71 * COUNT ( * ) AS col0
----
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6285
SELECT DISTINCT 9 + - CAST( NULL AS DECIMAL ) / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT 9 + - CAST ( NULL AS REAL ) / 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT DISTINCT - 7 * COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT - 7 * COUNT ( * )
----
-7

query I rowsort
SELECT ALL + 53 * + 50
----
2650

query I rowsort
SELECT + 50 + + COALESCE ( + 2, - NULLIF ( + 67, AVG ( - 33 ) ) * 73, - 55 * 74 + - 84 ) AS col2
----
52

query I rowsort
SELECT + 67 * 30 AS col0
----
2010

query I rowsort
SELECT DISTINCT ( 27 ) * 86 + - COALESCE ( + 57, + 89 * 13, - 80 * - 38 ) AS col1
----
2265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT CASE + 34 WHEN + 76 THEN ( CAST( + 53 AS SIGNED ) ) WHEN + 61 * 34 THEN NULL WHEN 38 * 83 THEN - 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT CASE + 34 WHEN + 76 THEN ( CAST ( + 53 AS INTEGER ) ) WHEN + 61 * 34 THEN NULL WHEN 38 * 83 THEN - 87 END
----
NULL

query I rowsort
SELECT ALL - 6 * 53 + 60
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT + COUNT( 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6293
SELECT + COUNT ( 46 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6294
SELECT - 60 DIV - 19 + 4
----
7

skipif mysql # not compatible
query I rowsort label-6294
SELECT - 60 / - 19 + 4
----
7

query I rowsort
SELECT + 7 + - 14 * 79 AS col0
----
-1099

query I rowsort
SELECT ALL NULLIF ( 33, - 93 ) * - 49 + 88
----
-1529

query I rowsort
SELECT ALL + 74 * - 45 + + 53 * 96
----
1758

query I rowsort
SELECT + 1 - - 19 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT COUNT( * ) * 76
----
76

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT COUNT ( * ) * 76
----
76

query I rowsort
SELECT 18 * 87 + + 88
----
1654

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT + 36 * + CASE COUNT( * ) WHEN - SUM( - 42 ) * + 58 + + 86 THEN 79 + + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6301
SELECT + 36 * + CASE COUNT ( * ) WHEN - SUM ( - 42 ) * + 58 + + 86 THEN 79 + + 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT ALL + NULLIF ( + MAX( 8 ), ( - 99 ) * 74 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL + NULLIF ( + MAX ( 8 ), ( - 99 ) * 74 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - COUNT( * ) * - 44 + COUNT( * ) * 15
----
59

skipif mysql # not compatible
query I rowsort label-6303
SELECT - COUNT ( * ) * - 44 + COUNT ( * ) * 15
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL + 96 * + COUNT( * ) - 56 * + 34
----
-1808

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL + 96 * + COUNT ( * ) - 56 * + 34
----
-1808

query I rowsort
SELECT + 65 * - 40 AS col1
----
-2600

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT + NULLIF ( 23, - COALESCE ( + MAX( ALL 88 ), - 59 ) / + SUM( + 23 ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6306
SELECT + NULLIF ( 23, - COALESCE ( + MAX ( ALL 88 ), - 59 ) / + SUM ( + 23 ) ) AS col2
----
23

query I rowsort
SELECT - 30 + 13 col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT + + COUNT( * ) + + 82 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6308
SELECT + + COUNT ( * ) + + 82 AS col1
----
83

query I rowsort
SELECT DISTINCT + ( ( 60 ) )
----
60

query I rowsort
SELECT - - 22 - 36 * 80
----
-2858

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT + + SUM( + 30 ) + 56 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-6311
SELECT + + SUM ( + 30 ) + 56 AS col2
----
86

query I rowsort
SELECT ALL + + ( 91 ) AS col0
----
91

query I rowsort
SELECT ALL + 67 * - 18 AS col0
----
-1206

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6314
SELECT ALL MIN( 23 ) DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL MIN ( 23 ) / 35
----
0

query I rowsort
SELECT ALL - ( - 40 )
----
40

query I rowsort
SELECT - ( - 65 ) + 7 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT ALL + MIN( 11 ) * 91
----
1001

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL + MIN ( 11 ) * 91
----
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT 11 * - COUNT( * ) + NULLIF ( - 48, + ( 16 ) + COUNT( * ) * - 32 )
----
-59

skipif mysql # not compatible
query I rowsort label-6318
SELECT 11 * - COUNT ( * ) + NULLIF ( - 48, + ( 16 ) + COUNT ( * ) * - 32 )
----
-59

query I rowsort
SELECT ALL - + 68 * - 59 AS col2
----
4012

onlyif mysql # DIV for integer division: 
query I rowsort label-6320
SELECT - + 95 DIV + 9 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6320
SELECT - + 95 / + 9 AS col1
----
-10

query I rowsort
SELECT - ( - 84 ) + 34 AS col0
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6322
SELECT ALL + 15 * - NULLIF ( 73 * CAST( NULL AS SIGNED ) + COALESCE ( MIN( DISTINCT - 6 ), + 30 + 16 * 3 ), + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL + 15 * - NULLIF ( 73 * CAST ( NULL AS INTEGER ) + COALESCE ( MIN ( DISTINCT - 6 ), + 30 + 16 * 3 ), + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT - + 45 + + 13 * 77 AS col0
----
956

query I rowsort
SELECT - + 34 + - 91 AS col0
----
-125

query I rowsort
SELECT - - 76 * - 34
----
-2584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6326
SELECT ALL - + ( + ( + CAST( NULL AS SIGNED ) ) ) + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL - + ( + ( + CAST ( NULL AS INTEGER ) ) ) + 69 AS col0
----
NULL

query I rowsort
SELECT ALL + 67 + - 92 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL ( + - COUNT( * ) ) * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL ( + - COUNT ( * ) ) * - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT DISTINCT + COUNT( * ) + + 2 + + 22 * 17 * SUM( 85 + - 85 * 23 ) AS col1
----
-699377

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT + COUNT ( * ) + + 2 + + 22 * 17 * SUM ( 85 + - 85 * 23 ) AS col1
----
-699377

query I rowsort
SELECT ALL - 94 + - 50
----
-144

query I rowsort
SELECT + 44 + 71 col1
----
115

query I rowsort
SELECT ALL + 22 * + 7 * - CASE + 43 WHEN 82 THEN - 44 ELSE ( 68 ) + - 43 END
----
-3850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6333
SELECT - 31 DIV + - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-6333
SELECT - 31 / + - COUNT ( * )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6334
SELECT CAST( COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6334
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT DISTINCT + CASE + - 75 WHEN - MAX( ALL + 36 ) THEN + 73 ELSE 41 END AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT + CASE + - 75 WHEN - MAX ( ALL + 36 ) THEN + 73 ELSE 41 END AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6336
SELECT ALL + COUNT( * ) DIV + COUNT( * ) - - 43 * - 41 AS col0
----
-1762

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL + COUNT ( * ) / + COUNT ( * ) - - 43 * - 41 AS col0
----
-1762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6337
SELECT CAST( - ( 26 ) AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-6337
SELECT CAST ( - ( 26 ) AS INTEGER )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-6338
SELECT ALL 48 DIV - 30
----
-1

skipif mysql # not compatible
query I rowsort label-6338
SELECT ALL 48 / - 30
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6339
SELECT ( - + MIN( CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6339
SELECT ( - + MIN ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6340
SELECT - 0 DIV - 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6340
SELECT - 0 / - 37 AS col2
----
0

query I rowsort
SELECT + 6 * + 5
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6342
SELECT ALL COUNT( * ) DIV + + 59 * 88
----
0

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL COUNT ( * ) / + + 59 * 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ( + + MAX( ALL 15 ) )
----
15

skipif mysql # not compatible
query I rowsort label-6343
SELECT ( + + MAX ( ALL 15 ) )
----
15

query I rowsort
SELECT + + 51 + - + 40 AS col2
----
11

query I rowsort
SELECT + + 92 * ( + 52 )
----
4784

query I rowsort
SELECT ALL 4 * - + 78 + 73
----
-239

query I rowsort
SELECT ALL 61 * - 5
----
-305

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT DISTINCT + SUM( DISTINCT + - 86 ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT + SUM ( DISTINCT + - 86 ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT + SUM( ALL + 24 ) * - ( + 84 )
----
-2016

skipif mysql # not compatible
query I rowsort label-6349
SELECT + SUM ( ALL + 24 ) * - ( + 84 )
----
-2016

query I rowsort
SELECT + - 66 * 42 + 15 * + 58
----
-1902

query I rowsort
SELECT + + 55 - - 54 + 21 * + 37 col1
----
886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6352
SELECT - CAST( 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-6352
SELECT - CAST ( 97 AS INTEGER )
----
-97

query I rowsort
SELECT ALL 53 * 37 + - 5
----
1956

query I rowsort
SELECT + + 5 + 77 col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT ALL COUNT( * ) * + 47 + - 36
----
11

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL COUNT ( * ) * + 47 + - 36
----
11

query I rowsort
SELECT ALL 77 + - - 51 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT DISTINCT - + COUNT( ALL + + 62 ) * - 71
----
71

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT - + COUNT ( ALL + + 62 ) * - 71
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT ALL + CASE - - 12 WHEN + ( 25 ) THEN COUNT( * ) WHEN 90 * + 73 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL + CASE - - 12 WHEN + ( 25 ) THEN COUNT ( * ) WHEN 90 * + 73 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6359
SELECT DISTINCT - ( COALESCE ( 12, COUNT( * ), - COUNT( + 75 ) DIV CAST( - 79 * 24 AS SIGNED ) ) ) + - 0
----
-12

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT - ( COALESCE ( 12, COUNT ( * ), - COUNT ( + 75 ) / CAST ( - 79 * 24 AS INTEGER ) ) ) + - 0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT ( 79 ) + - - CAST( - 47 AS SIGNED ) + 67 * - ( 83 )
----
-5529

skipif mysql # not compatible
query I rowsort label-6360
SELECT ( 79 ) + - - CAST ( - 47 AS INTEGER ) + 67 * - ( 83 )
----
-5529

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ALL + 62 + + - 4 * - ( COUNT( * ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL + 62 + + - 4 * - ( COUNT ( * ) ) AS col2
----
66

query II rowsort
SELECT - 86 AS col2, - 50 * + 18 * + 53 col2
----
-86
-47700

onlyif mysql # DIV for integer division: 
query II rowsort label-6363
SELECT 20 AS col2, - 62 DIV 60 col0
----
20
-1

skipif mysql # not compatible
query II rowsort label-6363
SELECT 20 AS col2, - 62 / 60 col0
----
20
-1

query I rowsort
SELECT 23 + - - 32
----
55

query I rowsort
SELECT ALL + ( + 93 ) + 18 + 55 AS col0
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-6366
SELECT 3 + - - 32 DIV - 41
----
3

skipif mysql # not compatible
query I rowsort label-6366
SELECT 3 + - - 32 / - 41
----
3

query II rowsort
SELECT ALL 53 col1, ( - - 72 ) + + 41
----
53
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT ALL - 36 * + COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL - 36 * + COUNT ( * ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6369
SELECT ALL - 99 col1, + NULLIF ( + COUNT( * ), + 26 ) AS col1
----
-99
1

skipif mysql # not compatible
query II rowsort label-6369
SELECT ALL - 99 col1, + NULLIF ( + COUNT ( * ), + 26 ) AS col1
----
-99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6370
SELECT + 9, - MAX( DISTINCT 78 ) col1
----
9
-78

skipif mysql # not compatible
query II rowsort label-6370
SELECT + 9, - MAX ( DISTINCT 78 ) col1
----
9
-78

query I rowsort
SELECT DISTINCT - ( + 5 ) - 10 * + 62 AS col2
----
-625

query II rowsort
SELECT 36 AS col2, - 58 AS col1
----
36
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT 37 * + COUNT( * ) * 69 + 90 col0
----
2643

skipif mysql # not compatible
query I rowsort label-6373
SELECT 37 * + COUNT ( * ) * 69 + 90 col0
----
2643

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT 18 * ( COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-6374
SELECT 18 * ( COUNT ( * ) )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT 55 * - 83 + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT 55 * - 83 + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6376
SELECT 17 AS col0, COUNT( * ) AS col1
----
17
1

skipif mysql # not compatible
query II rowsort label-6376
SELECT 17 AS col0, COUNT ( * ) AS col1
----
17
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6377
SELECT + 73 AS col2, + 39 + - COUNT( * )
----
73
38

skipif mysql # not compatible
query II rowsort label-6377
SELECT + 73 AS col2, + 39 + - COUNT ( * )
----
73
38

query I rowsort
SELECT ALL - ( + - 3 ) AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT 73 DIV - 33 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6379
SELECT 73 / - 33 AS col1
----
-2

query I rowsort
SELECT ALL 6 * - - NULLIF ( + 21, 99 )
----
126

query I rowsort
SELECT DISTINCT - 89 * - 26 + - 51 * + 50
----
-236

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT 79 DIV + 7
----
11

skipif mysql # not compatible
query I rowsort label-6382
SELECT 79 / + 7
----
11

query I rowsort
SELECT ALL + 50 + + - 36 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT 44 * - + COUNT( * ) + SUM( + 43 ) * COALESCE ( + 37 * 63 + 88, + 42 * + 51 )
----
103973

skipif mysql # not compatible
query I rowsort label-6384
SELECT 44 * - + COUNT ( * ) + SUM ( + 43 ) * COALESCE ( + 37 * 63 + 88, + 42 * + 51 )
----
103973

onlyif mysql # aggregate syntax: 
query II rowsort label-6385
SELECT ALL - + 55, + SUM( ALL 81 ) AS col0
----
-55
81

skipif mysql # not compatible
query II rowsort label-6385
SELECT ALL - + 55, + SUM ( ALL 81 ) AS col0
----
-55
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT - COUNT( * ) + + 19 + - ( 70 ) * 77 col2
----
-5372

skipif mysql # not compatible
query I rowsort label-6386
SELECT - COUNT ( * ) + + 19 + - ( 70 ) * 77 col2
----
-5372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6387
SELECT ( + CAST( NULL AS SIGNED ) ) / + ( - 68 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT ( + CAST ( NULL AS INTEGER ) ) / + ( - 68 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6388
SELECT + 12 + 95 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6388
SELECT + 12 + 95 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6389
SELECT + + CAST( NULL AS SIGNED ) * MIN( - 57 ) * + 38 + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT + + CAST ( NULL AS INTEGER ) * MIN ( - 57 ) * + 38 + - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT + - NULLIF ( + - 7, + - COUNT( * ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6390
SELECT + - NULLIF ( + - 7, + - COUNT ( * ) ) AS col0
----
7

query I rowsort
SELECT - 5 * + 21 + 95 + 86 + + 39 AS col0
----
115

query I rowsort
SELECT - ( + 30 ) - 47 AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6393
SELECT ALL COUNT( * ) + - CAST( - - COUNT( 93 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL COUNT ( * ) + - CAST ( - - COUNT ( 93 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6394
SELECT - - 28 AS col2, - CAST( NULL AS SIGNED ) AS col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-6394
SELECT - - 28 AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT ALL - + COUNT( * ) + - - MIN( - 3 ) + ( + 26 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL - + COUNT ( * ) + - - MIN ( - 3 ) + ( + 26 ) AS col1
----
22

query I rowsort
SELECT DISTINCT 66 + - 66 * + 43 - 63 * 99
----
-9009

query I rowsort
SELECT DISTINCT - 32 * - 13 * - ( - 15 )
----
6240

query I rowsort
SELECT ALL + 74 + 47
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT COUNT( * ) + 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6399
SELECT COUNT ( * ) + 59 AS col0
----
60

query I rowsort
SELECT ALL + ( + 62 )
----
62

query II rowsort
SELECT - 1, + 30 col2
----
-1
30

query I rowsort
SELECT + 67 * - - COALESCE ( + 10, 63 * 16, 31 )
----
670

query I rowsort
SELECT DISTINCT 50 * + ( - 62 ) AS col1
----
-3100

query I rowsort
SELECT 38 + 89 + - - 28 + CASE WHEN + 63 BETWEEN NULL AND + 19 + - 62 * 62 THEN NULL ELSE + 52 END AS col2
----
207

query I rowsort
SELECT DISTINCT 8 - + 45 AS col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6406
SELECT DISTINCT COUNT( - - 50 ) DIV ( 82 )
----
0

skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT COUNT ( - - 50 ) / ( 82 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6407
SELECT 44 + 54, 43 DIV + 37 AS col0
----
98
1

skipif mysql # not compatible
query II rowsort label-6407
SELECT 44 + 54, 43 / + 37 AS col0
----
98
1

query II rowsort
SELECT 54 * - 54 AS col1, 20
----
-2916
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT ALL COALESCE ( 0, COUNT( * ) - + 64 + - 63 * 8, - NULLIF ( 58, + COUNT( * ) - ( ( - COUNT( ALL - 41 ) ) ) ), + 62 + + 84 * 2 ) * - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL COALESCE ( 0, COUNT ( * ) - + 64 + - 63 * 8, - NULLIF ( 58, + COUNT ( * ) - ( ( - COUNT ( ALL - 41 ) ) ) ), + 62 + + 84 * 2 ) * - 70 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6410
SELECT - 9 DIV - + 39 - - COUNT( * ) + 1 + 8 * - 23
----
-182

skipif mysql # not compatible
query I rowsort label-6410
SELECT - 9 / - + 39 - - COUNT ( * ) + 1 + 8 * - 23
----
-182

query I rowsort
SELECT ALL 77 * + 72 AS col0
----
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT DISTINCT - MAX( + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT - MAX ( + 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT ALL 53 * - 62 + 55 + + 84 * + COUNT( * ) * COUNT( * )
----
-3147

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL 53 * - 62 + 55 + + 84 * + COUNT ( * ) * COUNT ( * )
----
-3147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6414
SELECT DISTINCT - 10 * CAST( NULL AS SIGNED ) * + + 40 + - + ( - 17 ) * - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT - 10 * CAST ( NULL AS INTEGER ) * + + 40 + - + ( - 17 ) * - 45 AS col2
----
NULL

query I rowsort
SELECT + 82 * - 74 - + 0
----
-6068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT - 83 * + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT - 83 * + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6417
SELECT ALL 61 * + 49 * + CAST( NULL AS DECIMAL ) - - - 39 + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL 61 * + 49 * + CAST ( NULL AS REAL ) - - - 39 + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT + 19 + + - COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-6418
SELECT + 19 + + - COUNT ( * ) AS col0
----
18

query I rowsort
SELECT ALL + + 49 * 63 + - NULLIF ( 22, 16 ) * 65
----
1657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6420
SELECT ALL - + 69 + 45 / + 78 * + 43 + + CAST( NULL AS SIGNED ) * COALESCE ( + 5, + 92 * + 27 + 49 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL - + 69 + 45 / + 78 * + 43 + + CAST ( NULL AS INTEGER ) * COALESCE ( + 5, + 92 * + 27 + 49 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 94 * + 25 * 31 - 91 * + 48 AS col1
----
68482

query I rowsort
SELECT DISTINCT + - 11
----
-11

query I rowsort
SELECT DISTINCT - + 19 + - 92 col1
----
-111

query I rowsort
SELECT ALL - 3 + - - ( + 10 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL - 92 + NULLIF ( ( + ( 18 ) ), ( + 18 ) ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL - 92 + NULLIF ( ( + ( 18 ) ), ( + 18 ) ) + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 52 * 28
----
-1456

query I rowsort
SELECT + 21 * 17 * 45 + 3 + + 86 AS col1
----
16154

query I rowsort
SELECT DISTINCT + 94 AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6429
SELECT + COUNT( ALL + 30 ) DIV 15
----
0

skipif mysql # not compatible
query I rowsort label-6429
SELECT + COUNT ( ALL + 30 ) / 15
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6430
SELECT ALL ( - ( + 5 ) ) DIV 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL ( - ( + 5 ) ) / 60 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT - 8 * COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-6431
SELECT - 8 * COUNT ( * )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-6432
SELECT DISTINCT + 90 DIV - + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT + 90 / - + 94 AS col2
----
0

query I rowsort
SELECT ALL NULLIF ( + - 74, + 18 ) AS col2
----
-74

query I rowsort
SELECT + 85 * + - 58
----
-4930

query I rowsort
SELECT + 43 + + 97
----
140

query I rowsort
SELECT DISTINCT - 18 - + + 79 AS col2
----
-97

query I rowsort
SELECT ALL ( + ( - + NULLIF ( + 85, - + 35 * 59 ) ) ) AS col0
----
-85

query I rowsort
SELECT ALL 31 * + 63 AS col2
----
1953

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL COUNT( * ) * 97 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL COUNT ( * ) * 97 AS col0
----
97

query I rowsort
SELECT - 49 * - - ( + 69 )
----
-3381

query I rowsort
SELECT + 55 * + 53 * + 28 * - 15 AS col1
----
-1224300

query II rowsort
SELECT ALL 7 AS col1, + 11 - ( - 58 )
----
7
69

query I rowsort
SELECT + 1 + - + 77 + + - 42 col0
----
-118

query I rowsort
SELECT + 19 * 56 AS col0
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT + 77 + + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-6445
SELECT + 77 + + COUNT ( * )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6446
SELECT DISTINCT COALESCE ( + - 19, - 4 DIV - - 87 * 15 DIV COUNT( * ) + MIN( - 21 ) * - 2 ) * - 81 AS col1
----
1539

skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT COALESCE ( + - 19, - 4 / - - 87 * 15 / COUNT ( * ) + MIN ( - 21 ) * - 2 ) * - 81 AS col1
----
1539

onlyif mysql # aggregate syntax: 
query II rowsort label-6447
SELECT ALL 1 + + - 33 + COUNT( * ) AS col1, - 20 + - + 26 + - 73 AS col1
----
-31
-119

skipif mysql # not compatible
query II rowsort label-6447
SELECT ALL 1 + + - 33 + COUNT ( * ) AS col1, - 20 + - + 26 + - 73 AS col1
----
-31
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-6448
SELECT ALL 83 + + + 34 + - + 20 + + 71 + + 18 DIV 74
----
168

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL 83 + + + 34 + - + 20 + + 71 + + 18 / 74
----
168

query I rowsort
SELECT DISTINCT 75 col0
----
75

query II rowsort
SELECT ALL 26 AS col2, 47 AS col1
----
26
47

query I rowsort
SELECT + ( 95 )
----
95

query I rowsort
SELECT + ( - + 62 ) + + 14
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6453
SELECT ALL 28 DIV COALESCE ( 84, + + 23 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL 28 / COALESCE ( 84, + + 23 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6454
SELECT + - 98 DIV 74 * - ( + 35 ) * - CAST( + 57 AS SIGNED ) + 19 * - 44 + 35
----
-2796

skipif mysql # not compatible
query I rowsort label-6454
SELECT + - 98 / 74 * - ( + 35 ) * - CAST ( + 57 AS INTEGER ) + 19 * - 44 + 35
----
-2796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6455
SELECT - - 62 / 85 + + 5 + + CAST( NULL AS SIGNED ) * 74 * 96 - 45 * - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT - - 62 / 85 + + 5 + + CAST ( NULL AS INTEGER ) * 74 * 96 - 45 * - 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT DISTINCT + 84 * + - 12 * NULLIF ( - 82, + 89 + 14 ) + COUNT( * ) + + 78 * 40
----
85777

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT + 84 * + - 12 * NULLIF ( - 82, + 89 + 14 ) + COUNT ( * ) + + 78 * 40
----
85777

query I rowsort
SELECT DISTINCT 12 * 56 + + 91 + + 8
----
771

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT ALL - 34 * - COUNT( * ) + 15 * ( + 51 ) - - COUNT( * )
----
800

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL - 34 * - COUNT ( * ) + 15 * ( + 51 ) - - COUNT ( * )
----
800

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6459
SELECT DISTINCT - 98 * CAST( NULL AS DECIMAL ) / 99 + - + AVG ( 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT - 98 * CAST ( NULL AS REAL ) / 99 + - + AVG ( 64 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6460
SELECT + - CAST( - ( - 15 ) AS SIGNED ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6460
SELECT + - CAST ( - ( - 15 ) AS INTEGER ) AS col0
----
-15

query I rowsort
SELECT ALL + 69 * + 37 + - 30 + + + 29 * + 18 col1
----
3045

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT + ( - NULLIF ( COUNT( DISTINCT 10 ), + 8 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6462
SELECT + ( - NULLIF ( COUNT ( DISTINCT 10 ), + 8 ) ) AS col2
----
-1

query I rowsort
SELECT - 97 + + 85 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT ALL COUNT( * ) * COALESCE ( 55, - 73 * - + CASE + ( - 82 ) WHEN + 30 THEN - 33 WHEN + 60 * - 27 + 40 THEN NULL WHEN 11 THEN + 97 ELSE NULL END ) * - 35 - - 35 * - 15
----
-2450

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL COUNT ( * ) * COALESCE ( 55, - 73 * - + CASE + ( - 82 ) WHEN + 30 THEN - 33 WHEN + 60 * - 27 + 40 THEN NULL WHEN 11 THEN + 97 ELSE NULL END ) * - 35 - - 35 * - 15
----
-2450

query I rowsort
SELECT - 10 + - ( 59 ) * + - 10 * + ( 72 )
----
42470

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT ALL + COUNT( DISTINCT - 29 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL + COUNT ( DISTINCT - 29 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT + COUNT( * ) * + - 4 - - 74 + + 98 AS col2
----
168

skipif mysql # not compatible
query I rowsort label-6467
SELECT + COUNT ( * ) * + - 4 - - 74 + + 98 AS col2
----
168

query I rowsort
SELECT - - 60 * 40
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT + - SUM( DISTINCT 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-6469
SELECT + - SUM ( DISTINCT 5 ) AS col2
----
-5

query I rowsort
SELECT - 50 * - 6 + - COALESCE ( + + 22, + 27 * + 34 ) + - 49
----
229

query I rowsort
SELECT ALL + ( - 21 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL + + 79 * COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL + + 79 * COUNT ( * )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6473
SELECT DISTINCT + 51, + CAST( NULL AS SIGNED ) AS col2
----
51
NULL

skipif mysql # not compatible
query II rowsort label-6473
SELECT DISTINCT + 51, + CAST ( NULL AS INTEGER ) AS col2
----
51
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6474
SELECT - 34, 69 * 57 + - + 61 - - SUM( 55 ) + + 65 AS col1
----
-34
3992

skipif mysql # not compatible
query II rowsort label-6474
SELECT - 34, 69 * 57 + - + 61 - - SUM ( 55 ) + + 65 AS col1
----
-34
3992

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6475
SELECT DISTINCT + 86 * + + CASE - - 53 WHEN + 89 THEN - COALESCE ( - - 21, CAST( NULL AS SIGNED ) + 13 ) DIV + 33 ELSE 91 END
----
7826

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT + 86 * + + CASE - - 53 WHEN + 89 THEN - COALESCE ( - - 21, CAST ( NULL AS INTEGER ) + 13 ) / + 33 ELSE 91 END
----
7826

onlyif mysql # DIV for integer division: 
query I rowsort label-6476
SELECT ALL COALESCE ( - - 42, 58 * 24 DIV 3 )
----
42

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL COALESCE ( - - 42, 58 * 24 / 3 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT ALL + 77 * - + COALESCE ( - - 48, + 44 + COUNT( * ) ) * + - 36 * + 26
----
3459456

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + 77 * - + COALESCE ( - - 48, + 44 + COUNT ( * ) ) * + - 36 * + 26
----
3459456

onlyif mysql # aggregate syntax: 
query II rowsort label-6478
SELECT DISTINCT 42, + COUNT( * ) AS col1
----
42
1

skipif mysql # not compatible
query II rowsort label-6478
SELECT DISTINCT 42, + COUNT ( * ) AS col1
----
42
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6479
SELECT - 49 DIV COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-6479
SELECT - 49 / COUNT ( * )
----
-49

query I rowsort
SELECT DISTINCT ( - + 65 ) AS col1
----
-65

query II rowsort
SELECT + 90 * - + 89 col2, + 69 AS col2
----
-8010
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT DISTINCT CAST( - - 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT CAST ( - - 89 AS INTEGER )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6483
SELECT - 19 + + - 14 + - 35 * + CAST( NULL AS SIGNED ) / 98 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6483
SELECT - 19 + + - 14 + - 35 * + CAST ( NULL AS INTEGER ) / 98 col1
----
NULL

query II rowsort
SELECT ALL + 96 + - 64 - - + 72 + - 10 AS col1, 0 AS col2
----
94
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6485
SELECT DISTINCT CAST( + 93 AS SIGNED ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT CAST ( + 93 AS INTEGER ) AS col1
----
93

query I rowsort
SELECT ALL 83 + ( 47 ) AS col2
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6487
SELECT ALL CAST( - 59 AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL CAST ( - 59 AS INTEGER ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT DISTINCT - 15 + - + CASE 90 WHEN COUNT( * ) THEN NULL WHEN + 90 - - 82 THEN 96 * - COUNT( * ) ELSE 70 END * + ( 60 ) AS col2
----
-4215

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT - 15 + - + CASE 90 WHEN COUNT ( * ) THEN NULL WHEN + 90 - - 82 THEN 96 * - COUNT ( * ) ELSE 70 END * + ( 60 ) AS col2
----
-4215

query I rowsort
SELECT - ( - + ( 89 ) )
----
89

query I rowsort
SELECT DISTINCT 88 * - 38
----
-3344

query I rowsort
SELECT ALL 6 + - - 8
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - - 13 - - - COUNT( DISTINCT - 70 )
----
12

skipif mysql # not compatible
query I rowsort label-6492
SELECT - - 13 - - - COUNT ( DISTINCT - 70 )
----
12

query II rowsort
SELECT + 23 AS col0, + 78 AS col2
----
23
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT + CASE + - ( + - 51 ) WHEN + - 25 THEN - - ( - - 50 ) * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT + CASE + - ( + - 51 ) WHEN + - 25 THEN - - ( - - 50 ) * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6495
SELECT DISTINCT + COUNT( * ) DIV - ( - 77 ) + - + 75 - 15 DIV + 36
----
-75

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT + COUNT ( * ) / - ( - 77 ) + - + 75 - 15 / + 36
----
-75

query I rowsort
SELECT ALL - ( + + 81 ) AS col0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6497
SELECT + 94 DIV + 89 + + - 25 * - ( - 86 ) - 0 AS col1
----
-2149

skipif mysql # not compatible
query I rowsort label-6497
SELECT + 94 / + 89 + + - 25 * - ( - 86 ) - 0 AS col1
----
-2149

query I rowsort
SELECT 59 * + 30 AS col1
----
1770

onlyif mysql # DIV for integer division: 
query I rowsort label-6499
SELECT + 3 DIV + 58 + + 16 DIV - 6 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6499
SELECT + 3 / + 58 + + 16 / - 6 AS col2
----
-2

query I rowsort
SELECT ALL 31 * 69 * + 29 * + 4
----
248124

query II rowsort
SELECT DISTINCT + 81 * - 62 AS col1, 29 + 86 * + + 12 AS col2
----
-5022
1061

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT DISTINCT - COUNT( DISTINCT - - 53 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT - COUNT ( DISTINCT - - 53 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6503
SELECT CAST( NULL AS SIGNED ) + - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6503
SELECT CAST ( NULL AS INTEGER ) + - 98 AS col1
----
NULL

query I rowsort
SELECT ALL - CASE 38 WHEN + AVG ( ALL 7 ) THEN - - 74 * 20 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6505
SELECT 54 * 94 * - - CAST( + 78 AS SIGNED ) * + 19
----
7522632

skipif mysql # not compatible
query I rowsort label-6505
SELECT 54 * 94 * - - CAST ( + 78 AS INTEGER ) * + 19
----
7522632

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT NULLIF ( MAX( + 71 ), + 29 ) + - 74 * + + 20
----
-1409

skipif mysql # not compatible
query I rowsort label-6506
SELECT NULLIF ( MAX ( + 71 ), + 29 ) + - 74 * + + 20
----
-1409

query I rowsort
SELECT 38 + + - 15
----
23

query I rowsort
SELECT ALL 84 + + 16 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT DISTINCT + 83 + CASE 8 WHEN 87 * - - COALESCE ( 58, - 24 ) THEN - 65 WHEN - 83 THEN 66 * 89 + + 58 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT + 83 + CASE 8 WHEN 87 * - - COALESCE ( 58, - 24 ) THEN - 65 WHEN - 83 THEN 66 * 89 + + 58 * COUNT ( * ) END
----
NULL

query II rowsort
SELECT 47 + - 5 - + 22, - 26 * + 54 AS col1
----
20
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL CASE - 44 WHEN MAX( - 8 ) THEN - 38 * - 36 + + 7 END + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL CASE - 44 WHEN MAX ( - 8 ) THEN - 38 * - 36 + + 7 END + 42
----
NULL

query I rowsort
SELECT DISTINCT 19 * + + 35
----
665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6513
SELECT ALL - 10 + - 23 + - CAST( + ( 85 ) AS SIGNED )
----
-118

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL - 10 + - 23 + - CAST ( + ( 85 ) AS INTEGER )
----
-118

query I rowsort
SELECT 63 - - 41 + + 90 * - 61 + - + 95 * - - 29 AS col2
----
-8141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6515
SELECT ALL - COALESCE ( COUNT( 7 ), - 61 * + COALESCE ( MIN( + 89 ), + AVG ( 15 ) ) DIV + 63 + CASE 71 + - 41 * 26 WHEN + 14 THEN 5 DIV + 94 + MAX( DISTINCT + CASE 65 WHEN 65 THEN 81 - - 2 ELSE NULL END ) * + 27 ELSE NULL END, COUNT( * ), - CAST( NULL AS SIGNED ) DIV 23 ) * + 79 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL - COALESCE ( COUNT ( 7 ), - 61 * + COALESCE ( MIN ( + 89 ), + AVG ( 15 ) ) / + 63 + CASE 71 + - 41 * 26 WHEN + 14 THEN 5 / + 94 + MAX ( DISTINCT + CASE 65 WHEN 65 THEN 81 - - 2 ELSE NULL END ) * + 27 ELSE NULL END, COUNT ( * ), - CAST ( NULL AS INTEGER ) / 23 ) * + 79 AS col1
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6516
SELECT DISTINCT + 65 + - + 83 + + + 67 * + 70 * - - 84 * + 26 + + 0 DIV - ( - COUNT( * ) ) AS col0
----
10242942

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT + 65 + - + 83 + + + 67 * + 70 * - - 84 * + 26 + + 0 / - ( - COUNT ( * ) ) AS col0
----
10242942

query I rowsort
SELECT ALL - 11 + - 72 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT 53 * - COUNT( - 27 )
----
-53

skipif mysql # not compatible
query I rowsort label-6518
SELECT 53 * - COUNT ( - 27 )
----
-53

query I rowsort
SELECT 62 + + - 66 - 5 AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6520
SELECT 25 + + 88 - + 81 + + - 38 DIV COUNT( * ) AS col1, 97 + - 38 + 87 * - 59 AS col1
----
-6
-5074

skipif mysql # not compatible
query II rowsort label-6520
SELECT 25 + + 88 - + 81 + + - 38 / COUNT ( * ) AS col1, 97 + - 38 + 87 * - 59 AS col1
----
-6
-5074

onlyif mysql # aggregate syntax: 
query II rowsort label-6521
SELECT DISTINCT + 48 * - COUNT( * ) AS col2, 8 AS col0
----
-48
8

skipif mysql # not compatible
query II rowsort label-6521
SELECT DISTINCT + 48 * - COUNT ( * ) AS col2, 8 AS col0
----
-48
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6522
SELECT - - ( + COUNT( * ) ), 91 AS col1
----
1
91

skipif mysql # not compatible
query II rowsort label-6522
SELECT - - ( + COUNT ( * ) ), 91 AS col1
----
1
91

query I rowsort
SELECT ALL - - 50 - + + 57 AS col2
----
-7

query I rowsort
SELECT ALL - 4 * - + 8 * + 48 col0
----
1536

query I rowsort
SELECT + - ( - CASE 50 WHEN 66 + + 62 THEN NULL WHEN 19 THEN + + 61 ELSE + 34 * ( 3 ) END ) AS col1
----
102

query II rowsort
SELECT - 88 - 99 AS col2, - 25
----
-187
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6527
SELECT - 45 + - ( MAX( + - ( 6 ) ) ) DIV ( - 31 )
----
-45

skipif mysql # not compatible
query I rowsort label-6527
SELECT - 45 + - ( MAX ( + - ( 6 ) ) ) / ( - 31 )
----
-45

query I rowsort
SELECT 97 * - 41
----
-3977

query I rowsort
SELECT DISTINCT - 72 * + + 52 * 45 + 42
----
-168438

query I rowsort
SELECT DISTINCT 46 + 15 AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6531
SELECT 12 DIV 2 * - - COUNT( * ), - 70 * - 78 AS col2
----
6
5460

skipif mysql # not compatible
query II rowsort label-6531
SELECT 12 / 2 * - - COUNT ( * ), - 70 * - 78 AS col2
----
6
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT COUNT( * ) + + + ( + 80 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-6532
SELECT COUNT ( * ) + + + ( + 80 ) AS col1
----
81

query II rowsort
SELECT + 87, 40 AS col0
----
87
40

query II rowsort
SELECT ALL 72 + 33 + - + ( - 85 ) col2, - 3 AS col2
----
190
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT COUNT( * ) * + 15 * + COUNT( * ) * + 4 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-6535
SELECT COUNT ( * ) * + 15 * + COUNT ( * ) * + 4 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL MIN( - 97 ) + + 31 + + 44 * - - 16
----
638

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL MIN ( - 97 ) + + 31 + + 44 * - - 16
----
638

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6537
SELECT CAST( NULL AS SIGNED ) * - 68 / - 53 AS col1, 11
----
NULL
11

skipif mysql # not compatible
query II rowsort label-6537
SELECT CAST ( NULL AS INTEGER ) * - 68 / - 53 AS col1, 11
----
NULL
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6538
SELECT ALL - 42 + - + 18 * - CAST( NULL AS SIGNED ) * - + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL - 42 + - + 18 * - CAST ( NULL AS INTEGER ) * - + 3
----
NULL

query II rowsort
SELECT ALL 78 * + 73 * 85 AS col0, 59 * - 62 * 98 + + 19
----
483990
-358465

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL NULLIF ( 35, - 39 + 41 + + 17 * + 71 * COUNT( * ) - + 12 * 70 * - 76 ) + - 44 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL NULLIF ( 35, - 39 + 41 + + 17 * + 71 * COUNT ( * ) - + 12 * 70 * - 76 ) + - 44 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT - SUM( - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-6541
SELECT - SUM ( - 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT ALL MAX( DISTINCT - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL MAX ( DISTINCT - 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT DISTINCT 71 + + - ( + + 41 ) + CASE + + 66 WHEN 66 * + COALESCE ( - 60, COUNT( * ) * - 93 ) * 51 THEN 15 END - 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT 71 + + - ( + + 41 ) + CASE + + 66 WHEN 66 * + COALESCE ( - 60, COUNT ( * ) * - 93 ) * 51 THEN 15 END - 67 AS col0
----
NULL

query II rowsort
SELECT 9 AS col0, 75
----
9
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6545
SELECT ALL 6 + + - 55 / + CAST( NULL AS SIGNED ) * 55 + + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL 6 + + - 55 / + CAST ( NULL AS INTEGER ) * 55 + + 66 AS col2
----
NULL

query I rowsort
SELECT 98 * - + 84 * - 23
----
189336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT ALL - 7 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL - 7 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT + 6 + + + NULLIF ( + 86, COALESCE ( 98, 23, 21 ) + + COUNT( * ) + 27 * 45 ) * - 74
----
-6358

skipif mysql # not compatible
query I rowsort label-6548
SELECT + 6 + + + NULLIF ( + 86, COALESCE ( 98, 23, 21 ) + + COUNT ( * ) + 27 * 45 ) * - 74
----
-6358

query I rowsort
SELECT DISTINCT - 98 - ( - ( 31 ) ) * + 17 AS col1
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT ALL - 11 - - - COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL - 11 - - - COUNT ( * ) AS col0
----
-12

query II rowsort
SELECT DISTINCT 86, - 83 AS col0
----
86
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-6552
SELECT - NULLIF ( - + 25, + + COUNT( * ) ), 43 - + NULLIF ( - ( - 57 ), - 3 + 23 ) - 73 AS col2
----
25
-87

skipif mysql # not compatible
query II rowsort label-6552
SELECT - NULLIF ( - + 25, + + COUNT ( * ) ), 43 - + NULLIF ( - ( - 57 ), - 3 + 23 ) - 73 AS col2
----
25
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6553
SELECT ALL - - 48 * + 9 + - - COALESCE ( + - 30, - 36 ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT ALL - - 48 * + 9 + - - COALESCE ( + - 30, - 36 ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6554
SELECT + + COUNT( * ) * - 73 DIV 87 + + MIN( DISTINCT + + 53 ) * - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-6554
SELECT + + COUNT ( * ) * - 73 / 87 + + MIN ( DISTINCT + + 53 ) * - COUNT ( * )
----
-53

query II rowsort
SELECT + 31 col1, + 36 AS col2
----
31
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT - MAX( + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-6556
SELECT - MAX ( + 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT - COUNT( * ) - COUNT( * ) * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6557
SELECT - COUNT ( * ) - COUNT ( * ) * - + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6558
SELECT - CAST( - + 37 AS SIGNED ) DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-6558
SELECT - CAST ( - + 37 AS INTEGER ) / + 39
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6559
SELECT ALL + 84 DIV 79
----
1

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL + 84 / 79
----
1

query I rowsort
SELECT - 16 * - 97
----
1552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6561
SELECT DISTINCT + MAX( ALL + 91 ) / - CAST( - COUNT( * ) AS SIGNED ) - + CAST( NULL AS SIGNED ) * + - 88 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT + MAX ( ALL + 91 ) / - CAST ( - COUNT ( * ) AS INTEGER ) - + CAST ( NULL AS INTEGER ) * + - 88 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT DISTINCT + + MIN( + 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT + + MIN ( + 96 ) AS col2
----
96

query II rowsort
SELECT ALL + + 69 AS col0, 56 * - 90 * 69 AS col0
----
69
-347760

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL + 34 * - + COUNT( * ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + 34 * - + COUNT ( * ) AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6565
SELECT - - COUNT( * ) DIV + + 91
----
0

skipif mysql # not compatible
query I rowsort label-6565
SELECT - - COUNT ( * ) / + + 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT ALL + 23 DIV - 32 col2
----
0

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL + 23 / - 32 col2
----
0

query II rowsort
SELECT DISTINCT + 83 AS col0, 62
----
83
62

query I rowsort
SELECT ALL + 69 * 94 + - 35 + + 4 AS col2
----
6455

onlyif mysql # aggregate syntax: 
query II rowsort label-6569
SELECT ALL + 1, COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-6569
SELECT ALL + 1, COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT ALL + 11 * + - ( + + 32 ) * - 81 * + - 19 * + 81 + + 68 + 86 AS col1
----
-43879814

query I rowsort
SELECT - 2 * + ( - 96 )
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6572
SELECT + COALESCE ( + COUNT( * ), - 68, + NULLIF ( + COALESCE ( + 61, - CAST( - 87 AS SIGNED ) * - 57 * ( + ( 16 ) ), - NULLIF ( + 88, + ( + 50 ) ), ( 18 ) DIV + COUNT( * ) + + 51 ), - 65 DIV 69 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6572
SELECT + COALESCE ( + COUNT ( * ), - 68, + NULLIF ( + COALESCE ( + 61, - CAST ( - 87 AS INTEGER ) * - 57 * ( + ( 16 ) ), - NULLIF ( + 88, + ( + 50 ) ), ( 18 ) / + COUNT ( * ) + + 51 ), - 65 / 69 ) ) col2
----
1

query I rowsort
SELECT ALL ( - - 62 ) * + + 24 + + 83 col0
----
1571

query I rowsort
SELECT DISTINCT 2 * - 71 + - + ( - + 94 ) AS col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6575
SELECT DISTINCT + CAST( - 58 AS SIGNED ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT + CAST ( - 58 AS INTEGER ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT DISTINCT + SUM( - - 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT + SUM ( - - 70 ) AS col2
----
70

query II rowsort
SELECT ALL 19 * + - 21 AS col2, - 7 + - 43 - 50 AS col1
----
-399
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6578
SELECT + COUNT( * ) DIV + 80 * - + 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6578
SELECT + COUNT ( * ) / + 80 * - + 30 AS col1
----
0

query I rowsort
SELECT - 36 * - + 12 col0
----
432

query II rowsort
SELECT + ( + 33 ), + 54 col2
----
33
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT SUM( DISTINCT 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6581
SELECT SUM ( DISTINCT 33 ) AS col1
----
33

query II rowsort
SELECT ALL 83 * - 79 col1, - 96 * 86 * - 24 AS col1
----
-6557
198144

query I rowsort
SELECT + ( 96 ) * + 65
----
6240

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT SUM( ALL + - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-6584
SELECT SUM ( ALL + - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6585
SELECT + 65 + - - 69 * + 59 * - 1 AS col1, 95 + CASE + ( - 97 ) WHEN - 18 THEN - CASE 53 WHEN - ( - 76 ) + - MAX( 21 + + 53 ) * - COUNT( * ) THEN 25 * 73 END * 91 ELSE 17 END + - 64
----
-4006
48

skipif mysql # not compatible
query II rowsort label-6585
SELECT + 65 + - - 69 * + 59 * - 1 AS col1, 95 + CASE + ( - 97 ) WHEN - 18 THEN - CASE 53 WHEN - ( - 76 ) + - MAX ( 21 + + 53 ) * - COUNT ( * ) THEN 25 * 73 END * 91 ELSE 17 END + - 64
----
-4006
48

query I rowsort
SELECT ALL 71 - - 40 col0
----
111

query I rowsort
SELECT ALL 77 * 11 AS col0
----
847

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT MAX( DISTINCT - 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-6588
SELECT MAX ( DISTINCT - 24 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-6589
SELECT + 51 * - COUNT( 73 ) + + - MIN( DISTINCT - 28 ), 45 AS col2
----
-23
45

skipif mysql # not compatible
query II rowsort label-6589
SELECT + 51 * - COUNT ( 73 ) + + - MIN ( DISTINCT - 28 ), 45 AS col2
----
-23
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT ALL MIN( ALL + 77 ) - + 72
----
5

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL MIN ( ALL + 77 ) - + 72
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6591
SELECT + ( - ( + + 91 ) ) / - + CAST( NULL AS SIGNED ) * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT + ( - ( + + 91 ) ) / - + CAST ( NULL AS INTEGER ) * - 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT + + 59 + MIN( - ( - 40 ) )
----
99

skipif mysql # not compatible
query I rowsort label-6592
SELECT + + 59 + MIN ( - ( - 40 ) )
----
99

query I rowsort
SELECT + 25 + - + 47
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT DISTINCT + COUNT( + 4 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT + COUNT ( + 4 ) col0
----
1

query II rowsort
SELECT + ( + 31 ) * + + ( + - 62 ) AS col2, + 86 + + 37 AS col1
----
-1922
123

query I rowsort
SELECT - 47 * - - 64 * - CASE + 78 WHEN + 98 THEN NULL WHEN + - ( + ( 34 ) ) THEN 33 ELSE ( + 7 ) END + 13
----
21069

query I rowsort
SELECT ALL COALESCE ( 81, 50 + - 99 )
----
81

query I rowsort
SELECT ( + - 61 )
----
-61

query I rowsort
SELECT + NULLIF ( + - ( + 74 ), - + 70 * 77 * 42 ) + 51 AS col0
----
-23

query I rowsort
SELECT + - 33 * - 14
----
462

query I rowsort
SELECT ALL - 27 + 38 + - 10 + + 85
----
86

query I rowsort
SELECT ALL ( + NULLIF ( + 25, 59 ) ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6603
SELECT ALL - CAST( - 25 AS SIGNED ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL - CAST ( - 25 AS INTEGER ) AS col0
----
25

query I rowsort
SELECT DISTINCT + 94 + + 49 AS col0
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6605
SELECT ALL + CASE - - 41 WHEN CASE + - 36 WHEN NULLIF ( - 8, 38 * 15 ) THEN - 94 - + 67 * 12 END THEN COUNT( * ) * - CAST( - 89 AS SIGNED ) + 51 * COUNT( * ) ELSE + 15 END + - 14 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL + CASE - - 41 WHEN CASE + - 36 WHEN NULLIF ( - 8, 38 * 15 ) THEN - 94 - + 67 * 12 END THEN COUNT ( * ) * - CAST ( - 89 AS INTEGER ) + 51 * COUNT ( * ) ELSE + 15 END + - 14 AS col2
----
1

query I rowsort
SELECT - 50 * - + 62 AS col2
----
3100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6607
SELECT ALL - 1 DIV COALESCE ( + 24, 59 DIV - COUNT( * ), 87 + 15, + CASE + 40 WHEN + 79 THEN NULL WHEN 67 THEN COALESCE ( 33, - 38, + AVG ( DISTINCT - 32 ) + - 16 ) * - 66 ELSE - 64 DIV 5 END ) + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL - 1 / COALESCE ( + 24, 59 / - COUNT ( * ), 87 + 15, + CASE + 40 WHEN + 79 THEN NULL WHEN 67 THEN COALESCE ( 33, - 38, + AVG ( DISTINCT - 32 ) + - 16 ) * - 66 ELSE - 64 / 5 END ) + - 30
----
-30

query I rowsort
SELECT ALL + - ( - + 58 ) AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6609
SELECT 81 * CAST( NULL AS SIGNED ) + - ( - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6609
SELECT 81 * CAST ( NULL AS INTEGER ) + - ( - 91 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT - - 29 DIV - 89 * - - ( - + 20 ) + + 50 * - 3 AS col2
----
-150

skipif mysql # not compatible
query I rowsort label-6610
SELECT - - 29 / - 89 * - - ( - + 20 ) + + 50 * - 3 AS col2
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT + 80 * - - COUNT( * ) - 88 * - COUNT( * ) * 66 col0
----
5888

skipif mysql # not compatible
query I rowsort label-6611
SELECT + 80 * - - COUNT ( * ) - 88 * - COUNT ( * ) * 66 col0
----
5888

query I rowsort
SELECT - 79 + 96
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6613
SELECT ALL MIN( - NULLIF ( + - 25, - + 99 DIV 63 + - 43 ) ) DIV - 28 + 37 + - 45
----
-8

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL MIN ( - NULLIF ( + - 25, - + 99 / 63 + - 43 ) ) / - 28 + 37 + - 45
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT ALL + 87 DIV + - 76
----
-1

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL + 87 / + - 76
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6615
SELECT ALL + 90 DIV - 57 + + + NULLIF ( + 53, - 76 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL + 90 / - 57 + + + NULLIF ( + 53, - 76 ) AS col0
----
52

query I rowsort
SELECT - CASE + 20 WHEN - - 34 THEN - 5 ELSE + 63 END + - 74
----
-137

query I rowsort
SELECT DISTINCT + 69 * 10
----
690

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT ALL + MIN( 52 )
----
52

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL + MIN ( 52 )
----
52

query I rowsort
SELECT ( + 12 ) AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6620
SELECT ALL 41 DIV + COUNT( ALL + - 33 ) - + + 47 + + 1 + 23 * + 86 + 77
----
2050

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL 41 / + COUNT ( ALL + - 33 ) - + + 47 + + 1 + 23 * + 86 + 77
----
2050

query I rowsort
SELECT ( - 2 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT - COUNT( * ) * + 22 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6622
SELECT - COUNT ( * ) * + 22 AS col2
----
-22

query I rowsort
SELECT DISTINCT + 6 * - - 38
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6624
SELECT 34 AS col1, CAST( NULL AS SIGNED ) + - 92 * + 83 AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-6624
SELECT 34 AS col1, CAST ( NULL AS INTEGER ) + - 92 * + 83 AS col2
----
34
NULL

query I rowsort
SELECT ALL - 43 col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT 78 * - 48 * + CASE - COUNT( * ) WHEN 32 THEN - COUNT( * ) WHEN + 38 + + 81 THEN NULL ELSE NULL END * 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT 78 * - 48 * + CASE - COUNT ( * ) WHEN 32 THEN - COUNT ( * ) WHEN + 38 + + 81 THEN NULL ELSE NULL END * 90 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 7 * 99 AS col2
----
693

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6628
SELECT DISTINCT 23 AS col1, - 96 DIV - 90 + ( + - COUNT( * ) ) * + 64 + - 41 * 73 AS col0, + + 67
----
23
-3056
67

skipif mysql # not compatible
query III rowsort label-6628
SELECT DISTINCT 23 AS col1, - 96 / - 90 + ( + - COUNT ( * ) ) * + 64 + - 41 * 73 AS col0, + + 67
----
23
-3056
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6629
SELECT + COUNT( * ) DIV MIN( DISTINCT - 41 ) * 88
----
0

skipif mysql # not compatible
query I rowsort label-6629
SELECT + COUNT ( * ) / MIN ( DISTINCT - 41 ) * 88
----
0

query I rowsort
SELECT ALL + 17 * + - 29
----
-493

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT ALL + NULLIF ( COUNT( * ), 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL + NULLIF ( COUNT ( * ), 35 ) AS col1
----
1

query I rowsort
SELECT - + ( 41 )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-6633
SELECT - - 10 AS col2, + COUNT( * )
----
10
1

skipif mysql # not compatible
query II rowsort label-6633
SELECT - - 10 AS col2, + COUNT ( * )
----
10
1

query I rowsort
SELECT + 89 * + - ( + - 65 )
----
5785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6635
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6636
SELECT ALL + - MAX( DISTINCT 97 ) + + 20 * CAST( + 1 AS SIGNED ) - + + 91
----
-168

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL + - MAX ( DISTINCT 97 ) + + 20 * CAST ( + 1 AS INTEGER ) - + + 91
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6637
SELECT ALL - 98 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL - 98 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL CASE WHEN NULL NOT BETWEEN - 57 AND 22 THEN NULL WHEN NOT NULL IN ( + 78 * SUM( ALL + 18 ) ) THEN + 49 ELSE NULL END + + CASE WHEN NOT ( 26 ) IS NOT NULL THEN + 25 ELSE 95 END + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL CASE WHEN NULL NOT BETWEEN - 57 AND 22 THEN NULL WHEN NOT NULL IN ( + 78 * SUM ( ALL + 18 ) ) THEN + 49 ELSE NULL END + + CASE WHEN NOT ( 26 ) IS NOT NULL THEN + 25 ELSE 95 END + - 29
----
NULL

query I rowsort
SELECT + 48 * 34 - + 17 * 49 + 48 col2
----
847

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL + 15 + + 70 + - 68 - + + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL + 15 + + 70 + - 68 - + + COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT CASE ( - ( 97 ) ) WHEN - 18 * - 46 * + 80 + + 35 THEN 56 / + 39 * COUNT( 5 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT CASE ( - ( 97 ) ) WHEN - 18 * - 46 * + 80 + + 35 THEN 56 / + 39 * COUNT ( 5 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 82 + + - ( 48 ) AS col2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT + COUNT( * ) + 66 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6643
SELECT + COUNT ( * ) + 66 AS col0
----
67

query I rowsort
SELECT ALL + 10 + + 81 + 10 + NULLIF ( + 49, + 21 ) AS col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT DISTINCT + 1 * - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT + 1 * - + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6646
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 83 * 90
----
7470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6648
SELECT 63 * + CAST( - - 70 AS SIGNED ) col0
----
4410

skipif mysql # not compatible
query I rowsort label-6648
SELECT 63 * + CAST ( - - 70 AS INTEGER ) col0
----
4410

query I rowsort
SELECT ALL 90 * - 30 AS col1
----
-2700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6650
SELECT CAST( NULL AS DECIMAL ) * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6650
SELECT CAST ( NULL AS REAL ) * - 88
----
NULL

query II rowsort
SELECT 25 col1, - 43 * - + 12 AS col1
----
25
516

query I rowsort
SELECT 1 * + - 73 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ALL - COUNT( * ) - + 59
----
-60

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL - COUNT ( * ) - + 59
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6654
SELECT 78 DIV - - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-6654
SELECT 78 / - - COUNT ( * )
----
78

query II rowsort
SELECT + 61 AS col0, 17
----
61
17

query I rowsort
SELECT ALL - 21 * 50 AS col0
----
-1050

query I rowsort
SELECT 98 - 18
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT 68 DIV 37
----
1

skipif mysql # not compatible
query I rowsort label-6658
SELECT 68 / 37
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6659
SELECT + 75 AS col2, - SUM( - - 51 )
----
75
-51

skipif mysql # not compatible
query II rowsort label-6659
SELECT + 75 AS col2, - SUM ( - - 51 )
----
75
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT COUNT( * ) * 73
----
73

skipif mysql # not compatible
query I rowsort label-6660
SELECT COUNT ( * ) * 73
----
73

query I rowsort
SELECT DISTINCT + - 3 * - 81
----
243

query I rowsort
SELECT ALL - ( - 79 ) AS col0
----
79

query I rowsort
SELECT + 46 + 48 AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6664
SELECT + NULLIF ( + CAST( 45 AS SIGNED ), - 66 ) AS col0, - COUNT( * ) AS col0
----
45
-1

skipif mysql # not compatible
query II rowsort label-6664
SELECT + NULLIF ( + CAST ( 45 AS INTEGER ), - 66 ) AS col0, - COUNT ( * ) AS col0
----
45
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6665
SELECT - + 92, COUNT( ALL + 65 ) AS col2
----
-92
1

skipif mysql # not compatible
query II rowsort label-6665
SELECT - + 92, COUNT ( ALL + 65 ) AS col2
----
-92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT ALL + - ( CASE 71 WHEN + COUNT( * ) THEN 84 * 81 + - + CASE WHEN NOT ( NULL ) > NULL THEN - COALESCE ( - 56, 37 ) END * 76 WHEN - 82 THEN 39 END ) * MIN( + 88 + - 65 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL + - ( CASE 71 WHEN + COUNT ( * ) THEN 84 * 81 + - + CASE WHEN NOT ( NULL ) > NULL THEN - COALESCE ( - 56, 37 ) END * 76 WHEN - 82 THEN 39 END ) * MIN ( + 88 + - 65 ) AS col2
----
NULL

query I rowsort
SELECT 79 * + + 32 * - 12
----
-30336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6668
SELECT DISTINCT + - 11 + 19 + - 93 DIV + COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT + - 11 + 19 + - 93 / + COUNT ( * ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query III rowsort label-6669
SELECT ALL + 82, + 62 AS col0, - + 1 * 94 + + COUNT( * ) + 7 + - 42 AS col1
----
82
62
-128

skipif mysql # not compatible
query III rowsort label-6669
SELECT ALL + 82, + 62 AS col0, - + 1 * 94 + + COUNT ( * ) + 7 + - 42 AS col1
----
82
62
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6670
SELECT - - 25 AS col1, - 23 DIV 75 * - 7, + COUNT( * ) * + 11 AS col0
----
25
0
11

skipif mysql # not compatible
query III rowsort label-6670
SELECT - - 25 AS col1, - 23 / 75 * - 7, + COUNT ( * ) * + 11 AS col0
----
25
0
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT ALL - MAX( DISTINCT - + 87 ) + - 93
----
-6

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL - MAX ( DISTINCT - + 87 ) + - 93
----
-6

query I rowsort
SELECT DISTINCT - ( - 47 )
----
47

query I rowsort
SELECT ALL - 5 + - - 86 AS col0
----
81

query I rowsort
SELECT ALL 40 + - 95 AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6675
SELECT 17 + - 58 AS col2, COALESCE ( - 38, - - 19 * + 78 + + CAST( NULL AS SIGNED ) ) AS col1
----
-41
-38

skipif mysql # not compatible
query II rowsort label-6675
SELECT 17 + - 58 AS col2, COALESCE ( - 38, - - 19 * + 78 + + CAST ( NULL AS INTEGER ) ) AS col1
----
-41
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT + COALESCE ( - 45, - ( ( + + 22 ) ) * + COUNT( * ), 14 + + 63 + - + 31 ) + 3 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-6676
SELECT + COALESCE ( - 45, - ( ( + + 22 ) ) * + COUNT ( * ), 14 + + 63 + - + 31 ) + 3 AS col1
----
-42

query II rowsort
SELECT 91, + 9 * - 35 * 70 * + - 39 col2
----
91
859950

query II rowsort
SELECT 84 col2, 59
----
84
59

query I rowsort
SELECT - + ( + - 55 ) AS col0
----
55

query I rowsort
SELECT + 89 * + 98 - - 46 + + + ( + 8 ) AS col0
----
8776

query I rowsort
SELECT ALL 29 * + 68 + + 82 * - 50
----
-2128

query I rowsort
SELECT DISTINCT ( + ( 80 ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT ALL - 3 - + 50 + 23 * + COUNT( * ) + - 72
----
-102

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL - 3 - + 50 + 23 * + COUNT ( * ) + - 72
----
-102

query I rowsort
SELECT 63 - + 81 + + 92
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT DISTINCT SUM( DISTINCT - 77 ) - + - 43 + - 19
----
-53

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT SUM ( DISTINCT - 77 ) - + - 43 + - 19
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6686
SELECT 15 * + CAST( 36 AS SIGNED ) + + 82 AS col2
----
622

skipif mysql # not compatible
query I rowsort label-6686
SELECT 15 * + CAST ( 36 AS INTEGER ) + + 82 AS col2
----
622

query I rowsort
SELECT ALL 36 * - 22 AS col1
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT ALL - MIN( ALL - 25 ) * COALESCE ( + + 86, 71 ) * ( - MAX( DISTINCT + 5 ) ) + + + 52 AS col2
----
-10698

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL - MIN ( ALL - 25 ) * COALESCE ( + + 86, 71 ) * ( - MAX ( DISTINCT + 5 ) ) + + + 52 AS col2
----
-10698

query I rowsort
SELECT + 76 * + 8 * - + 30 + - 24 - 94 AS col1
----
-18358

query I rowsort
SELECT ALL 0 * + 65
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6691
SELECT + 6 * - COUNT( * ) AS col1, 46 + 83 - - MAX( + 72 ) + - 29 * + CASE 4 WHEN + 26 * 33 * + + 85 THEN + 19 END + - 5 * + 89
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-6691
SELECT + 6 * - COUNT ( * ) AS col1, 46 + 83 - - MAX ( + 72 ) + - 29 * + CASE 4 WHEN + 26 * 33 * + + 85 THEN + 19 END + - 5 * + 89
----
-6
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6692
SELECT - 64 DIV + COALESCE ( MAX( + - 86 ), + - 52 DIV + + 18 + - COUNT( - 90 ) + + - 1 )
----
0

skipif mysql # not compatible
query I rowsort label-6692
SELECT - 64 / + COALESCE ( MAX ( + - 86 ), + - 52 / + + 18 + - COUNT ( - 90 ) + + - 1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6693
SELECT + 44 * 36 AS col2, ( + CASE - 4 WHEN - CASE WHEN 39 IS NULL THEN NULL WHEN ( ( - 57 ) * - 52 * - 66 ) BETWEEN ( SUM( + COALESCE ( 67, 54 ) ) * - CAST( NULL AS SIGNED ) + 60 * 26 ) AND NULL THEN 91 + + 7 * - 49 END THEN NULL WHEN - 6 + - COUNT( * ) THEN - 93 END )
----
1584
NULL

skipif mysql # not compatible
query II rowsort label-6693
SELECT + 44 * 36 AS col2, ( + CASE - 4 WHEN - CASE WHEN 39 IS NULL THEN NULL WHEN ( ( - 57 ) * - 52 * - 66 ) BETWEEN ( SUM ( + COALESCE ( 67, 54 ) ) * - CAST ( NULL AS INTEGER ) + 60 * 26 ) AND NULL THEN 91 + + 7 * - 49 END THEN NULL WHEN - 6 + - COUNT ( * ) THEN - 93 END )
----
1584
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6694
SELECT - 14 + COALESCE ( + CAST( NULL AS SIGNED ), 40 * + 12 + + - NULLIF ( 54, 79 ) + + 68 )
----
480

skipif mysql # not compatible
query I rowsort label-6694
SELECT - 14 + COALESCE ( + CAST ( NULL AS INTEGER ), 40 * + 12 + + - NULLIF ( 54, 79 ) + + 68 )
----
480

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT + - 95 DIV + - 67
----
1

skipif mysql # not compatible
query I rowsort label-6695
SELECT + - 95 / + - 67
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT DISTINCT - ( 18 ) * + 16 + COUNT( * ) - CASE WHEN NULL <> COUNT( * ) THEN - 19 WHEN NOT ( 97 ) IS NULL THEN NULL ELSE NULL END + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT - ( 18 ) * + 16 + COUNT ( * ) - CASE WHEN NULL <> COUNT ( * ) THEN - 19 WHEN NOT ( 97 ) IS NULL THEN NULL ELSE NULL END + - 49
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6697
SELECT ALL 41 + - - 46 col0, COUNT( * ) AS col0
----
87
1

skipif mysql # not compatible
query II rowsort label-6697
SELECT ALL 41 + - - 46 col0, COUNT ( * ) AS col0
----
87
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6698
SELECT ALL - 51 + 88 + + 99 + + 60 DIV - 50, + 46 AS col1
----
135
46

skipif mysql # not compatible
query II rowsort label-6698
SELECT ALL - 51 + 88 + + 99 + + 60 / - 50, + 46 AS col1
----
135
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT - - COUNT( * ) * ( + + 69 ) * 39 * - 46 AS col0
----
-123786

skipif mysql # not compatible
query I rowsort label-6699
SELECT - - COUNT ( * ) * ( + + 69 ) * 39 * - 46 AS col0
----
-123786

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6700
SELECT ALL + COUNT( * ) DIV - + 17
----
0

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL + COUNT ( * ) / - + 17
----
0

query II rowsort
SELECT ALL + - 26 + - 75, + 67 AS col0
----
-101
67

query I rowsort
SELECT - ( - + 66 ) AS col1
----
66

query I rowsort
SELECT ALL NULLIF ( + 91, - + 5 ) col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6704
SELECT DISTINCT - COUNT( * ) DIV 27 + - COUNT( * ) + + - 90 + + + COALESCE ( + ( - 99 ), - 73 )
----
-190

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT - COUNT ( * ) / 27 + - COUNT ( * ) + + - 90 + + + COALESCE ( + ( - 99 ), - 73 )
----
-190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6705
SELECT + - COUNT( * ) DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-6705
SELECT + - COUNT ( * ) / 32
----
0

query I rowsort
SELECT - + 21 * - 10 AS col1
----
210

query I rowsort
SELECT ALL - 15 + 65
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6708
SELECT - CASE + NULLIF ( - NULLIF ( + CAST( - 5 AS SIGNED ), + 26 ), 9 * + - 1 + - + 38 ) WHEN - 87 + 95 THEN - 58 * + CASE 43 WHEN - ( COUNT( * ) ) THEN NULL WHEN - 91 * + 49 THEN NULLIF ( + 31, - 91 ) WHEN + 7 THEN NULL ELSE NULL END + - 63 * - 24 ELSE NULL END + + 1 * + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6708
SELECT - CASE + NULLIF ( - NULLIF ( + CAST ( - 5 AS INTEGER ), + 26 ), 9 * + - 1 + - + 38 ) WHEN - 87 + 95 THEN - 58 * + CASE 43 WHEN - ( COUNT ( * ) ) THEN NULL WHEN - 91 * + 49 THEN NULLIF ( + 31, - 91 ) WHEN + 7 THEN NULL ELSE NULL END + - 63 * - 24 ELSE NULL END + + 1 * + 53 AS col2
----
NULL

query I rowsort
SELECT - 73 - 48
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6710
SELECT - - COALESCE ( - + COALESCE ( 2, COUNT( * ) + - CASE ( + + 87 ) WHEN + 22 + + 97 + + 95 + - - 17 + - 25 THEN NULL ELSE 15 END DIV 30 ), - 84 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6710
SELECT - - COALESCE ( - + COALESCE ( 2, COUNT ( * ) + - CASE ( + + 87 ) WHEN + 22 + + 97 + + 95 + - - 17 + - 25 THEN NULL ELSE 15 END / 30 ), - 84 ) AS col1
----
-2

query I rowsort
SELECT - 87 * + - 29
----
2523

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL - 55 - + COUNT( * ) - 34
----
-90

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL - 55 - + COUNT ( * ) - 34
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT MIN( DISTINCT + + 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6713
SELECT MIN ( DISTINCT + + 63 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL + ( - COUNT( 77 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL + ( - COUNT ( 77 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT ALL + + COUNT( * ) - + 50 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL + + COUNT ( * ) - + 50 AS col1
----
-49

query I rowsort
SELECT - ( - ( + 50 ) ) AS col0
----
50

query I rowsort
SELECT ALL COALESCE ( + 67, + + 90 ) AS col0
----
67

query I rowsort
SELECT - 19 + - - 54 AS col0
----
35

query I rowsort
SELECT - 8 - 23 AS col1
----
-31

query I rowsort
SELECT - 26 + - 92
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT - COUNT( - 91 )
----
-1

skipif mysql # not compatible
query I rowsort label-6721
SELECT - COUNT ( - 91 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6722
SELECT ALL - 65 DIV + + 96
----
0

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL - 65 / + + 96
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6723
SELECT + COUNT( - + 73 ) * - CAST( - + 65 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-6723
SELECT + COUNT ( - + 73 ) * - CAST ( - + 65 AS INTEGER )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT + COUNT( ALL 11 ) + 14 + - 52 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-6724
SELECT + COUNT ( ALL 11 ) + 14 + - 52 AS col2
----
-37

query I rowsort
SELECT DISTINCT 2 * 1 AS col0
----
2

query II rowsort
SELECT ALL 93, + 48 + + 53 col2
----
93
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT - SUM( DISTINCT + ( - 74 ) ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-6727
SELECT - SUM ( DISTINCT + ( - 74 ) ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT + COUNT( * ) * + - 14
----
-14

skipif mysql # not compatible
query I rowsort label-6728
SELECT + COUNT ( * ) * + - 14
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT DISTINCT + 48 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT + 48 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 93 * + 74 * 84 * + 67
----
-38731896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6731
SELECT + 12 * - - CAST( COUNT( * ) AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-6731
SELECT + 12 * - - CAST ( COUNT ( * ) AS INTEGER )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6732
SELECT ALL 22 DIV 32 * - - 97 + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL 22 / 32 * - - 97 + 32 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT + SUM( - ( - + 77 ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6733
SELECT + SUM ( - ( - + 77 ) ) AS col1
----
77

query I rowsort
SELECT - 83 * ( + 86 )
----
-7138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6735
SELECT + 88 * - - CAST( + 27 AS SIGNED )
----
2376

skipif mysql # not compatible
query I rowsort label-6735
SELECT + 88 * - - CAST ( + 27 AS INTEGER )
----
2376

query I rowsort
SELECT + 0 - 20 AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6737
SELECT + ( 42 ) - - CAST( NULL AS SIGNED ) / 21 + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6737
SELECT + ( 42 ) - - CAST ( NULL AS INTEGER ) / 21 + 82 AS col0
----
NULL

query II rowsort
SELECT ALL + 68 col2, 17 + + ( - ( - ( - 75 ) ) )
----
68
-58

query I rowsort
SELECT + - 66 * - + 11 * + 85 AS col0
----
61710

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL - COUNT( * ) * + 36 * - 68 + + 24 AS col0
----
2472

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL - COUNT ( * ) * + 36 * - 68 + + 24 AS col0
----
2472

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT + + MIN( + - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-6741
SELECT + + MIN ( + - 93 )
----
-93

query II rowsort
SELECT 59 AS col2, + 97
----
59
97

query I rowsort
SELECT ALL - + ( + + 55 ) * 24 + - 28
----
-1348

query II rowsort
SELECT + 95, + 67 AS col0
----
95
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT + 78 - COALESCE ( + + 18, + + COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-6745
SELECT + 78 - COALESCE ( + + 18, + + COUNT ( * ) )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6746
SELECT COUNT( * ) AS col2, 31 DIV - - 84
----
1
0

skipif mysql # not compatible
query II rowsort label-6746
SELECT COUNT ( * ) AS col2, 31 / - - 84
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT - - MIN( ALL 72 ) * - 37 + - 96 + + NULLIF ( + COUNT( * ), - 68 ) * + 93 - + - 64 * - 48 * 17 + + - COUNT( * )
----
-54892

skipif mysql # not compatible
query I rowsort label-6747
SELECT - - MIN ( ALL 72 ) * - 37 + - 96 + + NULLIF ( + COUNT ( * ), - 68 ) * + 93 - + - 64 * - 48 * 17 + + - COUNT ( * )
----
-54892

query I rowsort
SELECT + 91 - 21
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT ALL - - COUNT( * ) * + 4 + 64
----
68

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL - - COUNT ( * ) * + 4 + 64
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT ALL + - COUNT( * ) * ( 79 ) + - 79 + - + 98 - + + 54 + 64 + 16 AS col1
----
-230

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL + - COUNT ( * ) * ( 79 ) + - 79 + - + 98 - + + 54 + 64 + 16 AS col1
----
-230

query I rowsort
SELECT + 44 + + + 58 * + 58 + + 11 + + 76 AS col0
----
3495

query I rowsort
SELECT - + 33 * - - 70 AS col0
----
-2310

query I rowsort
SELECT + 58 + + 86 * 68
----
5906

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT ALL - COUNT( DISTINCT 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL - COUNT ( DISTINCT 80 )
----
-1

query I rowsort
SELECT ( - - 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL - 12 * + 98 * + 30 + - 97 - + - ( + + COUNT( * ) ) AS col1
----
-35376

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL - 12 * + 98 * + 30 + - 97 - + - ( + + COUNT ( * ) ) AS col1
----
-35376

query II rowsort
SELECT DISTINCT 97 AS col1, 44 AS col2
----
97
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6758
SELECT - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6758
SELECT - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6759
SELECT + 47 * 38 DIV + 73 + + 29 DIV - + COUNT( * ) + - - 87
----
82

skipif mysql # not compatible
query I rowsort label-6759
SELECT + 47 * 38 / + 73 + + 29 / - + COUNT ( * ) + - - 87
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6760
SELECT - COUNT( * ) * - 26 * + - 49 col0, 85 + + - 28 + - - 96 - ( + 25 ) * + 57 * - NULLIF ( + - 90, + - AVG ( ALL 12 ) * 70 ) AS col2
----
-1274
-128097

skipif mysql # not compatible
query II rowsort label-6760
SELECT - COUNT ( * ) * - 26 * + - 49 col0, 85 + + - 28 + - - 96 - ( + 25 ) * + 57 * - NULLIF ( + - 90, + - AVG ( ALL 12 ) * 70 ) AS col2
----
-1274
-128097

onlyif mysql # DIV for integer division: 
query II rowsort label-6761
SELECT DISTINCT + 1 DIV + + 5 + + 92 AS col2, 27 AS col2
----
92
27

skipif mysql # not compatible
query II rowsort label-6761
SELECT DISTINCT + 1 / + + 5 + + 92 AS col2, 27 AS col2
----
92
27

onlyif mysql # aggregate syntax: 
query II rowsort label-6762
SELECT ALL - - COUNT( * ) - - - ( - COUNT( * ) ), 84 AS col1
----
2
84

skipif mysql # not compatible
query II rowsort label-6762
SELECT ALL - - COUNT ( * ) - - - ( - COUNT ( * ) ), 84 AS col1
----
2
84

query I rowsort
SELECT 47 * + + 47 * - - 33 col2
----
72897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6764
SELECT ALL - 61 * + CASE - 51 WHEN + - 15 + 97 THEN CAST( - 17 AS SIGNED ) WHEN - + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL - 61 * + CASE - 51 WHEN + - 15 + 97 THEN CAST ( - 17 AS INTEGER ) WHEN - + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT 72 * - - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-6765
SELECT 72 * - - COUNT ( * )
----
72

query I rowsort
SELECT ALL - 61 * 18
----
-1098

query I rowsort
SELECT DISTINCT + 7 + + 34 + + 16
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT DISTINCT + 44 + + 4 + 37 - + 38 DIV + 52 * - 15 * - 20
----
85

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT + 44 + + 4 + 37 - + 38 / + 52 * - 15 * - 20
----
85

query I rowsort
SELECT ALL - 89 + 13 AS col0
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6770
SELECT COUNT( * ) DIV + - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6770
SELECT COUNT ( * ) / + - 61 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6771
SELECT DISTINCT + 17 DIV + 71 AS col2, 49 * + 15 * + + 36 * + 20 AS col2
----
0
529200

skipif mysql # not compatible
query II rowsort label-6771
SELECT DISTINCT + 17 / + 71 AS col2, 49 * + 15 * + + 36 * + 20 AS col2
----
0
529200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6772
SELECT CAST( NULL AS SIGNED ) / - 27 * 55 + + 37 * - MIN( ALL + CAST( NULL AS SIGNED ) ) * - - 26 + + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6772
SELECT CAST ( NULL AS INTEGER ) / - 27 * 55 + + 37 * - MIN ( ALL + CAST ( NULL AS INTEGER ) ) * - - 26 + + + 42
----
NULL

query I rowsort
SELECT ALL - 90 + + - 76
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT DISTINCT + COUNT( * ) * 73
----
73

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT + COUNT ( * ) * 73
----
73

query II rowsort
SELECT ALL 79 + - 17 AS col2, - 11 AS col0
----
62
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT + 25 * + 3 + 54 + - 58 + COUNT( * ) * ( - + 86 ) * - + 37 * + ( - 1 ) + - 61 AS col1
----
-3172

skipif mysql # not compatible
query I rowsort label-6776
SELECT + 25 * + 3 + 54 + - 58 + COUNT ( * ) * ( - + 86 ) * - + 37 * + ( - 1 ) + - 61 AS col1
----
-3172

query I rowsort
SELECT ALL - - 18 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT DISTINCT - COUNT( ALL + - 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-6778
SELECT DISTINCT - COUNT ( ALL + - 28 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6779
SELECT + 1 * 54 col1, - MIN( ALL - 32 ) + - - COUNT( * ) + + SUM( DISTINCT - + 67 ) AS col2
----
54
-34

skipif mysql # not compatible
query II rowsort label-6779
SELECT + 1 * 54 col1, - MIN ( ALL - 32 ) + - - COUNT ( * ) + + SUM ( DISTINCT - + 67 ) AS col2
----
54
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6780
SELECT DISTINCT - + NULLIF ( + + CASE 46 WHEN - 2 THEN + SUM( + 57 ) * COUNT( * ) * - CAST( + + SUM( ALL 85 ) AS SIGNED ) WHEN - 8 THEN NULL END, - 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT - + NULLIF ( + + CASE 46 WHEN - 2 THEN + SUM ( + 57 ) * COUNT ( * ) * - CAST ( + + SUM ( ALL 85 ) AS INTEGER ) WHEN - 8 THEN NULL END, - 31 ) AS col0
----
NULL

query I rowsort
SELECT ALL 45 - + NULLIF ( 26, + + 96 ) + - ( 83 ) col1
----
-64

query I rowsort
SELECT DISTINCT - - 50 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6783
SELECT 16 + - + 9 / COUNT( * ) + CAST( NULL AS SIGNED ) + - 54 * 84 * + 81 * + 48 * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT 16 + - + 9 / COUNT ( * ) + CAST ( NULL AS INTEGER ) + - 54 * 84 * + 81 * + 48 * - 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6784
SELECT ALL - + MIN( - 21 ) AS col0, - 10 + + + 59 DIV 53 AS col1
----
21
-9

skipif mysql # not compatible
query II rowsort label-6784
SELECT ALL - + MIN ( - 21 ) AS col0, - 10 + + + 59 / 53 AS col1
----
21
-9

query I rowsort
SELECT + + NULLIF ( - 58, - 60 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6786
SELECT ALL - + 50 - NULLIF ( 24, CASE + 87 WHEN CAST( - 8 AS DECIMAL ) / CAST( NULL AS SIGNED ) THEN - 32 END + + 92 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL - + 50 - NULLIF ( 24, CASE + 87 WHEN CAST ( - 8 AS REAL ) / CAST ( NULL AS INTEGER ) THEN - 32 END + + 92 ) AS col1
----
-74

query I rowsort
SELECT DISTINCT - - 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT COALESCE ( + COUNT( * ), 37 )
----
1

skipif mysql # not compatible
query I rowsort label-6788
SELECT COALESCE ( + COUNT ( * ), 37 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6789
SELECT ALL - - COALESCE ( + COUNT( * ), + 52 DIV + COUNT( * ) + - 21 DIV 47 + - - 16 + + - 13, - + CASE - 39 WHEN NULLIF ( - COALESCE ( + COUNT( DISTINCT - 75 ), 3 ), 35 ) THEN + 72 END, - 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - - COALESCE ( + COUNT ( * ), + 52 / + COUNT ( * ) + - 21 / 47 + - - 16 + + - 13, - + CASE - 39 WHEN NULLIF ( - COALESCE ( + COUNT ( DISTINCT - 75 ), 3 ), 35 ) THEN + 72 END, - 79 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT ALL 8 * 95 * 33 + + 13 / + - 46 * 96 * - - CAST( NULL AS SIGNED ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL 8 * 95 * 33 + + 13 / + - 46 * 96 * - - CAST ( NULL AS INTEGER ) * + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT 72 * - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-6791
SELECT 72 * - COUNT ( * )
----
-72

query II rowsort
SELECT ALL 17 * - 70, - 28 AS col1
----
-1190
-28

query I rowsort
SELECT DISTINCT + 5 * 7 col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6794
SELECT + NULLIF ( - 85, - + 26 - - 6 + - 50 ) + MAX( - + 86 ), 79 AS col0
----
-171
79

skipif mysql # not compatible
query II rowsort label-6794
SELECT + NULLIF ( - 85, - + 26 - - 6 + - 50 ) + MAX ( - + 86 ), 79 AS col0
----
-171
79

query I rowsort
SELECT ALL 75 * + ( - 48 ) AS col2
----
-3600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6796
SELECT 51 DIV + MIN( ALL - 72 ) + - 92 * - 49
----
4508

skipif mysql # not compatible
query I rowsort label-6796
SELECT 51 / + MIN ( ALL - 72 ) + - 92 * - 49
----
4508

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT + COUNT( * ) * + 44 + - + CASE - ( + NULLIF ( 71, - 12 ) ) WHEN 31 * + 98 * 42 + + COUNT( * ) THEN - ( - 68 ) + + 96 WHEN 99 / 37 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6797
SELECT + COUNT ( * ) * + 44 + - + CASE - ( + NULLIF ( 71, - 12 ) ) WHEN 31 * + 98 * 42 + + COUNT ( * ) THEN - ( - 68 ) + + 96 WHEN 99 / 37 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6798
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - + ( - - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6798
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - + ( - - 4 )
----
NULL

query I rowsort
SELECT ( 55 ) - - 81 AS col2
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6800
SELECT ALL 55 * + - CAST( + 83 AS SIGNED )
----
-4565

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL 55 * + - CAST ( + 83 AS INTEGER )
----
-4565

onlyif mysql # aggregate syntax: 
query II rowsort label-6801
SELECT MIN( - - 62 ) * + - COUNT( * ) AS col2, + 45 * + + 44 col2
----
-62
1980

skipif mysql # not compatible
query II rowsort label-6801
SELECT MIN ( - - 62 ) * + - COUNT ( * ) AS col2, + 45 * + + 44 col2
----
-62
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL 49 + - 72 + COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL 49 + - 72 + COUNT ( * ) AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6803
SELECT ALL + 93 + + COUNT( * ) - - 38 DIV 95 * - 78 * + 17 * - ( - 31 )
----
94

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL + 93 + + COUNT ( * ) - - 38 / 95 * - 78 * + 17 * - ( - 31 )
----
94

query I rowsort
SELECT 98 + - 70 AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6805
SELECT DISTINCT COUNT( * ) + - COALESCE ( COUNT( * ), - - 99 ) + + - COUNT( * ) DIV - 89 * + 8
----
0

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT COUNT ( * ) + - COALESCE ( COUNT ( * ), - - 99 ) + + - COUNT ( * ) / - 89 * + 8
----
0

query I rowsort
SELECT 7 + + 56
----
63

query I rowsort
SELECT ALL 77 * - 4 AS col1
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT ( ( NULLIF ( + 80, + NULLIF ( - 81, 60 * 95 + + - COUNT( * ) * + 99 + - ( - + 12 ) + - + COUNT( * ) + - + 54 * + + 25 * - 78 + + 29 ) * + 86 ) ) ) * 17 col0
----
1360

skipif mysql # not compatible
query I rowsort label-6808
SELECT ( ( NULLIF ( + 80, + NULLIF ( - 81, 60 * 95 + + - COUNT ( * ) * + 99 + - ( - + 12 ) + - + COUNT ( * ) + - + 54 * + + 25 * - 78 + + 29 ) * + 86 ) ) ) * 17 col0
----
1360

query I rowsort
SELECT ALL 83 + + 34 + 11
----
128

query I rowsort
SELECT DISTINCT + 12 + - 74
----
-62

query I rowsort
SELECT 23 * 12 AS col0
----
276

onlyif mysql # aggregate syntax: 
query II rowsort label-6812
SELECT + - 38 AS col2, COUNT( - 75 )
----
-38
1

skipif mysql # not compatible
query II rowsort label-6812
SELECT + - 38 AS col2, COUNT ( - 75 )
----
-38
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL - 41 * + - SUM( + 96 ) - - ( 48 ) - 25
----
3959

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL - 41 * + - SUM ( + 96 ) - - ( 48 ) - 25
----
3959

query I rowsort
SELECT DISTINCT - - 38 col1
----
38

query I rowsort
SELECT DISTINCT - 58 col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6816
SELECT ALL + COUNT( * ) DIV COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL + COUNT ( * ) / COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 19 * + - 3 + - - 23 * + 68 - 96 + + 62 AS col0
----
1587

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT ALL - COUNT( * ) - + - 8 - COUNT( * ) * 80 * + + 0 * + + MAX( + 53 ) * + 12 * - ( 0 ) * + 39 - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL - COUNT ( * ) - + - 8 - COUNT ( * ) * 80 * + + 0 * + + MAX ( + 53 ) * + 12 * - ( 0 ) * + 39 - COUNT ( * )
----
6

query I rowsort
SELECT 10 * + - 4 * 69 AS col1
----
-2760

query I rowsort
SELECT ALL - ( 29 )
----
-29

query II rowsort
SELECT - 48, 38 AS col1
----
-48
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6822
SELECT - 43 * - 12 + + + 15 + - COUNT( * ) * - - 0 * + 5 + 86 + + 69 * - 89 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT - 43 * - 12 + + + 15 + - COUNT ( * ) * - - 0 * + 5 + 86 + + 69 * - 89 - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT - ( - - COUNT( * ) ) * + MIN( DISTINCT - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-6823
SELECT - ( - - COUNT ( * ) ) * + MIN ( DISTINCT - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT - + 46 + - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-6824
SELECT - + 46 + - COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT - COUNT( - 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-6825
SELECT - COUNT ( - 68 )
----
-1

query I rowsort
SELECT ALL + 61 + 30 * - 24 + 82 AS col2
----
-577

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT DISTINCT CASE - COUNT( * ) WHEN 38 THEN + + 32 WHEN - 53 / 34 + 46 / - 48 THEN NULL WHEN - COUNT( ALL - 39 ) + - + 60 * + 18 THEN NULL END * - + 45 * - + ( + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT CASE - COUNT ( * ) WHEN 38 THEN + + 32 WHEN - 53 / 34 + 46 / - 48 THEN NULL WHEN - COUNT ( ALL - 39 ) + - + 60 * + 18 THEN NULL END * - + 45 * - + ( + 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6828
SELECT ALL 31 + 27 * MAX( DISTINCT 64 ) + - SUM( ALL - - 40 ) col0, + 9
----
1719
9

skipif mysql # not compatible
query II rowsort label-6828
SELECT ALL 31 + 27 * MAX ( DISTINCT 64 ) + - SUM ( ALL - - 40 ) col0, + 9
----
1719
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6829
SELECT - ( 18 ) * 42 * 17 col1, + COUNT( * )
----
-12852
1

skipif mysql # not compatible
query II rowsort label-6829
SELECT - ( 18 ) * 42 * 17 col1, + COUNT ( * )
----
-12852
1

query I rowsort
SELECT + 96 + 79 * - 28 AS col0
----
-2116

query I rowsort
SELECT + 13 * + NULLIF ( 94, + 5 + - 96 )
----
1222

query I rowsort
SELECT + 72 + 41 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL 78 + - 89 + + - 97 * + COUNT( * ) AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL 78 + - 89 + + - 97 * + COUNT ( * ) AS col0
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6834
SELECT ALL 95 + - + CASE WHEN 98 IS NULL THEN - CAST( - 67 AS SIGNED ) * - - 84 + - 29 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL 95 + - + CASE WHEN 98 IS NULL THEN - CAST ( - 67 AS INTEGER ) * - - 84 + - 29 END AS col1
----
NULL

query I rowsort
SELECT - ( + 23 )
----
-23

query II rowsort
SELECT 69 AS col0, - ( + 81 ) * - 1 + - 67 * - + 47 + + 30 + 39 + - - 72 * - - 47 * - ( - 59 )
----
69
202955

onlyif mysql # aggregate syntax: 
query II rowsort label-6837
SELECT ALL 55, 85 * - - NULLIF ( - 34, - 25 * - COUNT( * ) ) col0
----
55
-2890

skipif mysql # not compatible
query II rowsort label-6837
SELECT ALL 55, 85 * - - NULLIF ( - 34, - 25 * - COUNT ( * ) ) col0
----
55
-2890

query I rowsort
SELECT DISTINCT 0 * 97 * - 60 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT ALL CASE 24 WHEN - - 47 + 96 + + 74 THEN - ( + - CAST( - - 38 AS SIGNED ) ) WHEN + 17 THEN - - 35 END - + ( - - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL CASE 24 WHEN - - 47 + 96 + + 74 THEN - ( + - CAST ( - - 38 AS INTEGER ) ) WHEN + 17 THEN - - 35 END - + ( - - 52 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT - NULLIF ( - 87, - COUNT( * ) ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6840
SELECT - NULLIF ( - 87, - COUNT ( * ) ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT DISTINCT MIN( 69 ) - - NULLIF ( + - COUNT( * ), - 10 ) + 33
----
101

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT MIN ( 69 ) - - NULLIF ( + - COUNT ( * ), - 10 ) + 33
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT DISTINCT - CASE - COUNT( * ) WHEN + CASE + 48 WHEN - MAX( ALL - NULLIF ( + 54, + 48 ) ) THEN - - 23 WHEN - 91 THEN NULL WHEN + ( + ( COALESCE ( 28, - 75 + COUNT( * ), + ( ( 40 ) ), - MIN( ALL + 1 ) * - 28 ) ) ) / 79 - 18 THEN 95 + + CASE + 31 WHEN - 22 * + 35 THEN NULL ELSE + 11 END ELSE NULL END THEN + COUNT( * ) END / - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + CASE + 48 WHEN - MAX ( ALL - NULLIF ( + 54, + 48 ) ) THEN - - 23 WHEN - 91 THEN NULL WHEN + ( + ( COALESCE ( 28, - 75 + COUNT ( * ), + ( ( 40 ) ), - MIN ( ALL + 1 ) * - 28 ) ) ) / 79 - 18 THEN 95 + + CASE + 31 WHEN - 22 * + 35 THEN NULL ELSE + 11 END ELSE NULL END THEN + COUNT ( * ) END / - 55 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6843
SELECT ALL 88 DIV + + 48
----
1

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL 88 / + + 48
----
1

query II rowsort
SELECT - 99 + - 36, - 68 col0
----
-135
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT DISTINCT 23 * - NULLIF ( + 69, 24 + + ( - - 23 ) + 43 + 59 * + MAX( + + 94 ) ) AS col2
----
-1587

skipif mysql # not compatible
query I rowsort label-6845
SELECT DISTINCT 23 * - NULLIF ( + 69, 24 + + ( - - 23 ) + 43 + 59 * + MAX ( + + 94 ) ) AS col2
----
-1587

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6846
SELECT - 67 DIV - 79 * + - 68 DIV - 8 + - ( - 42 ) AS col1, - 33 - + + 97 + + COUNT( * ) AS col1
----
42
-129

skipif mysql # not compatible
query II rowsort label-6846
SELECT - 67 / - 79 * + - 68 / - 8 + - ( - 42 ) AS col1, - 33 - + + 97 + + COUNT ( * ) AS col1
----
42
-129

query I rowsort
SELECT + + 99 col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6848
SELECT + CAST( NULL AS SIGNED ) + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT + CAST ( NULL AS INTEGER ) + - 66
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6849
SELECT ALL + 73 AS col0, COUNT( * )
----
73
1

skipif mysql # not compatible
query II rowsort label-6849
SELECT ALL + 73 AS col0, COUNT ( * )
----
73
1

query II rowsort
SELECT DISTINCT + + 89, 65 col1
----
89
65

query I rowsort
SELECT - + 60 * - 81
----
4860

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT + SUM( - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-6852
SELECT + SUM ( - 57 )
----
-57

query I rowsort
SELECT ALL + NULLIF ( 48, + 66 / 33 + 18 * 24 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6854
SELECT DISTINCT + - SUM( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT DISTINCT + - SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT 70 AS col0, - ( + 3 ) AS col0
----
70
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6856
SELECT + 91 * - MAX( DISTINCT + 35 ) + - - 41 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6856
SELECT + 91 * - MAX ( DISTINCT + 35 ) + - - 41 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6857
SELECT ALL + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT - - 36 + - - 75 + + COUNT( * ) - + + 36
----
76

skipif mysql # not compatible
query I rowsort label-6858
SELECT - - 36 + - - 75 + + COUNT ( * ) - + + 36
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + - CASE + 0 WHEN - 46 + 55 + + - 19 / + 82 THEN NULL ELSE 97 END
----
-97

query I rowsort
SELECT ALL ( + 1 ) * + 49 + 32 * + 36 AS col1
----
1201

query I rowsort
SELECT + - NULLIF ( + 47, + + COALESCE ( + 84, - + 52 ) * + 2 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6863
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) + - 6 + + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - 6 + + + 88
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6864
SELECT - COALESCE ( + 40, - - 76 DIV - 20, - MIN( - - 7 ) * - + MIN( + 25 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-6864
SELECT - COALESCE ( + 40, - - 76 / - 20, - MIN ( - - 7 ) * - + MIN ( + 25 ) )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT DISTINCT 19 * - - 72 * 1 * 87 + COUNT( * ) + - + 3 + + 13 * 86 + - 43 AS col0
----
120089

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT 19 * - - 72 * 1 * 87 + COUNT ( * ) + - + 3 + + 13 * 86 + - 43 AS col0
----
120089

query I rowsort
SELECT - 90 + 82 * - 41
----
-3452

query I rowsort
SELECT ALL - 2 * - 76
----
152

query I rowsort
SELECT DISTINCT + 48 * + + ( - CASE + ( - 7 ) WHEN - + 7 THEN - 72 END ) * 43 AS col0
----
148608

query I rowsort
SELECT + 72 * + 94
----
6768

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT COUNT( - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-6870
SELECT COUNT ( - 16 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6871
SELECT ALL CAST( + + NULLIF ( + 7, - CAST( NULL AS SIGNED ) * + COUNT( * ) - - + NULLIF ( - - 86, 42 ) + - ( - 89 ) ) AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL CAST ( + + NULLIF ( + 7, - CAST ( NULL AS INTEGER ) * + COUNT ( * ) - - + NULLIF ( - - 86, 42 ) + - ( - 89 ) ) AS INTEGER )
----
7

query I rowsort
SELECT + 66 * - 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6873
SELECT - 36 - CASE 17 WHEN - - CASE + - 63 WHEN + 29 THEN + + 68 WHEN + COUNT( * ) THEN - 43 * + 66 + + COUNT( * ) DIV + - COALESCE ( + 12, - - 81 * 48, + - 33 + - 19 DIV 66 ) ELSE NULL END THEN NULL ELSE COUNT( * ) END + COUNT( * ) DIV - 6 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-6873
SELECT - 36 - CASE 17 WHEN - - CASE + - 63 WHEN + 29 THEN + + 68 WHEN + COUNT ( * ) THEN - 43 * + 66 + + COUNT ( * ) / + - COALESCE ( + 12, - - 81 * 48, + - 33 + - 19 / 66 ) ELSE NULL END THEN NULL ELSE COUNT ( * ) END + COUNT ( * ) / - 6 AS col0
----
-37

query II rowsort
SELECT ALL ( 82 ) AS col0, ( 43 ) + + - 78
----
82
-35

query I rowsort
SELECT DISTINCT 5 col0
----
5

query I rowsort
SELECT + 47 + 28
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT DISTINCT CAST( 35 AS SIGNED ) col2
----
35

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT CAST ( 35 AS INTEGER ) col2
----
35

query I rowsort
SELECT + 24 + - 87
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT + 82 - - MIN( ALL + 28 ) * + 39
----
1174

skipif mysql # not compatible
query I rowsort label-6879
SELECT + 82 - - MIN ( ALL + 28 ) * + 39
----
1174

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT + 76 * - COUNT( DISTINCT - 91 ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-6880
SELECT + 76 * - COUNT ( DISTINCT - 91 ) col1
----
-76

query I rowsort
SELECT ALL 82 * - 24
----
-1968

query I rowsort
SELECT + + 6 * + ( + - 65 ) AS col1
----
-390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6883
SELECT + + SUM( + + 82 ) DIV - 18
----
-4

skipif mysql # not compatible
query I rowsort label-6883
SELECT + + SUM ( + + 82 ) / - 18
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6884
SELECT ( 69 ) DIV + 61 - + 38 - 50 + + - NULLIF ( 1, - 95 ), 24 + + - MAX( - 10 ) AS col1
----
-88
34

skipif mysql # not compatible
query II rowsort label-6884
SELECT ( 69 ) / + 61 - + 38 - 50 + + - NULLIF ( 1, - 95 ), 24 + + - MAX ( - 10 ) AS col1
----
-88
34

query I rowsort
SELECT ALL - + COALESCE ( - - 90, 41 ) AS col0
----
-90

query I rowsort
SELECT DISTINCT + 18 + + 0 - + 82 + - 5 AS col2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-6887
SELECT + NULLIF ( - + 5, - 4 ) DIV - 49 - + 73
----
-73

skipif mysql # not compatible
query I rowsort label-6887
SELECT + NULLIF ( - + 5, - 4 ) / - 49 - + 73
----
-73

query I rowsort
SELECT 4 * - - 55 + - 56 + + - 57 AS col0
----
107

query I rowsort
SELECT DISTINCT 3 + COALESCE ( - + 15, - 41 )
----
-12

query I rowsort
SELECT - NULLIF ( + + 35, - 58 / - 3 ) AS col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6891
SELECT ALL 30 * 35 * - - 0 + + - ( + 50 ) + + + 85 DIV + COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL 30 * 35 * - - 0 + + - ( + 50 ) + + + 85 / + COUNT ( * ) AS col1
----
35

query I rowsort
SELECT 1 - - 37
----
38

query II rowsort
SELECT DISTINCT - 40 AS col0, + 84
----
-40
84

query I rowsort
SELECT 75 + - ( 46 ) * - 0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6895
SELECT 43 * 75 DIV - 29 + + MIN( + + 26 ) + - + SUM( ALL + 46 ) * 63 AS col1
----
-2983

skipif mysql # not compatible
query I rowsort label-6895
SELECT 43 * 75 / - 29 + + MIN ( + + 26 ) + - + SUM ( ALL + 46 ) * 63 AS col1
----
-2983

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6896
SELECT COUNT( ALL 0 ) * - 63 DIV - + CAST( + - 19 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-6896
SELECT COUNT ( ALL 0 ) * - 63 / - + CAST ( + - 19 AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL + COUNT( * ) - + 17 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + COUNT ( * ) - + 17 AS col2
----
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-6898
SELECT + 88, + 34 DIV + 71 AS col2
----
88
0

skipif mysql # not compatible
query II rowsort label-6898
SELECT + 88, + 34 / + 71 AS col2
----
88
0

query I rowsort
SELECT 1 + + 53 AS col2
----
54

query II rowsort
SELECT DISTINCT 95 AS col1, 5
----
95
5

query I rowsort
SELECT ALL + 44 - ( ( - 69 ) ) AS col2
----
113

query I rowsort
SELECT DISTINCT - ( - - 94 ) * 50 + + - 81
----
-4781

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6903
SELECT ALL + 45 - - - COUNT( - - 90 ) DIV + - 79
----
45

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL + 45 - - - COUNT ( - - 90 ) / + - 79
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6904
SELECT ALL + 72 * + COUNT( * ) * - 6 AS col1, + 64 * - COUNT( * ) * 4 AS col2
----
-432
-256

skipif mysql # not compatible
query II rowsort label-6904
SELECT ALL + 72 * + COUNT ( * ) * - 6 AS col1, + 64 * - COUNT ( * ) * 4 AS col2
----
-432
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT CASE - 68 WHEN + ( - - 20 ) THEN + + ( 5 ) END + + SUM( ALL - 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6905
SELECT CASE - 68 WHEN + ( - - 20 ) THEN + + ( 5 ) END + + SUM ( ALL - 10 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6906
SELECT - 9, + COUNT( * ) AS col1
----
-9
1

skipif mysql # not compatible
query II rowsort label-6906
SELECT - 9, + COUNT ( * ) AS col1
----
-9
1

query I rowsort
SELECT ALL - 0 * + - 20 * - + 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6908
SELECT 16 DIV - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6908
SELECT 16 / - 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT SUM( DISTINCT 58 ) * + CASE + + 38 WHEN - - 98 + 24 THEN - 17 * + - 76 WHEN - 95 * - - 99 + 48 + + - 31 * + 84 * + 24 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT SUM ( DISTINCT 58 ) * + CASE + + 38 WHEN - - 98 + 24 THEN - 17 * + - 76 WHEN - 95 * - - 99 + 48 + + - 31 * + 84 * + 24 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT 22 + - - COUNT( * ) + + + MAX( ALL + - 96 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-6910
SELECT 22 + - - COUNT ( * ) + + + MAX ( ALL + - 96 ) AS col2
----
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-6911
SELECT DISTINCT 69 AS col0, + 48 DIV 74 - 92 - + - 20
----
69
-72

skipif mysql # not compatible
query II rowsort label-6911
SELECT DISTINCT 69 AS col0, + 48 / 74 - 92 - + - 20
----
69
-72

query II rowsort
SELECT DISTINCT 71 AS col0, 27 * - ( - 30 ) + 67 AS col1
----
71
877

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT + MAX( - 70 ) + - + ( - - 86 ) AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-6913
SELECT + MAX ( - 70 ) + - + ( - - 86 ) AS col0
----
-156

query I rowsort
SELECT ALL 45 + - 79
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT 46 + - COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6915
SELECT 46 + - COUNT ( * ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6916
SELECT DISTINCT COUNT( * ) AS col2, 46 * + + 75
----
1
3450

skipif mysql # not compatible
query II rowsort label-6916
SELECT DISTINCT COUNT ( * ) AS col2, 46 * + + 75
----
1
3450

onlyif mysql # aggregate syntax: 
query II rowsort label-6917
SELECT MAX( ALL - ( - - 66 ) ) + + + COUNT( * ) * + - SUM( 58 ) AS col1, - 55 + 32 * - 19 - - 23
----
-124
-640

skipif mysql # not compatible
query II rowsort label-6917
SELECT MAX ( ALL - ( - - 66 ) ) + + + COUNT ( * ) * + - SUM ( 58 ) AS col1, - 55 + 32 * - 19 - - 23
----
-124
-640

query I rowsort
SELECT DISTINCT + 47 + - - 40 * + 83 + + ( ( - + ( 96 ) ) ) col0
----
3271

query I rowsort
SELECT ALL - 88 + 99 + - 67 AS col0
----
-56

query I rowsort
SELECT ALL + 14 + ( 47 ) + + + 28 AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6921
SELECT + + 84 / - - CAST( NULL AS DECIMAL ) / + 67 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT + + 84 / - - CAST ( NULL AS REAL ) / + 67 + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6922
SELECT 3 * 59 - - 83 - 60 + ( 39 ) * - - NULLIF ( + - 24, 46 ) * COUNT( * ) * 43 AS col1, + CASE + 19 WHEN - - 21 THEN NULL WHEN + - 39 + + + COUNT( * ) THEN 40 + - COUNT( * ) + 47 END
----
-40048
NULL

skipif mysql # not compatible
query II rowsort label-6922
SELECT 3 * 59 - - 83 - 60 + ( 39 ) * - - NULLIF ( + - 24, 46 ) * COUNT ( * ) * 43 AS col1, + CASE + 19 WHEN - - 21 THEN NULL WHEN + - 39 + + + COUNT ( * ) THEN 40 + - COUNT ( * ) + 47 END
----
-40048
NULL

query II rowsort
SELECT DISTINCT - + 34 AS col2, 53 AS col2
----
-34
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT DISTINCT - - ( 47 ) + + 15 + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT - - ( 47 ) + + 15 + COUNT ( * ) AS col0
----
63

query II rowsort
SELECT - 6 AS col1, 68
----
-6
68

query I rowsort
SELECT ALL - 53 + - 92 col0
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT DISTINCT + 95 + + - MIN( DISTINCT + ( 49 ) ) * + - 60 AS col0
----
3035

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT + 95 + + - MIN ( DISTINCT + ( 49 ) ) * + - 60 AS col0
----
3035

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6928
SELECT ALL CAST( 72 AS SIGNED ) + + - 81 DIV + 89 + + 16
----
88

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL CAST ( 72 AS INTEGER ) + + - 81 / + 89 + + 16
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6929
SELECT + COUNT( * ) * + + 46 / 61 / + 69 + - CASE CAST( NULL AS DECIMAL ) WHEN - 52 THEN 39 ELSE NULL END col1, 98 * - ( + 34 ) * - - 55 * - 7 * + 64 AS col1
----
NULL
82100480

skipif mysql # not compatible
query II rowsort label-6929
SELECT + COUNT ( * ) * + + 46 / 61 / + 69 + - CASE CAST ( NULL AS REAL ) WHEN - 52 THEN 39 ELSE NULL END col1, 98 * - ( + 34 ) * - - 55 * - 7 * + 64 AS col1
----
NULL
82100480

query I rowsort
SELECT ( + 45 ) + 65 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT ALL SUM( ALL - 82 ) - - 19 * + 84
----
1514

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL SUM ( ALL - 82 ) - - 19 * + 84
----
1514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6932
SELECT CAST( NULL AS SIGNED ) * - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT CAST ( NULL AS INTEGER ) * - 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT 91 * + COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6933
SELECT 91 * + COUNT ( * ) AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6934
SELECT COUNT( * ) * + 18 DIV 24 col2
----
0

skipif mysql # not compatible
query I rowsort label-6934
SELECT COUNT ( * ) * + 18 / 24 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT + MAX( + - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-6935
SELECT + MAX ( + - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT COUNT( * ) * - 94
----
-94

skipif mysql # not compatible
query I rowsort label-6936
SELECT COUNT ( * ) * - 94
----
-94

query I rowsort
SELECT - 72 * + 45 + + 45 AS col0
----
-3195

query I rowsort
SELECT ( + 93 ) - 86 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ( + - COUNT( * ) ) * + + 41
----
-41

skipif mysql # not compatible
query I rowsort label-6939
SELECT ( + - COUNT ( * ) ) * + + 41
----
-41

query I rowsort
SELECT 35 - + NULLIF ( - 92, + 41 ) col2
----
127

query I rowsort
SELECT - 55 col2
----
-55

query I rowsort
SELECT ALL + + 68 + - 35
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT DISTINCT + ( + COUNT( * ) ) + - + MIN( DISTINCT 95 ) + + 75
----
-19

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT + ( + COUNT ( * ) ) + - + MIN ( DISTINCT 95 ) + + 75
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6944
SELECT ( - - 80 ) AS col0, - 13 * + NULLIF ( - CASE - + 82 WHEN + COUNT( * ) THEN - 14 WHEN + + 8 THEN NULL END, + CAST( NULL AS SIGNED ) )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-6944
SELECT ( - - 80 ) AS col0, - 13 * + NULLIF ( - CASE - + 82 WHEN + COUNT ( * ) THEN - 14 WHEN + + 8 THEN NULL END, + CAST ( NULL AS INTEGER ) )
----
80
NULL

query I rowsort
SELECT - + 23 / + - CASE - 87 WHEN 89 THEN 35 + - 3 WHEN ( - 38 ) THEN + 11 WHEN - ( 51 ) * + 82 + - ( - + 6 ) + + + ( AVG ( + + 54 ) ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - - ( - 52 ) * - + 75 AS col1
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT + ( MIN( - 39 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-6947
SELECT + ( MIN ( - 39 ) )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6948
SELECT DISTINCT - 15 + + MIN( DISTINCT - - CAST( + + 19 AS SIGNED ) ), + 94 AS col2
----
4
94

skipif mysql # not compatible
query II rowsort label-6948
SELECT DISTINCT - 15 + + MIN ( DISTINCT - - CAST ( + + 19 AS INTEGER ) ), + 94 AS col2
----
4
94

query I rowsort
SELECT DISTINCT - - 51 + 48
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-6950
SELECT ALL 46 + - + 27 DIV - + 79 * - 72 AS col0, ( - - 4 ) * - 59
----
46
-236

skipif mysql # not compatible
query II rowsort label-6950
SELECT ALL 46 + - + 27 / - + 79 * - 72 AS col0, ( - - 4 ) * - 59
----
46
-236

onlyif mysql # aggregate syntax: 
query II rowsort label-6951
SELECT - SUM( - 19 ) AS col0, - NULLIF ( + CASE - + COUNT( * ) WHEN + 56 - - - ( + 12 ) + + 25 THEN - 47 + + 37 END, - 83 ) * 88 * - - 7 AS col2
----
19
NULL

skipif mysql # not compatible
query II rowsort label-6951
SELECT - SUM ( - 19 ) AS col0, - NULLIF ( + CASE - + COUNT ( * ) WHEN + 56 - - - ( + 12 ) + + 25 THEN - 47 + + 37 END, - 83 ) * 88 * - - 7 AS col2
----
19
NULL

query II rowsort
SELECT ALL - - 96 * - + 76 - - 66 + + + 97 + + - 1 col0, - CASE + 89 WHEN + 6 THEN - ( - 65 ) * + - 14 - + 89 + 94 END
----
-7134
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT DISTINCT + - 30 * + NULLIF ( 50, 5 * - 60 + - COUNT( * ) ) * + - 30 + + + 85 * + COUNT( * )
----
45085

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT + - 30 * + NULLIF ( 50, 5 * - 60 + - COUNT ( * ) ) * + - 30 + + + 85 * + COUNT ( * )
----
45085

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6954
SELECT + 13 DIV + 85 + - - 37 * + 69 * - - 84 + COUNT( * ) + - 6 DIV + + 63
----
214453

skipif mysql # not compatible
query I rowsort label-6954
SELECT + 13 / + 85 + - - 37 * + 69 * - - 84 + COUNT ( * ) + - 6 / + + 63
----
214453

query I rowsort
SELECT + + 22 * 56
----
1232

query I rowsort
SELECT - - CASE - 90 WHEN + 32 + 73 * - 61 THEN NULL WHEN 72 THEN - 99 ELSE NULL END + - + 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT ALL 9 * + + 2 * + MAX( + 62 ) - 51 + + - 29 * 45 * + + 55
----
-70710

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL 9 * + + 2 * + MAX ( + 62 ) - 51 + + - 29 * 45 * + + 55
----
-70710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6958
SELECT ALL CASE - + 94 WHEN - + MAX( + 21 ) THEN ( - 83 ) WHEN + - 71 THEN NULL END * CAST( + 91 AS SIGNED ) * - 9 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL CASE - + 94 WHEN - + MAX ( + 21 ) THEN ( - 83 ) WHEN + - 71 THEN NULL END * CAST ( + 91 AS INTEGER ) * - 9 col1
----
NULL

query I rowsort
SELECT DISTINCT + 98 * + - 37
----
-3626

onlyif mysql # DIV for integer division: 
query I rowsort label-6960
SELECT - 13 DIV + 39 + - 25 col1
----
-25

skipif mysql # not compatible
query I rowsort label-6960
SELECT - 13 / + 39 + - 25 col1
----
-25

query I rowsort
SELECT + 31 * - 78
----
-2418

query I rowsort
SELECT ALL + 72 * + - 42 AS col1
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT + 7 - COUNT( - + 4 )
----
6

skipif mysql # not compatible
query I rowsort label-6963
SELECT + 7 - COUNT ( - + 4 )
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6964
SELECT NULLIF ( + NULLIF ( 68, + 96 * + 70 + 11 ), - - CAST( NULL AS DECIMAL ) + + 70 ) AS col2, 34 * - 52 * 97 AS col0
----
68
-171496

skipif mysql # not compatible
query II rowsort label-6964
SELECT NULLIF ( + NULLIF ( 68, + 96 * + 70 + 11 ), - - CAST ( NULL AS REAL ) + + 70 ) AS col2, 34 * - 52 * 97 AS col0
----
68
-171496

query I rowsort
SELECT - 50 * - 46 + + 32
----
2332

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT - 95 DIV 17
----
-5

skipif mysql # not compatible
query I rowsort label-6966
SELECT - 95 / 17
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT + COUNT( * ) * - 88 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-6967
SELECT + COUNT ( * ) * - 88 AS col0
----
-88

query I rowsort
SELECT ALL + 81 col0
----
81

query I rowsort
SELECT + 77 * - 92 AS col2
----
-7084

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6970
SELECT + 47 + + 92 + + ( + - 23 ) DIV 77 - 75 + - + COUNT( * ) * + + 2 - 82 DIV 28 * 42 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6970
SELECT + 47 + + 92 + + ( + - 23 ) / 77 - 75 + - + COUNT ( * ) * + + 2 - 82 / 28 * 42 AS col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6971
SELECT + 65 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT + 65 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 21 * + 1 + + 58 col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6973
SELECT + 41 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6973
SELECT + 41 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 53 + + + 36 AS col2
----
89

query I rowsort
SELECT ALL + 19 + - - 35
----
54

query I rowsort
SELECT + + 33 + + + 49
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT + + COUNT( * ) * 1
----
1

skipif mysql # not compatible
query I rowsort label-6977
SELECT + + COUNT ( * ) * 1
----
1

query I rowsort
SELECT ALL 67 + 36
----
103

onlyif mysql # DIV for integer division: 
query II rowsort label-6979
SELECT + 45 AS col1, - 30 DIV - 39 AS col2
----
45
0

skipif mysql # not compatible
query II rowsort label-6979
SELECT + 45 AS col1, - 30 / - 39 AS col2
----
45
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6980
SELECT - + CAST( + 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-6980
SELECT - + CAST ( + 23 AS INTEGER )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT + 64 + - COALESCE ( 0, + + SUM( DISTINCT - 97 ) * - + 82, ( - - 79 ) * 81 + 87 ) - + 14 col2
----
50

skipif mysql # not compatible
query I rowsort label-6981
SELECT + 64 + - COALESCE ( 0, + + SUM ( DISTINCT - 97 ) * - + 82, ( - - 79 ) * 81 + 87 ) - + 14 col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT + COUNT( DISTINCT + 72 ) + + + 69
----
70

skipif mysql # not compatible
query I rowsort label-6982
SELECT + COUNT ( DISTINCT + 72 ) + + + 69
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6983
SELECT ALL CAST( NULL AS SIGNED ) + + - 32 + + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL CAST ( NULL AS INTEGER ) + + - 32 + + 58 AS col2
----
NULL

query I rowsort
SELECT + 91 + - - 79 + + 40 + - + 35
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ALL + 6 - - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL + 6 - - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT - + 0 + + MIN( DISTINCT + + 37 ) * 26
----
962

skipif mysql # not compatible
query I rowsort label-6986
SELECT - + 0 + + MIN ( DISTINCT + + 37 ) * 26
----
962

query I rowsort
SELECT - - 25 + + 19 * + 54 * + 87 AS col0
----
89287

query I rowsort
SELECT - - 67 * - 49 AS col0
----
-3283

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT - + 51 + COUNT( * ) * + + 3
----
-48

skipif mysql # not compatible
query I rowsort label-6989
SELECT - + 51 + COUNT ( * ) * + + 3
----
-48

query I rowsort
SELECT + 66 * 94 * 7 * - + 54
----
-2345112

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - - SUM( ALL - 78 ) + COUNT( * ) * 94 col1
----
16

skipif mysql # not compatible
query I rowsort label-6991
SELECT - - SUM ( ALL - 78 ) + COUNT ( * ) * 94 col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6992
SELECT - - ( - COUNT( * ) ) * + 69 + + COUNT( * ) + - + 93 / - - 73 * ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6992
SELECT - - ( - COUNT ( * ) ) * + 69 + + COUNT ( * ) + - + 93 / - - 73 * ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6993
SELECT - 90 * - NULLIF ( 26, - - 41 / + + CASE - 86 WHEN 35 * - 93 + - 0 / 44 THEN + NULLIF ( - + 72, + 52 * - + 30 + - 85 + 63 * + + NULLIF ( 10, - + 61 + + + 69 + + 53 ) * ( + COUNT( * ) ) ) ELSE NULL END + COALESCE ( - CAST( NULL AS SIGNED ) + + 32, 13 ) ) + + 55 * 88 AS col0
----
7180

skipif mysql # not compatible
query I rowsort label-6993
SELECT - 90 * - NULLIF ( 26, - - 41 / + + CASE - 86 WHEN 35 * - 93 + - 0 / 44 THEN + NULLIF ( - + 72, + 52 * - + 30 + - 85 + 63 * + + NULLIF ( 10, - + 61 + + + 69 + + 53 ) * ( + COUNT ( * ) ) ) ELSE NULL END + COALESCE ( - CAST ( NULL AS INTEGER ) + + 32, 13 ) ) + + 55 * 88 AS col0
----
7180

query I rowsort
SELECT + - 4 col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT - 14 * - - NULLIF ( - 48, + + 12 * + 84 * - SUM( ALL + - 5 ) ) AS col2
----
672

skipif mysql # not compatible
query I rowsort label-6995
SELECT - 14 * - - NULLIF ( - 48, + + 12 * + 84 * - SUM ( ALL + - 5 ) ) AS col2
----
672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6996
SELECT CAST( NULL AS SIGNED ), - 8 * - CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6996
SELECT CAST ( NULL AS INTEGER ), - 8 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

query II rowsort
SELECT ALL + 52, 45 AS col0
----
52
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT - 83 * + + 91 * + 78 + + + CAST( + 13 AS SIGNED ) AS col0
----
-589121

skipif mysql # not compatible
query I rowsort label-6998
SELECT - 83 * + + 91 * + 78 + + + CAST ( + 13 AS INTEGER ) AS col0
----
-589121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6999
SELECT COUNT( * ) / - + 96 / + + 55 + + COUNT( * ) / - CAST( NULL AS SIGNED ) * + + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6999
SELECT COUNT ( * ) / - + 96 / + + 55 + + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * + + 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7000
SELECT ALL + COUNT( + 93 ), - COUNT( * ) DIV - + 35 + + SUM( - + 56 ) AS col1
----
1
-56

skipif mysql # not compatible
query II rowsort label-7000
SELECT ALL + COUNT ( + 93 ), - COUNT ( * ) / - + 35 + + SUM ( - + 56 ) AS col1
----
1
-56

query I rowsort
SELECT + NULLIF ( + + 28, 36 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT + COUNT( DISTINCT + - 70 ) + + - SUM( - 98 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-7002
SELECT + COUNT ( DISTINCT + - 70 ) + + - SUM ( - 98 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT DISTINCT + MAX( DISTINCT + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT + MAX ( DISTINCT + 54 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7004
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7005
SELECT - 64 * - + 30 * - - NULLIF ( - - CAST( NULL AS SIGNED ), - 21 + - CASE + 81 WHEN COUNT( * ) THEN - ( - 62 ) + 61 WHEN 16 THEN NULL ELSE + SUM( ALL - - 63 ) + 87 + + COUNT( * ) + + + 59 * - 28 END ) + + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT - 64 * - + 30 * - - NULLIF ( - - CAST ( NULL AS INTEGER ), - 21 + - CASE + 81 WHEN COUNT ( * ) THEN - ( - 62 ) + 61 WHEN 16 THEN NULL ELSE + SUM ( ALL - - 63 ) + 87 + + COUNT ( * ) + + + 59 * - 28 END ) + + - 44
----
NULL

query I rowsort
SELECT - 24 * - 10 AS col0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT DISTINCT 95 * COUNT( * ) + 10
----
105

skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT 95 * COUNT ( * ) + 10
----
105

query I rowsort
SELECT ALL 64 * + 61 + - 5
----
3899

query II rowsort
SELECT DISTINCT + 19 AS col2, 4 AS col0
----
19
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7010
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT - CAST ( NULL AS REAL ) + - 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7011
SELECT 25 + 14 DIV + - COUNT( * ) + - + 93
----
-82

skipif mysql # not compatible
query I rowsort label-7011
SELECT 25 + 14 / + - COUNT ( * ) + - + 93
----
-82

query I rowsort
SELECT 60 * + 46 * - 10 AS col0
----
-27600

query I rowsort
SELECT DISTINCT 17 + - + 71
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7014
SELECT + CAST( NULL AS SIGNED ) * 41 * COUNT( * ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT + CAST ( NULL AS INTEGER ) * 41 * COUNT ( * ) + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT - 39 * + 32 * - COUNT( * ) AS col2
----
1248

skipif mysql # not compatible
query I rowsort label-7015
SELECT - 39 * + 32 * - COUNT ( * ) AS col2
----
1248

query II rowsort
SELECT + 51 AS col0, - 4 AS col2
----
51
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7017
SELECT ALL 78 DIV 89 DIV COUNT( * ) DIV 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL 78 / 89 / COUNT ( * ) / 13 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT DISTINCT - - 92 + - ( + MIN( - 17 ) ) AS col1
----
109

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT - - 92 + - ( + MIN ( - 17 ) ) AS col1
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-7019
SELECT - + 24 AS col0, - COUNT( * )
----
-24
-1

skipif mysql # not compatible
query II rowsort label-7019
SELECT - + 24 AS col0, - COUNT ( * )
----
-24
-1

query I rowsort
SELECT DISTINCT - 10 - + 46 AS col0
----
-56

query II rowsort
SELECT ALL + 35 - 23 col0, - 33
----
12
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT DISTINCT + SUM( 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT + SUM ( 59 ) AS col1
----
59

query I rowsort
SELECT - + ( + - 21 )
----
21

query II rowsort
SELECT - - 49, 88 AS col1
----
49
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT ALL 81 - - - MIN( + - 66 )
----
147

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL 81 - - - MIN ( + - 66 )
----
147

query I rowsort
SELECT ALL - COALESCE ( 80, + + 22 ) * + 49
----
-3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7027
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN + COALESCE ( - 38, + CASE - + 50 WHEN - COUNT( * ) THEN NULL WHEN 37 + + + 12 * + + 47 THEN - - 19 / + 10 ELSE + + COALESCE ( + 49, 76 ) - 28 - + + 12 - COUNT( * ) * + 43 END * - ( - + CAST( NULL AS SIGNED ) ) + + 17 ) + + 57 THEN + 20 END * - ( - 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7027
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN + COALESCE ( - 38, + CASE - + 50 WHEN - COUNT ( * ) THEN NULL WHEN 37 + + + 12 * + + 47 THEN - - 19 / + 10 ELSE + + COALESCE ( + 49, 76 ) - 28 - + + 12 - COUNT ( * ) * + 43 END * - ( - + CAST ( NULL AS INTEGER ) ) + + 17 ) + + 57 THEN + 20 END * - ( - 61 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT COUNT( * ) - - 42 * ( COUNT( * ) ) * - + NULLIF ( + 75, - - 15 * - ( + 22 ) - - 15 + + 74 ) + - + 0
----
-3149

skipif mysql # not compatible
query I rowsort label-7028
SELECT COUNT ( * ) - - 42 * ( COUNT ( * ) ) * - + NULLIF ( + 75, - - 15 * - ( + 22 ) - - 15 + + 74 ) + - + 0
----
-3149

query II rowsort
SELECT - 81, 27 AS col2
----
-81
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7030
SELECT ALL - 33 DIV SUM( + 22 ) + + + 49 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL - 33 / SUM ( + 22 ) + + + 49 AS col1
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-7031
SELECT DISTINCT + 93 AS col1, + NULLIF ( COUNT( * ), - NULLIF ( - 79, - 51 ) ) + ( - 54 ) + 41 + - - COUNT( * ) * 12 AS col2
----
93
0

skipif mysql # not compatible
query II rowsort label-7031
SELECT DISTINCT + 93 AS col1, + NULLIF ( COUNT ( * ), - NULLIF ( - 79, - 51 ) ) + ( - 54 ) + 41 + - - COUNT ( * ) * 12 AS col2
----
93
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7032
SELECT - COUNT( * ) DIV - + 52 + 45 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-7032
SELECT - COUNT ( * ) / - + 52 + 45 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL - COUNT( ALL + 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL - COUNT ( ALL + 79 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7034
SELECT DISTINCT - COUNT( * ) * + 66 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT - COUNT ( * ) * + 66 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7035
SELECT COUNT( * ) + + - 89 * - - 62 / - - CASE - 8 WHEN + 13 / - + 69 + + + 44 + - - 18 + + 40 THEN NULL WHEN + COUNT( * ) THEN - 94 / 38 ELSE - COUNT( * ) - - CAST( NULL AS SIGNED ) + 51 + - COUNT( * ) * 15 + ( + 95 ) + SUM( - - 92 ) + NULLIF ( 69, - COUNT( * ) ) * CAST( NULL AS SIGNED ) END - - 96 * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7035
SELECT COUNT ( * ) + + - 89 * - - 62 / - - CASE - 8 WHEN + 13 / - + 69 + + + 44 + - - 18 + + 40 THEN NULL WHEN + COUNT ( * ) THEN - 94 / 38 ELSE - COUNT ( * ) - - CAST ( NULL AS INTEGER ) + 51 + - COUNT ( * ) * 15 + ( + 95 ) + SUM ( - - 92 ) + NULLIF ( 69, - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) END - - 96 * 1
----
NULL

query I rowsort
SELECT 45 * + ( - 94 )
----
-4230

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT COUNT( * ) + + 10 * - COUNT( * ) + 63
----
54

skipif mysql # not compatible
query I rowsort label-7037
SELECT COUNT ( * ) + + 10 * - COUNT ( * ) + 63
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT ALL - MIN( DISTINCT 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL - MIN ( DISTINCT 3 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7039
SELECT 32 * - COUNT( * ) AS col2, + 4
----
-32
4

skipif mysql # not compatible
query II rowsort label-7039
SELECT 32 * - COUNT ( * ) AS col2, + 4
----
-32
4

query II rowsort
SELECT 54 * - + 82 * + 54 + - 5 * + 58 + + 40 + - 22 col1, COALESCE ( + 36, + - 88 * + COALESCE ( 35, 60 ), - 75 + + 42 * + + 16 * 94 ) + - 31 * 97 * - + 98
----
-239384
294722

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL COUNT( * ) + + - 61 + + COUNT( * ) * 75
----
15

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL COUNT ( * ) + + - 61 + + COUNT ( * ) * 75
----
15

query I rowsort
SELECT DISTINCT - COALESCE ( 77, - 3, 98 + - 17 )
----
-77

query I rowsort
SELECT ALL - 9 + + 38 col0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-7044
SELECT 61 + + COUNT( * ), + 38 AS col0
----
62
38

skipif mysql # not compatible
query II rowsort label-7044
SELECT 61 + + COUNT ( * ), + 38 AS col0
----
62
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7045
SELECT ALL - 19 + MAX( ALL - - 72 ), - ( COUNT( * ) ) * 47 DIV NULLIF ( ( + - 54 ), + 15 + + COUNT( * ) ) AS col1
----
53
0

skipif mysql # not compatible
query II rowsort label-7045
SELECT ALL - 19 + MAX ( ALL - - 72 ), - ( COUNT ( * ) ) * 47 / NULLIF ( ( + - 54 ), + 15 + + COUNT ( * ) ) AS col1
----
53
0

query I rowsort
SELECT DISTINCT - NULLIF ( - 36, 99 * + 79 * - 29 * - - 14 + - + 62 )
----
36

query II rowsort
SELECT ALL - 72 - + COALESCE ( + 5, + ( 2 ) ) AS col2, + 31 * 74 AS col0
----
-77
2294

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT + COUNT( * ) + + 90 + - 48 + - 80 * + - 29 * 79 * 49 * - + SUM( ALL - + ( - 8 ) )
----
-71845717

skipif mysql # not compatible
query I rowsort label-7048
SELECT + COUNT ( * ) + + 90 + - 48 + - 80 * + - 29 * 79 * 49 * - + SUM ( ALL - + ( - 8 ) )
----
-71845717

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT + COUNT( - ( 33 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7049
SELECT + COUNT ( - ( 33 ) ) AS col0
----
1

query I rowsort
SELECT ALL 19 col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7051
SELECT ALL + 6 - + - 28 - 58 DIV COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL + 6 - + - 28 - 58 / COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT DISTINCT - SUM( + + 51 ) - ( + 87 ) * 43 col0
----
-3792

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT - SUM ( + + 51 ) - ( + 87 ) * 43 col0
----
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT - 26 + 99 + + COUNT( ALL - - 53 ) * - 61 col2
----
12

skipif mysql # not compatible
query I rowsort label-7053
SELECT - 26 + 99 + + COUNT ( ALL - - 53 ) * - 61 col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT - ( + COUNT( * ) ) + + 27
----
26

skipif mysql # not compatible
query I rowsort label-7054
SELECT - ( + COUNT ( * ) ) + + 27
----
26

query I rowsort
SELECT 95 + - 57 col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7056
SELECT ALL + 85 DIV - 60 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL + 85 / - 60 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7057
SELECT ALL COALESCE ( + 54, + 26 DIV + COUNT( * ), - 26 ) * + + 20 AS col1
----
1080

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL COALESCE ( + 54, + 26 / + COUNT ( * ), - 26 ) * + + 20 AS col1
----
1080

onlyif mysql # aggregate syntax: 
query II rowsort label-7058
SELECT ALL + 4 * - 1 * + COUNT( * ) * + 14 + - - 34 AS col1, - 62
----
-22
-62

skipif mysql # not compatible
query II rowsort label-7058
SELECT ALL + 4 * - 1 * + COUNT ( * ) * + 14 + - - 34 AS col1, - 62
----
-22
-62

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7059
SELECT CAST( NULL AS DECIMAL ) + 9 AS col2, - 47 * + - 44
----
NULL
2068

skipif mysql # not compatible
query II rowsort label-7059
SELECT CAST ( NULL AS REAL ) + 9 AS col2, - 47 * + - 44
----
NULL
2068

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT DISTINCT 55 + + MIN( + 83 ) * - + 36 + + - COUNT( - 84 ) + - + 47 + + 9 * 56 * 62 * - + 25
----
-784181

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT 55 + + MIN ( + 83 ) * - + 36 + + - COUNT ( - 84 ) + - + 47 + + 9 * 56 * 62 * - + 25
----
-784181

query II rowsort
SELECT ALL 72 AS col1, + ( - 10 ) - + 94 AS col2
----
72
-104

query I rowsort
SELECT 0 * - 17 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT DISTINCT 7 + + 9 * COUNT( * ) * + COUNT( * ) * + + 52 + 86 * 25 AS col0
----
2625

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT 7 + + 9 * COUNT ( * ) * + COUNT ( * ) * + + 52 + 86 * 25 AS col0
----
2625

query I rowsort
SELECT 26 * + 87 col1
----
2262

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL 12 * + 15 + ( - 65 ) * + 38 * MAX( ALL 60 )
----
-148020

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL 12 * + 15 + ( - 65 ) * + 38 * MAX ( ALL 60 )
----
-148020

query I rowsort
SELECT + 18 * - 73
----
-1314

query I rowsort
SELECT DISTINCT + 78 * - 2 AS col2
----
-156

query I rowsort
SELECT + COALESCE ( - 33, + 23 * - 62, - 26 * 36 + 98 ) col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT MIN( + + NULLIF ( + + 20, 24 ) )
----
20

skipif mysql # not compatible
query I rowsort label-7069
SELECT MIN ( + + NULLIF ( + + 20, 24 ) )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7070
SELECT - MAX( 75 ) DIV - 27 + NULLIF ( 66, - COUNT( * ) + - 59 ) - + + 50 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7070
SELECT - MAX ( 75 ) / - 27 + NULLIF ( 66, - COUNT ( * ) + - 59 ) - + + 50 AS col0
----
18

query II rowsort
SELECT + 82 * + 74 * - 20 AS col1, + 0 - 96 AS col2
----
-121360
-96

query I rowsort
SELECT DISTINCT 94 * + 51
----
4794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7073
SELECT SUM( DISTINCT 23 ) * 57 DIV + 7 - - 78 AS col0
----
265

skipif mysql # not compatible
query I rowsort label-7073
SELECT SUM ( DISTINCT 23 ) * 57 / + 7 - - 78 AS col0
----
265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7074
SELECT COUNT( * ), CAST( NULL AS SIGNED ) * - 83 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7074
SELECT COUNT ( * ), CAST ( NULL AS INTEGER ) * - 83 AS col2
----
1
NULL

query I rowsort
SELECT DISTINCT 36 * + 29 - 25
----
1019

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7076
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + - 7 * + + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT - CAST ( NULL AS REAL ) * + - 7 * + + 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7077
SELECT DISTINCT + + MAX( DISTINCT - 40 ) DIV - - ( - 83 ) * 1 - 10
----
-10

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT + + MAX ( DISTINCT - 40 ) / - - ( - 83 ) * 1 - 10
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7078
SELECT - 57 DIV 42 + + 74 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7078
SELECT - 57 / 42 + + 74 AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT + COUNT( * ) + + - COUNT( * ) * + - 18 AS col1, 10 * - - 31 + - 92 + 34 + - + 49 col0
----
19
203

skipif mysql # not compatible
query II rowsort label-7079
SELECT + COUNT ( * ) + + - COUNT ( * ) * + - 18 AS col1, 10 * - - 31 + - 92 + 34 + - + 49 col0
----
19
203

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT - - 38 + - - COUNT( 79 )
----
39

skipif mysql # not compatible
query I rowsort label-7080
SELECT - - 38 + - - COUNT ( 79 )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7081
SELECT COUNT( * ), + 3 AS col2
----
1
3

skipif mysql # not compatible
query II rowsort label-7081
SELECT COUNT ( * ), + 3 AS col2
----
1
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7082
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, - COALESCE ( + 23, - CAST( - 32 AS SIGNED ) - - 94, + - SUM( DISTINCT - + 76 ) )
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-7082
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - COALESCE ( + 23, - CAST ( - 32 AS INTEGER ) - - 94, + - SUM ( DISTINCT - + 76 ) )
----
NULL
-23

query II rowsort
SELECT + 92 AS col1, 38 * - 60 - + + 76 * 53
----
92
-6308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7084
SELECT - - SUM( DISTINCT 80 ) * - - COUNT( * ) AS col2, CASE - + COUNT( * ) WHEN - - CAST( - + COUNT( * ) AS SIGNED ) THEN - 69 END * - 94
----
80
6486

skipif mysql # not compatible
query II rowsort label-7084
SELECT - - SUM ( DISTINCT 80 ) * - - COUNT ( * ) AS col2, CASE - + COUNT ( * ) WHEN - - CAST ( - + COUNT ( * ) AS INTEGER ) THEN - 69 END * - 94
----
80
6486

query II rowsort
SELECT - - 88 * + 3 + 53 AS col2, 29 * - 24 AS col2
----
317
-696

query II rowsort
SELECT ALL 71 AS col2, + 81 AS col2
----
71
81

query I rowsort
SELECT DISTINCT + + 20 * - + 45
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT - 73 * COUNT( * ) * - + 18 + + - 10
----
1304

skipif mysql # not compatible
query I rowsort label-7088
SELECT - 73 * COUNT ( * ) * - + 18 + + - 10
----
1304

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT ALL + - 70 + - + 53 + + - MAX( + + ( 12 ) ) AS col0
----
-135

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL + - 70 + - + 53 + + - MAX ( + + ( 12 ) ) AS col0
----
-135

query II rowsort
SELECT 28 AS col1, 36 AS col1
----
28
36

query II rowsort
SELECT ALL - 38 col2, - 97
----
-38
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7092
SELECT - + COUNT( - 23 ) / - + 14 / + + CAST( NULL AS SIGNED ) / 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7092
SELECT - + COUNT ( - 23 ) / - + 14 / + + CAST ( NULL AS INTEGER ) / 77
----
NULL

query I rowsort
SELECT - 48 * - + 72 AS col2
----
3456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT ALL CAST( + - 15 AS SIGNED ) * - + CAST( 62 AS SIGNED ) + - ( - + 18 ) col0
----
948

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL CAST ( + - 15 AS INTEGER ) * - + CAST ( 62 AS INTEGER ) + - ( - + 18 ) col0
----
948

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7095
SELECT DISTINCT + COALESCE ( - COUNT( * ), - 22 ) DIV + - 30 AS col1, - 15 * 38
----
0
-570

skipif mysql # not compatible
query II rowsort label-7095
SELECT DISTINCT + COALESCE ( - COUNT ( * ), - 22 ) / + - 30 AS col1, - 15 * 38
----
0
-570

query I rowsort
SELECT ALL 95 * - 82
----
-7790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7097
SELECT 91 * + CAST( + ( 16 ) AS SIGNED ) + + COUNT( * ) AS col0
----
1457

skipif mysql # not compatible
query I rowsort label-7097
SELECT 91 * + CAST ( + ( 16 ) AS INTEGER ) + + COUNT ( * ) AS col0
----
1457

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT + MIN( DISTINCT + + 38 ) - - + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-7098
SELECT + MIN ( DISTINCT + + 38 ) - - + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL NULLIF ( - - 88, - + ( COUNT( * ) ) * 46 ) * 95
----
8360

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL NULLIF ( - - 88, - + ( COUNT ( * ) ) * 46 ) * 95
----
8360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7100
SELECT 28 DIV - CAST( - 94 AS SIGNED ) + + COUNT( ALL - 84 ) AS col1, + 33 * - 31 * - - NULLIF ( - 4, - 2 - - 57 * + 7 * + 94 ) AS col0
----
1
4092

skipif mysql # not compatible
query II rowsort label-7100
SELECT 28 / - CAST ( - 94 AS INTEGER ) + + COUNT ( ALL - 84 ) AS col1, + 33 * - 31 * - - NULLIF ( - 4, - 2 - - 57 * + 7 * + 94 ) AS col0
----
1
4092

query I rowsort
SELECT + ( + 76 ) AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7102
SELECT CAST( + ( - 7 ) AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-7102
SELECT CAST ( + ( - 7 ) AS INTEGER )
----
-7

query I rowsort
SELECT + ( + + 67 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7104
SELECT ALL CASE + 20 WHEN 77 - + 48 + - 93 + + - 69 * + - 63 + + CASE 10 WHEN 78 DIV - 56 THEN NULL WHEN ( - - 45 ) THEN + - 50 + + 93 END * 18 * - 76 THEN - 29 + - COUNT( * ) DIV + 56 + CAST( NULL AS SIGNED ) ELSE - ( - 84 ) + + 41 END DIV 63 - - ( - COALESCE ( + ( 76 ), 38 DIV + 43, 61 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL CASE + 20 WHEN 77 - + 48 + - 93 + + - 69 * + - 63 + + CASE 10 WHEN 78 / - 56 THEN NULL WHEN ( - - 45 ) THEN + - 50 + + 93 END * 18 * - 76 THEN - 29 + - COUNT ( * ) / + 56 + CAST ( NULL AS INTEGER ) ELSE - ( - 84 ) + + 41 END / 63 - - ( - COALESCE ( + ( 76 ), 38 / + 43, 61 ) )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT + MIN( + 38 ) + NULLIF ( + 65, - 82 * 49 / - 38 ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-7105
SELECT + MIN ( + 38 ) + NULLIF ( + 65, - 82 * 49 / - 38 ) AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT 92 * 2 + - + NULLIF ( - COUNT( * ), + MAX( + 24 ) + - - 42 ) + + 78 col1
----
263

skipif mysql # not compatible
query I rowsort label-7106
SELECT 92 * 2 + - + NULLIF ( - COUNT ( * ), + MAX ( + 24 ) + - - 42 ) + + 78 col1
----
263

query I rowsort
SELECT DISTINCT ( + - 99 ) * 92 * - 14 AS col2
----
127512

query I rowsort
SELECT + 13 * 19 + - 78
----
169

query I rowsort
SELECT + - 33 * 91 AS col0
----
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT DISTINCT + COUNT( * ) * - 11
----
-11

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT + COUNT ( * ) * - 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT DISTINCT - 16 * + + ( + 55 ) - COALESCE ( - + ( - + ( - 28 ) ), - COUNT( 90 ) + + + 48 * + 66 ) - 62 AS col0
----
-914

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT - 16 * + + ( + 55 ) - COALESCE ( - + ( - + ( - 28 ) ), - COUNT ( 90 ) + + + 48 * + 66 ) - 62 AS col0
----
-914

query I rowsort
SELECT - ( 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT + - MAX( + + 91 ) + + + COALESCE ( + MIN( - ( - 63 ) ), - + MIN( - 43 ), MAX( DISTINCT + ( 5 ) ) - + 92 - + + 78 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7113
SELECT + - MAX ( + + 91 ) + + + COALESCE ( + MIN ( - ( - 63 ) ), - + MIN ( - 43 ), MAX ( DISTINCT + ( 5 ) ) - + 92 - + + 78 ) AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7114
SELECT + + CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) * + 3 + 3 THEN - 39 END * + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7114
SELECT + + CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) * + 3 + 3 THEN - 39 END * + 1 AS col0
----
NULL

query II rowsort
SELECT - 43 * 60 * - - 59 + 0 + 74 AS col2, + 93 * + 63
----
-152146
5859

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT - ( + 99 ) DIV - + 98
----
1

skipif mysql # not compatible
query I rowsort label-7116
SELECT - ( + 99 ) / - + 98
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7117
SELECT + CAST( NULL AS SIGNED ) * 52 + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT + CAST ( NULL AS INTEGER ) * 52 + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 65 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT ALL + - MAX( 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL + - MAX ( 88 )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-7120
SELECT ALL - - 61 * 49 DIV - 35 + - 75 * + + 77 AS col0
----
-5860

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL - - 61 * 49 / - 35 + - 75 * + + 77 AS col0
----
-5860

query I rowsort
SELECT + + 71 + - - 93
----
164

query I rowsort
SELECT DISTINCT - - 7 * + 1 * 12 + 0 AS col0
----
84

query I rowsort
SELECT ALL + + 43 + - 83
----
-40

query I rowsort
SELECT - 73 + 77
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7125
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + 95 * - 17
----
-1615

query I rowsort
SELECT - 25 + - 19 AS col0
----
-44

query I rowsort
SELECT ALL + 23 + - + 80 AS col1
----
-57

query I rowsort
SELECT ALL - 23 + + - 67 * - 25 + - 92
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT COUNT( - - 38 ) + + 43 * - 29 + - 32 AS col0
----
-1278

skipif mysql # not compatible
query I rowsort label-7130
SELECT COUNT ( - - 38 ) + + 43 * - 29 + - 32 AS col0
----
-1278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7131
SELECT 70 + - CAST( - + 48 AS SIGNED ) * - + CASE - + COALESCE ( - CAST( NULL AS SIGNED ), - ( - 0 ) + - 30 + + + 2 + CAST( + 93 AS DECIMAL ) ) WHEN + - 4 + + 33 + - + 70 * + 99 * + 29 THEN - - COUNT( * ) WHEN 44 THEN NULL WHEN + 26 THEN 80 * 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT 70 + - CAST ( - + 48 AS INTEGER ) * - + CASE - + COALESCE ( - CAST ( NULL AS INTEGER ), - ( - 0 ) + - 30 + + + 2 + CAST ( + 93 AS REAL ) ) WHEN + - 4 + + 33 + - + 70 * + 99 * + 29 THEN - - COUNT ( * ) WHEN 44 THEN NULL WHEN + 26 THEN 80 * 30 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT 44 * - COALESCE ( - ( - ( + 79 ) ), + 8 + + MIN( - - 49 ) )
----
-3476

skipif mysql # not compatible
query I rowsort label-7132
SELECT 44 * - COALESCE ( - ( - ( + 79 ) ), + 8 + + MIN ( - - 49 ) )
----
-3476

query I rowsort
SELECT 51 / - CASE + - 55 WHEN - 10 * - 74 - + + 51 - + + 80 THEN 76 END
----
NULL

query I rowsort
SELECT 86 * + 73
----
6278

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT ALL - MAX( + 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL - MAX ( + 19 ) AS col1
----
-19

query II rowsort
SELECT DISTINCT - 92 col0, 75
----
-92
75

query I rowsort
SELECT ALL 6 * - 17 AS col0
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-7138
SELECT ALL - 60 DIV + - 61 * + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL - 60 / + - 61 * + 92 AS col1
----
0

query I rowsort
SELECT DISTINCT 40 * + 22 AS col1
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT ALL SUM( ALL - + 32 ) * NULLIF ( - SUM( DISTINCT - 29 ), + 76 ) + - - 74 + + - 83 + - - 12 + 17 * + 5 AS col2
----
-840

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL SUM ( ALL - + 32 ) * NULLIF ( - SUM ( DISTINCT - 29 ), + 76 ) + - - 74 + + - 83 + - - 12 + 17 * + 5 AS col2
----
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT DISTINCT - 49 * ( - ( + + 98 ) ) DIV 35 * 75 + - ( - 55 ) AS col2
----
10330

skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT - 49 * ( - ( + + 98 ) ) / 35 * 75 + - ( - 55 ) AS col2
----
10330

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7142
SELECT DISTINCT - 11, 60 + + + CAST( - + 5 AS SIGNED ) AS col2
----
-11
55

skipif mysql # not compatible
query II rowsort label-7142
SELECT DISTINCT - 11, 60 + + + CAST ( - + 5 AS INTEGER ) AS col2
----
-11
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7143
SELECT - 62 * ( - + AVG ( + 32 ) ) * + 89 - + MIN( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7143
SELECT - 62 * ( - + AVG ( + 32 ) ) * + 89 - + MIN ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - - 36 AS col1
----
36

query I rowsort
SELECT DISTINCT - + 66 + - 50 AS col2
----
-116

query I rowsort
SELECT ALL - COALESCE ( - 46, 61 ) col2
----
46

query I rowsort
SELECT + 28 * + 26 AS col0
----
728

query I rowsort
SELECT ALL - 97 + 44 AS col0
----
-53

query II rowsort
SELECT 77 AS col2, 1 + + - 13
----
77
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT - 94 * 11 + NULLIF ( 71, COUNT( * ) * 23 ) AS col0
----
-963

skipif mysql # not compatible
query I rowsort label-7150
SELECT - 94 * 11 + NULLIF ( 71, COUNT ( * ) * 23 ) AS col0
----
-963

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7151
SELECT - 64 + - COUNT( * ) DIV + 19
----
-64

skipif mysql # not compatible
query I rowsort label-7151
SELECT - 64 + - COUNT ( * ) / + 19
----
-64

query I rowsort
SELECT - 24 * - 80 - - 91 col1
----
2011

query I rowsort
SELECT ALL 47 + 50
----
97

query I rowsort
SELECT + ( + + 52 ) * + 50 AS col2
----
2600

query I rowsort
SELECT DISTINCT 9 * - 20 AS col1
----
-180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7156
SELECT ALL 31 + + 37 DIV - COUNT( * ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL 31 + + 37 / - COUNT ( * ) AS col2
----
-6

query II rowsort
SELECT 7, 13 AS col0
----
7
13

query II rowsort
SELECT - 88 AS col0, + 14
----
-88
14

query II rowsort
SELECT ALL 89, - 82 AS col2
----
89
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7160
SELECT CAST( NULL AS SIGNED ) - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7160
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT 49 AS col0, + 48 - - 24 AS col2
----
49
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7162
SELECT ALL 0 AS col2, CASE CAST( NULL AS SIGNED ) WHEN - 35 THEN NULL ELSE 28 DIV + 36 END
----
0
0

skipif mysql # not compatible
query II rowsort label-7162
SELECT ALL 0 AS col2, CASE CAST ( NULL AS INTEGER ) WHEN - 35 THEN NULL ELSE 28 / + 36 END
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7163
SELECT DISTINCT 76 * - - 25 AS col1, - COALESCE ( - 42, 84 + + 33 * + - CAST( + - 38 AS SIGNED ) ) AS col0
----
1900
42

skipif mysql # not compatible
query II rowsort label-7163
SELECT DISTINCT 76 * - - 25 AS col1, - COALESCE ( - 42, 84 + + 33 * + - CAST ( + - 38 AS INTEGER ) ) AS col0
----
1900
42

query I rowsort
SELECT 79 * - 9 col1
----
-711

query I rowsort
SELECT 86 - 69 AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7166
SELECT ALL - 56 * NULLIF ( + - 74, - COUNT( * ) ), 55 - - 40 AS col0
----
4144
95

skipif mysql # not compatible
query II rowsort label-7166
SELECT ALL - 56 * NULLIF ( + - 74, - COUNT ( * ) ), 55 - - 40 AS col0
----
4144
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7167
SELECT + NULLIF ( - + 45, 46 * 83 ) DIV 80 + SUM( ALL + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-7167
SELECT + NULLIF ( - + 45, 46 * 83 ) / 80 + SUM ( ALL + 82 )
----
82

query II rowsort
SELECT + 67 col1, 36 AS col1
----
67
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT 8 + - - ( - + CASE - 22 WHEN - 5 THEN NULL ELSE - ( - + 46 ) END ) * - 17 * - - ( - SUM( 16 ) ) * + + 98 + 72 + - + 23 + - NULLIF ( - COUNT( * ), - + 75 + + COUNT( * ) ) * + 61 * - + 60 col2
----
-1229779

skipif mysql # not compatible
query I rowsort label-7169
SELECT 8 + - - ( - + CASE - 22 WHEN - 5 THEN NULL ELSE - ( - + 46 ) END ) * - 17 * - - ( - SUM ( 16 ) ) * + + 98 + 72 + - + 23 + - NULLIF ( - COUNT ( * ), - + 75 + + COUNT ( * ) ) * + 61 * - + 60 col2
----
-1229779

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7170
SELECT ALL - 95, COALESCE ( 45, - CAST( NULL AS SIGNED ) ) + - 0 AS col1
----
-95
45

skipif mysql # not compatible
query II rowsort label-7170
SELECT ALL - 95, COALESCE ( 45, - CAST ( NULL AS INTEGER ) ) + - 0 AS col1
----
-95
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7171
SELECT + COUNT( * ) DIV - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7171
SELECT + COUNT ( * ) / - 55 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT COUNT( DISTINCT + 41 ) + 23
----
24

skipif mysql # not compatible
query I rowsort label-7172
SELECT COUNT ( DISTINCT + 41 ) + 23
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7173
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1, 97 - + CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7173
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, 97 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 64 * + 77 + 5
----
4933

onlyif mysql # aggregate syntax: 
query II rowsort label-7175
SELECT ALL - 74 AS col0, - COUNT( * )
----
-74
-1

skipif mysql # not compatible
query II rowsort label-7175
SELECT ALL - 74 AS col0, - COUNT ( * )
----
-74
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7176
SELECT ALL + - 76 + + 3 + + ( COALESCE ( - + 58, 60 ) ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL + - 76 + + 3 + + ( COALESCE ( - + 58, 60 ) ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT ALL + 46 + COUNT( * ) * 67
----
113

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL + 46 + COUNT ( * ) * 67
----
113

query I rowsort
SELECT 54 * 75
----
4050

query I rowsort
SELECT ALL - + 63 * 73
----
-4599

query I rowsort
SELECT DISTINCT + - 1 + + - 81
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT + + ( - NULLIF ( + 29, - COUNT( DISTINCT 96 ) ) )
----
-29

skipif mysql # not compatible
query I rowsort label-7181
SELECT + + ( - NULLIF ( + 29, - COUNT ( DISTINCT 96 ) ) )
----
-29

query I rowsort
SELECT + 19 * 73 * - 20 + - - ( - + 50 )
----
-27790

query I rowsort
SELECT + 28 + - 31 * - 28 + + 48 + - 9 * 84
----
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7184
SELECT ALL - + CAST( - 47 AS SIGNED ) - MAX( ALL + + CAST( 63 AS SIGNED ) )
----
-16

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL - + CAST ( - 47 AS INTEGER ) - MAX ( ALL + + CAST ( 63 AS INTEGER ) )
----
-16

query I rowsort
SELECT ALL - + ( 36 )
----
-36

query I rowsort
SELECT DISTINCT + + 77 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7187
SELECT DISTINCT CASE - 16 WHEN - + 16 + + 2 THEN ( 95 ) / - - COUNT( * ) * - MIN( ALL - 85 ) / + + 62 + 85 + - + CAST( NULL AS SIGNED ) + + + COUNT( * ) + + 57 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT CASE - 16 WHEN - + 16 + + 2 THEN ( 95 ) / - - COUNT ( * ) * - MIN ( ALL - 85 ) / + + 62 + 85 + - + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) + + 57 END AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 55, + 6 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT + 19 - COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7189
SELECT + 19 - COUNT ( * ) AS col2
----
18

query I rowsort
SELECT - 90 + + 31
----
-59

query I rowsort
SELECT ALL 78 * + 85 * + 51 * - 55 AS col2
----
-18597150

onlyif mysql # DIV for integer division: 
query I rowsort label-7192
SELECT + 18 DIV 14 * + ( - 59 ) * 2
----
-118

skipif mysql # not compatible
query I rowsort label-7192
SELECT + 18 / 14 * + ( - 59 ) * 2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT ALL COUNT( * ) * - - 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL COUNT ( * ) * - - 35 AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7194
SELECT + ( - - 29 ) + + - 83 + - + COUNT( DISTINCT + 67 ) - - 76 + CASE + - 63 WHEN - COUNT( * ) THEN + - 84 * 26 * + 47 WHEN - COALESCE ( - 29, 39 / + 40, + - 43 * + + CAST( + + ( + COUNT( * ) ) AS SIGNED ) ) + + 90 THEN - CAST( + COALESCE ( + - 65, - COUNT( ALL 94 ) ) AS SIGNED ) ELSE + 45 * + 72 END * - 38 * - 59
----
7264101

skipif mysql # not compatible
query I rowsort label-7194
SELECT + ( - - 29 ) + + - 83 + - + COUNT ( DISTINCT + 67 ) - - 76 + CASE + - 63 WHEN - COUNT ( * ) THEN + - 84 * 26 * + 47 WHEN - COALESCE ( - 29, 39 / + 40, + - 43 * + + CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) ) + + 90 THEN - CAST ( + COALESCE ( + - 65, - COUNT ( ALL 94 ) ) AS INTEGER ) ELSE + 45 * + 72 END * - 38 * - 59
----
7264101

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL MIN( - 65 ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL MIN ( - 65 ) col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT + COALESCE ( + + 46, - 86, - ( + COUNT( * ) ) ) + + 65
----
111

skipif mysql # not compatible
query I rowsort label-7196
SELECT + COALESCE ( + + 46, - 86, - ( + COUNT ( * ) ) ) + + 65
----
111

query I rowsort
SELECT + 64 * 60 * + CASE + 42 WHEN - + 86 THEN ( 32 ) * + - 0 ELSE 1 END AS col2
----
3840

query I rowsort
SELECT DISTINCT 29 + 85 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + CASE + 27 WHEN - + 73 THEN COUNT( * ) * - 29 WHEN + 67 THEN + ( + 41 ) * - 86 END / 37 * + COALESCE ( + - 27, + - 31, + + 88 ) + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT + CASE + 27 WHEN - + 73 THEN COUNT ( * ) * - 29 WHEN + 67 THEN + ( + 41 ) * - 86 END / 37 * + COALESCE ( + - 27, + - 31, + + 88 ) + + 21
----
NULL

query I rowsort
SELECT - 58 + - 2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT ALL 64 + + - COUNT( * ) * + + 7
----
57

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL 64 + + - COUNT ( * ) * + + 7
----
57

query II rowsort
SELECT + 28 * 14 AS col1, + 65 AS col1
----
392
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7203
SELECT - - 22 + - CASE + + COUNT( * ) WHEN + + CAST( COUNT( * ) AS SIGNED ) THEN + + 20 END
----
2

skipif mysql # not compatible
query I rowsort label-7203
SELECT - - 22 + - CASE + + COUNT ( * ) WHEN + + CAST ( COUNT ( * ) AS INTEGER ) THEN + + 20 END
----
2

query I rowsort
SELECT ALL - 9 * - - 61 + + ( - 9 ) AS col0
----
-558

query I rowsort
SELECT ALL 80 * + 88 AS col2
----
7040

query I rowsort
SELECT ALL ( + 46 ) * - 77 * + 0 * - + 28 + 72 col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7207
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 19 * + - 45 + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 19 * + - 45 + - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT CASE + 15 WHEN - - 1 - + 90 THEN NULL WHEN + + 4 * + ( - 64 ) THEN - 81 ELSE NULL END * - 24 * - 22 + 3 * 73 / - 28 + - ( - SUM( - 11 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7208
SELECT CASE + 15 WHEN - - 1 - + 90 THEN NULL WHEN + + 4 * + ( - 64 ) THEN - 81 ELSE NULL END * - 24 * - 22 + 3 * 73 / - 28 + - ( - SUM ( - 11 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT DISTINCT + + 89 * COUNT( * ) - + 87 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT + + 89 * COUNT ( * ) - + 87 AS col1
----
2

query I rowsort
SELECT - - 59 - - 13
----
72

query I rowsort
SELECT ALL - + 23 * 70 - 62 + + 77
----
-1595

query I rowsort
SELECT ALL + 73 * + 34 * - 35 AS col1
----
-86870

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7213
SELECT + CAST( 60 AS DECIMAL ) * 65 - + 4 / - - 42 + 81 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT + CAST ( 60 AS REAL ) * 65 - + 4 / - - 42 + 81 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 78 * + 67 AS col1
----
-5226

query II rowsort
SELECT + 20, 12 * + + 0 col0
----
20
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT - 66 * CASE SUM( ALL - + 61 ) WHEN 45 * + 94 * - CASE NULLIF ( + COUNT( * ), 88 ) WHEN + - 57 THEN 88 - 85 END * + 79 + 51 THEN NULL ELSE + COUNT( + 90 ) END
----
-66

skipif mysql # not compatible
query I rowsort label-7216
SELECT - 66 * CASE SUM ( ALL - + 61 ) WHEN 45 * + 94 * - CASE NULLIF ( + COUNT ( * ), 88 ) WHEN + - 57 THEN 88 - 85 END * + 79 + 51 THEN NULL ELSE + COUNT ( + 90 ) END
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT - SUM( + 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-7217
SELECT - SUM ( + 77 ) AS col0
----
-77

query I rowsort
SELECT ALL ( - 94 ) col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT - COUNT( * ) * + 20 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-7219
SELECT - COUNT ( * ) * + 20 AS col0
----
-20

query I rowsort
SELECT ALL + 1 + + - ( 70 ) * + 84 + + 86
----
-5793

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT - 70 - + 12 + CASE - 51 WHEN + 22 THEN - 28 + + ( - + CAST( - - 10 AS SIGNED ) ) WHEN 27 THEN + - 58 * + 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7221
SELECT - 70 - + 12 + CASE - 51 WHEN + 22 THEN - 28 + + ( - + CAST ( - - 10 AS INTEGER ) ) WHEN 27 THEN + - 58 * + 8 ELSE NULL END
----
NULL

query II rowsort
SELECT 51 AS col2, + 98
----
51
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7223
SELECT + 35 DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-7223
SELECT + 35 / + 37
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7224
SELECT ALL + 30 DIV - COUNT( * ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL + 30 / - COUNT ( * ) col2
----
-30

query I rowsort
SELECT ALL 2 + 50 col2
----
52

query II rowsort
SELECT + 72 + + + 70 * 1, + 36 AS col1
----
142
36

query II rowsort
SELECT DISTINCT + 1 * 95 * - 57 col0, - 14 col1
----
-5415
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT DISTINCT MIN( ALL 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT MIN ( ALL 38 ) AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7229
SELECT ALL 25 + - 87 / CAST( NULL AS SIGNED ) / COALESCE ( 97, - 42 + - COUNT( ALL + - 96 ) ) + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL 25 + - 87 / CAST ( NULL AS INTEGER ) / COALESCE ( 97, - 42 + - COUNT ( ALL + - 96 ) ) + + 13
----
NULL

query I rowsort
SELECT ALL - ( + 1 ) * 14 * 40
----
-560

onlyif mysql # aggregate syntax: 
query II rowsort label-7231
SELECT ALL 69 + 94 + - + 2 * COUNT( * ) AS col1, 84 AS col2
----
161
84

skipif mysql # not compatible
query II rowsort label-7231
SELECT ALL 69 + 94 + - + 2 * COUNT ( * ) AS col1, 84 AS col2
----
161
84

query I rowsort
SELECT + + 4 + - + 74 AS col0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-7233
SELECT + + 99 - 82 DIV + 81 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7233
SELECT + + 99 - 82 / + 81 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7234
SELECT - CAST( - ( - 53 ) AS SIGNED ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-7234
SELECT - CAST ( - ( - 53 ) AS INTEGER ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT - 5 * + 69 * COUNT( * ) * + MAX( DISTINCT - 89 ) - - 77
----
30782

skipif mysql # not compatible
query I rowsort label-7235
SELECT - 5 * + 69 * COUNT ( * ) * + MAX ( DISTINCT - 89 ) - - 77
----
30782

onlyif mysql # aggregate syntax: 
query II rowsort label-7236
SELECT + - 13 * + COUNT( * ) * - 95, + 81 AS col2
----
1235
81

skipif mysql # not compatible
query II rowsort label-7236
SELECT + - 13 * + COUNT ( * ) * - 95, + 81 AS col2
----
1235
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7237
SELECT + + 55 + - CASE + + 22 WHEN CAST( NULL AS DECIMAL ) THEN NULL WHEN + 72 THEN - + COUNT( * ) WHEN - - COUNT( * ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT + + 55 + - CASE + + 22 WHEN CAST ( NULL AS REAL ) THEN NULL WHEN + 72 THEN - + COUNT ( * ) WHEN - - COUNT ( * ) THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT + COUNT( - - 69 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7238
SELECT + COUNT ( - - 69 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT ALL + - MIN( + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL + - MIN ( + 79 )
----
-79

query I rowsort
SELECT ALL 71 - - 88
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-7241
SELECT ALL - + 21 - + MIN( ALL + 59 ), - 61 AS col1
----
-80
-61

skipif mysql # not compatible
query II rowsort label-7241
SELECT ALL - + 21 - + MIN ( ALL + 59 ), - 61 AS col1
----
-80
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT + MAX( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-7242
SELECT + MAX ( + 51 )
----
51

query I rowsort
SELECT ALL - ( - 82 ) AS col2
----
82

query I rowsort
SELECT ALL 98 * 57
----
5586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7245
SELECT CASE - ( + - COALESCE ( 61, + + 45, 98 ) ) WHEN + CAST( NULL AS SIGNED ) - + COUNT( * ) * + COUNT( * ) + - COUNT( * ) THEN 56 ELSE NULL END + - + 66 * 83, ( - 12 ) + + 40 * COUNT( * ) AS col1
----
NULL
28

skipif mysql # not compatible
query II rowsort label-7245
SELECT CASE - ( + - COALESCE ( 61, + + 45, 98 ) ) WHEN + CAST ( NULL AS INTEGER ) - + COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) THEN 56 ELSE NULL END + - + 66 * 83, ( - 12 ) + + 40 * COUNT ( * ) AS col1
----
NULL
28

query II rowsort
SELECT 80 * + 96 AS col2, + 95 AS col2
----
7680
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7247
SELECT ALL - COALESCE ( - 7, CASE + 94 WHEN + 97 THEN NULL ELSE 21 DIV - - 37 END, COUNT( * ), 12 * COUNT( * ) + ( - 18 ) + - COUNT( * ) * - COUNT( * ) DIV - COUNT( * ) + - COUNT( * ) DIV + 45 * - + COUNT( * ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL - COALESCE ( - 7, CASE + 94 WHEN + 97 THEN NULL ELSE 21 / - - 37 END, COUNT ( * ), 12 * COUNT ( * ) + ( - 18 ) + - COUNT ( * ) * - COUNT ( * ) / - COUNT ( * ) + - COUNT ( * ) / + 45 * - + COUNT ( * ) ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT DISTINCT ( - MIN( DISTINCT - + 85 ) ) * + 10
----
850

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT ( - MIN ( DISTINCT - + 85 ) ) * + 10
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT 60 + COUNT( DISTINCT 92 )
----
61

skipif mysql # not compatible
query I rowsort label-7249
SELECT 60 + COUNT ( DISTINCT 92 )
----
61

query I rowsort
SELECT DISTINCT - 2 col2
----
-2

query I rowsort
SELECT 79 * - 78
----
-6162

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT ALL - 70 + - CASE - CASE 64 WHEN - + NULLIF ( + COALESCE ( - 88, + 90 * 46 - CASE - 14 WHEN - 79 * + 1 - 42 THEN NULL ELSE - NULLIF ( + + MAX( + + 44 ), + - COALESCE ( 90, + 82 * + 51 * + - COALESCE ( - 45, + CASE AVG ( - - 41 ) WHEN - 5 THEN + 16 ELSE NULL END, - 9 + 5 ) + 89 ) + + 90 ) - + 50 / COUNT( * ) END - 87 - + ( + 38 + 87 ) * 27, 13 ), MIN( - 57 ) * 74 ) THEN + 13 - 26 END WHEN 80 THEN NULL WHEN + COALESCE ( 49, 29 ) * COALESCE ( 3, + NULLIF ( 78, 45 ) ) THEN NULL ELSE + 82 * ( ( COUNT( * ) ) ) + 54 END * 19 AS col0
----
-2654

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL - 70 + - CASE - CASE 64 WHEN - + NULLIF ( + COALESCE ( - 88, + 90 * 46 - CASE - 14 WHEN - 79 * + 1 - 42 THEN NULL ELSE - NULLIF ( + + MAX ( + + 44 ), + - COALESCE ( 90, + 82 * + 51 * + - COALESCE ( - 45, + CASE AVG ( - - 41 ) WHEN - 5 THEN + 16 ELSE NULL END, - 9 + 5 ) + 89 ) + + 90 ) - + 50 / COUNT ( * ) END - 87 - + ( + 38 + 87 ) * 27, 13 ), MIN ( - 57 ) * 74 ) THEN + 13 - 26 END WHEN 80 THEN NULL WHEN + COALESCE ( 49, 29 ) * COALESCE ( 3, + NULLIF ( 78, 45 ) ) THEN NULL ELSE + 82 * ( ( COUNT ( * ) ) ) + 54 END * 19 AS col0
----
-2654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT 86 - + 14 + - CAST( - 27 AS SIGNED ) col2
----
99

skipif mysql # not compatible
query I rowsort label-7253
SELECT 86 - + 14 + - CAST ( - 27 AS INTEGER ) col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7254
SELECT 60 DIV + 57
----
1

skipif mysql # not compatible
query I rowsort label-7254
SELECT 60 / + 57
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7255
SELECT 5 + + 63 * + COUNT( * ) + - 72 * + CASE - COUNT( * ) WHEN - + CAST( - 55 AS SIGNED ) / + - ( + CAST( 24 AS SIGNED ) ) THEN + 52 * + COUNT( * ) + + 1 ELSE NULL END * - - 41 - + - 24 * + CAST( + ( - 96 ) AS SIGNED ) AS col0, - 35 AS col0
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-7255
SELECT 5 + + 63 * + COUNT ( * ) + - 72 * + CASE - COUNT ( * ) WHEN - + CAST ( - 55 AS INTEGER ) / + - ( + CAST ( 24 AS INTEGER ) ) THEN + 52 * + COUNT ( * ) + + 1 ELSE NULL END * - - 41 - + - 24 * + CAST ( + ( - 96 ) AS INTEGER ) AS col0, - 35 AS col0
----
NULL
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7256
SELECT 76 + COUNT( * ) DIV + ( 71 )
----
76

skipif mysql # not compatible
query I rowsort label-7256
SELECT 76 + COUNT ( * ) / + ( 71 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT DISTINCT + COUNT( * ) * - 37
----
-37

skipif mysql # not compatible
query I rowsort label-7257
SELECT DISTINCT + COUNT ( * ) * - 37
----
-37

query I rowsort
SELECT ALL - 70 + ( + 51 ) + - 34
----
-53

query I rowsort
SELECT ALL - 98 + 62
----
-36

query I rowsort
SELECT ALL + 43 * - 87
----
-3741

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT 95 + 14 + + + COUNT( * ) col2
----
110

skipif mysql # not compatible
query I rowsort label-7261
SELECT 95 + 14 + + + COUNT ( * ) col2
----
110

query II rowsort
SELECT DISTINCT + 25 * - + 16 col2, + 23 * + + 34 AS col1
----
-400
782

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL - - 57 + - 60 + - MAX( DISTINCT - - 73 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL - - 57 + - 60 + - MAX ( DISTINCT - - 73 ) AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7264
SELECT ALL - - SUM( ALL 43 ) - - 4 + + CAST( + + 23 AS SIGNED ) * + + 5
----
162

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL - - SUM ( ALL 43 ) - - 4 + + CAST ( + + 23 AS INTEGER ) * + + 5
----
162

query I rowsort
SELECT 52 + - + 82 - + 27 AS col1
----
-57

query I rowsort
SELECT 39 * + 51
----
1989

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7267
SELECT - COALESCE ( - 93, - 52 * - - COUNT( * ) * - 6 DIV + COUNT( * ) ) * + - 69
----
-6417

skipif mysql # not compatible
query I rowsort label-7267
SELECT - COALESCE ( - 93, - 52 * - - COUNT ( * ) * - 6 / + COUNT ( * ) ) * + - 69
----
-6417

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7268
SELECT DISTINCT + 29 DIV 68 * + + 31 DIV + - CAST( + 39 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT + 29 / 68 * + + 31 / + - CAST ( + 39 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT - + 20 AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7270
SELECT ( MIN( ALL + + CAST( NULL AS SIGNED ) ) ) * - 97 * + 68 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT ( MIN ( ALL + + CAST ( NULL AS INTEGER ) ) ) * - 97 * + 68 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL + CASE + 26 WHEN + + COUNT( * ) + - - 83 / 16 THEN + + 81 - - 98 WHEN + 84 THEN NULL WHEN + 0 + COUNT( * ) THEN NULL ELSE NULL END * + COUNT( DISTINCT + COALESCE ( + 63, + - 13 ) ) - + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL + CASE + 26 WHEN + + COUNT ( * ) + - - 83 / 16 THEN + + 81 - - 98 WHEN + 84 THEN NULL WHEN + 0 + COUNT ( * ) THEN NULL ELSE NULL END * + COUNT ( DISTINCT + COALESCE ( + 63, + - 13 ) ) - + + 20 AS col1
----
NULL

query I rowsort
SELECT ( + - 63 ) - + 20
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7273
SELECT + + CAST( 66 AS SIGNED ), - 38 AS col2
----
66
-38

skipif mysql # not compatible
query II rowsort label-7273
SELECT + + CAST ( 66 AS INTEGER ), - 38 AS col2
----
66
-38

query I rowsort
SELECT 41 * - 4 + - 63 col2
----
-227

query I rowsort
SELECT 88 * + 85 - + + 78
----
7402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7276
SELECT + 73 DIV 43 * + + ( + + ( + 5 ) ) + - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-7276
SELECT + 73 / 43 * + + ( + + ( + 5 ) ) + - COUNT ( * )
----
4

query I rowsort
SELECT + 34 * + ( + 23 ) - + 15
----
767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7278
SELECT ( + CAST( NULL AS SIGNED ) ) * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7278
SELECT ( + CAST ( NULL AS INTEGER ) ) * - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL 19 + - - CASE MAX( ALL 17 ) WHEN + 0 + + 37 THEN + COUNT( * ) WHEN 92 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL 19 + - - CASE MAX ( ALL 17 ) WHEN + 0 + + 37 THEN + COUNT ( * ) WHEN 92 THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ALL 77 + - - 67 + - NULLIF ( + + MAX( - 67 ), - 95 / + 64 * 30 * + 22 * - - 53 + + AVG ( ALL - 40 ) + - - COUNT( * ) )
----
211

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL 77 + - - 67 + - NULLIF ( + + MAX ( - 67 ), - 95 / + 64 * 30 * + 22 * - - 53 + + AVG ( ALL - 40 ) + - - COUNT ( * ) )
----
211

query II rowsort
SELECT 95 col2, - 85
----
95
-85

query I rowsort
SELECT 86 + - NULLIF ( + + 28, 38 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT 95 + + 53 + - 92 + - + 20 + - 31 * - - NULLIF ( - SUM( DISTINCT + 29 ), + 85 ) * - 32 - 98 * COUNT( * ) + 72 + + 0 + + - 65 * + MIN( - 90 ) AS col2
----
-22908

skipif mysql # not compatible
query I rowsort label-7283
SELECT 95 + + 53 + - 92 + - + 20 + - 31 * - - NULLIF ( - SUM ( DISTINCT + 29 ), + 85 ) * - 32 - 98 * COUNT ( * ) + 72 + + 0 + + - 65 * + MIN ( - 90 ) AS col2
----
-22908

query I rowsort
SELECT + 96 * + 9 - + 93 + + 83
----
854

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT ALL COUNT( * ) * - 55
----
-55

skipif mysql # not compatible
query I rowsort label-7285
SELECT ALL COUNT ( * ) * - 55
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-7286
SELECT 5 DIV - - ( 86 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7286
SELECT 5 / - - ( 86 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7287
SELECT CAST( 49 AS SIGNED ) * 10 - - 70
----
560

skipif mysql # not compatible
query I rowsort label-7287
SELECT CAST ( 49 AS INTEGER ) * 10 - - 70
----
560

query I rowsort
SELECT DISTINCT - 84 + + 54
----
-30

query I rowsort
SELECT 88 * 40 AS col0
----
3520

query I rowsort
SELECT ALL 11 * 72 AS col2
----
792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7291
SELECT ALL - 66 + ( 69 ) + - + 45 * + NULLIF ( 6, 88 ) + - - 91 * COUNT( * ) + - - 41 DIV - - COUNT( * ) + + - 42 AS col2
----
-177

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - 66 + ( 69 ) + - + 45 * + NULLIF ( 6, 88 ) + - - 91 * COUNT ( * ) + - - 41 / - - COUNT ( * ) + + - 42 AS col2
----
-177

query II rowsort
SELECT - 60, + 69 AS col1
----
-60
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT DISTINCT COUNT( + 99 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT COUNT ( + 99 ) col1
----
1

query I rowsort
SELECT 85 + 27 AS col0
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-7295
SELECT 28 DIV + - 45
----
0

skipif mysql # not compatible
query I rowsort label-7295
SELECT 28 / + - 45
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT ALL - + 5 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL - + 5 / + 58
----
0

query I rowsort
SELECT - 20 + 61 AS col0
----
41

query II rowsort
SELECT 26, 56 * - + NULLIF ( - - 56, + + 15 * + 40 / 30 ) AS col2
----
26
-3136

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT - + MAX( ALL - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-7299
SELECT - + MAX ( ALL - 26 )
----
26

query I rowsort
SELECT 77 * - 35 AS col0
----
-2695

query I rowsort
SELECT ALL - + 29 * 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7302
SELECT 8 - 8 * COUNT( * ), 35 - + 4 col2
----
0
31

skipif mysql # not compatible
query II rowsort label-7302
SELECT 8 - 8 * COUNT ( * ), 35 - + 4 col2
----
0
31

query I rowsort
SELECT ALL + 27 * - 80
----
-2160

onlyif mysql # DIV for integer division: 
query I rowsort label-7304
SELECT ALL + + 25 - - 90 + - + 1 DIV + 90 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL + + 25 - - 90 + - + 1 / + 90 AS col1
----
115

query I rowsort
SELECT DISTINCT + 99 * - 25
----
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT - - COALESCE ( + - COUNT( * ), 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-7306
SELECT - - COALESCE ( + - COUNT ( * ), 24 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT ALL + + SUM( DISTINCT - 81 ) * NULLIF ( - 70, COALESCE ( - COUNT( * ), + - 92 ) ) - - - 99
----
5571

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL + + SUM ( DISTINCT - 81 ) * NULLIF ( - 70, COALESCE ( - COUNT ( * ), + - 92 ) ) - - - 99
----
5571

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT - 6 - COUNT( * ) * + 90
----
-96

skipif mysql # not compatible
query I rowsort label-7308
SELECT - 6 - COUNT ( * ) * + 90
----
-96

query I rowsort
SELECT + 58 * 6 * + 32 - - 31 AS col2
----
11167

onlyif mysql # DIV for integer division: 
query I rowsort label-7310
SELECT - 59 DIV - + 76
----
0

skipif mysql # not compatible
query I rowsort label-7310
SELECT - 59 / - + 76
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7311
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 36 / + + 27 * + 64 / - - 2 + - MAX( 93 ) * - + 76 AS col0, 76
----
NULL
76

skipif mysql # not compatible
query II rowsort label-7311
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 36 / + + 27 * + 64 / - - 2 + - MAX ( 93 ) * - + 76 AS col0, 76
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT - - COUNT( * ) + - 33 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7312
SELECT - - COUNT ( * ) + - 33 AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7313
SELECT ALL - COALESCE ( + + 84, 10 DIV - - NULLIF ( - + COUNT( * ), 93 * + + 77 + + CASE - 78 WHEN MIN( + 91 ) - - + 97 * - 77 - + CASE 17 WHEN + - 15 THEN + 68 - + 91 - + 20 DIV 50 END THEN ( - COUNT( * ) ) END DIV 84 + - 49 ) ) DIV 68 AS col2, + CASE - 29 WHEN - + 0 * 9 + + + 92 THEN + 46 + - 35 ELSE COUNT( * ) END * - 0
----
-1
0

skipif mysql # not compatible
query II rowsort label-7313
SELECT ALL - COALESCE ( + + 84, 10 / - - NULLIF ( - + COUNT ( * ), 93 * + + 77 + + CASE - 78 WHEN MIN ( + 91 ) - - + 97 * - 77 - + CASE 17 WHEN + - 15 THEN + 68 - + 91 - + 20 / 50 END THEN ( - COUNT ( * ) ) END / 84 + - 49 ) ) / 68 AS col2, + CASE - 29 WHEN - + 0 * 9 + + + 92 THEN + 46 + - 35 ELSE COUNT ( * ) END * - 0
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7314
SELECT + SUM( + + NULLIF ( + 90, 82 ) ) col1, - COUNT( * ) AS col1
----
90
-1

skipif mysql # not compatible
query II rowsort label-7314
SELECT + SUM ( + + NULLIF ( + 90, 82 ) ) col1, - COUNT ( * ) AS col1
----
90
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7315
SELECT ALL 86 * 37 DIV + - COUNT( * ) + SUM( - 76 ) col0
----
-3258

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL 86 * 37 / + - COUNT ( * ) + SUM ( - 76 ) col0
----
-3258

onlyif mysql # aggregate syntax: 
query II rowsort label-7316
SELECT + COUNT( * ) AS col0, 43
----
1
43

skipif mysql # not compatible
query II rowsort label-7316
SELECT + COUNT ( * ) AS col0, 43
----
1
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7317
SELECT - 1 + + - CAST( - - 55 AS SIGNED ) + 78
----
22

skipif mysql # not compatible
query I rowsort label-7317
SELECT - 1 + + - CAST ( - - 55 AS INTEGER ) + 78
----
22

query II rowsort
SELECT + 80 AS col0, - 53 * + 65 - - 38 * 41
----
80
-1887

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT + COUNT( * ) + + 12
----
13

skipif mysql # not compatible
query I rowsort label-7319
SELECT + COUNT ( * ) + + 12
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7320
SELECT + COUNT( * ) AS col1, - 36
----
1
-36

skipif mysql # not compatible
query II rowsort label-7320
SELECT + COUNT ( * ) AS col1, - 36
----
1
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT CASE - - MAX( ALL - - 98 ) WHEN - - 60 THEN + + NULLIF ( - 70, + 65 ) ELSE ( + 87 ) END
----
87

skipif mysql # not compatible
query I rowsort label-7321
SELECT CASE - - MAX ( ALL - - 98 ) WHEN - - 60 THEN + + NULLIF ( - 70, + 65 ) ELSE ( + 87 ) END
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT ALL 41 * 43 * + 35 * + 96 + ( 16 ) + - 47 - - 70 DIV + 54 AS col0
----
5923650

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL 41 * 43 * + 35 * + 96 + ( 16 ) + - 47 - - 70 / + 54 AS col0
----
5923650

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT COUNT( ALL + 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7323
SELECT COUNT ( ALL + 19 ) AS col1
----
1

query I rowsort
SELECT + ( ( - 25 ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT + MIN( + 76 ) * COUNT( + 60 ) + + 67
----
143

skipif mysql # not compatible
query I rowsort label-7325
SELECT + MIN ( + 76 ) * COUNT ( + 60 ) + + 67
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT MIN( ALL + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7326
SELECT MIN ( ALL + 1 ) AS col1
----
1

query I rowsort
SELECT + 0 + - - 36 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7328
SELECT + CASE + + 54 WHEN 24 * + MIN( DISTINCT ( + ( 3 ) ) ) + 63 THEN - 63 + - + 23 + 20 + + + MAX( - CAST( 86 AS SIGNED ) ) WHEN + 34 * + + 6 * + 63 - + - CAST( NULL AS SIGNED ) + - 98 + + ( + - 21 ) * - 94 + - COUNT( * ) + - 98 * - + COALESCE ( + 54, + - COUNT( * ), - 19 ) * - 17 THEN NULL WHEN AVG ( - 81 ) THEN NULL ELSE NULL END + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7328
SELECT + CASE + + 54 WHEN 24 * + MIN ( DISTINCT ( + ( 3 ) ) ) + 63 THEN - 63 + - + 23 + 20 + + + MAX ( - CAST ( 86 AS INTEGER ) ) WHEN + 34 * + + 6 * + 63 - + - CAST ( NULL AS INTEGER ) + - 98 + + ( + - 21 ) * - 94 + - COUNT ( * ) + - 98 * - + COALESCE ( + 54, + - COUNT ( * ), - 19 ) * - 17 THEN NULL WHEN AVG ( - 81 ) THEN NULL ELSE NULL END + - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT - ( - + 8 ) * COUNT( * ) * - 59 + + ( - + 18 ) + + 1 AS col1
----
-489

skipif mysql # not compatible
query I rowsort label-7329
SELECT - ( - + 8 ) * COUNT ( * ) * - 59 + + ( - + 18 ) + + 1 AS col1
----
-489

query I rowsort
SELECT ALL 58 * - 90
----
-5220

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7331
SELECT DISTINCT 65 AS col2, NULLIF ( + 77, - 3 ) DIV + - SUM( ALL + 52 )
----
65
-1

skipif mysql # not compatible
query II rowsort label-7331
SELECT DISTINCT 65 AS col2, NULLIF ( + 77, - 3 ) / + - SUM ( ALL + 52 )
----
65
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7332
SELECT ALL - COUNT( * ) AS col1, 9 * 90 / - ( CAST( NULL AS DECIMAL ) )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7332
SELECT ALL - COUNT ( * ) AS col1, 9 * 90 / - ( CAST ( NULL AS REAL ) )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT + + 25 + 52 / + + 77 - CASE 66 WHEN - 66 * - 55 - - NULLIF ( + 2, + ( - + ( + - 96 ) ) + - 73 * + 1 ) THEN + COUNT( * ) * + COALESCE ( - + 23, + + 47 ) * - 34 + 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7333
SELECT + + 25 + 52 / + + 77 - CASE 66 WHEN - 66 * - 55 - - NULLIF ( + 2, + ( - + ( + - 96 ) ) + - 73 * + 1 ) THEN + COUNT ( * ) * + COALESCE ( - + 23, + + 47 ) * - 34 + 98 END
----
NULL

query I rowsort
SELECT ALL + 62 * - 42 AS col2
----
-2604

onlyif mysql # DIV for integer division: 
query I rowsort label-7335
SELECT ALL - ( 4 ) DIV - - 32 col0
----
0

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL - ( 4 ) / - - 32 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT - 68 * + COUNT( * ) col0
----
-68

skipif mysql # not compatible
query I rowsort label-7336
SELECT - 68 * + COUNT ( * ) col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7337
SELECT ALL 59 AS col2, - SUM( + CAST( + 45 AS SIGNED ) ) * ( 39 )
----
59
-1755

skipif mysql # not compatible
query II rowsort label-7337
SELECT ALL 59 AS col2, - SUM ( + CAST ( + 45 AS INTEGER ) ) * ( 39 )
----
59
-1755

query II rowsort
SELECT ALL + 35 AS col1, 30 * + - 92
----
35
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT + COUNT( * ) * ( 72 )
----
72

skipif mysql # not compatible
query I rowsort label-7339
SELECT + COUNT ( * ) * ( 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT - - 35 + + 86 + + + COUNT( * ) AS col2
----
122

skipif mysql # not compatible
query I rowsort label-7340
SELECT - - 35 + + 86 + + + COUNT ( * ) AS col2
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT - + 18 DIV - + 36 + + 52
----
52

skipif mysql # not compatible
query I rowsort label-7341
SELECT - + 18 / - + 36 + + 52
----
52

query I rowsort
SELECT DISTINCT + - 85 + + - 56 + + 45 AS col0
----
-96

query I rowsort
SELECT ALL - 55 + + 4
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-7344
SELECT - 21 AS col0, COUNT( * )
----
-21
1

skipif mysql # not compatible
query II rowsort label-7344
SELECT - 21 AS col0, COUNT ( * )
----
-21
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT - ( + ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7345
SELECT - ( + ( COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT - + 74 * 47 + - 95 + - COUNT( - 97 ) AS col2
----
-3574

skipif mysql # not compatible
query I rowsort label-7346
SELECT - + 74 * 47 + - 95 + - COUNT ( - 97 ) AS col2
----
-3574

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT DISTINCT - COUNT( * ) * + + SUM( 6 ) - - 72 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT - COUNT ( * ) * + + SUM ( 6 ) - - 72 AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7348
SELECT ALL - + COUNT( DISTINCT + 3 ) / + - 51 + 18 + + 56 / + - 1 / - 5 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL - + COUNT ( DISTINCT + 3 ) / + - 51 + 18 + + 56 / + - 1 / - 5 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 84, + 8 ) AS col1
----
-84

query II rowsort
SELECT DISTINCT + ( - 50 ) col1, COALESCE ( 51, + ( - 17 ) * - - 19 )
----
-50
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT + 38 * + + 11 + - MAX( DISTINCT - - NULLIF ( - 24, - 89 ) )
----
442

skipif mysql # not compatible
query I rowsort label-7351
SELECT + 38 * + + 11 + - MAX ( DISTINCT - - NULLIF ( - 24, - 89 ) )
----
442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7352
SELECT + 18 * - MIN( ALL + CAST( NULL AS SIGNED ) ) * 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7352
SELECT + 18 * - MIN ( ALL + CAST ( NULL AS INTEGER ) ) * 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT + 87 * - 89 * COUNT( * ) * - 23 * - - 30 - 76 AS col2
----
5342594

skipif mysql # not compatible
query I rowsort label-7353
SELECT + 87 * - 89 * COUNT ( * ) * - 23 * - - 30 - 76 AS col2
----
5342594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7354
SELECT DISTINCT - 93 DIV + SUM( ALL 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT - 93 / + SUM ( ALL 68 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT - CASE 37 WHEN - - 38 THEN NULL WHEN + 7 THEN + 36 * + 61 ELSE - 79 + - - MAX( + - NULLIF ( 52, - 72 / ( - 20 ) + + 45 * - - 7 ) ) + - 65 * - - 54 * + + ( - + 0 ) * + 96 * - 98 END - + - 57 AS col2
----
188

skipif mysql # not compatible
query I rowsort label-7355
SELECT - CASE 37 WHEN - - 38 THEN NULL WHEN + 7 THEN + 36 * + 61 ELSE - 79 + - - MAX ( + - NULLIF ( 52, - 72 / ( - 20 ) + + 45 * - - 7 ) ) + - 65 * - - 54 * + + ( - + 0 ) * + 96 * - 98 END - + - 57 AS col2
----
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7356
SELECT ALL CAST( NULL AS SIGNED ) * - ( + 96 ) - + + 55 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL CAST ( NULL AS INTEGER ) * - ( + 96 ) - + + 55 * + 59
----
NULL

query I rowsort
SELECT + 0 * 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT ALL 12 * - 27 - - SUM( DISTINCT + 21 )
----
-303

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL 12 * - 27 - - SUM ( DISTINCT + 21 )
----
-303

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT DISTINCT + 66 * + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT + 66 * + COUNT ( * ) AS col1
----
66

query II rowsort
SELECT + 93 + + - 57 AS col1, 57
----
36
57

onlyif mysql # DIV for integer division: 
query II rowsort label-7361
SELECT + 52 DIV - - 74 AS col1, - 87 * - - ( 70 ) col1
----
0
-6090

skipif mysql # not compatible
query II rowsort label-7361
SELECT + 52 / - - 74 AS col1, - 87 * - - ( 70 ) col1
----
0
-6090

onlyif mysql # aggregate syntax: 
query II rowsort label-7362
SELECT NULLIF ( - 45, + 25 ) AS col0, MIN( - + 46 ) - - - 8
----
-45
-54

skipif mysql # not compatible
query II rowsort label-7362
SELECT NULLIF ( - 45, + 25 ) AS col0, MIN ( - + 46 ) - - - 8
----
-45
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7363
SELECT + - 96 DIV - 8 + - ( - SUM( ALL - 3 ) )
----
9

skipif mysql # not compatible
query I rowsort label-7363
SELECT + - 96 / - 8 + - ( - SUM ( ALL - 3 ) )
----
9

query I rowsort
SELECT ALL NULLIF ( - ( 23 ), + 95 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT COALESCE ( COUNT( * ), + 59, + 56, - ( - 64 ) + - ( + 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7365
SELECT COALESCE ( COUNT ( * ), + 59, + 56, - ( - 64 ) + - ( + 11 ) )
----
1

query I rowsort
SELECT - 65 * + 38
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL 35 + + 76 + 25 + - 76 + - - 53 * 34 * 26 * + MIN( + + 4 ) AS col0
----
187468

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL 35 + + 76 + 25 + - 76 + - - 53 * 34 * 26 * + MIN ( + + 4 ) AS col0
----
187468

onlyif mysql # aggregate syntax: 
query II rowsort label-7368
SELECT + CASE CASE - + 71 WHEN 21 THEN - 55 + - 77 + ( 69 ) * - 95 ELSE + 1 + - 73 + + 37 * 97 END WHEN + 67 + - - SUM( ALL - - 82 ) THEN - 5 END AS col2, - 77 AS col1
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-7368
SELECT + CASE CASE - + 71 WHEN 21 THEN - 55 + - 77 + ( 69 ) * - 95 ELSE + 1 + - 73 + + 37 * 97 END WHEN + 67 + - - SUM ( ALL - - 82 ) THEN - 5 END AS col2, - 77 AS col1
----
NULL
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7369
SELECT ALL CASE + + 32 WHEN - + 59 + + 87 + - 75 THEN - - NULLIF ( - + 4, - 24 ) * - CAST( NULL AS SIGNED ) + + - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL CASE + + 32 WHEN - + 59 + + 87 + - 75 THEN - - NULLIF ( - + 4, - 24 ) * - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT - - 6 col1
----
6

query I rowsort
SELECT + 32 * + + 52
----
1664

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT + COUNT( * ) * + + MAX( ALL ( - + 83 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-7372
SELECT + COUNT ( * ) * + + MAX ( ALL ( - + 83 ) )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT ALL CAST( NULL AS SIGNED ) * + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL CAST ( NULL AS INTEGER ) * + 84 AS col1
----
NULL

query I rowsort
SELECT ALL - 14 + - 50 - 94 * - - 58
----
-5516

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT DISTINCT - 56 + + 38 * + + MAX( DISTINCT 10 ) AS col2
----
324

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT - 56 + + 38 * + + MAX ( DISTINCT 10 ) AS col2
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT ALL + + COUNT( * ) + ( - COUNT( - 44 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL + + COUNT ( * ) + ( - COUNT ( - 44 ) ) AS col0
----
0

query I rowsort
SELECT - 68 + 0 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT ALL ( + COUNT( * ) ) + + - ( - - 95 ) - 76 * - 2 * + 98 * + 28 AS col0
----
416994

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL ( + COUNT ( * ) ) + + - ( - - 95 ) - 76 * - 2 * + 98 * + 28 AS col0
----
416994

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT - 82 + - - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-7379
SELECT - 82 + - - COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT ALL - + 95 + 45 * + MAX( - ( - 74 ) ) * + - 97 + 73 AS col0
----
-323032

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL - + 95 + 45 * + MAX ( - ( - 74 ) ) * + - 97 + 73 AS col0
----
-323032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7381
SELECT ALL 55 + + 70 * COUNT( * ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL 55 + + 70 * COUNT ( * ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 89 - - 3 AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7383
SELECT 81 AS col1, - 6 * 48 * 45 * - + SUM( ALL - - NULLIF ( - 96, - - 79 - + ( + - 79 ) ) ) + + 55 AS col2
----
81
-1244105

skipif mysql # not compatible
query II rowsort label-7383
SELECT 81 AS col1, - 6 * 48 * 45 * - + SUM ( ALL - - NULLIF ( - 96, - - 79 - + ( + - 79 ) ) ) + + 55 AS col2
----
81
-1244105

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT 63 + + + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7384
SELECT 63 + + + COUNT ( * ) AS col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT ALL - 15 + - 80 DIV + - 97 * + - 87 col0
----
-15

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL - 15 + - 80 / + - 97 * + - 87 col0
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-7386
SELECT - 84 DIV 73 + - 51 AS col2, + 97
----
-52
97

skipif mysql # not compatible
query II rowsort label-7386
SELECT - 84 / 73 + - 51 AS col2, + 97
----
-52
97

query I rowsort
SELECT ALL + 43 * + 93 AS col0
----
3999

query I rowsort
SELECT ALL - 80 * 1 AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7389
SELECT + CAST( NULL AS SIGNED ) * + - 86 * CAST( + + 14 AS SIGNED ) * + - 6 + AVG ( ALL 92 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT + CAST ( NULL AS INTEGER ) * + - 86 * CAST ( + + 14 AS INTEGER ) * + - 6 + AVG ( ALL 92 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 98 * - 33 * 88
----
284592

query I rowsort
SELECT 14 * - - 76 AS col1
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT CASE COALESCE ( - 7, + - 14 + + + 3, + 71 * + 44 - COALESCE ( COUNT( * ), COUNT( * ) ) + - 37 ) WHEN 79 THEN NULL WHEN - + COUNT( * ) THEN + SUM( + 41 ) * - 44 * - + 76 + - 3 * 82 + + 80 * 64 * - 41 + - COUNT( - - 60 ) + ( + - CASE + 49 WHEN - + 91 THEN + 28 * 99 + - - 79 + + - 54 * - 32 END ) * - SUM( DISTINCT 5 ) END + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT CASE COALESCE ( - 7, + - 14 + + + 3, + 71 * + 44 - COALESCE ( COUNT ( * ), COUNT ( * ) ) + - 37 ) WHEN 79 THEN NULL WHEN - + COUNT ( * ) THEN + SUM ( + 41 ) * - 44 * - + 76 + - 3 * 82 + + 80 * 64 * - 41 + - COUNT ( - - 60 ) + ( + - CASE + 49 WHEN - + 91 THEN + 28 * 99 + - - 79 + + - 54 * - 32 END ) * - SUM ( DISTINCT 5 ) END + 5 AS col0
----
NULL

query I rowsort
SELECT 4 * 18 * 80 AS col2
----
5760

query I rowsort
SELECT 39 * + 90 AS col2
----
3510

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT - COUNT( DISTINCT - - 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT - COUNT ( DISTINCT - - 34 )
----
-1

query II rowsort
SELECT ALL - 3 AS col0, + 92
----
-3
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL MIN( + - 83 ) * - 85 + - - 10 AS col2
----
7065

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL MIN ( + - 83 ) * - 85 + - - 10 AS col2
----
7065

query I rowsort
SELECT + 23 + + 79
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-7399
SELECT ALL + - 18 DIV ( - 56 ) + 79 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL + - 18 / ( - 56 ) + 79 AS col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7400
SELECT ALL - - 97 AS col2, + COUNT( * ) DIV - 2 AS col2
----
97
0

skipif mysql # not compatible
query II rowsort label-7400
SELECT ALL - - 97 AS col2, + COUNT ( * ) / - 2 AS col2
----
97
0

query I rowsort
SELECT DISTINCT + 12 * - + 11 * + 54 * ( + 54 )
----
-384912

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT ALL - COUNT( * ) + + 40 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL - COUNT ( * ) + + 40 AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7403
SELECT ( 17 ) + - + 27 DIV + 9 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7403
SELECT ( 17 ) + - + 27 / + 9 AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7404
SELECT + CAST( - COUNT( * ) AS SIGNED ) * 89 * + + 31, - 10 col2
----
-2759
-10

skipif mysql # not compatible
query II rowsort label-7404
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * 89 * + + 31, - 10 col2
----
-2759
-10

query I rowsort
SELECT - ( + + 38 )
----
-38

query I rowsort
SELECT ALL 42 + 21 AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7407
SELECT ALL CAST( - - 35 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL CAST ( - - 35 AS INTEGER )
----
35

query I rowsort
SELECT 21 + + 73 AS col0
----
94

query I rowsort
SELECT 8 + - 31
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7410
SELECT ALL 69 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL 69 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( 70, + + 22 ) + - ( - 48 ) AS col2
----
-22

query I rowsort
SELECT ALL - + 38 + + 63 AS col0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7413
SELECT DISTINCT CAST( + - AVG ( ALL + 13 ) AS SIGNED ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT CAST ( + - AVG ( ALL + 13 ) AS INTEGER ) AS col1
----
-13

query I rowsort
SELECT ALL - 72 + - 63
----
-135

query I rowsort
SELECT + COALESCE ( - - 73, + 49 ) AS col0
----
73

query I rowsort
SELECT - ( 53 ) AS col1
----
-53

query II rowsort
SELECT ALL 49 - + 21 AS col1, + 67 + - - 90 - - 67
----
28
224

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT MIN( - 78 ) * - 52 + + 76 col2
----
4132

skipif mysql # not compatible
query I rowsort label-7418
SELECT MIN ( - 78 ) * - 52 + + 76 col2
----
4132

query I rowsort
SELECT 8 + - 64 col2
----
-56

query I rowsort
SELECT DISTINCT 95 * - - 49
----
4655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7421
SELECT ( - 70 ) DIV + COUNT( ALL - 76 ) + - 62 + - COALESCE ( + + 44, - 1 - 91, - 41 * + 93 + - - 78 * + COUNT( - CAST( - 18 AS SIGNED ) ) + NULLIF ( - ( - 94 ), - + AVG ( ALL 82 ) ) ) * + 41 * - 10
----
17908

skipif mysql # not compatible
query I rowsort label-7421
SELECT ( - 70 ) / + COUNT ( ALL - 76 ) + - 62 + - COALESCE ( + + 44, - 1 - 91, - 41 * + 93 + - - 78 * + COUNT ( - CAST ( - 18 AS INTEGER ) ) + NULLIF ( - ( - 94 ), - + AVG ( ALL 82 ) ) ) * + 41 * - 10
----
17908

query I rowsort
SELECT ALL 13 * + + 39
----
507

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT ( + SUM( 15 ) ) + + 23 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7423
SELECT ( + SUM ( 15 ) ) + + 23 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT DISTINCT - MAX( 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT - MAX ( 85 ) AS col1
----
-85

query I rowsort
SELECT ( - - 47 ) * - + 1
----
-47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7426
SELECT 12 * + 45 + + 74 * - 35 col2, CASE - - ( + + ( + 43 ) ) WHEN - 6 + + - 89 - + + 27 * + - 97 + 86 / - 57 THEN - NULLIF ( 21, + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) + - + 92 * - + 46 * - 69 ELSE NULL END / - + 70 + - - 5 + 17 * 18 * + 40 * - 2 * + 64 + 75 * - 25 AS col1
----
-2050
NULL

skipif mysql # not compatible
query II rowsort label-7426
SELECT 12 * + 45 + + 74 * - 35 col2, CASE - - ( + + ( + 43 ) ) WHEN - 6 + + - 89 - + + 27 * + - 97 + 86 / - 57 THEN - NULLIF ( 21, + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) + - + 92 * - + 46 * - 69 ELSE NULL END / - + 70 + - - 5 + 17 * 18 * + 40 * - 2 * + 64 + 75 * - 25 AS col1
----
-2050
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7427
SELECT 49 / + 30 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7427
SELECT 49 / + 30 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7428
SELECT - 11 DIV + 7 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7428
SELECT - 11 / + 7 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT ALL + 99 * + 46 * - + CAST( 44 AS SIGNED ) AS col0
----
-200376

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL + 99 * + 46 * - + CAST ( 44 AS INTEGER ) AS col0
----
-200376

query II rowsort
SELECT ALL + CASE - 66 WHEN + - 98 / + 77 + + 39 THEN - + 22 + + 69 END, 16 col1
----
NULL
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7431
SELECT ALL + 51 * + COUNT( * ) + - 73 * + CAST( NULL AS DECIMAL ), - 18 AS col2
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-7431
SELECT ALL + 51 * + COUNT ( * ) + - 73 * + CAST ( NULL AS REAL ), - 18 AS col2
----
NULL
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7432
SELECT DISTINCT + CAST( + 16 AS SIGNED ) * + + 31 - - 67 * - + 10 + - NULLIF ( - 38, + 80 ) + 34 + 37 - - 18 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT + CAST ( + 16 AS INTEGER ) * + + 31 - - 67 * - + 10 + - NULLIF ( - 38, + 80 ) + 34 + 37 - - 18 AS col2
----
-47

query I rowsort
SELECT + 87 * + 32 * + 36 AS col1
----
100224

query I rowsort
SELECT - 57 * 12
----
-684

query I rowsort
SELECT ALL + 17 + 99 * - 9
----
-874

query I rowsort
SELECT DISTINCT + NULLIF ( + 62, 99 ) AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7437
SELECT ALL + COUNT( ALL + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL + COUNT ( ALL + CAST ( NULL AS INTEGER ) )
----
0

query II rowsort
SELECT - + ( 35 ) AS col0, 64 AS col2
----
-35
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7439
SELECT ALL - CASE + - 48 WHEN CAST( - 74 AS SIGNED ) THEN + 97 END + + MIN( + - 28 ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL - CASE + - 48 WHEN CAST ( - 74 AS INTEGER ) THEN + 97 END + + MIN ( + - 28 ) * - 79
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7440
SELECT ALL - ( - 41 ) * + CAST( 4 AS SIGNED )
----
164

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL - ( - 41 ) * + CAST ( 4 AS INTEGER )
----
164

query I rowsort
SELECT ALL + + 24 * - 3
----
-72

query I rowsort
SELECT - 89 + - - 97 AS col0
----
8

query II rowsort
SELECT - 3 + - 70, 60 * + 45 AS col0
----
-73
2700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7444
SELECT - ( NULLIF ( - 19, + COUNT( * ) ) ) + + MAX( 99 ) DIV 73 + 63
----
83

skipif mysql # not compatible
query I rowsort label-7444
SELECT - ( NULLIF ( - 19, + COUNT ( * ) ) ) + + MAX ( 99 ) / 73 + 63
----
83

query I rowsort
SELECT ALL - + 23 - 24 AS col1
----
-47

query I rowsort
SELECT + - ( - - 68 ) * 20 AS col2
----
-1360

onlyif mysql # aggregate syntax: 
query II rowsort label-7447
SELECT DISTINCT ( + NULLIF ( - 84, + ( + 47 ) ) ), - SUM( - 61 ) col0
----
-84
61

skipif mysql # not compatible
query II rowsort label-7447
SELECT DISTINCT ( + NULLIF ( - 84, + ( + 47 ) ) ), - SUM ( - 61 ) col0
----
-84
61

query I rowsort
SELECT DISTINCT - 70 - + 29
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT ALL - 52 - - - MIN( DISTINCT + 61 ) AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL - 52 - - - MIN ( DISTINCT + 61 ) AS col1
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT + CAST( + 7 AS SIGNED ) + - AVG ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT + CAST ( + 7 AS INTEGER ) + - AVG ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - 34 ) AS col1
----
-34

query II rowsort
SELECT DISTINCT 28 col2, 58 AS col1
----
28
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7453
SELECT + 59 + - + CAST( NULL AS SIGNED ) + - 21 + + - 51 * 41 * + CAST( - CASE - CASE WHEN NOT ( 32 ) < - ( + + ( + 33 ) ) THEN NULL ELSE - COALESCE ( + MAX( + - ( + - 79 ) ), - 61 / + + 75 + - 55 - - - CAST( NULL AS SIGNED ) ) / + 5 + + + 33 END WHEN + - 58 * - CASE + 43 WHEN - - CASE + 81 WHEN - ( - 84 ) * + 17 THEN 10 + 43 WHEN 89 + + 85 / 36 THEN - 59 * + 6 WHEN COUNT( * ) THEN + 62 * CAST( NULL AS DECIMAL ) END THEN 56 END THEN NULL WHEN + 37 + - 96 THEN 58 + - 15 END AS SIGNED ) * - 56 * 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7453
SELECT + 59 + - + CAST ( NULL AS INTEGER ) + - 21 + + - 51 * 41 * + CAST ( - CASE - CASE WHEN NOT ( 32 ) < - ( + + ( + 33 ) ) THEN NULL ELSE - COALESCE ( + MAX ( + - ( + - 79 ) ), - 61 / + + 75 + - 55 - - - CAST ( NULL AS INTEGER ) ) / + 5 + + + 33 END WHEN + - 58 * - CASE + 43 WHEN - - CASE + 81 WHEN - ( - 84 ) * + 17 THEN 10 + 43 WHEN 89 + + 85 / 36 THEN - 59 * + 6 WHEN COUNT ( * ) THEN + 62 * CAST ( NULL AS REAL ) END THEN 56 END THEN NULL WHEN + 37 + - 96 THEN 58 + - 15 END AS INTEGER ) * - 56 * 68 AS col2
----
NULL

query I rowsort
SELECT - 71 + NULLIF ( 99, + 68 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7455
SELECT 36, MAX( + 33 ) AS col2
----
36
33

skipif mysql # not compatible
query II rowsort label-7455
SELECT 36, MAX ( + 33 ) AS col2
----
36
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7456
SELECT - CAST( NULL AS SIGNED ) + - ( 61 ) AS col0, + NULLIF ( + 1, + 75 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7456
SELECT - CAST ( NULL AS INTEGER ) + - ( 61 ) AS col0, + NULLIF ( + 1, + 75 )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT + 53 - + - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-7457
SELECT + 53 - + - COUNT ( * )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7458
SELECT - CAST( CASE 45 WHEN - + ( + - 83 ) * + 63 + + 89 / 71 THEN + 19 END AS SIGNED ) * COUNT( 43 ) + + CAST( NULL AS SIGNED ) * 71 + - + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7458
SELECT - CAST ( CASE 45 WHEN - + ( + - 83 ) * + 63 + + 89 / 71 THEN + 19 END AS INTEGER ) * COUNT ( 43 ) + + CAST ( NULL AS INTEGER ) * 71 + - + 26 AS col1
----
NULL

query I rowsort
SELECT + 71 * + 39
----
2769

query I rowsort
SELECT 26 * + 31 + - - 10 AS col0
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT DISTINCT ( - + ( + - 59 ) ) * - COALESCE ( - 79, + + 40 * 49 + 77 * COUNT( * ) ) AS col0
----
4661

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT ( - + ( + - 59 ) ) * - COALESCE ( - 79, + + 40 * 49 + 77 * COUNT ( * ) ) AS col0
----
4661

onlyif mysql # aggregate syntax: 
query II rowsort label-7462
SELECT DISTINCT + COALESCE ( COUNT( * ), + 19 ) col1, - 44 AS col1
----
1
-44

skipif mysql # not compatible
query II rowsort label-7462
SELECT DISTINCT + COALESCE ( COUNT ( * ), + 19 ) col1, - 44 AS col1
----
1
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT DISTINCT - 49 / CASE + 62 WHEN + AVG ( DISTINCT 74 ) THEN SUM( + + 78 ) WHEN 72 THEN NULL WHEN - 46 * - - 40 + + 16 + + + 83 + + - 13 THEN - 23 END + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT - 49 / CASE + 62 WHEN + AVG ( DISTINCT 74 ) THEN SUM ( + + 78 ) WHEN 72 THEN NULL WHEN - 46 * - - 40 + + 16 + + + 83 + + - 13 THEN - 23 END + + 24
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7464
SELECT 63 / - NULLIF ( 35, - - ( + ( + 70 ) ) * - COUNT( * ) + + 87 ) + - + CASE - 4 WHEN + 63 THEN + 76 ELSE NULL END + - MAX( NULLIF ( - 52, 85 + - - ( + - 83 ) + + + CAST( NULL AS SIGNED ) + 39 ) ) * + 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT 63 / - NULLIF ( 35, - - ( + ( + 70 ) ) * - COUNT ( * ) + + 87 ) + - + CASE - 4 WHEN + 63 THEN + 76 ELSE NULL END + - MAX ( NULLIF ( - 52, 85 + - - ( + - 83 ) + + + CAST ( NULL AS INTEGER ) + 39 ) ) * + 94 AS col2
----
NULL

query I rowsort
SELECT + 58 + ( 30 ) AS col1
----
88

query I rowsort
SELECT + 62 * + 95 AS col2
----
5890

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT + COUNT( * ) + - + 55 * - 77 * + SUM( - - 81 ) AS col2
----
343036

skipif mysql # not compatible
query I rowsort label-7467
SELECT + COUNT ( * ) + - + 55 * - 77 * + SUM ( - - 81 ) AS col2
----
343036

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT ALL 1 DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL 1 / + 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT + + SUM( DISTINCT 2 )
----
2

skipif mysql # not compatible
query I rowsort label-7469
SELECT + + SUM ( DISTINCT 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT - + 51 / + + 14 * + 33 * + 31 - CASE - - 27 WHEN - - 69 THEN - + 42 * + SUM( DISTINCT 11 ) WHEN - 17 THEN + 54 END + COUNT( * ) + + + 45 / + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT - + 51 / + + 14 * + 33 * + 31 - CASE - - 27 WHEN - - 69 THEN - + 42 * + SUM ( DISTINCT 11 ) WHEN - 17 THEN + 54 END + COUNT ( * ) + + + 45 / + 98
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7471
SELECT + CASE + 73 WHEN - 61 DIV COALESCE ( + 47, + - 67 * + + 24 + - 29 + - - CAST( + - ( - - 80 ) AS DECIMAL ) + + 93 * + CASE ( - COUNT( * ) ) WHEN - 79 + + 40 THEN 44 ELSE + 20 + 74 END + - 61 + - 37, + 35 ) * ( + 52 ) + + - AVG ( - 89 ) THEN + 58 + 58 ELSE + - 95 END * - 15 + 82 - - 73 + - 5 + + COALESCE ( 18, COALESCE ( 46, - 73 ), 88 ) DIV 23 AS col1
----
1575

skipif mysql # not compatible
query I rowsort label-7471
SELECT + CASE + 73 WHEN - 61 / COALESCE ( + 47, + - 67 * + + 24 + - 29 + - - CAST ( + - ( - - 80 ) AS REAL ) + + 93 * + CASE ( - COUNT ( * ) ) WHEN - 79 + + 40 THEN 44 ELSE + 20 + 74 END + - 61 + - 37, + 35 ) * ( + 52 ) + + - AVG ( - 89 ) THEN + 58 + 58 ELSE + - 95 END * - 15 + 82 - - 73 + - 5 + + COALESCE ( 18, COALESCE ( 46, - 73 ), 88 ) / 23 AS col1
----
1575

onlyif mysql # aggregate syntax: 
query II rowsort label-7472
SELECT - COUNT( * ) AS col2, - 94 col1
----
-1
-94

skipif mysql # not compatible
query II rowsort label-7472
SELECT - COUNT ( * ) AS col2, - 94 col1
----
-1
-94

query I rowsort
SELECT + + 91 + - + 7
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT DISTINCT 86 * - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT 86 * - COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-7475
SELECT ALL 63 * - 11 + + MIN( + 21 ) - 77, - 16 * MIN( ALL + 51 ) - + 85 AS col0
----
-749
-901

skipif mysql # not compatible
query II rowsort label-7475
SELECT ALL 63 * - 11 + + MIN ( + 21 ) - 77, - 16 * MIN ( ALL + 51 ) - + 85 AS col0
----
-749
-901

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7476
SELECT ALL + - 4, ( - SUM( ALL - 30 ) ) * + + COUNT( 44 ) DIV - 73 * - 26 AS col0
----
-4
0

skipif mysql # not compatible
query II rowsort label-7476
SELECT ALL + - 4, ( - SUM ( ALL - 30 ) ) * + + COUNT ( 44 ) / - 73 * - 26 AS col0
----
-4
0

query I rowsort
SELECT DISTINCT 21 * CASE + 72 WHEN + - 66 THEN - - 28 + ( - 21 ) END - 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT DISTINCT COUNT( - 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT COUNT ( - 12 ) AS col2
----
1

query I rowsort
SELECT + ( 61 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7480
SELECT - + NULLIF ( 72, AVG ( 59 ) ) + - COUNT( * ) * + + CAST( + 31 AS SIGNED ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-7480
SELECT - + NULLIF ( 72, AVG ( 59 ) ) + - COUNT ( * ) * + + CAST ( + 31 AS INTEGER ) AS col1
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7481
SELECT ALL CAST( 32 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL CAST ( 32 AS INTEGER )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7482
SELECT COUNT( * ) AS col1, MAX( ALL + - 7 ) col1
----
1
-7

skipif mysql # not compatible
query II rowsort label-7482
SELECT COUNT ( * ) AS col1, MAX ( ALL + - 7 ) col1
----
1
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT ALL CASE 45 WHEN COALESCE ( 30, + 21 ) * - 79 - + - COALESCE ( ( - 15 ), + + 22 ) / + 64 * + 41 - - 62 THEN - + 2 ELSE COUNT( * ) * + + 61 END
----
61

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL CASE 45 WHEN COALESCE ( 30, + 21 ) * - 79 - + - COALESCE ( ( - 15 ), + + 22 ) / + 64 * + 41 - - 62 THEN - + 2 ELSE COUNT ( * ) * + + 61 END
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT ALL - ( CAST( NULL AS SIGNED ) ) * - 1 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) * - 1 col0
----
NULL

query I rowsort
SELECT - 1 * - - 65 AS col2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7486
SELECT DISTINCT - 48 * - + CAST( + 17 AS SIGNED )
----
816

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT - 48 * - + CAST ( + 17 AS INTEGER )
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT DISTINCT - 12 * + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT - 12 * + COUNT ( * ) AS col0
----
-12

query II rowsort
SELECT - 75 AS col1, 89 AS col1
----
-75
89

query I rowsort
SELECT - 48 * - 48
----
2304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7490
SELECT - COUNT( DISTINCT + - 72 ) DIV 63 * + 73 * - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7490
SELECT - COUNT ( DISTINCT + - 72 ) / 63 * + 73 * - 54 AS col1
----
0

query II rowsort
SELECT - 84 AS col1, - 22
----
-84
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT + COUNT( * ) + 78 * 31
----
2419

skipif mysql # not compatible
query I rowsort label-7492
SELECT + COUNT ( * ) + 78 * 31
----
2419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7493
SELECT NULLIF ( + 95, - + CAST( + 64 AS SIGNED ) * - 19 + + CASE ( - ( 81 ) ) WHEN COUNT( * ) THEN 85 * + 95 * + - ( 51 ) / + 96 + - COUNT( * ) ELSE - ( - + 61 ) + - 66 END ) * + + 93 AS col1
----
8835

skipif mysql # not compatible
query I rowsort label-7493
SELECT NULLIF ( + 95, - + CAST ( + 64 AS INTEGER ) * - 19 + + CASE ( - ( 81 ) ) WHEN COUNT ( * ) THEN 85 * + 95 * + - ( 51 ) / + 96 + - COUNT ( * ) ELSE - ( - + 61 ) + - 66 END ) * + + 93 AS col1
----
8835

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT + COUNT( * ) + + 13 - + 84 + - 80 AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT + COUNT ( * ) + + 13 - + 84 + - 80 AS col0
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7495
SELECT ALL - 94 + 17 * + 68 * - MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL - 94 + 17 * + 68 * - MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT NULLIF ( 75, 53 ) * 5, + 84 AS col0
----
375
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT DISTINCT - 49 + - COUNT( 49 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT - 49 + - COUNT ( 49 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query III rowsort label-7498
SELECT ALL 82 * - COUNT( * ) AS col0, 19 * + 23 AS col2, 19 * + 49 * - COUNT( * )
----
-82
437
-931

skipif mysql # not compatible
query III rowsort label-7498
SELECT ALL 82 * - COUNT ( * ) AS col0, 19 * + 23 AS col2, 19 * + 49 * - COUNT ( * )
----
-82
437
-931

query II rowsort
SELECT 51 AS col0, - 35 AS col0
----
51
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ALL + ( - MIN( DISTINCT - 69 ) ) + + NULLIF ( + + CASE + 54 WHEN - 85 - + 15 + - + ( + COUNT( * ) ) + + 70 THEN NULL ELSE - COUNT( * ) END, - 98 ) + + COALESCE ( - - 3, 69 ) * - + 11
----
35

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL + ( - MIN ( DISTINCT - 69 ) ) + + NULLIF ( + + CASE + 54 WHEN - 85 - + 15 + - + ( + COUNT ( * ) ) + + 70 THEN NULL ELSE - COUNT ( * ) END, - 98 ) + + COALESCE ( - - 3, 69 ) * - + 11
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT ALL - COUNT( * ) + + 25 + 69 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL - COUNT ( * ) + + 25 + 69 AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT + 8, COUNT( * ) col1
----
8
1

skipif mysql # not compatible
query II rowsort label-7502
SELECT + 8, COUNT ( * ) col1
----
8
1

query I rowsort
SELECT 19 * + - 58 * 31
----
-34162

query I rowsort
SELECT ALL - + 86 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT 96 * - 60 * COUNT( * )
----
-5760

skipif mysql # not compatible
query I rowsort label-7505
SELECT 96 * - 60 * COUNT ( * )
----
-5760

query II rowsort
SELECT 82 col0, + 44 * + - 52 col1
----
82
-2288

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL ( + COUNT( * ) ) * 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL ( + COUNT ( * ) ) * 25 AS col1
----
25

query I rowsort
SELECT - 78 * - 40 - 1 AS col0
----
3119

query II rowsort
SELECT + 51 AS col0, - 78
----
51
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-7510
SELECT ( - COUNT( DISTINCT + 61 ) ) - - + 16 AS col2, 9 AS col2
----
15
9

skipif mysql # not compatible
query II rowsort label-7510
SELECT ( - COUNT ( DISTINCT + 61 ) ) - - + 16 AS col2, 9 AS col2
----
15
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL - - COUNT( + 41 ) * - - COUNT( * ) * 2
----
2

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL - - COUNT ( + 41 ) * - - COUNT ( * ) * 2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7512
SELECT ALL - - ( + 12 ) col0, + CAST( NULL AS SIGNED )
----
12
NULL

skipif mysql # not compatible
query II rowsort label-7512
SELECT ALL - - ( + 12 ) col0, + CAST ( NULL AS INTEGER )
----
12
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7513
SELECT ALL 75 * 95 DIV - - COUNT( * ) AS col1
----
7125

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL 75 * 95 / - - COUNT ( * ) AS col1
----
7125

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7514
SELECT + 52 AS col1, NULLIF ( CAST( NULL AS DECIMAL ), - + SUM( DISTINCT - 5 ) * + 58 * - 73 - - + COUNT( * ) )
----
52
NULL

skipif mysql # not compatible
query II rowsort label-7514
SELECT + 52 AS col1, NULLIF ( CAST ( NULL AS REAL ), - + SUM ( DISTINCT - 5 ) * + 58 * - 73 - - + COUNT ( * ) )
----
52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL - COUNT( ALL 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL - COUNT ( ALL 64 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7516
SELECT CAST( + - 66 AS SIGNED ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-7516
SELECT CAST ( + - 66 AS INTEGER ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + COUNT( - 81 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7517
SELECT + COUNT ( - 81 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7518
SELECT - 32 * + - 58 + - + COALESCE ( + CAST( 75 AS SIGNED ), - 21 ) * + - 53 * + - 23 * ( - NULLIF ( ( 43 ), + + NULLIF ( - 41, 28 ) + + 22 ) ) + - COUNT( * ) * 97 + + - 38 col1
----
3932996

skipif mysql # not compatible
query I rowsort label-7518
SELECT - 32 * + - 58 + - + COALESCE ( + CAST ( 75 AS INTEGER ), - 21 ) * + - 53 * + - 23 * ( - NULLIF ( ( 43 ), + + NULLIF ( - 41, 28 ) + + 22 ) ) + - COUNT ( * ) * 97 + + - 38 col1
----
3932996

onlyif mysql # DIV for integer division: 
query II rowsort label-7519
SELECT + - 86 AS col1, 90 DIV ( 33 )
----
-86
2

skipif mysql # not compatible
query II rowsort label-7519
SELECT + - 86 AS col1, 90 / ( 33 )
----
-86
2

query II rowsort
SELECT ALL - 73 - - 36 - + 89 - - ( - 93 ) * + + 92 - - 24, + 90 AS col0
----
-8658
90

query I rowsort
SELECT ALL - + NULLIF ( 24, + - 73 ) AS col1
----
-24

query II rowsort
SELECT + 86 AS col1, - 8
----
86
-8

query I rowsort
SELECT + 99 * 46 * + 4 * + 21 AS col1
----
382536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7524
SELECT + 68 * + CASE - - 96 WHEN 70 + - - 26 - 47 DIV - 67 THEN - - 74 WHEN - 61 THEN + + 55 WHEN - + 13 THEN MAX( 26 ) ELSE + - NULLIF ( - + ( 79 ), 87 * + 22 * + COUNT( * ) ) DIV + CAST( + 99 AS SIGNED ) * + CASE - 36 WHEN 46 THEN + + 72 WHEN + - ( + + 77 ) THEN NULL ELSE NULL END - - SUM( DISTINCT + + 79 ) END + - 8 DIV 11 AS col1
----
5032

skipif mysql # not compatible
query I rowsort label-7524
SELECT + 68 * + CASE - - 96 WHEN 70 + - - 26 - 47 / - 67 THEN - - 74 WHEN - 61 THEN + + 55 WHEN - + 13 THEN MAX ( 26 ) ELSE + - NULLIF ( - + ( 79 ), 87 * + 22 * + COUNT ( * ) ) / + CAST ( + 99 AS INTEGER ) * + CASE - 36 WHEN 46 THEN + + 72 WHEN + - ( + + 77 ) THEN NULL ELSE NULL END - - SUM ( DISTINCT + + 79 ) END + - 8 / 11 AS col1
----
5032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7525
SELECT DISTINCT - + COALESCE ( 52, - - COUNT( * ) * + 73 ) AS col0, + AVG ( - CAST( NULL AS SIGNED ) ) col0
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-7525
SELECT DISTINCT - + COALESCE ( 52, - - COUNT ( * ) * + 73 ) AS col0, + AVG ( - CAST ( NULL AS INTEGER ) ) col0
----
-52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ( + 91 ) * - + COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-7526
SELECT ( + 91 ) * - + COUNT ( * ) AS col0
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-7527
SELECT - 9 AS col1, + 68 DIV + + 83
----
-9
0

skipif mysql # not compatible
query II rowsort label-7527
SELECT - 9 AS col1, + 68 / + + 83
----
-9
0

query I rowsort
SELECT ALL - 33 * 23 AS col0
----
-759

query II rowsort
SELECT 8 * + + 87 AS col2, ( - 3 ) AS col1
----
696
-3

query I rowsort
SELECT ALL 66 * - + 81
----
-5346

query I rowsort
SELECT 79 + - 11
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7532
SELECT ALL 83 * + - 71, SUM( - 65 ) AS col2
----
-5893
-65

skipif mysql # not compatible
query II rowsort label-7532
SELECT ALL 83 * + - 71, SUM ( - 65 ) AS col2
----
-5893
-65

query II rowsort
SELECT 98 + - 81, + 22 * + + 53 AS col2
----
17
1166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7534
SELECT 33 * - COALESCE ( 23, CAST( - + COUNT( * ) AS SIGNED ) + - COUNT( * ), - 33, 16 )
----
-759

skipif mysql # not compatible
query I rowsort label-7534
SELECT 33 * - COALESCE ( 23, CAST ( - + COUNT ( * ) AS INTEGER ) + - COUNT ( * ), - 33, 16 )
----
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT DISTINCT - COUNT( * ) + + 86 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-7535
SELECT DISTINCT - COUNT ( * ) + + 86 AS col2
----
85

query I rowsort
SELECT ALL + 62 + + ( 87 ) + - 32 AS col2
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7537
SELECT CAST( NULL AS SIGNED ) + - 39 col2, - 83 + - 40 * + 56
----
NULL
-2323

skipif mysql # not compatible
query II rowsort label-7537
SELECT CAST ( NULL AS INTEGER ) + - 39 col2, - 83 + - 40 * + 56
----
NULL
-2323

query I rowsort
SELECT ALL - 90 * + 35 * - 65 * + 37 * + 72
----
545454000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7539
SELECT 33 + + 88 DIV - 53 * - + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-7539
SELECT 33 + + 88 / - 53 * - + COUNT ( * )
----
34

query I rowsort
SELECT DISTINCT - 72 * 80 AS col1
----
-5760

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL - MIN( DISTINCT - 42 ) + - + 94 * 37
----
-3436

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL - MIN ( DISTINCT - 42 ) + - + 94 * 37
----
-3436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7542
SELECT COALESCE ( + 74, - 71 * + - CAST( NULL AS SIGNED ) + + 26 ) + 29
----
103

skipif mysql # not compatible
query I rowsort label-7542
SELECT COALESCE ( + 74, - 71 * + - CAST ( NULL AS INTEGER ) + + 26 ) + 29
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL + ( + - 19 ) * - CASE - + ( - COUNT( * ) ) WHEN - 84 THEN + COUNT( DISTINCT + - 34 ) * + 2 END + - 15 + + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL + ( + - 19 ) * - CASE - + ( - COUNT ( * ) ) WHEN - 84 THEN + COUNT ( DISTINCT + - 34 ) * + 2 END + - 15 + + - 11
----
NULL

query I rowsort
SELECT 23 + - + COALESCE ( + 82, 12 ) AS col2
----
-59

query II rowsort
SELECT DISTINCT + 73 * + 13 AS col0, + 48
----
949
48

query I rowsort
SELECT 52 * - 9 * - ( + + 41 )
----
19188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT - CAST( - 38 AS SIGNED ) + + 4
----
42

skipif mysql # not compatible
query I rowsort label-7547
SELECT - CAST ( - 38 AS INTEGER ) + + 4
----
42

query I rowsort
SELECT ALL - - 5 * - 88 AS col2
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT + CASE - ( 34 ) WHEN - ( COUNT( ALL - 20 ) ) THEN COUNT( * ) WHEN - + 38 + - 31 THEN SUM( - + 8 ) WHEN - 51 * + 76 THEN NULL ELSE + 80 END * - + COUNT( + 86 )
----
-80

skipif mysql # not compatible
query I rowsort label-7549
SELECT + CASE - ( 34 ) WHEN - ( COUNT ( ALL - 20 ) ) THEN COUNT ( * ) WHEN - + 38 + - 31 THEN SUM ( - + 8 ) WHEN - 51 * + 76 THEN NULL ELSE + 80 END * - + COUNT ( + 86 )
----
-80

query I rowsort
SELECT ALL - + 59 col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT DISTINCT 38 * COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT 38 * COUNT ( * )
----
38

query I rowsort
SELECT ALL - ( + NULLIF ( + 15, + 98 ) )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7553
SELECT + CASE COUNT( * ) WHEN - 68 THEN NULL ELSE - 50 END + - 14 DIV - 38 + COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7553
SELECT + CASE COUNT ( * ) WHEN - 68 THEN NULL ELSE - 50 END + - 14 / - 38 + COUNT ( * ) AS col2
----
-49

query I rowsort
SELECT 13 + ( + ( - 58 ) ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT ALL - 44 * 73 * - CASE 84 WHEN ( 82 ) THEN - 39 * 46 + + 44 END * - 57 * + MIN( DISTINCT + + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - 44 * 73 * - CASE 84 WHEN ( 82 ) THEN - 39 * 46 + + 44 END * - 57 * + MIN ( DISTINCT + + 31 )
----
NULL

query I rowsort
SELECT ALL NULLIF ( 36, 48 ) * + ( - 55 )
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT 93 * + COUNT( * ) + + + 2 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7557
SELECT 93 * + COUNT ( * ) + + + 2 AS col0
----
95

query I rowsort
SELECT ALL - 84 * 81
----
-6804

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT DISTINCT - CASE + COUNT( * ) WHEN - - 87 THEN NULL WHEN + 84 THEN + - 1 ELSE + 38 * - 95 END AS col1
----
3610

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT - CASE + COUNT ( * ) WHEN - - 87 THEN NULL WHEN + 84 THEN + - 1 ELSE + 38 * - 95 END AS col1
----
3610

query II rowsort
SELECT 69 + - 85 AS col0, + ( 96 ) AS col0
----
-16
96

query I rowsort
SELECT 79 * + 45
----
3555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7562
SELECT COALESCE ( 29, 0 * 57 + + 39 * CASE - - ( + 10 ) WHEN - + CAST( NULL AS SIGNED ) + - 65 * CAST( + + 19 AS SIGNED ) THEN + + 8 + - 30 WHEN + - 49 THEN NULL ELSE - - MAX( DISTINCT - 21 ) END * + + 73 + - + 87 - + + ( 90 ) ) + - COUNT( * ) + + + 57 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-7562
SELECT COALESCE ( 29, 0 * 57 + + 39 * CASE - - ( + 10 ) WHEN - + CAST ( NULL AS INTEGER ) + - 65 * CAST ( + + 19 AS INTEGER ) THEN + + 8 + - 30 WHEN + - 49 THEN NULL ELSE - - MAX ( DISTINCT - 21 ) END * + + 73 + - + 87 - + + ( 90 ) ) + - COUNT ( * ) + + + 57 AS col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-7563
SELECT 46, COUNT( * ) col1
----
46
1

skipif mysql # not compatible
query II rowsort label-7563
SELECT 46, COUNT ( * ) col1
----
46
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7564
SELECT 94 * 72 + - 37, + NULLIF ( + 67, ( + COUNT( * ) ) ) col2
----
6731
67

skipif mysql # not compatible
query II rowsort label-7564
SELECT 94 * 72 + - 37, + NULLIF ( + 67, ( + COUNT ( * ) ) ) col2
----
6731
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL COALESCE ( + 43, + COALESCE ( + - 32, - + ( + 10 ) ) * ( - COUNT( * ) ) ) + - ( + + 93 ) + 98 * - 97 * + 76 AS col0
----
-722506

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL COALESCE ( + 43, + COALESCE ( + - 32, - + ( + 10 ) ) * ( - COUNT ( * ) ) ) + - ( + + 93 ) + 98 * - 97 * + 76 AS col0
----
-722506

query I rowsort
SELECT DISTINCT ( - 19 ) + + 56 col2
----
37

query II rowsort
SELECT ALL 31 AS col2, 10 * - + 90 AS col0
----
31
-900

query I rowsort
SELECT DISTINCT 41 + + 55 * + 8 AS col1
----
481

query I rowsort
SELECT + 70 * + + 18
----
1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7570
SELECT + 58 DIV SUM( DISTINCT 6 )
----
9

skipif mysql # not compatible
query I rowsort label-7570
SELECT + 58 / SUM ( DISTINCT 6 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT - CASE + 23 WHEN + 29 THEN 50 WHEN + COUNT( * ) - + - 59 + + - 17 * + NULLIF ( 15, + COUNT( * ) ) THEN NULL ELSE - 96 END AS col1
----
96

skipif mysql # not compatible
query I rowsort label-7571
SELECT - CASE + 23 WHEN + 29 THEN 50 WHEN + COUNT ( * ) - + - 59 + + - 17 * + NULLIF ( 15, + COUNT ( * ) ) THEN NULL ELSE - 96 END AS col1
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-7572
SELECT ALL 96 AS col0, - 5 DIV + - 71
----
96
0

skipif mysql # not compatible
query II rowsort label-7572
SELECT ALL 96 AS col0, - 5 / + - 71
----
96
0

query I rowsort
SELECT + 35 * + - ( 90 )
----
-3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7574
SELECT - COUNT( * ) * + 15 DIV + + 94
----
0

skipif mysql # not compatible
query I rowsort label-7574
SELECT - COUNT ( * ) * + 15 / + + 94
----
0

query II rowsort
SELECT ALL 7 AS col1, + 43
----
7
43

query I rowsort
SELECT ALL + 68 - - 93
----
161

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7577
SELECT DISTINCT CAST( CAST( + 44 AS SIGNED ) AS SIGNED ) col0, - 23 DIV + 10 AS col2
----
44
-2

skipif mysql # not compatible
query II rowsort label-7577
SELECT DISTINCT CAST ( CAST ( + 44 AS INTEGER ) AS INTEGER ) col0, - 23 / + 10 AS col2
----
44
-2

query II rowsort
SELECT ALL + 2, + ( - 87 ) AS col2
----
2
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-7579
SELECT DISTINCT + 18 AS col1, 88 + + NULLIF ( + 24, + - MAX( ALL - 19 ) ) col1
----
18
112

skipif mysql # not compatible
query II rowsort label-7579
SELECT DISTINCT + 18 AS col1, 88 + + NULLIF ( + 24, + - MAX ( ALL - 19 ) ) col1
----
18
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7580
SELECT COUNT( + 35 ) DIV - 72 + 46
----
46

skipif mysql # not compatible
query I rowsort label-7580
SELECT COUNT ( + 35 ) / - 72 + 46
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7581
SELECT + - 36, 47 + - COUNT( ALL 87 ) + 66 AS col1
----
-36
112

skipif mysql # not compatible
query II rowsort label-7581
SELECT + - 36, 47 + - COUNT ( ALL 87 ) + 66 AS col1
----
-36
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7582
SELECT DISTINCT + CAST( - 10 AS SIGNED ) * + - 40
----
400

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT + CAST ( - 10 AS INTEGER ) * + - 40
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT + + 84 + - + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-7583
SELECT + + 84 + - + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT - ( COALESCE ( + 91, COUNT( * ) ) ) * + - 31 AS col2
----
2821

skipif mysql # not compatible
query I rowsort label-7584
SELECT - ( COALESCE ( + 91, COUNT ( * ) ) ) * + - 31 AS col2
----
2821

query II rowsort
SELECT ALL + - 97 AS col0, - 11 + + + CASE + - 57 WHEN - 25 THEN + 0 WHEN + + 27 THEN NULL END
----
-97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7586
SELECT - 37, 54 / - MIN( + CAST( NULL AS SIGNED ) ) AS col2
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-7586
SELECT - 37, 54 / - MIN ( + CAST ( NULL AS INTEGER ) ) AS col2
----
-37
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7587
SELECT - 70, - 62 DIV 90 AS col1
----
-70
0

skipif mysql # not compatible
query II rowsort label-7587
SELECT - 70, - 62 / 90 AS col1
----
-70
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT + + COUNT( + 73 )
----
1

skipif mysql # not compatible
query I rowsort label-7588
SELECT + + COUNT ( + 73 )
----
1

query I rowsort
SELECT DISTINCT - 55 * + 31 col2
----
-1705

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT ALL + CASE - - COUNT( * ) WHEN + 83 * - + 22 + + 14 - - - 0 + + 85 / + + 99 THEN + SUM( 79 ) * - 29 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL + CASE - - COUNT ( * ) WHEN + 83 * - + 22 + + 14 - - - 0 + + 85 / + + 99 THEN + SUM ( 79 ) * - 29 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7591
SELECT + + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7591
SELECT + + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( + 30 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7593
SELECT - - 52 DIV 79 + COALESCE ( - + 17, COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-7593
SELECT - - 52 / 79 + COALESCE ( - + 17, COUNT ( * ) )
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7594
SELECT - 26 * ( + COUNT( * ) ) + 90 - - - 62 * 43 DIV - 33 AS col0
----
144

skipif mysql # not compatible
query I rowsort label-7594
SELECT - 26 * ( + COUNT ( * ) ) + 90 - - - 62 * 43 / - 33 AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT DISTINCT + - MAX( ALL + 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT + - MAX ( ALL + 43 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT - 70 * - COUNT( * ) * - 13
----
-910

skipif mysql # not compatible
query I rowsort label-7596
SELECT - 70 * - COUNT ( * ) * - 13
----
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT NULLIF ( + + 82, + COALESCE ( - 59, + NULLIF ( + 69, - 81 ) - 57 + + NULLIF ( + 77, - 53 ) * + 67, MIN( ALL + + 7 ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-7597
SELECT NULLIF ( + + 82, + COALESCE ( - 59, + NULLIF ( + 69, - 81 ) - 57 + + NULLIF ( + 77, - 53 ) * + 67, MIN ( ALL + + 7 ) ) )
----
82

query I rowsort
SELECT + NULLIF ( + + 33, - 73 ) AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7599
SELECT ALL - MIN( CAST( NULL AS SIGNED ) ) * + + 74 + + 16 * 87 + 58 * - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL - MIN ( CAST ( NULL AS INTEGER ) ) * + + 74 + + 16 * 87 + 58 * - 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT ALL + NULLIF ( - COUNT( * ), - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL + NULLIF ( - COUNT ( * ), - COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( 88 ) * + + 5
----
440

query II rowsort
SELECT DISTINCT - 73 * + 10 + + 16 + + - 65 AS col2, 32
----
-779
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7603
SELECT DISTINCT CAST( + 59 AS SIGNED ), - 74 AS col1
----
59
-74

skipif mysql # not compatible
query II rowsort label-7603
SELECT DISTINCT CAST ( + 59 AS INTEGER ), - 74 AS col1
----
59
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT - 35 + - 3 - + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-7604
SELECT - 35 + - 3 - + COUNT ( * )
----
-39

query I rowsort
SELECT - 52 * - 45
----
2340

query I rowsort
SELECT - ( 54 ) AS col0
----
-54

query I rowsort
SELECT ALL 23 - - ( + 9 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7608
SELECT + 5 + - + 18 AS col2, + 19 * ( + - COUNT( * ) ) AS col2
----
-13
-19

skipif mysql # not compatible
query II rowsort label-7608
SELECT + 5 + - + 18 AS col2, + 19 * ( + - COUNT ( * ) ) AS col2
----
-13
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL MAX( DISTINCT + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL MAX ( DISTINCT + 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL CASE + COUNT( * ) WHEN AVG ( 15 ) * + COUNT( * ) THEN - - 46 ELSE NULL END - ( + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL CASE + COUNT ( * ) WHEN AVG ( 15 ) * + COUNT ( * ) THEN - - 46 ELSE NULL END - ( + 92 )
----
NULL

query I rowsort
SELECT + + 74 + - COALESCE ( ( + 62 ), - 11 ) * 46
----
-2778

query I rowsort
SELECT ALL 2 - + - 98 AS col1
----
100

query I rowsort
SELECT ALL 41 * - 76
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL SUM( + + ( + + 58 ) ) * + CASE - + 3 WHEN ( ( + 38 ) ) * - 47 THEN 99 / + + 42 WHEN + - ( - - 44 ) * - + ( + 85 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL SUM ( + + ( + + 58 ) ) * + CASE - + 3 WHEN ( ( + 38 ) ) * - 47 THEN 99 / + + 42 WHEN + - ( - - 44 ) * - + ( + 85 ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT ALL + COALESCE ( - + 71, - COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL + COALESCE ( - + 71, - COUNT ( * ) )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7616
SELECT DISTINCT 83 DIV + COUNT( * ) + - - 17 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT 83 / + COUNT ( * ) + - - 17 AS col2
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7617
SELECT DISTINCT + ( - 83 ) DIV MIN( NULLIF ( + NULLIF ( - 75, 20 ), NULLIF ( - - 55, + 88 + 26 * - 75 ) ) ) + + + 7
----
8

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT + ( - 83 ) / MIN ( NULLIF ( + NULLIF ( - 75, 20 ), NULLIF ( - - 55, + 88 + 26 * - 75 ) ) ) + + + 7
----
8

query I rowsort
SELECT + + ( 77 )
----
77

query II rowsort
SELECT + 87 * + - 68, + 93 AS col2
----
-5916
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7620
SELECT + COUNT( * ) + + CAST( + 77 AS SIGNED ) * + 49, - 19 + + - COUNT( * ) col1
----
3774
-20

skipif mysql # not compatible
query II rowsort label-7620
SELECT + COUNT ( * ) + + CAST ( + 77 AS INTEGER ) * + 49, - 19 + + - COUNT ( * ) col1
----
3774
-20

query II rowsort
SELECT - - 13 * - - 47 * 65 - - 91, + 81 AS col0
----
39806
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7622
SELECT ALL - COUNT( * ) * - 58 AS col0, - 87 AS col2
----
58
-87

skipif mysql # not compatible
query II rowsort label-7622
SELECT ALL - COUNT ( * ) * - 58 AS col0, - 87 AS col2
----
58
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT - + 90 + - - COUNT( - 11 )
----
-89

skipif mysql # not compatible
query I rowsort label-7623
SELECT - + 90 + - - COUNT ( - 11 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT ALL - + CAST( NULL AS SIGNED ) + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL - + CAST ( NULL AS INTEGER ) + 86
----
NULL

query I rowsort
SELECT ALL + 30 + - 94 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT DISTINCT - CASE + 12 WHEN + 12 THEN NULL ELSE - - COUNT( 13 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT - CASE + 12 WHEN + 12 THEN NULL ELSE - - COUNT ( 13 ) END
----
NULL

query I rowsort
SELECT ALL + 31 + + 65 AS col1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7628
SELECT 33 + + CASE - ( + - 92 ) WHEN - 17 THEN + - NULLIF ( - 1, + 11 * - AVG ( + + 76 ) - - ( - + 70 ) DIV + 34 * - 99 + + - 95 + - 19 + + COUNT( - ( 33 ) ) + 87 + + COUNT( * ) ) WHEN - + MIN( 33 ) * MAX( ALL + 30 ) + + 34 THEN NULL ELSE - - 53 DIV - COUNT( * ) + - 73 + 61 + - - 49 * 49 - - 7 END AS col0
----
2376

skipif mysql # not compatible
query I rowsort label-7628
SELECT 33 + + CASE - ( + - 92 ) WHEN - 17 THEN + - NULLIF ( - 1, + 11 * - AVG ( + + 76 ) - - ( - + 70 ) / + 34 * - 99 + + - 95 + - 19 + + COUNT ( - ( 33 ) ) + 87 + + COUNT ( * ) ) WHEN - + MIN ( 33 ) * MAX ( ALL + 30 ) + + 34 THEN NULL ELSE - - 53 / - COUNT ( * ) + - 73 + 61 + - - 49 * 49 - - 7 END AS col0
----
2376

query I rowsort
SELECT ALL - 31 - + 84 + - 36
----
-151

query I rowsort
SELECT 39 * + + 82 AS col1
----
3198

query II rowsort
SELECT DISTINCT - 75 AS col0, 21
----
-75
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7632
SELECT ALL - CASE + COUNT( * ) WHEN 48 * NULLIF ( - 51, COUNT( * ) * - 3 * + 47 ) THEN + 1 + + CAST( 46 AS SIGNED ) + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL - CASE + COUNT ( * ) WHEN 48 * NULLIF ( - 51, COUNT ( * ) * - 3 * + 47 ) THEN + 1 + + CAST ( 46 AS INTEGER ) + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT 13 * + + 18
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT - 54 * + + 85 * + COUNT( * ) * - 51 + - SUM( + + NULLIF ( - - ( + 5 ), ( + - 80 ) + + 85 ) ) / - - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT - 54 * + + 85 * + COUNT ( * ) * - 51 + - SUM ( + + NULLIF ( - - ( + 5 ), ( + - 80 ) + + 85 ) ) / - - 50
----
NULL

query I rowsort
SELECT DISTINCT 86 col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT ALL - COALESCE ( - ( - + 50 ), - 17 ) - ( + - 61 ) * ( COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL - COALESCE ( - ( - + 50 ), - 17 ) - ( + - 61 ) * ( COUNT ( * ) )
----
11

query I rowsort
SELECT ALL + 68 * + 74 AS col2
----
5032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7638
SELECT 39 * + 4 * - - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) + COUNT( * ) + + ( 58 ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7638
SELECT 39 * + 4 * - - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) + COUNT ( * ) + + ( 58 ) AS col1
----
NULL
NULL

query I rowsort
SELECT ALL 75 * - 68
----
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT 64 * + + 82 * - COUNT( * ) AS col0
----
-5248

skipif mysql # not compatible
query I rowsort label-7640
SELECT 64 * + + 82 * - COUNT ( * ) AS col0
----
-5248

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7641
SELECT ALL + CASE 41 WHEN + COUNT( * ) / - + 58 THEN + 71 * - CAST( + 75 AS DECIMAL ) * 30 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + CASE 41 WHEN + COUNT ( * ) / - + 58 THEN + 71 * - CAST ( + 75 AS REAL ) * 30 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7642
SELECT ALL CASE - + ( MAX( - 51 ) ) WHEN CASE + - COUNT( + - 83 ) WHEN - + 64 THEN - COUNT( DISTINCT - 99 ) END + + 71 * 76 THEN NULL WHEN + 91 THEN NULL WHEN - AVG ( ALL - + 71 ) THEN NULL ELSE 74 + - 94 DIV + 2 END
----
27

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL CASE - + ( MAX ( - 51 ) ) WHEN CASE + - COUNT ( + - 83 ) WHEN - + 64 THEN - COUNT ( DISTINCT - 99 ) END + + 71 * 76 THEN NULL WHEN + 91 THEN NULL WHEN - AVG ( ALL - + 71 ) THEN NULL ELSE 74 + - 94 / + 2 END
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT 65 * + 53 * - + ( + NULLIF ( + 60, + - COUNT( * ) ) ) AS col2
----
-206700

skipif mysql # not compatible
query I rowsort label-7643
SELECT 65 * + 53 * - + ( + NULLIF ( + 60, + - COUNT ( * ) ) ) AS col2
----
-206700

query I rowsort
SELECT DISTINCT + 24 col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7645
SELECT ALL MIN( ALL 73 ) + + - 50 - + MAX( + 3 ) + 68 * 61 * - COUNT( * ) * - + 86 * + - 54 AS col2, + 32 AS col2
----
-19263292
32

skipif mysql # not compatible
query II rowsort label-7645
SELECT ALL MIN ( ALL 73 ) + + - 50 - + MAX ( + 3 ) + 68 * 61 * - COUNT ( * ) * - + 86 * + - 54 AS col2, + 32 AS col2
----
-19263292
32

query I rowsort
SELECT ALL 21 col0
----
21

query I rowsort
SELECT - 58 + 79 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT ALL - + COUNT( * ) + + + 41 - 97
----
-57

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL - + COUNT ( * ) + + + 41 - 97
----
-57

query I rowsort
SELECT DISTINCT - 74 + 37
----
-37

query I rowsort
SELECT + 25 * - + 98
----
-2450

query I rowsort
SELECT DISTINCT 73 + - 83 + - + 84 * - - 95
----
-7990

query I rowsort
SELECT DISTINCT 77 + + - 47 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL - COUNT( ALL + - 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL - COUNT ( ALL + - 93 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7654
SELECT - ( CAST( - 32 AS SIGNED ) )
----
32

skipif mysql # not compatible
query I rowsort label-7654
SELECT - ( CAST ( - 32 AS INTEGER ) )
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7655
SELECT ALL + 81 + CAST( NULL AS DECIMAL ) - - - 21 + - ( - + ( + - 72 ) ) * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL + 81 + CAST ( NULL AS REAL ) - - - 21 + - ( - + ( + - 72 ) ) * + 81
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7656
SELECT ALL 53 DIV + - 4 AS col2, 90 col0
----
-13
90

skipif mysql # not compatible
query II rowsort label-7656
SELECT ALL 53 / + - 4 AS col2, 90 col0
----
-13
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7657
SELECT 49 DIV + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7657
SELECT 49 / + 55 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7658
SELECT + 77 AS col1, + 53 - + + COUNT( * ) AS col1
----
77
52

skipif mysql # not compatible
query II rowsort label-7658
SELECT + 77 AS col1, + 53 - + + COUNT ( * ) AS col1
----
77
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7659
SELECT + 80 AS col2, - COUNT( * ) * + 32 DIV + 57 AS col2
----
80
0

skipif mysql # not compatible
query II rowsort label-7659
SELECT + 80 AS col2, - COUNT ( * ) * + 32 / + 57 AS col2
----
80
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7660
SELECT ALL CAST( NULL AS SIGNED ) - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL CAST ( NULL AS INTEGER ) - 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL - 45 * - COALESCE ( - COUNT( * ), - + 49 ) * + 8 + COALESCE ( + - 45, - COUNT( * ), 58 ) + + + 36 * 62
----
1827

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL - 45 * - COALESCE ( - COUNT ( * ), - + 49 ) * + 8 + COALESCE ( + - 45, - COUNT ( * ), 58 ) + + + 36 * 62
----
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT COUNT( * ) - 6 col1
----
-5

skipif mysql # not compatible
query I rowsort label-7662
SELECT COUNT ( * ) - 6 col1
----
-5

query I rowsort
SELECT ALL - ( 30 ) col0
----
-30

query I rowsort
SELECT 48 - 30 - - 71
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7665
SELECT ALL CAST( NULL AS SIGNED ) - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL CAST ( NULL AS INTEGER ) - + 36
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7666
SELECT ALL - COUNT( * ) AS col1, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-7666
SELECT ALL - COUNT ( * ) AS col1, + COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT MAX( - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT MAX ( - 91 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7668
SELECT ALL - 0 DIV + 42 * 29 * + + 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL - 0 / + 42 * 29 * + + 64 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT 64 DIV + - 16 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7669
SELECT 64 / + - 16 AS col1
----
-4

query I rowsort
SELECT 38 + - - 81 + + NULLIF ( + - ( + ( 54 ) ), - 91 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7671
SELECT - 3 AS col2, COUNT( * )
----
-3
1

skipif mysql # not compatible
query II rowsort label-7671
SELECT - 3 AS col2, COUNT ( * )
----
-3
1

query I rowsort
SELECT 77 / CASE + 54 WHEN - 84 / - 12 THEN + 70 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7673
SELECT ALL + 10 DIV + + 16 * - 70
----
0

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL + 10 / + + 16 * - 70
----
0

query I rowsort
SELECT 83 - + - 89 AS col2
----
172

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT - 93 DIV 44 DIV - 16 + + ( - - 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7675
SELECT - 93 / 44 / - 16 + + ( - - 3 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT + SUM( DISTINCT 54 ) - 40 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7676
SELECT + SUM ( DISTINCT 54 ) - 40 AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7677
SELECT - 54 AS col1, COALESCE ( + COUNT( ALL - 23 ), - 31 * - COUNT( * ) + - 41 * 5 * + 36 * - + 46 ) AS col1
----
-54
1

skipif mysql # not compatible
query II rowsort label-7677
SELECT - 54 AS col1, COALESCE ( + COUNT ( ALL - 23 ), - 31 * - COUNT ( * ) + - 41 * 5 * + 36 * - + 46 ) AS col1
----
-54
1

query I rowsort
SELECT - 76 * + 39 AS col1
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT DISTINCT - NULLIF ( + + COUNT( * ), 20 ) * - 94 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT - NULLIF ( + + COUNT ( * ), 20 ) * - 94 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT ALL + 69 + - MAX( + 80 )
----
-11

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL + 69 + - MAX ( + 80 )
----
-11

query I rowsort
SELECT ALL - 11 + - + 96
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT - COUNT( * ) + + + CASE 84 WHEN + 95 THEN 66 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7682
SELECT - COUNT ( * ) + + + CASE 84 WHEN + 95 THEN 66 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7683
SELECT 13 + + + COUNT( ALL + 77 ) - + 75 DIV + 75
----
13

skipif mysql # not compatible
query I rowsort label-7683
SELECT 13 + + + COUNT ( ALL + 77 ) - + 75 / + 75
----
13

query I rowsort
SELECT DISTINCT - 67 * - 86 AS col2
----
5762

query I rowsort
SELECT ALL + + 66 + ( - - 0 ) col2
----
66

query I rowsort
SELECT - - ( + 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT + 9 + - SUM( + + 84 )
----
-75

skipif mysql # not compatible
query I rowsort label-7687
SELECT + 9 + - SUM ( + + 84 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT DISTINCT - COUNT( * ) + + 75
----
74

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT - COUNT ( * ) + + 75
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-7689
SELECT COUNT( * ) col1, 24
----
1
24

skipif mysql # not compatible
query II rowsort label-7689
SELECT COUNT ( * ) col1, 24
----
1
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT + + CAST( + + NULLIF ( - + 57, - 0 ) AS SIGNED ) + 60 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7690
SELECT + + CAST ( + + NULLIF ( - + 57, - 0 ) AS INTEGER ) + 60 AS col1
----
3

query II rowsort
SELECT DISTINCT - 41 AS col2, + 25
----
-41
25

query I rowsort
SELECT + - 15 + + + 63
----
48

query I rowsort
SELECT ALL 66 * + 69
----
4554

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT - 42 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-7694
SELECT - 42 / - 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + COUNT( * ) * + 73 * + + COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-7695
SELECT + COUNT ( * ) * + 73 * + + COUNT ( * ) AS col1
----
73

query I rowsort
SELECT - 60 + + + 3
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7697
SELECT DISTINCT + 91 * + ( + - 88 ) - + SUM( ALL NULLIF ( 88, 87 ) ) DIV 76 + - - 36 - - - 68 DIV + COALESCE ( + 57, + - CAST( + 3 AS SIGNED ) DIV 20 ) AS col2
----
-7974

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT + 91 * + ( + - 88 ) - + SUM ( ALL NULLIF ( 88, 87 ) ) / 76 + - - 36 - - - 68 / + COALESCE ( + 57, + - CAST ( + 3 AS INTEGER ) / 20 ) AS col2
----
-7974

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT 40 * + 77 * - - 37 * + COUNT( * ) + + + 33 AS col2
----
113993

skipif mysql # not compatible
query I rowsort label-7698
SELECT 40 * + 77 * - - 37 * + COUNT ( * ) + + + 33 AS col2
----
113993

query I rowsort
SELECT + 42 + + 27
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT + MAX( + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7700
SELECT + MAX ( + 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-7701
SELECT + 88 * 92 AS col0, SUM( + 83 ) * 51 + + 12 + + 89 AS col2
----
8096
4334

skipif mysql # not compatible
query II rowsort label-7701
SELECT + 88 * 92 AS col0, SUM ( + 83 ) * 51 + + 12 + + 89 AS col2
----
8096
4334

query I rowsort
SELECT ALL - 14 * - + 38 col2
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT MIN( DISTINCT 63 ) col1
----
63

skipif mysql # not compatible
query I rowsort label-7703
SELECT MIN ( DISTINCT 63 ) col1
----
63

query I rowsort
SELECT + ( 26 ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7705
SELECT + COUNT( * ) * - COUNT( * ) AS col1, COUNT( * ) * - - NULLIF ( + 24, + NULLIF ( + 55, - 77 ) * + + ( + - CAST( NULL AS SIGNED ) ) + - 55 + - 12 * - 13 )
----
-1
24

skipif mysql # not compatible
query II rowsort label-7705
SELECT + COUNT ( * ) * - COUNT ( * ) AS col1, COUNT ( * ) * - - NULLIF ( + 24, + NULLIF ( + 55, - 77 ) * + + ( + - CAST ( NULL AS INTEGER ) ) + - 55 + - 12 * - 13 )
----
-1
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7706
SELECT - NULLIF ( CAST( NULL AS SIGNED ), 64 * + 85 / - COUNT( * ) ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), 64 * + 85 / - COUNT ( * ) ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT - - 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT - 65 + - COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7708
SELECT - 65 + - COUNT ( * ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL + COALESCE ( 4, - + SUM( ALL + + 39 ) - - - 59 ) + + 70 * 13 AS col1
----
914

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL + COALESCE ( 4, - + SUM ( ALL + + 39 ) - - - 59 ) + + 70 * 13 AS col1
----
914

query I rowsort
SELECT ALL - ( + + 29 ) * + 78 - + 16 * - 69 * + 80 AS col2
----
86058

query I rowsort
SELECT + ( NULLIF ( + 87, - + 44 ) )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7712
SELECT - - 85 DIV + ( 82 )
----
1

skipif mysql # not compatible
query I rowsort label-7712
SELECT - - 85 / + ( 82 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7713
SELECT + - 74 - + 71 * + 6 AS col0, - 61 DIV - CAST( NULL AS SIGNED ) AS col1, + + COALESCE ( + 76, - 3 ) DIV + 32 + COUNT( * ) * - + CAST( + - 58 AS SIGNED ) - - + 45 + + + 13 - - COUNT( * )
----
-500
NULL
119

skipif mysql # not compatible
query III rowsort label-7713
SELECT + - 74 - + 71 * + 6 AS col0, - 61 / - CAST ( NULL AS INTEGER ) AS col1, + + COALESCE ( + 76, - 3 ) / + 32 + COUNT ( * ) * - + CAST ( + - 58 AS INTEGER ) - - + 45 + + + 13 - - COUNT ( * )
----
-500
NULL
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT + + ( - 35 ) - + NULLIF ( - SUM( ALL - 25 ), - 64 )
----
-60

skipif mysql # not compatible
query I rowsort label-7714
SELECT + + ( - 35 ) - + NULLIF ( - SUM ( ALL - 25 ), - 64 )
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7715
SELECT + 11 DIV - NULLIF ( 2, 0 + 6 * ( - + 19 ) DIV 80 * 58 - 90 ) + + - 66 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7715
SELECT + 11 / - NULLIF ( 2, 0 + 6 * ( - + 19 ) / 80 * 58 - 90 ) + + - 66 AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7716
SELECT - 81 DIV 83 * + CAST( - 78 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7716
SELECT - 81 / 83 * + CAST ( - 78 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT - 20 * - 55 + - + ( - COUNT( * ) ) AS col0
----
1101

skipif mysql # not compatible
query I rowsort label-7717
SELECT - 20 * - 55 + - + ( - COUNT ( * ) ) AS col0
----
1101

query I rowsort
SELECT DISTINCT - 86 - 95
----
-181

query I rowsort
SELECT ALL - COALESCE ( - 27, 40 ) * + 67 * + 18
----
32562

query I rowsort
SELECT - + 17 + 93 AS col2
----
76

query II rowsort
SELECT DISTINCT - NULLIF ( 81, - ( + 1 ) - ( - 90 ) ) - + - 29 - - 49 AS col0, 71
----
-3
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7722
SELECT DISTINCT CASE 59 WHEN COUNT( * ) * + + CAST( NULL AS SIGNED ) + - MIN( + 81 ) THEN - 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT CASE 59 WHEN COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - MIN ( + 81 ) THEN - 53 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7723
SELECT CAST( NULL AS SIGNED ), + 23 - + 47 AS col2
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-7723
SELECT CAST ( NULL AS INTEGER ), + 23 - + 47 AS col2
----
NULL
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7724
SELECT - 66 + COUNT( * ) - - 4 DIV + - NULLIF ( - - 47, + - 55 ) * 12 * + 20 * + - ( - + 33 ) - - + 77
----
12

skipif mysql # not compatible
query I rowsort label-7724
SELECT - 66 + COUNT ( * ) - - 4 / + - NULLIF ( - - 47, + - 55 ) * 12 * + 20 * + - ( - + 33 ) - - + 77
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT ALL + CASE - - 9 WHEN + - 32 + - 51 / + + 73 THEN NULL ELSE + 66 + - CASE + 76 WHEN + + 98 * COUNT( + - 92 ) THEN - 44 * + - 62 WHEN 13 * - 3 + 71 * + 61 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL + CASE - - 9 WHEN + - 32 + - 51 / + + 73 THEN NULL ELSE + 66 + - CASE + 76 WHEN + + 98 * COUNT ( + - 92 ) THEN - 44 * + - 62 WHEN 13 * - 3 + 71 * + 61 THEN NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT + COUNT( * ) * - 30 + - + 89 + - 38 AS col1
----
-157

skipif mysql # not compatible
query I rowsort label-7726
SELECT + COUNT ( * ) * - 30 + - + 89 + - 38 AS col1
----
-157

query I rowsort
SELECT + 1 - - 81 AS col0
----
82

query I rowsort
SELECT DISTINCT + ( + 46 ) AS col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7729
SELECT ALL 0 DIV COUNT( + 40 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL 0 / COUNT ( + 40 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7730
SELECT COUNT( * ) DIV SUM( + 8 ) * - - 74 + - + 17 + + + 77
----
60

skipif mysql # not compatible
query I rowsort label-7730
SELECT COUNT ( * ) / SUM ( + 8 ) * - - 74 + - + 17 + + + 77
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7731
SELECT DISTINCT + 27 DIV 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT + 27 / 37 AS col0
----
0

query I rowsort
SELECT ALL 53 * + 7
----
371

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT - SUM( + + 35 ) - 14 * - 23
----
287

skipif mysql # not compatible
query I rowsort label-7733
SELECT - SUM ( + + 35 ) - 14 * - 23
----
287

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT + COUNT( * ) * + CASE - COUNT( DISTINCT - - NULLIF ( + ( - - 39 ), + 27 / + 65 * + 56 ) ) WHEN - 52 THEN 37 * - 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT + COUNT ( * ) * + CASE - COUNT ( DISTINCT - - NULLIF ( + ( - - 39 ), + 27 / + 65 * + 56 ) ) WHEN - 52 THEN 37 * - 61 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7735
SELECT 10 * - 77 + - CAST( NULL AS SIGNED ), - 24 * + 90 AS col1
----
NULL
-2160

skipif mysql # not compatible
query II rowsort label-7735
SELECT 10 * - 77 + - CAST ( NULL AS INTEGER ), - 24 * + 90 AS col1
----
NULL
-2160

query II rowsort
SELECT ( + COALESCE ( + + 22, 20 ) ) col2, 44 AS col2
----
22
44

query I rowsort
SELECT ALL 58 * + 48
----
2784

query I rowsort
SELECT ALL 17 * - - 32 * - - 7 * - 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7739
SELECT + COALESCE ( - - ( + 81 ), - ( - - 18 ) + 86 * + COUNT( * ) * COUNT( * ), + 32 + + 77 + - 80 DIV - 99, - 51 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7739
SELECT + COALESCE ( - - ( + 81 ), - ( - - 18 ) + 86 * + COUNT ( * ) * COUNT ( * ), + 32 + + 77 + - 80 / - 99, - 51 ) AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7740
SELECT COALESCE ( - 67, - - 31 + - 29 - + CASE + 87 WHEN - 52 * + 31 / + 52 * + 68 THEN NULL WHEN - 74 THEN - - 5 + + CAST( - + COUNT( * ) AS SIGNED ) - ( - 89 ) ELSE NULL END )
----
-67

skipif mysql # not compatible
query I rowsort label-7740
SELECT COALESCE ( - 67, - - 31 + - 29 - + CASE + 87 WHEN - 52 * + 31 / + 52 * + 68 THEN NULL WHEN - 74 THEN - - 5 + + CAST ( - + COUNT ( * ) AS INTEGER ) - ( - 89 ) ELSE NULL END )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-7741
SELECT ALL 59 * 7 + - COUNT( * ), 32 * - COUNT( * ) col2
----
412
-32

skipif mysql # not compatible
query II rowsort label-7741
SELECT ALL 59 * 7 + - COUNT ( * ), 32 * - COUNT ( * ) col2
----
412
-32

query I rowsort
SELECT ALL + 38 * - 67
----
-2546

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL - 12 * COUNT( * ) + + 72 + - + ( 28 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL - 12 * COUNT ( * ) + + 72 + - + ( 28 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT + + 64 - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-7744
SELECT + + 64 - COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT SUM( ALL + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-7745
SELECT SUM ( ALL + 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL 24 * - - NULLIF ( + - COUNT( * ), - + 73 + + 20 ) + 10 * - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL 24 * - - NULLIF ( + - COUNT ( * ), - + 73 + + 20 ) + 10 * - COUNT ( * )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT - CAST( + + 40 AS SIGNED ) + - + 42 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-7747
SELECT - CAST ( + + 40 AS INTEGER ) + - + 42 AS col2
----
-82

query I rowsort
SELECT 30 + 32 AS col1
----
62

query I rowsort
SELECT 73 - 50 AS col1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT ALL 21 * - CAST( - 92 AS SIGNED ) AS col2
----
1932

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL 21 * - CAST ( - 92 AS INTEGER ) AS col2
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT + NULLIF ( - 60, - 28 ) * - - 65 + - COUNT( * ) * 92
----
-3992

skipif mysql # not compatible
query I rowsort label-7751
SELECT + NULLIF ( - 60, - 28 ) * - - 65 + - COUNT ( * ) * 92
----
-3992

query I rowsort
SELECT 19 - - 75
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT - NULLIF ( - COUNT( * ), + COUNT( * ) - - + 57 - 56 / - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7753
SELECT - NULLIF ( - COUNT ( * ), + COUNT ( * ) - - + 57 - 56 / - + COUNT ( * ) )
----
1

query II rowsort
SELECT 77, + NULLIF ( - 2, - 41 + - 73 ) * - - 89 + - 88 + - - ( - ( - - 28 ) ) AS col1
----
77
-294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7755
SELECT ALL + 68 - - CAST( - COALESCE ( + - 37, - 12 * COUNT( * ) * 57 + - COUNT( * ) + - + 53 + + 61 ) AS SIGNED )
----
105

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL + 68 - - CAST ( - COALESCE ( + - 37, - 12 * COUNT ( * ) * 57 + - COUNT ( * ) + - + 53 + + 61 ) AS INTEGER )
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7756
SELECT ALL + CAST( - 60 AS SIGNED ) * + COUNT( * ) + + ( - - MIN( - + 65 ) ) * - MAX( - - 13 ) AS col1
----
785

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL + CAST ( - 60 AS INTEGER ) * + COUNT ( * ) + + ( - - MIN ( - + 65 ) ) * - MAX ( - - 13 ) AS col1
----
785

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT 99 + + MIN( ALL + 29 )
----
128

skipif mysql # not compatible
query I rowsort label-7757
SELECT 99 + + MIN ( ALL + 29 )
----
128

query I rowsort
SELECT DISTINCT + 24 * - 16 AS col0
----
-384

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7759
SELECT DISTINCT 69 AS col0, CAST( - 80 AS SIGNED )
----
69
-80

skipif mysql # not compatible
query II rowsort label-7759
SELECT DISTINCT 69 AS col0, CAST ( - 80 AS INTEGER )
----
69
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7760
SELECT 78 * - 13 + - COUNT( * ) DIV - - 14
----
-1014

skipif mysql # not compatible
query I rowsort label-7760
SELECT 78 * - 13 + - COUNT ( * ) / - - 14
----
-1014

query II rowsort
SELECT 52 + - 30, 20 AS col2
----
22
20

query I rowsort
SELECT 23 * 17
----
391

query I rowsort
SELECT 58 * 3 * 30 AS col1
----
5220

query I rowsort
SELECT 62 + - 16 AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7765
SELECT ALL + 14 * + 6 AS col1, + COUNT( * )
----
84
1

skipif mysql # not compatible
query II rowsort label-7765
SELECT ALL + 14 * + 6 AS col1, + COUNT ( * )
----
84
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7766
SELECT 58 + 45 - + 75 * + - COUNT( * ) DIV + COUNT( * )
----
178

skipif mysql # not compatible
query I rowsort label-7766
SELECT 58 + 45 - + 75 * + - COUNT ( * ) / + COUNT ( * )
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7767
SELECT ALL + CAST( NULL AS SIGNED ) + - + 6 + - + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 6 + - + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT 48 + + ( + 78 ) * COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-7768
SELECT 48 + + ( + 78 ) * COUNT ( * )
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-7769
SELECT DISTINCT + 96 + 0 AS col2, - 74 + - - 62 + - - CASE WHEN NOT - 15 IS NULL THEN - + 80 + 19 * + MIN( DISTINCT - 2 ) + - - 15 - - 73 - + + NULLIF ( SUM( DISTINCT + 17 ), + 19 * - - COUNT( * ) - - - 18 + - + 10 + + ( - 97 ) * 15 ) * + 19 ELSE 65 * - ( - - 93 ) END
----
96
-365

skipif mysql # not compatible
query II rowsort label-7769
SELECT DISTINCT + 96 + 0 AS col2, - 74 + - - 62 + - - CASE WHEN NOT - 15 IS NULL THEN - + 80 + 19 * + MIN ( DISTINCT - 2 ) + - - 15 - - 73 - + + NULLIF ( SUM ( DISTINCT + 17 ), + 19 * - - COUNT ( * ) - - - 18 + - + 10 + + ( - 97 ) * 15 ) * + 19 ELSE 65 * - ( - - 93 ) END
----
96
-365

query I rowsort
SELECT + 99 * - - 14 + + 5 + + 6 col2
----
1397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7771
SELECT 83 + + + CASE - NULLIF ( + + COUNT( * ), + COALESCE ( - - 58, - + COUNT( * ) / + - 23 + 29 ) ) WHEN + + 26 THEN - - 25 WHEN + 97 THEN - - COUNT( * ) * - MAX( 6 ) WHEN - 72 THEN CASE 72 WHEN + 97 * - 71 * 83 + + + 38 + - - 40 + + CAST( NULL AS SIGNED ) + - + 1 THEN + 82 WHEN AVG ( ALL + 34 ) THEN NULL WHEN 94 THEN NULL END * - 78 + - - COUNT( * ) + + + 8 / - 26 END + 91 * + 44 * + 94 * + ( - ( - 72 ) ) / + 66 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT 83 + + + CASE - NULLIF ( + + COUNT ( * ), + COALESCE ( - - 58, - + COUNT ( * ) / + - 23 + 29 ) ) WHEN + + 26 THEN - - 25 WHEN + 97 THEN - - COUNT ( * ) * - MAX ( 6 ) WHEN - 72 THEN CASE 72 WHEN + 97 * - 71 * 83 + + + 38 + - - 40 + + CAST ( NULL AS INTEGER ) + - + 1 THEN + 82 WHEN AVG ( ALL + 34 ) THEN NULL WHEN 94 THEN NULL END * - 78 + - - COUNT ( * ) + + + 8 / - 26 END + 91 * + 44 * + 94 * + ( - ( - 72 ) ) / + 66 col0
----
NULL

query I rowsort
SELECT 19 + + - 53 col1
----
-34

query II rowsort
SELECT ALL - + 72 + - - 88 AS col1, + 40 * - 34 AS col2
----
16
-1360

query I rowsort
SELECT 50 * 46
----
2300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7775
SELECT DISTINCT - - ( 39 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT - - ( 39 ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT ALL - COALESCE ( 90, - - 41 * + COUNT( * ) + 1 + + - COUNT( * ) - - 88 )
----
-90

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL - COALESCE ( 90, - - 41 * + COUNT ( * ) + 1 + + - COUNT ( * ) - - 88 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT 52 * - - ( 7 ) + - 47 + - 53 + - 56 + 91 + + 67 * - 92 + - MIN( 2 ) * - 52
----
-5761

skipif mysql # not compatible
query I rowsort label-7777
SELECT 52 * - - ( 7 ) + - 47 + - 53 + - 56 + 91 + + 67 * - 92 + - MIN ( 2 ) * - 52
----
-5761

query I rowsort
SELECT 29 * - 43 + + 84
----
-1163

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT MIN( DISTINCT + + 29 ) + + + 19
----
48

skipif mysql # not compatible
query I rowsort label-7779
SELECT MIN ( DISTINCT + + 29 ) + + + 19
----
48

query II rowsort
SELECT ALL + + 17 * - - 75, - 80 AS col0
----
1275
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT 98 + + SUM( 60 ) + + 21 * + - 69
----
-1291

skipif mysql # not compatible
query I rowsort label-7781
SELECT 98 + + SUM ( 60 ) + + 21 * + - 69
----
-1291

query I rowsort
SELECT 47 - - - 36 * - - 32
----
-1105

query I rowsort
SELECT + 52 * - 44 * - - 35 + + 44 * - ( + 15 )
----
-80740

query I rowsort
SELECT + 9 * + 31 AS col0
----
279

onlyif mysql # DIV for integer division: 
query I rowsort label-7785
SELECT 32 DIV 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7785
SELECT 32 / 55 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7786
SELECT ALL 19, + 78 + + 93 * + - COUNT( * ) AS col1
----
19
-15

skipif mysql # not compatible
query II rowsort label-7786
SELECT ALL 19, + 78 + + 93 * + - COUNT ( * ) AS col1
----
19
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7787
SELECT 58 DIV - - 94 * - 46 * - + MAX( - 19 )
----
0

skipif mysql # not compatible
query I rowsort label-7787
SELECT 58 / - - 94 * - 46 * - + MAX ( - 19 )
----
0

query I rowsort
SELECT ALL ( + 14 ) + + + 5 AS col0
----
19

query I rowsort
SELECT 41 + 68 col2
----
109

query II rowsort
SELECT + 29 AS col1, + 71 AS col0
----
29
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT 48 DIV 70 DIV - 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7791
SELECT 48 / 70 / - 2 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7792
SELECT COALESCE ( + - CASE + + 96 WHEN 63 DIV - NULLIF ( - + 53, + 65 ) + - 62 - - 93 + - 4 + + - 85 THEN - CAST( NULL AS SIGNED ) END, 26 DIV 29 ) * - 55 * 77 DIV - + 19 * 10 - - - 4 * + MAX( ALL + 60 ) + - 50 * + 53 * 8 + + 57 * 26 AS col1
----
-19958

skipif mysql # not compatible
query I rowsort label-7792
SELECT COALESCE ( + - CASE + + 96 WHEN 63 / - NULLIF ( - + 53, + 65 ) + - 62 - - 93 + - 4 + + - 85 THEN - CAST ( NULL AS INTEGER ) END, 26 / 29 ) * - 55 * 77 / - + 19 * 10 - - - 4 * + MAX ( ALL + 60 ) + - 50 * + 53 * 8 + + 57 * 26 AS col1
----
-19958

query II rowsort
SELECT ALL 8 * - - 42 + + 98 col0, 81 - - 41 * - 77 * 51
----
434
-160926

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT MIN( DISTINCT 91 ) col0
----
91

skipif mysql # not compatible
query I rowsort label-7794
SELECT MIN ( DISTINCT 91 ) col0
----
91

query I rowsort
SELECT DISTINCT 34 * - 64 * + - 79
----
171904

query I rowsort
SELECT + - 62 + - 27
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT - - 56 * COUNT( * ) * - 5 AS col2
----
-280

skipif mysql # not compatible
query I rowsort label-7797
SELECT - - 56 * COUNT ( * ) * - 5 AS col2
----
-280

query I rowsort
SELECT DISTINCT - 51 * 11 * ( + 91 )
----
-51051

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT DISTINCT COUNT( * ) * - - 44
----
44

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT COUNT ( * ) * - - 44
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7800
SELECT - CAST( - 46 AS SIGNED ) - - - 66 * 14 + 80 - - - 41, + 28 AS col0
----
-839
28

skipif mysql # not compatible
query II rowsort label-7800
SELECT - CAST ( - 46 AS INTEGER ) - - - 66 * 14 + 80 - - - 41, + 28 AS col0
----
-839
28

query I rowsort
SELECT ALL + - 61 AS col1
----
-61

query I rowsort
SELECT - 0 - 76
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7803
SELECT - - NULLIF ( + 72, - - ( + CAST( NULL AS SIGNED ) ) + - 0 ) * + 86 + + - 73 + - ( 86 ) * 84
----
-1105

skipif mysql # not compatible
query I rowsort label-7803
SELECT - - NULLIF ( + 72, - - ( + CAST ( NULL AS INTEGER ) ) + - 0 ) * + 86 + + - 73 + - ( 86 ) * 84
----
-1105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7804
SELECT DISTINCT - COUNT( * ) DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT - COUNT ( * ) / - 79
----
0

query I rowsort
SELECT - 27 * + + 37 AS col1
----
-999

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT - + 85 + + - 85 + 80 * + 66 + ( - 62 ) + + COUNT( * ) + ( COUNT( * ) ) * + - 3 AS col1
----
5046

skipif mysql # not compatible
query I rowsort label-7806
SELECT - + 85 + + - 85 + 80 * + 66 + ( - 62 ) + + COUNT ( * ) + ( COUNT ( * ) ) * + - 3 AS col1
----
5046

query I rowsort
SELECT + - 5 - + 14 col2
----
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-7808
SELECT - + 36 + + 48 DIV + 75 AS col0, + 48 - - 85 + - 70 - - 29 * - 44
----
-36
-1213

skipif mysql # not compatible
query II rowsort label-7808
SELECT - + 36 + + 48 / + 75 AS col0, + 48 - - 85 + - 70 - - 29 * - 44
----
-36
-1213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7809
SELECT + + COUNT( * ) - - 40 + + 58 + + 29 * + 20 + - 8 + + 65 DIV + 7 AS col0
----
680

skipif mysql # not compatible
query I rowsort label-7809
SELECT + + COUNT ( * ) - - 40 + + 58 + + 29 * + 20 + - 8 + + 65 / + 7 AS col0
----
680

onlyif mysql # aggregate syntax: 
query II rowsort label-7810
SELECT ALL 82 AS col2, + 46 + + COUNT( * ) + 62 * 16 * - 17 AS col0
----
82
-16817

skipif mysql # not compatible
query II rowsort label-7810
SELECT ALL 82 AS col2, + 46 + + COUNT ( * ) + 62 * 16 * - 17 AS col0
----
82
-16817

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT - COUNT( * ) + - 48 * - 98
----
4703

skipif mysql # not compatible
query I rowsort label-7811
SELECT - COUNT ( * ) + - 48 * - 98
----
4703

query I rowsort
SELECT ALL 1 + + - 3 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT DISTINCT - 41 + - 72 * + 80 * + 90 * - - NULLIF ( CAST( NULL AS SIGNED ), - 81 - - 15 ) * COALESCE ( + COALESCE ( + 92, - - 40 * 28 + - 23 + AVG ( 42 ) * - + 51 ), + 36 / - + MAX( DISTINCT + 71 ) ) - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT - 41 + - 72 * + 80 * + 90 * - - NULLIF ( CAST ( NULL AS INTEGER ), - 81 - - 15 ) * COALESCE ( + COALESCE ( + 92, - - 40 * 28 + - 23 + AVG ( 42 ) * - + 51 ), + 36 / - + MAX ( DISTINCT + 71 ) ) - - 70
----
NULL

query I rowsort
SELECT + 42 + 30 + - + 63 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL - NULLIF ( + 15, COUNT( * ) ) + + 15 * - 63 col1
----
-960

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL - NULLIF ( + 15, COUNT ( * ) ) + + 15 * - 63 col1
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT ( - COUNT( ALL + 29 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT ( - COUNT ( ALL + 29 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT - COUNT( * ) + - 3
----
-4

skipif mysql # not compatible
query I rowsort label-7817
SELECT - COUNT ( * ) + - 3
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT + 12 + - - MIN( ALL - - 71 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7818
SELECT + 12 + - - MIN ( ALL - - 71 ) AS col1
----
83

query I rowsort
SELECT - 23 + - 56 AS col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7820
SELECT + COUNT( * ) DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-7820
SELECT + COUNT ( * ) / 22
----
0

query I rowsort
SELECT ALL ( + 9 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7822
SELECT ALL 87 * - ( + - COUNT( * ) ) * - 77 col1, COUNT( * ) AS col0
----
-6699
1

skipif mysql # not compatible
query II rowsort label-7822
SELECT ALL 87 * - ( + - COUNT ( * ) ) * - 77 col1, COUNT ( * ) AS col0
----
-6699
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7823
SELECT ALL + CAST( NULL AS SIGNED ) / + 59 - - 71 / COALESCE ( - 95, 44 / + 30 + + 40 + - + 36 + - CASE + 35 WHEN + + 85 THEN - 38 + 17 + + - 96 * + - 61 * 39 ELSE - 21 + + CAST( + + 63 AS SIGNED ) END ) * - 29 * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL + CAST ( NULL AS INTEGER ) / + 59 - - 71 / COALESCE ( - 95, 44 / + 30 + + 40 + - + 36 + - CASE + 35 WHEN + + 85 THEN - 38 + 17 + + - 96 * + - 61 * 39 ELSE - 21 + + CAST ( + + 63 AS INTEGER ) END ) * - 29 * 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT + COUNT( * ) * 15
----
15

skipif mysql # not compatible
query I rowsort label-7824
SELECT + COUNT ( * ) * 15
----
15

query I rowsort
SELECT + 46 * + 70 AS col0
----
3220

query II rowsort
SELECT ALL + 47, - 0 AS col2
----
47
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7827
SELECT 10 DIV COUNT( * ) - + + 42 + 59 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7827
SELECT 10 / COUNT ( * ) - + + 42 + 59 AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7828
SELECT - - 52 DIV - 61 col1
----
0

skipif mysql # not compatible
query I rowsort label-7828
SELECT - - 52 / - 61 col1
----
0

query I rowsort
SELECT + NULLIF ( - - 98, 40 + - 28 ) * + 98 col0
----
9604

query I rowsort
SELECT - 18 + + - 31
----
-49

query I rowsort
SELECT + 96 * + 96 + - 69
----
9147

query I rowsort
SELECT ALL + - 31 AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7833
SELECT ALL + - COALESCE ( - NULLIF ( + 58, + CAST( + 80 AS SIGNED ) ), - - 99 + + 70 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL + - COALESCE ( - NULLIF ( + 58, + CAST ( + 80 AS INTEGER ) ), - - 99 + + 70 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7834
SELECT ALL + 48 AS col0, 84 * COUNT( * ) * - COUNT( * ) AS col1
----
48
-84

skipif mysql # not compatible
query II rowsort label-7834
SELECT ALL + 48 AS col0, 84 * COUNT ( * ) * - COUNT ( * ) AS col1
----
48
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7835
SELECT - - NULLIF ( + 76, - SUM( + COALESCE ( - 14, + - 49 ) ) - - COUNT( * ) + + ( - 39 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT - - NULLIF ( + 76, - SUM ( + COALESCE ( - 14, + - 49 ) ) - - COUNT ( * ) + + ( - 39 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL - - COUNT( * ) * + 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL - - COUNT ( * ) * + 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT - ( - COUNT( * ) ) * + 67
----
67

skipif mysql # not compatible
query I rowsort label-7837
SELECT - ( - COUNT ( * ) ) * + 67
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7838
SELECT + COALESCE ( + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-7838
SELECT + COALESCE ( + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - + 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT - 20 * - - 42 + + 36 + + 96 * + ( - - MAX( - - 61 ) )
----
5052

skipif mysql # not compatible
query I rowsort label-7839
SELECT - 20 * - - 42 + + 36 + + 96 * + ( - - MAX ( - - 61 ) )
----
5052

query I rowsort
SELECT - - 51 * - - 9 AS col0
----
459

query I rowsort
SELECT + 64 * - 10 col2
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT + 33 * - 64 + + 26 * + COUNT( * ) + - 51
----
-2137

skipif mysql # not compatible
query I rowsort label-7842
SELECT + 33 * - 64 + + 26 * + COUNT ( * ) + - 51
----
-2137

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT ALL - 4 * 32 + - COUNT( * ) AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL - 4 * 32 + - COUNT ( * ) AS col1
----
-129

query II rowsort
SELECT DISTINCT - 79, + ( - 45 ) AS col0
----
-79
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL + + COUNT( * ) * + 58 + - 87 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL + + COUNT ( * ) * + 58 + - 87 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-7846
SELECT - + CASE NULLIF ( + + 3, - 67 ) WHEN - 11 THEN - - 78 + - 61 END, + 25 * - ( - + COUNT( * ) ) + 63 col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-7846
SELECT - + CASE NULLIF ( + + 3, - 67 ) WHEN - 11 THEN - - 78 + - 61 END, + 25 * - ( - + COUNT ( * ) ) + 63 col0
----
NULL
88

query I rowsort
SELECT ALL - 89 * + 95 * + - 85 + - - 75 AS col0
----
718750

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT ALL + + MIN( - 68 ) * + - 88 + + - 88
----
5896

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL + + MIN ( - 68 ) * + - 88 + + - 88
----
5896

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT - COUNT( * ) * 7 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7849
SELECT - COUNT ( * ) * 7 AS col2
----
-7

query I rowsort
SELECT + 54 * + 21 AS col1
----
1134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7851
SELECT ALL + 82 DIV ( + + COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL + 82 / ( + + COUNT ( * ) )
----
82

query I rowsort
SELECT DISTINCT + 64 * - - 49 * + 92 AS col0
----
288512

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT - COUNT( * ) - + 57 col2
----
-58

skipif mysql # not compatible
query I rowsort label-7853
SELECT - COUNT ( * ) - + 57 col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT + ( - + 70 ) + + COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-7854
SELECT + ( - + 70 ) + + COUNT ( * ) AS col1
----
-69

query I rowsort
SELECT + 88 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ALL - MAX( DISTINCT + 42 ) + + 97 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL - MAX ( DISTINCT + 42 ) + + 97 AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7857
SELECT - ( ( - 97 ) ) * - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT - ( ( - 97 ) ) * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 92 * - 9
----
828

query I rowsort
SELECT - COALESCE ( - - 54, - 32 ) AS col0
----
-54

query I rowsort
SELECT 76 + - - 22
----
98

query I rowsort
SELECT - ( + + 43 ) * + 82 col2
----
-3526

query I rowsort
SELECT ALL + 40 * 9 * + - 37 AS col1
----
-13320

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT COALESCE ( 17, + - 89 * 47 * 56 + - - 43 * + 82 + - 54 + - CASE + 60 WHEN - 73 THEN - 78 - + 71 * + 59 + + 94 ELSE NULL END - - + SUM( + - ( - ( + NULLIF ( 41, - + 21 ) ) ) ) )
----
17

skipif mysql # not compatible
query I rowsort label-7863
SELECT COALESCE ( 17, + - 89 * 47 * 56 + - - 43 * + 82 + - 54 + - CASE + 60 WHEN - 73 THEN - 78 - + 71 * + 59 + + 94 ELSE NULL END - - + SUM ( + - ( - ( + NULLIF ( 41, - + 21 ) ) ) ) )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT - - 72 * - 57 * 98 * + SUM( - 57 ) * + COUNT( * ) + - 91
----
22924853

skipif mysql # not compatible
query I rowsort label-7864
SELECT - - 72 * - 57 * 98 * + SUM ( - 57 ) * + COUNT ( * ) + - 91
----
22924853

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT 42 * COUNT( DISTINCT + 95 ) + + + COUNT( * ) + + 55 + + 71 + + ( 80 ) + 79 * 36
----
3093

skipif mysql # not compatible
query I rowsort label-7865
SELECT 42 * COUNT ( DISTINCT + 95 ) + + + COUNT ( * ) + + 55 + + 71 + + ( 80 ) + 79 * 36
----
3093

onlyif mysql # aggregate syntax: 
query II rowsort label-7866
SELECT + MAX( DISTINCT + 79 ), + 86 AS col0
----
79
86

skipif mysql # not compatible
query II rowsort label-7866
SELECT + MAX ( DISTINCT + 79 ), + 86 AS col0
----
79
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7867
SELECT DISTINCT - 66 + + 80 * + 24 AS col1, - 51 DIV COUNT( * ) AS col2
----
1854
-51

skipif mysql # not compatible
query II rowsort label-7867
SELECT DISTINCT - 66 + + 80 * + 24 AS col1, - 51 / COUNT ( * ) AS col2
----
1854
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7868
SELECT ALL - - 22 + + - NULLIF ( - COUNT( * ), + 32 * + + COUNT( DISTINCT - + 94 ) + 85 + - 1 * - + CASE ( - AVG ( ALL 93 ) ) WHEN - - 65 * - + 52 THEN NULL WHEN - CASE 72 WHEN - 15 THEN - 2 * - 58 ELSE - 11 END / - 43 - + + CAST( - 5 AS SIGNED ) * - - NULLIF ( + + 30, + 39 - + + COUNT( * ) ) THEN NULL ELSE - COUNT( * ) END + - 91 + - + ( ( - 14 ) ) - + + 95 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL - - 22 + + - NULLIF ( - COUNT ( * ), + 32 * + + COUNT ( DISTINCT - + 94 ) + 85 + - 1 * - + CASE ( - AVG ( ALL 93 ) ) WHEN - - 65 * - + 52 THEN NULL WHEN - CASE 72 WHEN - 15 THEN - 2 * - 58 ELSE - 11 END / - 43 - + + CAST ( - 5 AS INTEGER ) * - - NULLIF ( + + 30, + 39 - + + COUNT ( * ) ) THEN NULL ELSE - COUNT ( * ) END + - 91 + - + ( ( - 14 ) ) - + + 95 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ( - 23 ) * + COUNT( * ) + - COUNT( * ) + 13
----
-11

skipif mysql # not compatible
query I rowsort label-7869
SELECT ( - 23 ) * + COUNT ( * ) + - COUNT ( * ) + 13
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7870
SELECT ALL - 22 + 2 AS col1, + COUNT( * ) * CAST( - - 27 AS SIGNED ) AS col2
----
-20
27

skipif mysql # not compatible
query II rowsort label-7870
SELECT ALL - 22 + 2 AS col1, + COUNT ( * ) * CAST ( - - 27 AS INTEGER ) AS col2
----
-20
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7871
SELECT - 26 * - - 87 + - + 54 + - 52 * + 97 + + COUNT( * ) DIV + - 35 + 81 AS col1
----
-7279

skipif mysql # not compatible
query I rowsort label-7871
SELECT - 26 * - - 87 + - + 54 + - 52 * + 97 + + COUNT ( * ) / + - 35 + 81 AS col1
----
-7279

query I rowsort
SELECT 1 + + 26 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7873
SELECT - 6 col0, MIN( ALL 98 ) * - CASE NULLIF ( - - 36, + + ( + 67 ) ) WHEN - 65 THEN CAST( 95 AS SIGNED ) END * 14 + - - 10 AS col1
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-7873
SELECT - 6 col0, MIN ( ALL 98 ) * - CASE NULLIF ( - - 36, + + ( + 67 ) ) WHEN - 65 THEN CAST ( 95 AS INTEGER ) END * 14 + - - 10 AS col1
----
-6
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7874
SELECT ALL 7, - ( + 18 ) * 47 DIV + MIN( 61 ) - + 23 AS col0
----
7
-36

skipif mysql # not compatible
query II rowsort label-7874
SELECT ALL 7, - ( + 18 ) * 47 / + MIN ( 61 ) - + 23 AS col0
----
7
-36

query I rowsort
SELECT ALL 24 + 8
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT NULLIF ( - COUNT( * ), + - 90 ) + + 82 + - 83
----
-2

skipif mysql # not compatible
query I rowsort label-7876
SELECT NULLIF ( - COUNT ( * ), + - 90 ) + + 82 + - 83
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7877
SELECT 87 - COUNT( ALL - - 88 ) + + + COUNT( * ) AS col0, - 12 * + - 4 + 25 + + - 56 + + - 99 + - ( CAST( NULL AS SIGNED ) ) - - COALESCE ( 41, + 3 )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-7877
SELECT 87 - COUNT ( ALL - - 88 ) + + + COUNT ( * ) AS col0, - 12 * + - 4 + 25 + + - 56 + + - 99 + - ( CAST ( NULL AS INTEGER ) ) - - COALESCE ( 41, + 3 )
----
87
NULL

query I rowsort
SELECT ( 12 ) + + 2 AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7879
SELECT 96 + + - 16 DIV - 57 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-7879
SELECT 96 + + - 16 / - 57 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT ( - 86 ) * + + COUNT( * ) + - + 47
----
-133

skipif mysql # not compatible
query I rowsort label-7880
SELECT ( - 86 ) * + + COUNT ( * ) + - + 47
----
-133

query I rowsort
SELECT DISTINCT 23 - - 62 + 30
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-7882
SELECT 9, COUNT( * ) AS col2
----
9
1

skipif mysql # not compatible
query II rowsort label-7882
SELECT 9, COUNT ( * ) AS col2
----
9
1

query II rowsort
SELECT ALL 81, + 20 AS col1
----
81
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT 92 * + - 21 * COUNT( - - 29 )
----
-1932

skipif mysql # not compatible
query I rowsort label-7884
SELECT 92 * + - 21 * COUNT ( - - 29 )
----
-1932

query I rowsort
SELECT 96 + - 55 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7886
SELECT COUNT( * ) / COUNT( * ) / COUNT( * ) * CASE + + 2 WHEN - 18 THEN - - CASE 74 WHEN - ( - 77 ) THEN + ( + 85 ) ELSE + 33 END + - 24 WHEN + 7 - - CASE 98 WHEN + 36 + - 71 - - COUNT( * ) + - - 40 THEN 33 END THEN 83 WHEN 67 THEN NULL END * + CASE CAST( - + 95 AS SIGNED ) WHEN + 20 THEN + - 94 WHEN 73 + + 31 THEN - - 72 * - - CAST( NULL AS DECIMAL ) ELSE 16 / + - 83 + + 4 + + + 33 * - ( CASE + 82 WHEN - 10 + 56 THEN 40 ELSE - 82 * - 88 + - 82 + + CAST( NULL AS SIGNED ) + + + MAX( ALL 16 ) / COUNT( * ) + + 33 END ) / - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT COUNT ( * ) / COUNT ( * ) / COUNT ( * ) * CASE + + 2 WHEN - 18 THEN - - CASE 74 WHEN - ( - 77 ) THEN + ( + 85 ) ELSE + 33 END + - 24 WHEN + 7 - - CASE 98 WHEN + 36 + - 71 - - COUNT ( * ) + - - 40 THEN 33 END THEN 83 WHEN 67 THEN NULL END * + CASE CAST ( - + 95 AS INTEGER ) WHEN + 20 THEN + - 94 WHEN 73 + + 31 THEN - - 72 * - - CAST ( NULL AS REAL ) ELSE 16 / + - 83 + + 4 + + + 33 * - ( CASE + 82 WHEN - 10 + 56 THEN 40 ELSE - 82 * - 88 + - 82 + + CAST ( NULL AS INTEGER ) + + + MAX ( ALL 16 ) / COUNT ( * ) + + 33 END ) / - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT 82 + - 91
----
-9

query I rowsort
SELECT DISTINCT + 16 * - 51
----
-816

onlyif mysql # aggregate syntax: 
query III rowsort label-7889
SELECT ALL 47 AS col1, + 45 * 39 + + - 45 AS col2, - COUNT( * )
----
47
1710
-1

skipif mysql # not compatible
query III rowsort label-7889
SELECT ALL 47 AS col1, + 45 * 39 + + - 45 AS col2, - COUNT ( * )
----
47
1710
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7890
SELECT DISTINCT 75 DIV 1 DIV 95, - 10 AS col1
----
0
-10

skipif mysql # not compatible
query II rowsort label-7890
SELECT DISTINCT 75 / 1 / 95, - 10 AS col1
----
0
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT 1 DIV + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7891
SELECT 1 / + 31 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7892
SELECT DISTINCT 55, CAST( + COUNT( * ) AS SIGNED ) * + 89 col0
----
55
89

skipif mysql # not compatible
query II rowsort label-7892
SELECT DISTINCT 55, CAST ( + COUNT ( * ) AS INTEGER ) * + 89 col0
----
55
89

query I rowsort
SELECT - 53 + - + 26 AS col2
----
-79

query I rowsort
SELECT ALL - + 27 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-7895
SELECT 13 AS col2, 53 - ( + COUNT( * ) ) AS col1
----
13
52

skipif mysql # not compatible
query II rowsort label-7895
SELECT 13 AS col2, 53 - ( + COUNT ( * ) ) AS col1
----
13
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7896
SELECT ALL + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) + - - 20 - - 89 + + + 53 / CASE + + 39 WHEN - COALESCE ( + - 44, - 5 ) * - 96 * + 61 THEN NULL ELSE - + 50 * NULLIF ( - 75, - 28 * + 69 * + 54 + + - NULLIF ( + COALESCE ( + - 16, - - 78, + 77 - - 36 ), - NULLIF ( + 27, 13 / ( - 23 ) ) * + 71 - + + 81 + CAST( NULL AS SIGNED ) ) + + + 20 ) * + + 22 END + + AVG ( DISTINCT - 57 ) + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + - - 20 - - 89 + + + 53 / CASE + + 39 WHEN - COALESCE ( + - 44, - 5 ) * - 96 * + 61 THEN NULL ELSE - + 50 * NULLIF ( - 75, - 28 * + 69 * + 54 + + - NULLIF ( + COALESCE ( + - 16, - - 78, + 77 - - 36 ), - NULLIF ( + 27, 13 / ( - 23 ) ) * + 71 - + + 81 + CAST ( NULL AS INTEGER ) ) + + + 20 ) * + + 22 END + + AVG ( DISTINCT - 57 ) + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT DISTINCT - COALESCE ( - - COUNT( * ), - - 11 * - + 5 * + + 64 ) + 73 + + 4 * + + 25 AS col0
----
172

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT - COALESCE ( - - COUNT ( * ), - - 11 * - + 5 * + + 64 ) + 73 + + 4 * + + 25 AS col0
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7898
SELECT - 53 DIV + - 85 - + 92 + - MAX( - 40 ) + 18 + - 21
----
-55

skipif mysql # not compatible
query I rowsort label-7898
SELECT - 53 / + - 85 - + 92 + - MAX ( - 40 ) + 18 + - 21
----
-55

query I rowsort
SELECT + 46 * 67 AS col1
----
3082

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7900
SELECT DISTINCT - + 3 + + + 61 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT - + 3 + + + 61 + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7901
SELECT + - CASE + - 28 WHEN 6 * 94 THEN + - 79 * + 21 + + - 91 + - - 21 WHEN + CAST( - - 5 AS SIGNED ) THEN 28 * + 79 ELSE - 55 * - COALESCE ( - 68, - COUNT( * ), - 32 + + 34 ) END AS col2, + 11 AS col0
----
3740
11

skipif mysql # not compatible
query II rowsort label-7901
SELECT + - CASE + - 28 WHEN 6 * 94 THEN + - 79 * + 21 + + - 91 + - - 21 WHEN + CAST ( - - 5 AS INTEGER ) THEN 28 * + 79 ELSE - 55 * - COALESCE ( - 68, - COUNT ( * ), - 32 + + 34 ) END AS col2, + 11 AS col0
----
3740
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7902
SELECT ALL - COALESCE ( - 95, + 76 * - 73 ) + - 87 - + - 14 AS col0, - 5 * COUNT( * )
----
22
-5

skipif mysql # not compatible
query II rowsort label-7902
SELECT ALL - COALESCE ( - 95, + 76 * - 73 ) + - 87 - + - 14 AS col0, - 5 * COUNT ( * )
----
22
-5

query I rowsort
SELECT ( + 96 ) * + 80 + 71 + - 46
----
7705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7904
SELECT DISTINCT - CAST( 42 AS SIGNED ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT - CAST ( 42 AS INTEGER ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT DISTINCT + 35 * COALESCE ( - + COUNT( ALL - + 86 ), 32 + - + 94 )
----
-35

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT + 35 * COALESCE ( - + COUNT ( ALL - + 86 ), 32 + - + 94 )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-7906
SELECT + + 70, - 97 * + - 8 * NULLIF ( + COUNT( * ), + + COUNT( * ) ) + + 30 AS col1
----
70
NULL

skipif mysql # not compatible
query II rowsort label-7906
SELECT + + 70, - 97 * + - 8 * NULLIF ( + COUNT ( * ), + + COUNT ( * ) ) + + 30 AS col1
----
70
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7907
SELECT COUNT( * ) DIV 76 - + ( - 55 ) DIV - - 41 - 23 * + 12 - + + 96 - COUNT( * ) * + 56
----
-427

skipif mysql # not compatible
query I rowsort label-7907
SELECT COUNT ( * ) / 76 - + ( - 55 ) / - - 41 - 23 * + 12 - + + 96 - COUNT ( * ) * + 56
----
-427

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT + 74 * + 73 + + COALESCE ( + - ( 69 ), 23 - - 25 DIV + 91 * + + 21 + 54 ) col1
----
5333

skipif mysql # not compatible
query I rowsort label-7908
SELECT + 74 * + 73 + + COALESCE ( + - ( 69 ), 23 - - 25 / + 91 * + + 21 + 54 ) col1
----
5333

query I rowsort
SELECT + 68 * 44 + 16 * + NULLIF ( - 76, - + 59 )
----
1776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7910
SELECT DISTINCT 12 DIV ( - - SUM( ALL + 68 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT 12 / ( - - SUM ( ALL + 68 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7911
SELECT DISTINCT 41 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT 41 / - 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT DISTINCT COUNT( * ) * 49
----
49

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT COUNT ( * ) * 49
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7913
SELECT + NULLIF ( + COUNT( * ), + 8 * + + CAST( NULL AS SIGNED ) - 57 + + COUNT( * ) + 62 * + 76 + + COUNT( * ) / COALESCE ( + COUNT( * ), + COUNT( * ) * + + 58 / - 60 + AVG ( DISTINCT - + 64 ) - + 66 - 20 * + - 76 - + 18, CAST( NULL AS SIGNED ) ) ) * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT + NULLIF ( + COUNT ( * ), + 8 * + + CAST ( NULL AS INTEGER ) - 57 + + COUNT ( * ) + 62 * + 76 + + COUNT ( * ) / COALESCE ( + COUNT ( * ), + COUNT ( * ) * + + 58 / - 60 + AVG ( DISTINCT - + 64 ) - + 66 - 20 * + - 76 - + 18, CAST ( NULL AS INTEGER ) ) ) * CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + 47 * + - 36 AS col2
----
-1692

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT - SUM( ALL - - 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-7915
SELECT - SUM ( ALL - - 81 ) AS col1
----
-81

query II rowsort
SELECT - 40 + + 8 + - CASE 12 WHEN 86 * 91 THEN NULL WHEN 21 THEN + + 72 / - 31 ELSE NULL END, - 7 AS col1
----
NULL
-7

query II rowsort
SELECT ALL NULLIF ( + 64, + 68 ) * - 65 AS col0, 80
----
-4160
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7918
SELECT + CAST( NULL AS DECIMAL ) * + MAX( + 31 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT + CAST ( NULL AS REAL ) * + MAX ( + 31 ) AS col1
----
NULL

query I rowsort
SELECT - 16 + 96 col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT DISTINCT COUNT( * ) * - 85 * - 6
----
510

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT COUNT ( * ) * - 85 * - 6
----
510

query I rowsort
SELECT + 63 - + 87 AS col1
----
-24

query I rowsort
SELECT DISTINCT 28 + 28 * - - 23 AS col2
----
672

query II rowsort
SELECT - 42 - + 94 AS col1, 52
----
-136
52

query I rowsort
SELECT NULLIF ( - 67, + 25 * - + ( + 20 ) + - 70 )
----
-67

query I rowsort
SELECT ALL - 82 + 34
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-7926
SELECT + COALESCE ( + + COUNT( * ), + 51 + 55 ) AS col1, 20 * - 13 * - 92
----
1
23920

skipif mysql # not compatible
query II rowsort label-7926
SELECT + COALESCE ( + + COUNT ( * ), + 51 + 55 ) AS col1, 20 * - 13 * - 92
----
1
23920

onlyif mysql # DIV for integer division: 
query I rowsort label-7927
SELECT + ( + - 77 ) DIV 1 * - 74 + - 78 * - ( - + ( + - 11 ) ) * - 18 * - 34 * + 62 - - - 31
----
32561619

skipif mysql # not compatible
query I rowsort label-7927
SELECT + ( + - 77 ) / 1 * - 74 + - 78 * - ( - + ( + - 11 ) ) * - 18 * - 34 * + 62 - - - 31
----
32561619

onlyif mysql # aggregate syntax: 
query II rowsort label-7928
SELECT ALL - - COUNT( * ) * 93 AS col0, ( + 27 ) * + + ( + 60 ) AS col2
----
93
1620

skipif mysql # not compatible
query II rowsort label-7928
SELECT ALL - - COUNT ( * ) * 93 AS col0, ( + 27 ) * + + ( + 60 ) AS col2
----
93
1620

onlyif mysql # aggregate syntax: 
query II rowsort label-7929
SELECT COUNT( ALL 42 ) AS col0, + 11
----
1
11

skipif mysql # not compatible
query II rowsort label-7929
SELECT COUNT ( ALL 42 ) AS col0, + 11
----
1
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7930
SELECT - 0 DIV 51 DIV + 27
----
0

skipif mysql # not compatible
query I rowsort label-7930
SELECT - 0 / 51 / + 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT DISTINCT 9 * 38 * - COUNT( * ) AS col1
----
-342

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT 9 * 38 * - COUNT ( * ) AS col1
----
-342

query II rowsort
SELECT COALESCE ( - 78, + - 30, - 96 ), 40 AS col2
----
-78
40

query I rowsort
SELECT ALL - - 51 * + + 70
----
3570

query I rowsort
SELECT DISTINCT + 39 * - + 45
----
-1755

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL - - 65 * - + 51 + - COUNT( 10 ) AS col2
----
-3316

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL - - 65 * - + 51 + - COUNT ( 10 ) AS col2
----
-3316

query I rowsort
SELECT - + 0 + + 4
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7937
SELECT 25 * CAST( NULL AS SIGNED ) + COUNT( * ) + 89 * + 11 * 4 - ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7937
SELECT 25 * CAST ( NULL AS INTEGER ) + COUNT ( * ) + 89 * + 11 * 4 - ( COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT - 55 * + 18 + + 56 + CAST( NULL AS SIGNED ) + + - 18 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT - 55 * + 18 + + 56 + CAST ( NULL AS INTEGER ) + + - 18 col0
----
NULL

query I rowsort
SELECT - 56 * + 44 col1
----
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT - SUM( ALL + + 5 ) + NULLIF ( + 76, - 80 + - ( + 24 ) * 76 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7940
SELECT - SUM ( ALL + + 5 ) + NULLIF ( + 76, - 80 + - ( + 24 ) * 76 ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7941
SELECT ALL + COUNT( + - CAST( 48 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL + COUNT ( + - CAST ( 48 AS INTEGER ) )
----
1

query I rowsort
SELECT ALL 71 * + 6
----
426

onlyif mysql # aggregate syntax: 
query III rowsort label-7943
SELECT ALL + 12 AS col1, - 58 * + 2 AS col2, + + 49 + - - COUNT( * )
----
12
-116
50

skipif mysql # not compatible
query III rowsort label-7943
SELECT ALL + 12 AS col1, - 58 * + 2 AS col2, + + 49 + - - COUNT ( * )
----
12
-116
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT DISTINCT - 51 * + SUM( - - 15 )
----
-765

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT - 51 * + SUM ( - - 15 )
----
-765

query I rowsort
SELECT DISTINCT + ( + 6 ) AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7946
SELECT - 41 + CAST( 69 AS SIGNED ) DIV 45
----
-40

skipif mysql # not compatible
query I rowsort label-7946
SELECT - 41 + CAST ( 69 AS INTEGER ) / 45
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7947
SELECT + 47 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7947
SELECT + 47 / + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( - - 93 ) + - 37 + - + 30
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7949
SELECT CAST( - 98 AS SIGNED ) * - + 55 + + 30
----
5420

skipif mysql # not compatible
query I rowsort label-7949
SELECT CAST ( - 98 AS INTEGER ) * - + 55 + + 30
----
5420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7950
SELECT + 99 + + + CAST( - + 70 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-7950
SELECT + 99 + + + CAST ( - + 70 AS INTEGER )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT + COUNT( * ) / - - CASE + + 75 WHEN - 13 THEN NULL WHEN - COALESCE ( + 21, - + 7 * - ( - 25 ) * + 76 * 30 + 52 * MIN( + 95 ) ) - - 76 THEN + ( + + 72 ) END * 82 - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT + COUNT ( * ) / - - CASE + + 75 WHEN - 13 THEN NULL WHEN - COALESCE ( + 21, - + 7 * - ( - 25 ) * + 76 * 30 + 52 * MIN ( + 95 ) ) - - 76 THEN + ( + + 72 ) END * 82 - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 23 + - 50 * - - 44 AS col0
----
-2177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT ALL CAST( + 26 AS SIGNED ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL CAST ( + 26 AS INTEGER ) AS col0
----
26

query I rowsort
SELECT + 63 + - - 40
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-7955
SELECT ALL 69 DIV - + 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL 69 / - + 57 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT DISTINCT 87 + + - CASE - 92 WHEN 89 + - CAST( NULL AS SIGNED ) THEN NULL WHEN - 16 THEN + 47 END + - 57 / + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT 87 + + - CASE - 92 WHEN 89 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 16 THEN + 47 END + - 57 / + 6 AS col2
----
NULL

query I rowsort
SELECT + 57 * + - 2
----
-114

query I rowsort
SELECT ALL 63 + + 45 AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ALL COUNT( * ) + 45 * - 50 AS col2
----
-2249

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL COUNT ( * ) + 45 * - 50 AS col2
----
-2249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7960
SELECT - CAST( - COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7960
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT + 45 + COALESCE ( + 37, 37 + + CASE 44 WHEN 17 / 75 THEN - 38 + COUNT( DISTINCT + 19 ) WHEN 93 + - 24 * + 73 THEN NULL ELSE NULL END * 52 )
----
82

skipif mysql # not compatible
query I rowsort label-7961
SELECT + 45 + COALESCE ( + 37, 37 + + CASE 44 WHEN 17 / 75 THEN - 38 + COUNT ( DISTINCT + 19 ) WHEN 93 + - 24 * + 73 THEN NULL ELSE NULL END * 52 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7962
SELECT ALL 15 * + COALESCE ( - 3, CAST( NULL AS SIGNED ) + + 69, 53 )
----
-45

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL 15 * + COALESCE ( - 3, CAST ( NULL AS INTEGER ) + + 69, 53 )
----
-45

query I rowsort
SELECT + 21 + - 82
----
-61

query I rowsort
SELECT - 27 * 48 AS col1
----
-1296

query I rowsort
SELECT DISTINCT 50 * + 50
----
2500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7966
SELECT ALL ( + ( MIN( ALL - 68 ) ) ) + + 95 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL ( + ( MIN ( ALL - 68 ) ) ) + + 95 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 79 * - 98
----
-7742

query I rowsort
SELECT + 91 + 90 AS col2
----
181

query I rowsort
SELECT DISTINCT NULLIF ( + 74, - 97 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT + SUM( DISTINCT + 74 ) + - 32
----
42

skipif mysql # not compatible
query I rowsort label-7970
SELECT + SUM ( DISTINCT + 74 ) + - 32
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7971
SELECT ALL + 85 DIV 86 - 54 * - ( 92 ) col0
----
4968

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL + 85 / 86 - 54 * - ( 92 ) col0
----
4968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT ALL - 36 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL - 36 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT 0 * - 40 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7973
SELECT 0 * - 40 + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7974
SELECT + 55 DIV NULLIF ( CASE + CAST( NULL AS SIGNED ) WHEN + 38 * CAST( + 68 AS SIGNED ) THEN 54 WHEN 61 + - 77 THEN + 51 ELSE 34 * 37 END, + 41 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7974
SELECT + 55 / NULLIF ( CASE + CAST ( NULL AS INTEGER ) WHEN + 38 * CAST ( + 68 AS INTEGER ) THEN 54 WHEN 61 + - 77 THEN + 51 ELSE 34 * 37 END, + 41 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7975
SELECT CAST( - 28 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-7975
SELECT CAST ( - 28 AS INTEGER )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT + 16 * CAST( NULL AS SIGNED ) + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT + 16 * CAST ( NULL AS INTEGER ) + 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT ALL + NULLIF ( ( + 59 ), CASE - 84 WHEN + COUNT( * ) THEN NULL ELSE + 82 END )
----
59

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL + NULLIF ( ( + 59 ), CASE - 84 WHEN + COUNT ( * ) THEN NULL ELSE + 82 END )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT CAST( AVG ( DISTINCT 52 ) AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-7978
SELECT CAST ( AVG ( DISTINCT 52 ) AS INTEGER )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT - COUNT( * ) + - 7
----
-8

skipif mysql # not compatible
query I rowsort label-7979
SELECT - COUNT ( * ) + - 7
----
-8

query I rowsort
SELECT + 25 * - 40 AS col1
----
-1000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7981
SELECT ALL - MIN( + 16 ) * SUM( CAST( 45 AS SIGNED ) + 95 )
----
-2240

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL - MIN ( + 16 ) * SUM ( CAST ( 45 AS INTEGER ) + 95 )
----
-2240

query I rowsort
SELECT - 1 * 76 AS col0
----
-76

query I rowsort
SELECT ALL 66 * 35
----
2310

query I rowsort
SELECT + 56 col1
----
56

query I rowsort
SELECT DISTINCT + 19 * 46 col0
----
874

query I rowsort
SELECT ALL - 65 * - 33
----
2145

query I rowsort
SELECT 93 * + 99 AS col0
----
9207

query I rowsort
SELECT 96 * 81
----
7776

query I rowsort
SELECT 5 * ( - 77 * + 4 )
----
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT COUNT( * ) + 30 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7990
SELECT COUNT ( * ) + 30 AS col0
----
31

query I rowsort
SELECT 95 * + 40 AS col1
----
3800

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7992
SELECT ALL - NULLIF ( 2, CAST( NULL AS DECIMAL ) + - COUNT( * ) ) + ( MIN( 56 ) - 9 )
----
45

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL - NULLIF ( 2, CAST ( NULL AS REAL ) + - COUNT ( * ) ) + ( MIN ( 56 ) - 9 )
----
45

query I rowsort
SELECT ALL + 75 + 64 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT DISTINCT COUNT( * ) + 84 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT COUNT ( * ) + 84 AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7995
SELECT DISTINCT + CASE + COUNT( * ) WHEN 19 THEN NULL WHEN CAST( 95 AS DECIMAL ) / ( 75 * 16 - - MIN( - 72 ) ) THEN NULL ELSE + ( + 53 ) END + 40 * + 48 AS col2
----
1973

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT + CASE + COUNT ( * ) WHEN 19 THEN NULL WHEN CAST ( 95 AS REAL ) / ( 75 * 16 - - MIN ( - 72 ) ) THEN NULL ELSE + ( + 53 ) END + 40 * + 48 AS col2
----
1973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7996
SELECT ALL - 3 + CASE WHEN NOT NULL = CASE - 96 WHEN NULLIF ( + 29, + CAST( NULL AS SIGNED ) ) * ( - 77 ) + 15 * + 85 THEN - 37 WHEN COUNT( * ) - - 30 * 74 THEN NULL END THEN 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL - 3 + CASE WHEN NOT NULL = CASE - 96 WHEN NULLIF ( + 29, + CAST ( NULL AS INTEGER ) ) * ( - 77 ) + 15 * + 85 THEN - 37 WHEN COUNT ( * ) - - 30 * 74 THEN NULL END THEN 29 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7997
SELECT 1 - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT 1 - + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 11 + 76
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT DISTINCT - NULLIF ( - 74, 79 / + 31 + 68 * - COALESCE ( 64 * + MIN( - 33 ), 23 * + 11, 90 ) ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT - NULLIF ( - 74, 79 / + 31 + 68 * - COALESCE ( 64 * + MIN ( - 33 ), 23 * + 11, 90 ) ) AS col2
----
74

query I rowsort
SELECT ALL - 99 + 7
----
-92

query I rowsort
SELECT ALL 43 + + 58
----
101

query I rowsort
SELECT 66 * 41 col1
----
2706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8003
SELECT + CAST( NULL AS SIGNED ) / - ( CASE + 0 WHEN 36 * 61 THEN NULL WHEN 84 * 25 THEN NULL ELSE + COUNT( * ) + + 90 * + 36 END * 4 + 54 * 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT + CAST ( NULL AS INTEGER ) / - ( CASE + 0 WHEN 36 * 61 THEN NULL WHEN 84 * 25 THEN NULL ELSE + COUNT ( * ) + + 90 * + 36 END * 4 + 54 * 95 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT NULLIF ( - COUNT( * ), SUM( DISTINCT + ( - 25 ) ) * COUNT( * ) ) - + ( 97 )
----
-98

skipif mysql # not compatible
query I rowsort label-8004
SELECT NULLIF ( - COUNT ( * ), SUM ( DISTINCT + ( - 25 ) ) * COUNT ( * ) ) - + ( 97 )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8005
SELECT DISTINCT + 97 DIV COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT + 97 / COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT ALL COUNT( * ) - 0
----
1

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL COUNT ( * ) - 0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8007
SELECT ALL + 80 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL + 80 / + 95 AS col0
----
0

query I rowsort
SELECT - ( + 94 ) * 59 AS col0
----
-5546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8009
SELECT NULLIF ( - 35, + 20 - + COALESCE ( 18, CASE CAST( + 10 AS SIGNED ) WHEN COUNT( * ) - 41 THEN NULL WHEN + 70 * + 92 THEN + 82 ELSE + 68 END ) )
----
-35

skipif mysql # not compatible
query I rowsort label-8009
SELECT NULLIF ( - 35, + 20 - + COALESCE ( 18, CASE CAST ( + 10 AS INTEGER ) WHEN COUNT ( * ) - 41 THEN NULL WHEN + 70 * + 92 THEN + 82 ELSE + 68 END ) )
----
-35

query I rowsort
SELECT 91 * - 33
----
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT - SUM( DISTINCT 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-8011
SELECT - SUM ( DISTINCT 87 )
----
-87

query I rowsort
SELECT DISTINCT - 56 * 55 AS col0
----
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT 14 * COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-8013
SELECT 14 * COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL - COALESCE ( 71, COUNT( * ) * + COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL - COALESCE ( 71, COUNT ( * ) * + COUNT ( * ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT + COUNT( * ) - 61
----
-60

skipif mysql # not compatible
query I rowsort label-8015
SELECT + COUNT ( * ) - 61
----
-60

query I rowsort
SELECT DISTINCT 16 * - 97 AS col2
----
-1552

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT 67 + + ( + COUNT( * ) ) + 73 * 85
----
6273

skipif mysql # not compatible
query I rowsort label-8017
SELECT 67 + + ( + COUNT ( * ) ) + 73 * 85
----
6273

query I rowsort
SELECT 5 * - 74
----
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT + 30 * MAX( DISTINCT 20 ) + + 6 * - 97 col2
----
18

skipif mysql # not compatible
query I rowsort label-8019
SELECT + 30 * MAX ( DISTINCT 20 ) + + 6 * - 97 col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8020
SELECT CAST( NULL AS SIGNED ) / - - 80 * - COUNT( + 44 ) + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8020
SELECT CAST ( NULL AS INTEGER ) / - - 80 * - COUNT ( + 44 ) + 58
----
NULL

query I rowsort
SELECT ( + 10 ) + + 47
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8022
SELECT ALL COUNT( DISTINCT CAST( NULL AS SIGNED ) ) DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) / 84
----
0

query I rowsort
SELECT ALL 52 + + 95
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT DISTINCT COUNT( * ) + - + 37 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT COUNT ( * ) + - + 37 AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8025
SELECT ALL + COUNT( * ) + - SUM( + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL + COUNT ( * ) + - SUM ( + CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT - 91 * 93 + - 99
----
-8562

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT ALL COALESCE ( 58, 14 ) + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL COALESCE ( 58, 14 ) + COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT DISTINCT - 17 * + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT - 17 * + COUNT ( * )
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT 30 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT 30 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 50 col0
----
50

query I rowsort
SELECT 20 * - - 7 * - 18
----
-2520

query I rowsort
SELECT 56 + 8
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT - - COUNT( - 26 )
----
1

skipif mysql # not compatible
query I rowsort label-8033
SELECT - - COUNT ( - 26 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8034
SELECT ALL CAST( - - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8035
SELECT ALL - + 36 - + - NULLIF ( CASE - ( 73 ) WHEN ( - 0 ) THEN NULL WHEN 82 * + COUNT( * ) THEN ( - 84 ) ELSE - 41 * + CAST( COUNT( * ) AS SIGNED ) END, COUNT( * ) ) * 26
----
-1102

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL - + 36 - + - NULLIF ( CASE - ( 73 ) WHEN ( - 0 ) THEN NULL WHEN 82 * + COUNT ( * ) THEN ( - 84 ) ELSE - 41 * + CAST ( COUNT ( * ) AS INTEGER ) END, COUNT ( * ) ) * 26
----
-1102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8036
SELECT DISTINCT COALESCE ( ( 46 ), CAST( AVG ( 8 ) AS SIGNED ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT COALESCE ( ( 46 ), CAST ( AVG ( 8 ) AS INTEGER ) ) AS col1
----
46

query I rowsort
SELECT DISTINCT - 43 - 33 + 38 * ( + 28 )
----
988

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL + + COUNT( * ) * + + 30
----
30

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + + COUNT ( * ) * + + 30
----
30

query I rowsort
SELECT DISTINCT ( 8 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8040
SELECT 26 + + 22 + 18 DIV ( 10 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-8040
SELECT 26 + + 22 + 18 / ( 10 ) AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8041
SELECT DISTINCT + CAST( 71 AS SIGNED ) * + SUM( ALL 49 + 50 ) AS col2
----
7029

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT + CAST ( 71 AS INTEGER ) * + SUM ( ALL 49 + 50 ) AS col2
----
7029

query I rowsort
SELECT + 72 + - 46
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT 60 * - + MIN( ALL + 54 ) * - 12 col2
----
38880

skipif mysql # not compatible
query I rowsort label-8043
SELECT 60 * - + MIN ( ALL + 54 ) * - 12 col2
----
38880

query I rowsort
SELECT - 46 * - 58 + ( - 65 )
----
2603

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT ALL + - 31 * COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL + - 31 * COUNT ( * )
----
-31

query I rowsort
SELECT + 55 - 92
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8047
SELECT COUNT( * ) + COUNT( * ) * CAST( 34 * 55 - - COUNT( * ) / 21 AS SIGNED ) col0
----
1871

skipif mysql # not compatible
query I rowsort label-8047
SELECT COUNT ( * ) + COUNT ( * ) * CAST ( 34 * 55 - - COUNT ( * ) / 21 AS INTEGER ) col0
----
1871

query I rowsort
SELECT ALL ( - - 34 )
----
34

query I rowsort
SELECT + 13 * - 64
----
-832

query I rowsort
SELECT - 22 + + - 97
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT NULLIF ( 71, SUM( ALL + 16 ) * + 5 + 46 * - 8 ) * ( + SUM( ALL 66 ) + 75 ) AS col2
----
10011

skipif mysql # not compatible
query I rowsort label-8051
SELECT NULLIF ( 71, SUM ( ALL + 16 ) * + 5 + 46 * - 8 ) * ( + SUM ( ALL 66 ) + 75 ) AS col2
----
10011

query I rowsort
SELECT ALL + ( + 90 ) col1
----
90

query I rowsort
SELECT 60 + 31 - - 48
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ALL 79 * - CASE 67 WHEN - 76 THEN - CASE 97 WHEN 63 THEN NULL ELSE 84 + COUNT( * ) END + MAX( ( + 57 ) ) WHEN 32 * - COALESCE ( 59, 64, 84 + - 18 ) THEN 49 WHEN COUNT( * ) + - COUNT( 21 ) * 47 THEN + COUNT( * ) ELSE + 77 * 57 END
----
-346731

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL 79 * - CASE 67 WHEN - 76 THEN - CASE 97 WHEN 63 THEN NULL ELSE 84 + COUNT ( * ) END + MAX ( ( + 57 ) ) WHEN 32 * - COALESCE ( 59, 64, 84 + - 18 ) THEN 49 WHEN COUNT ( * ) + - COUNT ( 21 ) * 47 THEN + COUNT ( * ) ELSE + 77 * 57 END
----
-346731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8055
SELECT + 49 + + 83 * CAST( - 12 AS SIGNED ) col1
----
-947

skipif mysql # not compatible
query I rowsort label-8055
SELECT + 49 + + 83 * CAST ( - 12 AS INTEGER ) col1
----
-947

onlyif mysql # DIV for integer division: 
query I rowsort label-8056
SELECT ALL + - 39 DIV 67 - + 29 * + 37
----
-1073

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL + - 39 / 67 - + 29 * + 37
----
-1073

query I rowsort
SELECT - 93 * + 48
----
-4464

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT + + 70 * - + 70 + + COUNT( * ) AS col2
----
-4899

skipif mysql # not compatible
query I rowsort label-8058
SELECT + + 70 * - + 70 + + COUNT ( * ) AS col2
----
-4899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8059
SELECT CASE - + 21 WHEN - 40 - COALESCE ( COUNT( 62 ), - NULLIF ( + 93, 47 ) ) THEN NULL ELSE 16 * + CAST( 91 AS SIGNED ) END
----
1456

skipif mysql # not compatible
query I rowsort label-8059
SELECT CASE - + 21 WHEN - 40 - COALESCE ( COUNT ( 62 ), - NULLIF ( + 93, 47 ) ) THEN NULL ELSE 16 * + CAST ( 91 AS INTEGER ) END
----
1456

query I rowsort
SELECT NULLIF ( - + 42, 53 + 75 ) col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8061
SELECT 2 DIV + + 40 + + 17 - SUM( ( + 59 ) + + 33 ) * MIN( + 81 ) * - 31
----
231029

skipif mysql # not compatible
query I rowsort label-8061
SELECT 2 / + + 40 + + 17 - SUM ( ( + 59 ) + + 33 ) * MIN ( + 81 ) * - 31
----
231029

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT CASE + + COUNT( * ) WHEN 55 THEN - COUNT( * ) WHEN 17 / MAX( 94 * 14 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT CASE + + COUNT ( * ) WHEN 55 THEN - COUNT ( * ) WHEN 17 / MAX ( 94 * 14 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + CASE - NULLIF ( - ( 92 ), + 33 ) WHEN + 96 * AVG ( ALL + 75 ) THEN NULL WHEN - 77 * NULLIF ( - AVG ( 98 ), + 46 * 43 + - 66 * + 5 ) THEN - 19 ELSE NULL END * - 47
----
NULL

query I rowsort
SELECT + 0 + ( 76 ) - - 94 AS col1
----
170

query I rowsort
SELECT DISTINCT + 29 * 29 AS col2
----
841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8066
SELECT CASE - NULLIF ( - + COUNT( ( 44 ) ), 63 ) WHEN ( + 69 ) THEN - CASE - SUM( - 79 ) WHEN + 53 THEN 98 * + 82 ELSE NULL END WHEN + SUM( - CAST( NULL AS SIGNED ) ) + 19 THEN - 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT CASE - NULLIF ( - + COUNT ( ( 44 ) ), 63 ) WHEN ( + 69 ) THEN - CASE - SUM ( - 79 ) WHEN + 53 THEN 98 * + 82 ELSE NULL END WHEN + SUM ( - CAST ( NULL AS INTEGER ) ) + 19 THEN - 91 END
----
NULL

query I rowsort
SELECT DISTINCT 56 * 33 + 84 + + 19 * 44 AS col1
----
2768

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT ALL 25 * + 19 * + NULLIF ( 87, 63 ) * 38 + COALESCE ( - 89 + 87, + COUNT( * ) ) AS col2
----
1570348

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL 25 * + 19 * + NULLIF ( 87, 63 ) * 38 + COALESCE ( - 89 + 87, + COUNT ( * ) ) AS col2
----
1570348

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT MAX( - + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-8069
SELECT MAX ( - + 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT ALL - 12 * COUNT( 16 ) * CASE + 59 + 68 * + 70 WHEN - 88 * 8 THEN - COUNT( DISTINCT 85 ) WHEN + COUNT( * ) * 9 THEN NULL ELSE NULL END + + 41 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL - 12 * COUNT ( 16 ) * CASE + 59 + 68 * + 70 WHEN - 88 * 8 THEN - COUNT ( DISTINCT 85 ) WHEN + COUNT ( * ) * 9 THEN NULL ELSE NULL END + + 41 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT MAX( - + 25 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-8071
SELECT MAX ( - + 25 ) AS col2
----
-25

query II rowsort
SELECT DISTINCT + 63 AS col1, - 16 AS col1
----
63
-16

query I rowsort
SELECT - 50 * - 5 - - 49 + 81 AS col2
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT MIN( 76 )
----
76

skipif mysql # not compatible
query I rowsort label-8074
SELECT MIN ( 76 )
----
76

query I rowsort
SELECT + 98 * 90 * 37
----
326340

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT ALL ( - 81 ) DIV + 93 * - 34
----
0

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL ( - 81 ) / + 93 * - 34
----
0

query I rowsort
SELECT DISTINCT - + 34 * - - 22 col0
----
-748

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT ALL + + 71 * 58 + COUNT( * ) * 70 col1
----
4188

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL + + 71 * 58 + COUNT ( * ) * 70 col1
----
4188

onlyif mysql # aggregate syntax: 
query II rowsort label-8079
SELECT DISTINCT + 77 AS col0, + 3 * + MAX( DISTINCT 38 ) AS col1
----
77
114

skipif mysql # not compatible
query II rowsort label-8079
SELECT DISTINCT + 77 AS col0, + 3 * + MAX ( DISTINCT 38 ) AS col1
----
77
114

query I rowsort
SELECT ALL 64 * 77 + 55
----
4983

query I rowsort
SELECT DISTINCT + CASE - 87 WHEN + - 48 THEN + 42 WHEN + 86 THEN NULL WHEN 97 THEN AVG ( ALL + 63 ) ELSE 97 END
----
97

query I rowsort
SELECT + ( - - 12 ) * + 9 AS col2
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8083
SELECT ALL - ( + + COUNT( * ) ) * + 93 DIV + 84 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL - ( + + COUNT ( * ) ) * + 93 / + 84 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT - - 53 DIV 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8084
SELECT - - 53 / 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT + + COUNT( * ) * - COUNT( * ) + - MAX( DISTINCT 48 )
----
-49

skipif mysql # not compatible
query I rowsort label-8085
SELECT + + COUNT ( * ) * - COUNT ( * ) + - MAX ( DISTINCT 48 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT + + CASE - 50 WHEN + 44 THEN - COUNT( * ) * - ( + COUNT( * ) ) WHEN + COUNT( 12 ) THEN NULL ELSE NULL END + - 87 * 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT + + CASE - 50 WHEN + 44 THEN - COUNT ( * ) * - ( + COUNT ( * ) ) WHEN + COUNT ( 12 ) THEN NULL ELSE NULL END + - 87 * 93 AS col1
----
NULL

query I rowsort
SELECT - + 78 * + 77 AS col0
----
-6006

query I rowsort
SELECT + - 67 * - 54 + - - 8
----
3626

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT + MIN( DISTINCT 78 )
----
78

skipif mysql # not compatible
query I rowsort label-8089
SELECT + MIN ( DISTINCT 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT DISTINCT - COUNT( DISTINCT - 90 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT - COUNT ( DISTINCT - 90 ) AS col2
----
-1

query I rowsort
SELECT ALL + 62 * + 86 AS col1
----
5332

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT DISTINCT + NULLIF ( + COUNT( * ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT + NULLIF ( + COUNT ( * ), + COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + + 12 + - 33 + - 31 AS col0
----
-52

query I rowsort
SELECT - + 40 - - 29 + + - 57
----
-68

query I rowsort
SELECT ALL + 71 + + 14 AS col0
----
85

query I rowsort
SELECT DISTINCT ( + 44 )
----
44

query I rowsort
SELECT ALL + ( ( - 0 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8098
SELECT ALL COUNT( * ) DIV 43 + - - 80 + - - MAX( 1 ) + 46 * 83 * 80 AS col2
----
305521

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL COUNT ( * ) / 43 + - - 80 + - - MAX ( 1 ) + 46 * 83 * 80 AS col2
----
305521

onlyif mysql # DIV for integer division: 
query I rowsort label-8099
SELECT - 64 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-8099
SELECT - 64 / 69
----
0

query I rowsort
SELECT ALL + ( - 47 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT + 41 * + SUM( - 29 ) * - 1
----
1189

skipif mysql # not compatible
query I rowsort label-8101
SELECT + 41 * + SUM ( - 29 ) * - 1
----
1189

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT - ( - CASE COUNT( * ) WHEN - + 90 THEN 41 * - 11 + + COALESCE ( 55 + + 18, 86 - - COALESCE ( 98, 6, 53 ) ) ELSE + ( 14 ) END ) + + 41 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8102
SELECT - ( - CASE COUNT ( * ) WHEN - + 90 THEN 41 * - 11 + + COALESCE ( 55 + + 18, 86 - - COALESCE ( 98, 6, 53 ) ) ELSE + ( 14 ) END ) + + 41 AS col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8103
SELECT ALL - COUNT( * ) DIV - 5 + 69
----
69

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL - COUNT ( * ) / - 5 + 69
----
69

query I rowsort
SELECT - 29 + - 8 AS col0
----
-37

query I rowsort
SELECT - 83 * - + 40 + ( + - NULLIF ( 25, 77 * - 98 ) ) AS col1
----
3295

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT + COUNT( * ) - + 5 - + 84
----
-88

skipif mysql # not compatible
query I rowsort label-8106
SELECT + COUNT ( * ) - + 5 - + 84
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8107
SELECT ALL ( + + 39 ) * + COALESCE ( - + 81, + 42, - ( - COUNT( * ) ) DIV - 83 + CASE - CAST( + 35 AS SIGNED ) WHEN 32 * - 94 THEN NULL WHEN - 71 * 73 THEN 88 * - 68 END ) AS col1
----
-3159

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL ( + + 39 ) * + COALESCE ( - + 81, + 42, - ( - COUNT ( * ) ) / - 83 + CASE - CAST ( + 35 AS INTEGER ) WHEN 32 * - 94 THEN NULL WHEN - 71 * 73 THEN 88 * - 68 END ) AS col1
----
-3159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8108
SELECT - 81 + + 41 DIV + 46 * + + MAX( 8 ) * 10 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-8108
SELECT - 81 + + 41 / + 46 * + + MAX ( 8 ) * 10 AS col1
----
-81

query I rowsort
SELECT ALL + 52 * + 37 - - 84 AS col1
----
2008

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT + NULLIF ( + - 40, 6 * - - 16 - COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-8110
SELECT + NULLIF ( + - 40, 6 * - - 16 - COUNT ( * ) )
----
-40

query I rowsort
SELECT DISTINCT - 8 * + 42 - + 59 AS col0
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT DISTINCT 98 * + COUNT( ALL - 66 )
----
98

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT 98 * + COUNT ( ALL - 66 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8113
SELECT ( CAST( NULL AS SIGNED ) ) * 21 + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8113
SELECT ( CAST ( NULL AS INTEGER ) ) * 21 + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT + - 7 + + 28 + + - 83 * + 10 * - NULLIF ( + NULLIF ( 81, + 96 - 56 ), 89 / - 35 ) col1
----
67251

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT ALL 98 DIV 97 DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL 98 / 97 / - 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT - 38 * - - SUM( - - 8 )
----
-304

skipif mysql # not compatible
query I rowsort label-8116
SELECT - 38 * - - SUM ( - - 8 )
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ALL + CASE ( COALESCE ( 76, COUNT( - 59 ) * - 87, - 15 * + 69 ) ) WHEN + 61 THEN + 12 WHEN - 7 THEN 86 WHEN 1 THEN NULL END * + 66 + CASE - 14 WHEN + 6 + - 12 THEN - 52 WHEN - 84 THEN 56 * 15 ELSE 61 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL + CASE ( COALESCE ( 76, COUNT ( - 59 ) * - 87, - 15 * + 69 ) ) WHEN + 61 THEN + 12 WHEN - 7 THEN 86 WHEN 1 THEN NULL END * + 66 + CASE - 14 WHEN + 6 + - 12 THEN - 52 WHEN - 84 THEN 56 * 15 ELSE 61 END col1
----
NULL

query I rowsort
SELECT ALL - + 64 + + 80 + + ( + + 38 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT DISTINCT - COUNT( * ) + + 29 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT - COUNT ( * ) + + 29 AS col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8120
SELECT - MIN( DISTINCT + 93 ) AS col1, 34
----
-93
34

skipif mysql # not compatible
query II rowsort label-8120
SELECT - MIN ( DISTINCT + 93 ) AS col1, 34
----
-93
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL - 75 + - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL - 75 + - COUNT ( * )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8122
SELECT 76 + + MAX( ALL + 93 ) * CAST( 88 AS SIGNED ) * COUNT( * ) + 17
----
8277

skipif mysql # not compatible
query I rowsort label-8122
SELECT 76 + + MAX ( ALL + 93 ) * CAST ( 88 AS INTEGER ) * COUNT ( * ) + 17
----
8277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8123
SELECT - ( + CAST( + COUNT( * ) AS SIGNED ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8123
SELECT - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT 66 - 34 + + - CASE 23 WHEN - 26 * 74 + 55 THEN + 47 ELSE COALESCE ( NULLIF ( 73, 43 / + 62 + COUNT( * ) ), - 69 ) END - - 96 * - ( 83 + + 23 ) * - 84
----
854743

skipif mysql # not compatible
query I rowsort label-8124
SELECT 66 - 34 + + - CASE 23 WHEN - 26 * 74 + 55 THEN + 47 ELSE COALESCE ( NULLIF ( 73, 43 / + 62 + COUNT ( * ) ), - 69 ) END - - 96 * - ( 83 + + 23 ) * - 84
----
854743

query II rowsort
SELECT DISTINCT 55 AS col2, 99 * - 22 AS col1
----
55
-2178

query I rowsort
SELECT DISTINCT 36 + - 88 + - 73 * COALESCE ( 9, 33 ) - - 28 AS col1
----
-681

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8127
SELECT 11 + - 49 + - 81 - ( + 31 ) DIV 92 * MAX( - 0 )
----
-119

skipif mysql # not compatible
query I rowsort label-8127
SELECT 11 + - 49 + - 81 - ( + 31 ) / 92 * MAX ( - 0 )
----
-119

query II rowsort
SELECT 12 * - 64 + - + 73 AS col2, + 70 AS col1
----
-841
70

query I rowsort
SELECT 92 * - + 65
----
-5980

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL - CASE COUNT( * ) WHEN + 31 THEN 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL - CASE COUNT ( * ) WHEN + 31 THEN 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT DISTINCT - CASE WHEN NOT COUNT( * ) IS NULL THEN ( + 9 ) WHEN NOT NULL IS NULL THEN 11 END - + 74 * + 69
----
-5115

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT - CASE WHEN NOT COUNT ( * ) IS NULL THEN ( + 9 ) WHEN NOT NULL IS NULL THEN 11 END - + 74 * + 69
----
-5115

query I rowsort
SELECT 40 * + 95
----
3800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8133
SELECT 76 DIV COUNT( * ) + + + 66
----
142

skipif mysql # not compatible
query I rowsort label-8133
SELECT 76 / COUNT ( * ) + + + 66
----
142

query I rowsort
SELECT ALL - 40 * + 55 AS col2
----
-2200

query I rowsort
SELECT ALL - ( - 17 ) col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT COUNT( 34 ) + + - 48 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-8136
SELECT COUNT ( 34 ) + + - 48 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT DISTINCT - MIN( + 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT - MIN ( + 34 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8138
SELECT 30 * + - CAST( - ( - 60 ) AS SIGNED ) col1
----
-1800

skipif mysql # not compatible
query I rowsort label-8138
SELECT 30 * + - CAST ( - ( - 60 ) AS INTEGER ) col1
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL - COUNT( * ) * 48 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL - COUNT ( * ) * 48 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT - CASE - AVG ( + 39 ) WHEN - 88 / + 82 * 60 + COUNT( * ) THEN NULL ELSE 65 END
----
-65

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT - CASE - AVG ( + 39 ) WHEN - 88 / + 82 * 60 + COUNT ( * ) THEN NULL ELSE 65 END
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-8141
SELECT DISTINCT 4 DIV - - 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT 4 / - - 6 AS col1
----
0

query I rowsort
SELECT DISTINCT - AVG ( - - CASE 85 WHEN 46 * + 43 * 81 THEN - 89 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8143
SELECT DISTINCT - CAST( + 89 AS SIGNED ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT - CAST ( + 89 AS INTEGER ) AS col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT 63 DIV + COALESCE ( + + 91, + - 73 )
----
0

skipif mysql # not compatible
query I rowsort label-8144
SELECT 63 / + COALESCE ( + + 91, + - 73 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8145
SELECT DISTINCT + 80 DIV - COALESCE ( 9, - COUNT( * ) * - COUNT( * ) ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT + 80 / - COALESCE ( 9, - COUNT ( * ) * - COUNT ( * ) ) col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-8146
SELECT 17 * COALESCE ( - 54, - 72 * - + 17 ) - - 22 DIV 99 AS col0
----
-918

skipif mysql # not compatible
query I rowsort label-8146
SELECT 17 * COALESCE ( - 54, - 72 * - + 17 ) - - 22 / 99 AS col0
----
-918

query I rowsort
SELECT - 43 * 52 * - + 44 + - 23
----
98361

query I rowsort
SELECT ALL 82 * ( + + 74 ) col2
----
6068

query I rowsort
SELECT + + 58 AS col2
----
58

query I rowsort
SELECT ALL + 40 + + - 10 + - 24 AS col0
----
6

query I rowsort
SELECT DISTINCT - 28 * + + 39 AS col1
----
-1092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8152
SELECT ( - + 75 ) + - 18 DIV + 81 + - 77 + NULLIF ( COUNT( * ), + 91 ) * 5 * + 72 AS col0
----
208

skipif mysql # not compatible
query I rowsort label-8152
SELECT ( - + 75 ) + - 18 / + 81 + - 77 + NULLIF ( COUNT ( * ), + 91 ) * 5 * + 72 AS col0
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT + ( COUNT( * ) ) - - 18 + + 48 + + + 99 col1
----
166

skipif mysql # not compatible
query I rowsort label-8153
SELECT + ( COUNT ( * ) ) - - 18 + + 48 + + + 99 col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT 12 * COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-8154
SELECT 12 * COUNT ( * )
----
12

query I rowsort
SELECT ALL 71 + + + 70 AS col1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT COUNT( * ) * + 69 - - 97 + + 62 AS col0
----
228

skipif mysql # not compatible
query I rowsort label-8156
SELECT COUNT ( * ) * + 69 - - 97 + + 62 AS col0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT 35 + COUNT( + 76 )
----
36

skipif mysql # not compatible
query I rowsort label-8157
SELECT 35 + COUNT ( + 76 )
----
36

query I rowsort
SELECT DISTINCT + 13 + - 54 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT + MAX( ALL 28 )
----
28

skipif mysql # not compatible
query I rowsort label-8159
SELECT + MAX ( ALL 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8160
SELECT DISTINCT 40 AS col0, ( + + CAST( NULL AS SIGNED ) ) * - 66 * - COUNT( * ) / + 48
----
40
NULL

skipif mysql # not compatible
query II rowsort label-8160
SELECT DISTINCT 40 AS col0, ( + + CAST ( NULL AS INTEGER ) ) * - 66 * - COUNT ( * ) / + 48
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT COUNT( * ) * - - 1 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8161
SELECT COUNT ( * ) * - - 1 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8162
SELECT NULLIF ( + 8, - 56 / + CAST( NULL AS DECIMAL ) + COUNT( * ) ) + - 79 * 65 AS col0
----
-5127

skipif mysql # not compatible
query I rowsort label-8162
SELECT NULLIF ( + 8, - 56 / + CAST ( NULL AS REAL ) + COUNT ( * ) ) + - 79 * 65 AS col0
----
-5127

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ALL COUNT( * ) * + - 95 col0
----
-95

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL COUNT ( * ) * + - 95 col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT - MAX( + 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-8164
SELECT - MAX ( + 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL COUNT( * ) * 4 col1
----
4

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL COUNT ( * ) * 4 col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8166
SELECT MIN( - CAST( NULL AS SIGNED ) ) - - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) - - 71 AS col1
----
NULL

query I rowsort
SELECT ALL 23 * - - 70
----
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT 1 - + NULLIF ( - COUNT( * ), - 44 * MIN( DISTINCT - 67 ) * 44 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8168
SELECT 1 - + NULLIF ( - COUNT ( * ), - 44 * MIN ( DISTINCT - 67 ) * 44 ) AS col2
----
2

query I rowsort
SELECT 37 * 15 * 37
----
20535

query I rowsort
SELECT 40 * + - 65 * 50 AS col2
----
-130000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8171
SELECT ALL ( - ( + 61 ) ) - + 41 + + CAST( - - 42 AS SIGNED ) + + 12 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL ( - ( + 61 ) ) - + 41 + + CAST ( - - 42 AS INTEGER ) + + 12 AS col1
----
-48

query II rowsort
SELECT ALL 25 AS col0, 32
----
25
32

query I rowsort
SELECT ALL 87 * + - 3 * + - 88
----
22968

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT DISTINCT - 69 * + ( + - 41 ) - - NULLIF ( + + COALESCE ( + - 88, COUNT( * ) * + CASE 44 * 86 WHEN - 39 THEN + 43 - 1 END + 8, - ( + 32 ) ), + NULLIF ( 80, 55 ) ) + 86 * 3
----
2999

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT - 69 * + ( + - 41 ) - - NULLIF ( + + COALESCE ( + - 88, COUNT ( * ) * + CASE 44 * 86 WHEN - 39 THEN + 43 - 1 END + 8, - ( + 32 ) ), + NULLIF ( 80, 55 ) ) + 86 * 3
----
2999

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT COUNT( + 16 )
----
1

skipif mysql # not compatible
query I rowsort label-8175
SELECT COUNT ( + 16 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8176
SELECT CAST( NULL AS SIGNED ) - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8176
SELECT CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL - COUNT( - - 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - COUNT ( - - 81 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL - CASE + 31 WHEN - 50 / + 24 THEN NULL WHEN + 4 * + + 39 * 48 THEN 14 * 76 WHEN + COUNT( * ) + 79 * + 89 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL - CASE + 31 WHEN - 50 / + 24 THEN NULL WHEN + 4 * + + 39 * 48 THEN 14 * 76 WHEN + COUNT ( * ) + 79 * + 89 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8179
SELECT CAST( NULL AS SIGNED ) + - ( - - 57 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT CAST ( NULL AS INTEGER ) + - ( - - 57 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8180
SELECT ALL - 18 * + 32, 53 DIV - - 1 col1
----
-576
53

skipif mysql # not compatible
query II rowsort label-8180
SELECT ALL - 18 * + 32, 53 / - - 1 col1
----
-576
53

query I rowsort
SELECT 82 * - 62 + + 48
----
-5036

query I rowsort
SELECT ALL + 35 * - + 84 AS col1
----
-2940

query I rowsort
SELECT - 41 + - 79 AS col0
----
-120

query I rowsort
SELECT + - 57 col1
----
-57

query I rowsort
SELECT DISTINCT ( 70 ) * - + 94 + 54 + + + 11 AS col1
----
-6515

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8186
SELECT ALL - + 10 + + COUNT( * ) - - 54 + - CASE 83 WHEN 95 + COUNT( * ) THEN NULL ELSE - 73 DIV + 65 END * - 10
----
35

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL - + 10 + + COUNT ( * ) - - 54 + - CASE 83 WHEN 95 + COUNT ( * ) THEN NULL ELSE - 73 / + 65 END * - 10
----
35

query I rowsort
SELECT - + 5 + + 70 AS col0
----
65

query I rowsort
SELECT DISTINCT + 41 + - 63
----
-22

query I rowsort
SELECT + 14 * + 64 * 94 + - 59 col1
----
84165

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8190
SELECT ALL 16 / CAST( NULL AS DECIMAL ) * + 90 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL 16 / CAST ( NULL AS REAL ) * + 90 * - + COUNT ( * )
----
NULL

query II rowsort
SELECT + 67 AS col2, 88 AS col0
----
67
88

query I rowsort
SELECT DISTINCT + - 80 + - - 81
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT ALL + ( - - 9 ) + + COUNT( * ) + 48 * + - COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL + ( - - 9 ) + + COUNT ( * ) + 48 * + - COUNT ( * ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT + COALESCE ( + + 7, - 83 ) * - + COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-8194
SELECT + COALESCE ( + + 7, - 83 ) * - + COUNT ( * ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT - + COUNT( - NULLIF ( - 30, + 82 + - 77 ) ) + + 16 * 72
----
1151

skipif mysql # not compatible
query I rowsort label-8195
SELECT - + COUNT ( - NULLIF ( - 30, + 82 + - 77 ) ) + + 16 * 72
----
1151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8196
SELECT - 57 * - COUNT( * ) AS col1, + CAST( NULL AS SIGNED )
----
57
NULL

skipif mysql # not compatible
query II rowsort label-8196
SELECT - 57 * - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER )
----
57
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8197
SELECT + 27 + + 49 + - - 39 DIV + 27 - - 55 col0
----
132

skipif mysql # not compatible
query I rowsort label-8197
SELECT + 27 + + 49 + - - 39 / + 27 - - 55 col0
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-8198
SELECT - - COUNT( * ) AS col0, + 52 * - + 66 * - CASE + - 53 WHEN + NULLIF ( COUNT( * ), ( 63 ) / 7 ) THEN NULL WHEN + 69 * + ( - 49 ) THEN - ( - 15 ) END / - 78
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8198
SELECT - - COUNT ( * ) AS col0, + 52 * - + 66 * - CASE + - 53 WHEN + NULLIF ( COUNT ( * ), ( 63 ) / 7 ) THEN NULL WHEN + 69 * + ( - 49 ) THEN - ( - 15 ) END / - 78
----
1
NULL

query II rowsort
SELECT ALL 51, 66 AS col1
----
51
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT + 67 + - COUNT( + 90 )
----
66

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT + 67 + - COUNT ( + 90 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT ALL - 34 - - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL - 34 - - COUNT ( * )
----
-33

query I rowsort
SELECT ALL - - 26 * + + 50
----
1300

query I rowsort
SELECT + 2 + - 93 AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8204
SELECT DISTINCT + CASE + - MAX( - - 31 ) WHEN + COUNT( * ) DIV + COUNT( * ) - + 67 THEN + 98 + - 49 DIV 63 ELSE 61 END * + 26 AS col1
----
1586

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT + CASE + - MAX ( - - 31 ) WHEN + COUNT ( * ) / + COUNT ( * ) - + 67 THEN + 98 + - 49 / 63 ELSE 61 END * + 26 AS col1
----
1586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8205
SELECT ALL + 57 - - 39 - 43 / - 36 + - - CASE + + 99 WHEN - - COALESCE ( + 13, 65 * + CAST( NULL AS SIGNED ), + 88 ) * + COUNT( DISTINCT + 95 ) THEN NULL ELSE ( - CAST( NULL AS SIGNED ) ) - 24 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL + 57 - - 39 - 43 / - 36 + - - CASE + + 99 WHEN - - COALESCE ( + 13, 65 * + CAST ( NULL AS INTEGER ), + 88 ) * + COUNT ( DISTINCT + 95 ) THEN NULL ELSE ( - CAST ( NULL AS INTEGER ) ) - 24 END AS col2
----
NULL

query I rowsort
SELECT + 18 * - 91
----
-1638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8207
SELECT - 6 + COALESCE ( + ( + ( 51 ) ), COUNT( ALL 9 ) DIV 31 ) + - 53 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8207
SELECT - 6 + COALESCE ( + ( + ( 51 ) ), COUNT ( ALL 9 ) / 31 ) + - 53 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + MIN( + 24 ) * - 89 * + COUNT( * )
----
-2136

skipif mysql # not compatible
query I rowsort label-8208
SELECT + MIN ( + 24 ) * - 89 * + COUNT ( * )
----
-2136

query II rowsort
SELECT + 82 * + 33 AS col0, 45 AS col2
----
2706
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8210
SELECT ALL ( - 63 ) DIV - 50, 25 DIV + COUNT( * ) DIV - 30 * - CAST( NULL AS SIGNED ) + + 6 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8210
SELECT ALL ( - 63 ) / - 50, 25 / + COUNT ( * ) / - 30 * - CAST ( NULL AS INTEGER ) + + 6 AS col2
----
1
NULL

query I rowsort
SELECT + 76 + + - 63
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8212
SELECT + COUNT( * ) DIV + + 31
----
0

skipif mysql # not compatible
query I rowsort label-8212
SELECT + COUNT ( * ) / + + 31
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8213
SELECT ALL ( - - 61 ) DIV - - 79 col0
----
0

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL ( - - 61 ) / - - 79 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8214
SELECT + MIN( 13 ) + CAST( 5 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-8214
SELECT + MIN ( 13 ) + CAST ( 5 AS INTEGER )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8215
SELECT DISTINCT CAST( 5 AS SIGNED ) * - + MAX( 62 ) + + 52 - - 82 AS col1
----
-176

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT CAST ( 5 AS INTEGER ) * - + MAX ( 62 ) + + 52 - - 82 AS col1
----
-176

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8216
SELECT DISTINCT CAST( + NULLIF ( 31, + 83 ) AS SIGNED ) * 68 * - + 21 - - ( + 86 ) + - 72 DIV - 41 AS col0
----
-44181

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT CAST ( + NULLIF ( 31, + 83 ) AS INTEGER ) * 68 * - + 21 - - ( + 86 ) + - 72 / - 41 AS col0
----
-44181

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT + ( + - 62 ) DIV + - COALESCE ( - 89, + 30 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8217
SELECT + ( + - 62 ) / + - COALESCE ( - 89, + 30 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8218
SELECT + COUNT( * ) * + + 9 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-8218
SELECT + COUNT ( * ) * + + 9 / + 89
----
0

query I rowsort
SELECT ALL 51 * - - 22 + - 62 + - 57
----
1003

onlyif mysql # aggregate syntax: 
query II rowsort label-8220
SELECT ( - + COUNT( + + 5 ) ), ( + - 11 ) AS col0
----
-1
-11

skipif mysql # not compatible
query II rowsort label-8220
SELECT ( - + COUNT ( + + 5 ) ), ( + - 11 ) AS col0
----
-1
-11

query II rowsort
SELECT ( 92 ), - ( 16 ) AS col2
----
92
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8222
SELECT + + 25 DIV + 47 * + 67 - + + COALESCE ( - 33, + + COUNT( * ) + - COUNT( * ) + 2 ) * COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8222
SELECT + + 25 / + 47 * + 67 - + + COALESCE ( - 33, + + COUNT ( * ) + - COUNT ( * ) + 2 ) * COUNT ( * ) AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8223
SELECT ALL + - 61 * + 0 + + - ( + CAST( - 72 AS SIGNED ) ) + - 14 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL + - 61 * + 0 + + - ( + CAST ( - 72 AS INTEGER ) ) + - 14 AS col0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8224
SELECT ALL + 50 * - - 43 + - + 57 * + - COALESCE ( + 7, + 72 ) + - 30 DIV - 43 + 17
----
2566

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL + 50 * - - 43 + - + 57 * + - COALESCE ( + 7, + 72 ) + - 30 / - 43 + 17
----
2566

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ALL MIN( ALL 61 ) * - - 11 + 5 + - - 19 AS col2
----
695

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL MIN ( ALL 61 ) * - - 11 + 5 + - - 19 AS col2
----
695

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL + - MAX( 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + - MAX ( 38 ) AS col1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8227
SELECT DISTINCT 28 * + + 54 * + - 0 + - COUNT( * ) DIV + - 54
----
0

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT 28 * + + 54 * + - 0 + - COUNT ( * ) / + - 54
----
0

query I rowsort
SELECT + NULLIF ( 82, 96 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT DISTINCT - 50 * + + COUNT( * ) + 54 - - 50
----
54

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT - 50 * + + COUNT ( * ) + 54 - - 50
----
54

query II rowsort
SELECT + + 24 * - 41 AS col0, 83 * + 0 * - 63 + - 47 + - 8 AS col2
----
-984
-55

query I rowsort
SELECT DISTINCT + 61 col1
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8232
SELECT ALL - 13 * + CASE - 81 WHEN + 21 + + + 71 - - 52 THEN + - CASE 69 WHEN 66 THEN 76 ELSE 1 END DIV + 51 + - 80 * + COUNT( * ) ELSE + SUM( DISTINCT 72 ) + + 93 END - + 78 * 2
----
-2301

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL - 13 * + CASE - 81 WHEN + 21 + + + 71 - - 52 THEN + - CASE 69 WHEN 66 THEN 76 ELSE 1 END / + 51 + - 80 * + COUNT ( * ) ELSE + SUM ( DISTINCT 72 ) + + 93 END - + 78 * 2
----
-2301

query I rowsort
SELECT ALL + 52 * + 18 col0
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ALL - 8 * - 77 - - COUNT( * ) * + MAX( DISTINCT - 94 ) * - 14 + + + ( - MIN( ALL - 7 ) )
----
1939

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL - 8 * - 77 - - COUNT ( * ) * + MAX ( DISTINCT - 94 ) * - 14 + + + ( - MIN ( ALL - 7 ) )
----
1939

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT - 12 DIV - - 38 * + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8235
SELECT - 12 / - - 38 * + 52 AS col0
----
0

query I rowsort
SELECT - 18 * + + NULLIF ( - 40, 32 ) AS col0
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT ALL CAST( + 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL CAST ( + 34 AS INTEGER )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8238
SELECT DISTINCT - CASE - COUNT( * ) WHEN - + 1 / + - 29 + + 19 * MAX( ALL - 78 ) * - 32 * CAST( 50 AS SIGNED ) + - 10 THEN - 82 * + 94 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT - CASE - COUNT ( * ) WHEN - + 1 / + - 29 + + 19 * MAX ( ALL - 78 ) * - 32 * CAST ( 50 AS INTEGER ) + - 10 THEN - 82 * + 94 END * COUNT ( * )
----
NULL

query I rowsort
SELECT - 82 * + 12 AS col2
----
-984

query II rowsort
SELECT - 58 * - 77 * 59 AS col1, 91 * + NULLIF ( + + 41, + - 86 - - 3 ) + - 75 AS col1
----
263494
3656

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL ( - CASE + + 60 WHEN COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN - COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL ( - CASE + + 60 WHEN COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8242
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + ( - 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT + CAST ( NULL AS REAL ) + ( - 83 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8243
SELECT ALL CAST( NULL AS SIGNED ) col1, + 34 AS col1
----
NULL
34

skipif mysql # not compatible
query II rowsort label-8243
SELECT ALL CAST ( NULL AS INTEGER ) col1, + 34 AS col1
----
NULL
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8244
SELECT + COALESCE ( + 85, 14 * - COUNT( * ) ) * - 28 * 53 AS col1, COALESCE ( + MIN( DISTINCT 12 ), - MAX( 97 ) ) * CAST( NULL AS SIGNED ) AS col0
----
-126140
NULL

skipif mysql # not compatible
query II rowsort label-8244
SELECT + COALESCE ( + 85, 14 * - COUNT ( * ) ) * - 28 * 53 AS col1, COALESCE ( + MIN ( DISTINCT 12 ), - MAX ( 97 ) ) * CAST ( NULL AS INTEGER ) AS col0
----
-126140
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT ALL + COUNT( * ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL + COUNT ( * ) + + - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT - 40 - + + CAST( NULL AS SIGNED ) * - 16 + - + 16 * + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT - 40 - + + CAST ( NULL AS INTEGER ) * - 16 + - + 16 * + 70 AS col0
----
NULL

query I rowsort
SELECT - 16 + - 33 + - 89 AS col1
----
-138

query I rowsort
SELECT - ( 68 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT - MIN( DISTINCT + 55 ) + + NULLIF ( - 57, + 95 * + - 34 + - COALESCE ( - - 59, COUNT( * ) + - 3 ) + - 18 + - 3 / + 76 )
----
-112

skipif mysql # not compatible
query I rowsort label-8249
SELECT - MIN ( DISTINCT + 55 ) + + NULLIF ( - 57, + 95 * + - 34 + - COALESCE ( - - 59, COUNT ( * ) + - 3 ) + - 18 + - 3 / + 76 )
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-8250
SELECT ALL 22 DIV + 44 + - 20
----
-20

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL 22 / + 44 + - 20
----
-20

query I rowsort
SELECT ALL - + ( + 73 ) + + 7 - + 18
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8252
SELECT - 22 * - 98 DIV 71 DIV 68 DIV - 57 + - 11 - - 5 * - 20 AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-8252
SELECT - 22 * - 98 / 71 / 68 / - 57 + - 11 - - 5 * - 20 AS col2
----
-111

query I rowsort
SELECT DISTINCT - 52 * - 10 AS col0
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT + - COUNT( * ) * + - 55 + + 18 + + 30 - + 64
----
39

skipif mysql # not compatible
query I rowsort label-8254
SELECT + - COUNT ( * ) * + - 55 + + 18 + + 30 - + 64
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT ALL + 83 + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL + 83 + - COUNT ( * )
----
82

query I rowsort
SELECT ALL - 8 + + 9
----
1

query I rowsort
SELECT 20 + 33 AS col0
----
53

query II rowsort
SELECT + 68 * - + 23 * - 22, 14 * + - 42 AS col2
----
34408
-588

query I rowsort
SELECT + - 95 * 5 + + + 50 AS col0
----
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL - - CASE - 73 WHEN - + MAX( 35 ) THEN NULL WHEN COUNT( * ) THEN 71 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL - - CASE - 73 WHEN - + MAX ( 35 ) THEN NULL WHEN COUNT ( * ) THEN 71 END col0
----
NULL

query II rowsort
SELECT ALL - 69 AS col1, 69
----
-69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT 53 * + + SUM( DISTINCT + 13 ) + + + 59 * - - 61 AS col2
----
4288

skipif mysql # not compatible
query I rowsort label-8262
SELECT 53 * + + SUM ( DISTINCT + 13 ) + + + 59 * - - 61 AS col2
----
4288

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT NULLIF ( + SUM( DISTINCT + 77 ), 62 - + + 21 ) * - 85 - - - COUNT( * )
----
-6546

skipif mysql # not compatible
query I rowsort label-8263
SELECT NULLIF ( + SUM ( DISTINCT + 77 ), 62 - + + 21 ) * - 85 - - - COUNT ( * )
----
-6546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8264
SELECT ( 71 ) + + + 57 + COUNT( * ) DIV + - CAST( - - NULLIF ( - 28, + NULLIF ( 35, + COUNT( * ) ) ) AS SIGNED )
----
128

skipif mysql # not compatible
query I rowsort label-8264
SELECT ( 71 ) + + + 57 + COUNT ( * ) / + - CAST ( - - NULLIF ( - 28, + NULLIF ( 35, + COUNT ( * ) ) ) AS INTEGER )
----
128

query I rowsort
SELECT ALL 18 * - - 29
----
522

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8266
SELECT - 62 + 62 * + 47 DIV - + COUNT( * ) AS col2
----
-2976

skipif mysql # not compatible
query I rowsort label-8266
SELECT - 62 + 62 * + 47 / - + COUNT ( * ) AS col2
----
-2976

query I rowsort
SELECT ALL - 6 - - ( - 15 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT - COUNT( - 82 ) * - - 93 * - MAX( ALL - + NULLIF ( + 84, - ( + - 41 ) ) ) + - 2
----
-7814

skipif mysql # not compatible
query I rowsort label-8268
SELECT - COUNT ( - 82 ) * - - 93 * - MAX ( ALL - + NULLIF ( + 84, - ( + - 41 ) ) ) + - 2
----
-7814

query I rowsort
SELECT ALL - + CASE ( + 19 ) WHEN 22 THEN - COALESCE ( - 24, - 50 ) END
----
NULL

query I rowsort
SELECT 45 + 75 col0
----
120

query I rowsort
SELECT 40 * + 86 col1
----
3440

query I rowsort
SELECT ALL 0 * + 74 * - - 74 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8273
SELECT DISTINCT - 12 * COUNT( * ), + NULLIF ( + 10, - - 63 * - + 74 + + 96 + 22 - + 52 + AVG ( + 60 ) / 82 * + 62 ) AS col1
----
-12
10

skipif mysql # not compatible
query II rowsort label-8273
SELECT DISTINCT - 12 * COUNT ( * ), + NULLIF ( + 10, - - 63 * - + 74 + + 96 + 22 - + 52 + AVG ( + 60 ) / 82 * + 62 ) AS col1
----
-12
10

query I rowsort
SELECT DISTINCT 30 * 20 col0
----
600

onlyif mysql # DIV for integer division: 
query I rowsort label-8275
SELECT 30 DIV + + 80 * + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8275
SELECT 30 / + + 80 * + 80 AS col1
----
0

query I rowsort
SELECT ALL 65 * + 62 col0
----
4030

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT DISTINCT 99 + - MIN( - + 73 ) + + - COUNT( * )
----
171

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT 99 + - MIN ( - + 73 ) + + - COUNT ( * )
----
171

query I rowsort
SELECT DISTINCT - 67 + - ( - 73 )
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-8279
SELECT 55 + + - 87, - 9 DIV + - 47 + 26 + + 33 * 83 + + - 19 AS col2
----
-32
2746

skipif mysql # not compatible
query II rowsort label-8279
SELECT 55 + + - 87, - 9 / + - 47 + 26 + + 33 * 83 + + - 19 AS col2
----
-32
2746

query I rowsort
SELECT 26 + + 48 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT ALL + 22 + + - MIN( ALL + ( + ( - - ( - 66 ) ) ) )
----
88

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL + 22 + + - MIN ( ALL + ( + ( - - ( - 66 ) ) ) )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT ALL - 59 DIV - 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL - 59 / - 88 AS col0
----
0

query I rowsort
SELECT 45 + + 18 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL - 50 + - + COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL - 50 + - + COUNT ( * ) AS col0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8285
SELECT DISTINCT COUNT( * ) DIV + 17, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-8285
SELECT DISTINCT COUNT ( * ) / + 17, COUNT ( * ) AS col0
----
0
1

query I rowsort
SELECT - ( 76 )
----
-76

query I rowsort
SELECT DISTINCT - + 36 * - + 78
----
2808

query I rowsort
SELECT ALL - + 27 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-8289
SELECT ALL ( + 37 ) - 32 * 57 AS col1, MAX( DISTINCT - 39 ) * 10 + - + 95 * + 88 * 88
----
-1787
-736070

skipif mysql # not compatible
query II rowsort label-8289
SELECT ALL ( + 37 ) - 32 * 57 AS col1, MAX ( DISTINCT - 39 ) * 10 + - + 95 * + 88 * 88
----
-1787
-736070

query I rowsort
SELECT ALL - + 2 col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT DISTINCT + COUNT( 66 ) * + - 61 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT + COUNT ( 66 ) * + - 61 AS col0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8292
SELECT ALL - + 19 DIV - - 55 + + 18 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL - + 19 / - - 55 + + 18 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8293
SELECT - CAST( ( 33 ) AS SIGNED ) * - + COUNT( * ) * - + CASE WHEN - 59 > - ( - 89 ) * 25 - + 57 THEN 42 ELSE 39 END + CASE 82 WHEN + 11 + 89 * - 9 THEN NULL WHEN + 98 * 55 + - 24 THEN - 43 * + 98 + + ( + 22 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT - CAST ( ( 33 ) AS INTEGER ) * - + COUNT ( * ) * - + CASE WHEN - 59 > - ( - 89 ) * 25 - + 57 THEN 42 ELSE 39 END + CASE 82 WHEN + 11 + 89 * - 9 THEN NULL WHEN + 98 * 55 + - 24 THEN - 43 * + 98 + + ( + 22 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT ALL + CASE + ( 68 ) WHEN + 90 * MIN( + - 42 ) THEN NULL WHEN + 44 THEN + 22 END * + 24 / - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL + CASE + ( 68 ) WHEN + 90 * MIN ( + - 42 ) THEN NULL WHEN + 44 THEN + 22 END * + 24 / - COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8295
SELECT - 26 - 71 AS col2, 57 * - 77 / - + 10 + + - 98 * MIN( ALL + - 53 ) * - 89 * ( COUNT( * ) ) - + 88 / + CASE 33 WHEN - CASE + NULLIF ( 33, - COALESCE ( ( + 90 ), - CASE + 21 WHEN - 53 THEN + 34 END + COUNT( 52 ) ) ) WHEN 12 * + 59 THEN - 81 + - ( - AVG ( DISTINCT + 24 ) + CAST( - 63 AS DECIMAL ) ) / - 64 END - AVG ( DISTINCT 59 ) THEN 33 + - 58 * - 98 WHEN - 46 THEN - 9 WHEN - 77 + CAST( - 64 AS SIGNED ) THEN NULL ELSE NULL END - 6 * + 21 AS col2
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-8295
SELECT - 26 - 71 AS col2, 57 * - 77 / - + 10 + + - 98 * MIN ( ALL + - 53 ) * - 89 * ( COUNT ( * ) ) - + 88 / + CASE 33 WHEN - CASE + NULLIF ( 33, - COALESCE ( ( + 90 ), - CASE + 21 WHEN - 53 THEN + 34 END + COUNT ( 52 ) ) ) WHEN 12 * + 59 THEN - 81 + - ( - AVG ( DISTINCT + 24 ) + CAST ( - 63 AS REAL ) ) / - 64 END - AVG ( DISTINCT 59 ) THEN 33 + - 58 * - 98 WHEN - 46 THEN - 9 WHEN - 77 + CAST ( - 64 AS INTEGER ) THEN NULL ELSE NULL END - 6 * + 21 AS col2
----
-97
NULL

query I rowsort
SELECT + - 73 AS col1
----
-73

query I rowsort
SELECT - 39 - 52
----
-91

query I rowsort
SELECT DISTINCT + 8 * + 67 AS col1
----
536

query I rowsort
SELECT ALL - CASE WHEN NOT NULL IS NOT NULL THEN 32 END * 66 + 64
----
-2048

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT + MAX( ALL + 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8300
SELECT + MAX ( ALL + 19 ) AS col2
----
19

query I rowsort
SELECT DISTINCT CASE - 22 WHEN - 48 THEN NULL WHEN - - ( + COALESCE ( + 39, - 80 * + 15 ) ) THEN + - 79 + 0 END + 73
----
NULL

query I rowsort
SELECT 46 * + 57 AS col0
----
2622

query I rowsort
SELECT DISTINCT 58 + 90 + 76 col1
----
224

query I rowsort
SELECT DISTINCT - 81 + 38 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL 11 + + 24 + - 39 * + COUNT( * ) * 31 + + 6 + - + 52
----
-1220

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL 11 + + 24 + - 39 * + COUNT ( * ) * 31 + + 6 + - + 52
----
-1220

query I rowsort
SELECT 36 * + 38
----
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT - MIN( DISTINCT + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-8307
SELECT - MIN ( DISTINCT + 87 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8308
SELECT 81 + - - COUNT( * ) * - - CAST( - - 44 AS SIGNED ) DIV - - 91 + + 39 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-8308
SELECT 81 + - - COUNT ( * ) * - - CAST ( - - 44 AS INTEGER ) / - - 91 + + 39 AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT DISTINCT 5 + - COUNT( ALL + 63 )
----
4

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT 5 + - COUNT ( ALL + 63 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT ALL COUNT( ALL + 87 ) * - 23 + + 16
----
-7

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL COUNT ( ALL + 87 ) * - 23 + + 16
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT ALL MAX( 4 )
----
4

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL MAX ( 4 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8312
SELECT - CASE - 39 WHEN + COUNT( * ) THEN + COUNT( * ) * + + ( + + ( + 33 ) ) + - + 91 WHEN + 53 * CASE + 38 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE AVG ( 6 ) END THEN NULL ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-8312
SELECT - CASE - 39 WHEN + COUNT ( * ) THEN + COUNT ( * ) * + + ( + + ( + 33 ) ) + - + 91 WHEN + 53 * CASE + 38 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE AVG ( 6 ) END THEN NULL ELSE COUNT ( * ) END
----
-1

query I rowsort
SELECT DISTINCT 69 + + 3 AS col1
----
72

query I rowsort
SELECT + 51 * 88 AS col0
----
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT + 67 - + + COALESCE ( + - 99, 39 - 11 + + - 47, - COUNT( * ) * + ( - + 84 ) + - - 38 * 56, - 72 ) AS col2
----
166

skipif mysql # not compatible
query I rowsort label-8315
SELECT + 67 - + + COALESCE ( + - 99, 39 - 11 + + - 47, - COUNT ( * ) * + ( - + 84 ) + - - 38 * 56, - 72 ) AS col2
----
166

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8316
SELECT ALL + + 71 DIV - CAST( - - 81 AS SIGNED ) * + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL + + 71 / - CAST ( - - 81 AS INTEGER ) * + 76 AS col1
----
0

query II rowsort
SELECT - 94 + + 47 + - + 21 col1, 80
----
-68
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL - - 59 - COUNT( * ) * COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL - - 59 - COUNT ( * ) * COUNT ( * ) AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8319
SELECT DISTINCT CAST( - COUNT( NULLIF ( 24, + CAST( NULL AS SIGNED ) ) ) AS SIGNED ), - 53 AS col1
----
-1
-53

skipif mysql # not compatible
query II rowsort label-8319
SELECT DISTINCT CAST ( - COUNT ( NULLIF ( 24, + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ), - 53 AS col1
----
-1
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8320
SELECT ALL + COUNT( * ) DIV - 88 * - 35 * - 17 + - 17 col2, - 59 + - + COUNT( * ) * - - 63
----
-17
-122

skipif mysql # not compatible
query II rowsort label-8320
SELECT ALL + COUNT ( * ) / - 88 * - 35 * - 17 + - 17 col2, - 59 + - + COUNT ( * ) * - - 63
----
-17
-122

query I rowsort
SELECT - - 20 - + + 58 AS col1
----
-38

query I rowsort
SELECT DISTINCT + 9 * - 41 AS col1
----
-369

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL - - MIN( ALL + 67 ) * + ( COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL - - MIN ( ALL + 67 ) * + ( COUNT ( * ) )
----
67

query I rowsort
SELECT + 75 * + + NULLIF ( - - 95, - - ( - + 25 ) ) - 29 AS col1
----
7096

query I rowsort
SELECT ALL + + 74 AS col2
----
74

query I rowsort
SELECT DISTINCT - 6 * - NULLIF ( 84, ( + 24 ) ) - - - 82 col1
----
422

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT - + 1 * COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8327
SELECT - + 1 * COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8328
SELECT 75 AS col2, - COUNT( * ) DIV 84
----
75
0

skipif mysql # not compatible
query II rowsort label-8328
SELECT 75 AS col2, - COUNT ( * ) / 84
----
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT + 0 * - + NULLIF ( - 19, - 49 - - + CASE + 43 WHEN + - 95 THEN + 1 ELSE NULL END ) - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8329
SELECT + 0 * - + NULLIF ( - 19, - 49 - - + CASE + 43 WHEN + - 95 THEN + 1 ELSE NULL END ) - + COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 21 * - 98 + + 50 AS col0
----
-2008

query I rowsort
SELECT ALL - 85 * - 34 + + - 25 AS col2
----
2865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8332
SELECT COALESCE ( 86, CAST( COUNT( 0 ) AS SIGNED ), ( - - 91 ) - - 56 )
----
86

skipif mysql # not compatible
query I rowsort label-8332
SELECT COALESCE ( 86, CAST ( COUNT ( 0 ) AS INTEGER ), ( - - 91 ) - - 56 )
----
86

query I rowsort
SELECT ALL - 83 * - 45 + 65 AS col1
----
3800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8334
SELECT DISTINCT + ( 36 ) * + - COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT + ( 36 ) * + - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 0 * 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT + CASE - 86 WHEN - 23 THEN - - 1 * + 93 * - - CASE - 77 WHEN 83 * COUNT( * ) THEN NULL WHEN - - 2 THEN - 63 ELSE 21 END + 69 WHEN 6 THEN 71 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8336
SELECT + CASE - 86 WHEN - 23 THEN - - 1 * + 93 * - - CASE - 77 WHEN 83 * COUNT ( * ) THEN NULL WHEN - - 2 THEN - 63 ELSE 21 END + 69 WHEN 6 THEN 71 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT ALL 11 * + - COUNT( * ) * - - 79
----
-869

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL 11 * + - COUNT ( * ) * - - 79
----
-869

query I rowsort
SELECT - 17 + + - 64
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-8339
SELECT + COUNT( * ), 55 + + 13 + - 63 - + CASE + - 71 WHEN - 47 THEN NULL WHEN - - 16 / - 27 THEN NULL ELSE - SUM( DISTINCT - 53 ) END + 30 * - 53 * 13 AS col0
----
1
-20718

skipif mysql # not compatible
query II rowsort label-8339
SELECT + COUNT ( * ), 55 + + 13 + - 63 - + CASE + - 71 WHEN - 47 THEN NULL WHEN - - 16 / - 27 THEN NULL ELSE - SUM ( DISTINCT - 53 ) END + 30 * - 53 * 13 AS col0
----
1
-20718

query I rowsort
SELECT DISTINCT 98 * - - 42 * 92 + + 73 * - 71
----
373489

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT - MIN( DISTINCT - 59 ) col2
----
59

skipif mysql # not compatible
query I rowsort label-8341
SELECT - MIN ( DISTINCT - 59 ) col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT DISTINCT - COUNT( * ) + + 65
----
64

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT - COUNT ( * ) + + 65
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8343
SELECT MAX( ALL - CAST( - 0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8343
SELECT MAX ( ALL - CAST ( - 0 AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT DISTINCT 69 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT 69 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT + ( + 19 ) + - 89 - + - ( + 10 ) * - - MIN( + 46 ) * 32 AS col1
----
14650

skipif mysql # not compatible
query I rowsort label-8345
SELECT + ( + 19 ) + - 89 - + - ( + 10 ) * - - MIN ( + 46 ) * 32 AS col1
----
14650

onlyif mysql # aggregate syntax: 
query II rowsort label-8346
SELECT - COUNT( * ) AS col0, 55 AS col2
----
-1
55

skipif mysql # not compatible
query II rowsort label-8346
SELECT - COUNT ( * ) AS col0, 55 AS col2
----
-1
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT + COUNT( * ) + 19 * + 30 * COUNT( * ) * 2 + - 79 AS col0
----
1062

skipif mysql # not compatible
query I rowsort label-8347
SELECT + COUNT ( * ) + 19 * + 30 * COUNT ( * ) * 2 + - 79 AS col0
----
1062

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT + 27 + - - 26 + + NULLIF ( COALESCE ( CASE + 80 WHEN + + 94 * ( - 35 ) + + 21 THEN NULL ELSE + MIN( ALL 4 ) END, + 29 ), 36 ) + + 6 col0
----
63

skipif mysql # not compatible
query I rowsort label-8348
SELECT + 27 + - - 26 + + NULLIF ( COALESCE ( CASE + 80 WHEN + + 94 * ( - 35 ) + + 21 THEN NULL ELSE + MIN ( ALL 4 ) END, + 29 ), 36 ) + + 6 col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT - CAST( - 94 AS SIGNED ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8349
SELECT - CAST ( - 94 AS INTEGER ) AS col2
----
94

query I rowsort
SELECT + - NULLIF ( + 79, ( - 92 ) + - 27 ) + - 57 + + 69
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8351
SELECT DISTINCT CAST( + ( + 81 ) AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT CAST ( + ( + 81 ) AS INTEGER )
----
81

query I rowsort
SELECT + ( - 93 ) col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT - + COUNT( * ) + - 38 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-8353
SELECT - + COUNT ( * ) + - 38 AS col1
----
-39

query I rowsort
SELECT ALL - 29 * 28 col2
----
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT - - COUNT( ALL - - 99 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8355
SELECT - - COUNT ( ALL - - 99 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8356
SELECT ALL + COALESCE ( + - 75, - NULLIF ( COUNT( - + 50 ), + - 76 * - + 53 + 51 * - 21 + + 89 ) * - 32 + + 28, + COALESCE ( - 61, 65, + COUNT( * ) ) DIV CASE - 30 WHEN - 97 + - 45 THEN 82 * 54 ELSE 20 END )
----
-75

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + COALESCE ( + - 75, - NULLIF ( COUNT ( - + 50 ), + - 76 * - + 53 + 51 * - 21 + + 89 ) * - 32 + + 28, + COALESCE ( - 61, 65, + COUNT ( * ) ) / CASE - 30 WHEN - 97 + - 45 THEN 82 * 54 ELSE 20 END )
----
-75

query I rowsort
SELECT DISTINCT + 2 * - 9 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT + + 91 * - MIN( ALL + 31 )
----
-2821

skipif mysql # not compatible
query I rowsort label-8358
SELECT + + 91 * - MIN ( ALL + 31 )
----
-2821

query II rowsort
SELECT ALL 9 AS col1, 63 AS col2
----
9
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT - ( - ( + - ( COUNT( * ) ) ) ) + - - 74 + - 3 + - - 1 * - - COALESCE ( 82, - 26, + 64 ) + - 81 * 17 AS col2
----
-1225

skipif mysql # not compatible
query I rowsort label-8360
SELECT - ( - ( + - ( COUNT ( * ) ) ) ) + - - 74 + - 3 + - - 1 * - - COALESCE ( 82, - 26, + 64 ) + - 81 * 17 AS col2
----
-1225

query I rowsort
SELECT - 93 col0
----
-93

query I rowsort
SELECT + 72 * 86 + 16 AS col0
----
6208

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8363
SELECT ALL COALESCE ( - 54, - CAST( - 7 AS SIGNED ) + - - 30 * - 57 ) col0, + 30 AS col1
----
-54
30

skipif mysql # not compatible
query II rowsort label-8363
SELECT ALL COALESCE ( - 54, - CAST ( - 7 AS INTEGER ) + - - 30 * - 57 ) col0, + 30 AS col1
----
-54
30

query II rowsort
SELECT + + 79 AS col0, 84 * + + 29
----
79
2436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8365
SELECT 33 DIV - 55 * - 32 + + - ( MIN( ALL + 55 ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8365
SELECT 33 / - 55 * - 32 + + - ( MIN ( ALL + 55 ) ) AS col0
----
-55

query I rowsort
SELECT + - 64 * + 35
----
-2240

query I rowsort
SELECT DISTINCT + COALESCE ( + 82, - - 69 ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8368
SELECT ALL + 67 / 46 / - CAST( NULL AS SIGNED ) + - + MIN( - 42 ) + - 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL + 67 / 46 / - CAST ( NULL AS INTEGER ) + - + MIN ( - 42 ) + - 62 AS col1
----
NULL

query I rowsort
SELECT - 44 * + 97 AS col1
----
-4268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8370
SELECT ALL + MAX( DISTINCT 45 ) * 89 AS col1, 62 * CAST( NULL AS SIGNED ) * + - 39 * + - 32
----
4005
NULL

skipif mysql # not compatible
query II rowsort label-8370
SELECT ALL + MAX ( DISTINCT 45 ) * 89 AS col1, 62 * CAST ( NULL AS INTEGER ) * + - 39 * + - 32
----
4005
NULL

query I rowsort
SELECT - 12 * 69 * - - 5
----
-4140

query II rowsort
SELECT ( + 59 ) AS col1, + 79 AS col2
----
59
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL + SUM( DISTINCT + 54 ) * + 77 AS col1
----
4158

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL + SUM ( DISTINCT + 54 ) * + 77 AS col1
----
4158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8374
SELECT ALL + 89 DIV - SUM( DISTINCT + + 12 ) + + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL + 89 / - SUM ( DISTINCT + + 12 ) + + COUNT ( * )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT - 76 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT - 76 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( - ( - - 20 ) )
----
-20

query I rowsort
SELECT DISTINCT - ( 4 )
----
-4

query II rowsort
SELECT ALL 16 - 15 col1, + 65 col0
----
1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT SUM( DISTINCT - 74 ) + - + MAX( 31 ) - 16 + - + ( COUNT( * ) ) * - 6 * + 2 AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-8379
SELECT SUM ( DISTINCT - 74 ) + - + MAX ( 31 ) - 16 + - + ( COUNT ( * ) ) * - 6 * + 2 AS col1
----
-109

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8380
SELECT ALL CASE + 44 WHEN - COUNT( * ) + + - SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) / + 70 * - ( - 99 ) THEN + COUNT( * ) + 94 / 31 WHEN - 92 / + COALESCE ( - COUNT( * ) + - COUNT( * ), 90 ) - + 27 * - 32 THEN NULL END * - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL CASE + 44 WHEN - COUNT ( * ) + + - SUM ( DISTINCT + CAST ( NULL AS REAL ) ) / + 70 * - ( - 99 ) THEN + COUNT ( * ) + 94 / 31 WHEN - 92 / + COALESCE ( - COUNT ( * ) + - COUNT ( * ), 90 ) - + 27 * - 32 THEN NULL END * - 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT COUNT( DISTINCT - 29 ) * - 8 * - 33 col2
----
264

skipif mysql # not compatible
query I rowsort label-8381
SELECT COUNT ( DISTINCT - 29 ) * - 8 * - 33 col2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT DISTINCT CASE 41 WHEN ( + 49 ) THEN - 92 * + + 41 + + 42 + AVG ( DISTINCT - 87 ) * + 10 * - - 71 * + 97 WHEN 14 THEN NULL WHEN - 7 + COUNT( * ) THEN 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT CASE 41 WHEN ( + 49 ) THEN - 92 * + + 41 + + 42 + AVG ( DISTINCT - 87 ) * + 10 * - - 71 * + 97 WHEN 14 THEN NULL WHEN - 7 + COUNT ( * ) THEN 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT - NULLIF ( + - 10, - - 9 * ( + 74 ) ) * 94 * + + COUNT( * ) + NULLIF ( 28, + 30 - + COUNT( * ) - - + 17 * - 85 * 95 ) AS col1
----
968

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT - NULLIF ( + - 10, - - 9 * ( + 74 ) ) * 94 * + + COUNT ( * ) + NULLIF ( 28, + 30 - + COUNT ( * ) - - + 17 * - 85 * 95 ) AS col1
----
968

query I rowsort
SELECT DISTINCT + 73 * - + 19 * 92 AS col0
----
-127604

onlyif mysql # DIV for integer division: 
query I rowsort label-8385
SELECT ALL NULLIF ( - 30, - 89 ) DIV + + 33 col1
----
0

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL NULLIF ( - 30, - 89 ) / + + 33 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT COUNT( * ) * - + 49 - + 49 / CASE 68 WHEN + + 66 THEN - NULLIF ( - 45, + + 14 ) WHEN + 38 + + + 81 THEN - 37 * 89 WHEN - 61 THEN COUNT( * ) ELSE NULL END * - CASE - 66 WHEN + 97 * + 56 THEN NULL WHEN + 6 * - CASE ( + COUNT( * ) ) / - 6 WHEN COUNT( * ) + 74 THEN NULL WHEN - 83 THEN ( - 86 ) ELSE NULL END THEN + 16 WHEN 55 + - 3 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT COUNT ( * ) * - + 49 - + 49 / CASE 68 WHEN + + 66 THEN - NULLIF ( - 45, + + 14 ) WHEN + 38 + + + 81 THEN - 37 * 89 WHEN - 61 THEN COUNT ( * ) ELSE NULL END * - CASE - 66 WHEN + 97 * + 56 THEN NULL WHEN + 6 * - CASE ( + COUNT ( * ) ) / - 6 WHEN COUNT ( * ) + 74 THEN NULL WHEN - 83 THEN ( - 86 ) ELSE NULL END THEN + 16 WHEN 55 + - 3 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8387
SELECT DISTINCT + SUM( DISTINCT - - 95 ) DIV + 84 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT + SUM ( DISTINCT - - 95 ) / + 84 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8388
SELECT + 52 - + - 56 + + ( + 17 ) + + - 29 DIV - - 59
----
125

skipif mysql # not compatible
query I rowsort label-8388
SELECT + 52 - + - 56 + + ( + 17 ) + + - 29 / - - 59
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT - - MIN( ALL + - 73 ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-8389
SELECT - - MIN ( ALL + - 73 ) col0
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-8390
SELECT 48 * + 78 col0, COUNT( * ) AS col0
----
3744
1

skipif mysql # not compatible
query II rowsort label-8390
SELECT 48 * + 78 col0, COUNT ( * ) AS col0
----
3744
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT + 79 + COUNT( * ) - + - 6 * + + 37 AS col1
----
302

skipif mysql # not compatible
query I rowsort label-8391
SELECT + 79 + COUNT ( * ) - + - 6 * + + 37 AS col1
----
302

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL 18 * + + NULLIF ( - 14, - + 57 * 52 + - - 46 + - - 20 * + MAX( DISTINCT - 46 ) ) AS col2
----
-252

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL 18 * + + NULLIF ( - 14, - + 57 * 52 + - - 46 + - - 20 * + MAX ( DISTINCT - 46 ) ) AS col2
----
-252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8393
SELECT ALL + 99 + - + MAX( DISTINCT + + 90 ) * + - CAST( NULL AS SIGNED ) * + CASE + 84 WHEN - - 87 / + 30 + + 72 + - + MIN( - - 87 ) * 13 THEN + 90 * + COUNT( * ) WHEN + 30 + 37 THEN - 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL + 99 + - + MAX ( DISTINCT + + 90 ) * + - CAST ( NULL AS INTEGER ) * + CASE + 84 WHEN - - 87 / + 30 + + 72 + - + MIN ( - - 87 ) * 13 THEN + 90 * + COUNT ( * ) WHEN + 30 + 37 THEN - 79 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 62 + + 35 AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8395
SELECT DISTINCT - COUNT( * ) * - 77, + COUNT( * ) AS col2
----
77
1

skipif mysql # not compatible
query II rowsort label-8395
SELECT DISTINCT - COUNT ( * ) * - 77, + COUNT ( * ) AS col2
----
77
1

query I rowsort
SELECT 27 + + NULLIF ( 87, + 4 ) AS col1
----
114

query II rowsort
SELECT ALL 45 + 64, - 29 + + 96 AS col0
----
109
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL + 96 * - COUNT( * ) col2
----
-96

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL + 96 * - COUNT ( * ) col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL - COUNT( * ) + - MIN( ALL + 46 ) col2
----
-47

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL - COUNT ( * ) + - MIN ( ALL + 46 ) col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT DISTINCT + 5 + - COALESCE ( + 92, 22 ) - - COUNT( * ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT + 5 + - COALESCE ( + 92, 22 ) - - COUNT ( * ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-8401
SELECT DISTINCT - MAX( ALL - ( 82 ) ) AS col1, - 33 AS col2
----
82
-33

skipif mysql # not compatible
query II rowsort label-8401
SELECT DISTINCT - MAX ( ALL - ( 82 ) ) AS col1, - 33 AS col2
----
82
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8402
SELECT 75 - + 30 + CASE 38 WHEN - 10 THEN 12 * - + COALESCE ( - - 15, 34 - + CASE - SUM( DISTINCT + + 21 ) WHEN 83 * - CAST( NULL AS SIGNED ) THEN NULL WHEN 58 THEN + ( + 14 ) + - CAST( NULL AS SIGNED ) WHEN 80 THEN NULL END ) + - 27 ELSE 62 END * - 3
----
-141

skipif mysql # not compatible
query I rowsort label-8402
SELECT 75 - + 30 + CASE 38 WHEN - 10 THEN 12 * - + COALESCE ( - - 15, 34 - + CASE - SUM ( DISTINCT + + 21 ) WHEN 83 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN 58 THEN + ( + 14 ) + - CAST ( NULL AS INTEGER ) WHEN 80 THEN NULL END ) + - 27 ELSE 62 END * - 3
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8403
SELECT ALL - 32 / NULLIF ( - + 82, - 10 / - MIN( DISTINCT + - 64 ) * - + 94 + + - 78 * + - 0 + - ( - - ( + + SUM( ALL - NULLIF ( 80, 6 ) ) ) ) + - 58 * COUNT( * ) ) * CASE - COUNT( * ) WHEN MAX( DISTINCT + 62 ) + COUNT( * ) / + CAST( 35 * COUNT( * ) AS SIGNED ) THEN + 17 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL - 32 / NULLIF ( - + 82, - 10 / - MIN ( DISTINCT + - 64 ) * - + 94 + + - 78 * + - 0 + - ( - - ( + + SUM ( ALL - NULLIF ( 80, 6 ) ) ) ) + - 58 * COUNT ( * ) ) * CASE - COUNT ( * ) WHEN MAX ( DISTINCT + 62 ) + COUNT ( * ) / + CAST ( 35 * COUNT ( * ) AS INTEGER ) THEN + 17 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 14 * + - 4 * - 70
----
-3920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8405
SELECT DISTINCT - COUNT( * ) AS col0, + CAST( SUM( ALL + 45 ) AS SIGNED )
----
-1
45

skipif mysql # not compatible
query II rowsort label-8405
SELECT DISTINCT - COUNT ( * ) AS col0, + CAST ( SUM ( ALL + 45 ) AS INTEGER )
----
-1
45

query I rowsort
SELECT ALL - 5 - 9 AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-8407
SELECT 65 DIV 33
----
1

skipif mysql # not compatible
query I rowsort label-8407
SELECT 65 / 33
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8408
SELECT ALL 52 DIV MAX( ALL - 97 ) AS col0, + 60 AS col1
----
0
60

skipif mysql # not compatible
query II rowsort label-8408
SELECT ALL 52 / MAX ( ALL - 97 ) AS col0, + 60 AS col1
----
0
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8409
SELECT ALL + 41 * 61 * - COUNT( * ), 38 DIV 95 AS col1
----
-2501
0

skipif mysql # not compatible
query II rowsort label-8409
SELECT ALL + 41 * 61 * - COUNT ( * ), 38 / 95 AS col1
----
-2501
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8410
SELECT 74 + 62 - - SUM( + CAST( + 72 AS SIGNED ) ) * 95 * - + 15 AS col1
----
-102464

skipif mysql # not compatible
query I rowsort label-8410
SELECT 74 + 62 - - SUM ( + CAST ( + 72 AS INTEGER ) ) * 95 * - + 15 AS col1
----
-102464

query I rowsort
SELECT ALL + 32 * - 96 AS col1
----
-3072

query I rowsort
SELECT DISTINCT + 60 * - + 64
----
-3840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8413
SELECT CAST( CASE - + 90 WHEN - 52 + 54 THEN - ( + SUM( - 50 ) ) / - COALESCE ( - - NULLIF ( + - SUM( DISTINCT - 38 ), - 88 ), 16 ) + COALESCE ( MAX( DISTINCT 41 ), 92 * CAST( NULL AS SIGNED ), 5, - 72 ) / 31 ELSE CAST( 29 AS DECIMAL ) * 89 END AS SIGNED ) * + 0 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8413
SELECT CAST ( CASE - + 90 WHEN - 52 + 54 THEN - ( + SUM ( - 50 ) ) / - COALESCE ( - - NULLIF ( + - SUM ( DISTINCT - 38 ), - 88 ), 16 ) + COALESCE ( MAX ( DISTINCT 41 ), 92 * CAST ( NULL AS INTEGER ), 5, - 72 ) / 31 ELSE CAST ( 29 AS REAL ) * 89 END AS INTEGER ) * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT 99 * + + COUNT( ALL 91 )
----
99

skipif mysql # not compatible
query I rowsort label-8414
SELECT 99 * + + COUNT ( ALL 91 )
----
99

query I rowsort
SELECT 70 + 17 AS col0
----
87

query I rowsort
SELECT 80 + - 18 + - + 25 * - + 23 col0
----
637

query II rowsort
SELECT ALL 41, + 88 * - - 83 AS col2
----
41
7304

query I rowsort
SELECT ALL 45 * 82 AS col2
----
3690

query I rowsort
SELECT 89 * + 60
----
5340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8420
SELECT DISTINCT - CAST( - + COUNT( + - 4 ) AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) + 52
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8420
SELECT DISTINCT - CAST ( - + COUNT ( + - 4 ) AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) + 52
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT + 83 + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-8421
SELECT + 83 + COUNT ( * ) AS col1
----
84

query I rowsort
SELECT ( 67 ) + 79 AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL - + SUM( - + 99 ) + + 41 col2
----
140

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL - + SUM ( - + 99 ) + + 41 col2
----
140

query II rowsort
SELECT + 21, 69 col2
----
21
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8425
SELECT + 10 + COALESCE ( + - 84, - 29, NULLIF ( - - CAST( NULL AS SIGNED ), 8 DIV - COUNT( ALL - 40 ) - 25 + 64 ) * 94 ) DIV 17 DIV 26 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8425
SELECT + 10 + COALESCE ( + - 84, - 29, NULLIF ( - - CAST ( NULL AS INTEGER ), 8 / - COUNT ( ALL - 40 ) - 25 + 64 ) * 94 ) / 17 / 26 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8426
SELECT - - CAST( NULL AS SIGNED ) AS col1, - ( - 36 )
----
NULL
36

skipif mysql # not compatible
query II rowsort label-8426
SELECT - - CAST ( NULL AS INTEGER ) AS col1, - ( - 36 )
----
NULL
36

query I rowsort
SELECT 4 * + + 2 - 14
----
-6

query I rowsort
SELECT DISTINCT + 69 + - 78 + 62 * + NULLIF ( - 7, + - 90 / - 80 * + + 51 * + 36 + + 90 / - 19 * - 47 ) AS col2
----
-443

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT DISTINCT - - COUNT( * ) + - ( - 14 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT - - COUNT ( * ) + - ( - 14 ) AS col1
----
15

query I rowsort
SELECT ALL - 36 + + 52 + + 31 * + 33
----
1039

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL + SUM( + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL + SUM ( + 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL + + NULLIF ( - 29, MIN( 41 ) ) * + - 47 + + ( - COUNT( * ) )
----
1362

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL + + NULLIF ( - 29, MIN ( 41 ) ) * + - 47 + + ( - COUNT ( * ) )
----
1362

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ( + + 87 ) + 47 - - NULLIF ( + COUNT( * ), + + 92 * - - COUNT( * ) ) AS col1
----
135

skipif mysql # not compatible
query I rowsort label-8433
SELECT ( + + 87 ) + 47 - - NULLIF ( + COUNT ( * ), + + 92 * - - COUNT ( * ) ) AS col1
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8434
SELECT ALL - + CAST( SUM( + 22 ) AS SIGNED ) + - + 84 - - 93 - + COALESCE ( + + 96, 52 + + + 87 * - 43, COUNT( * ) ) + + 42 - - SUM( + 76 ) * - 11
----
-903

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL - + CAST ( SUM ( + 22 ) AS INTEGER ) + - + 84 - - 93 - + COALESCE ( + + 96, 52 + + + 87 * - 43, COUNT ( * ) ) + + 42 - - SUM ( + 76 ) * - 11
----
-903

query II rowsort
SELECT - 62, - 58 AS col0
----
-62
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT 52 * + + COUNT( ALL 2 ) * + 8 + + ( + + 58 ) - + + 52 AS col1
----
422

skipif mysql # not compatible
query I rowsort label-8436
SELECT 52 * + + COUNT ( ALL 2 ) * + 8 + + ( + + 58 ) - + + 52 AS col1
----
422

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT 96 * - 13 - + ( - COUNT( * ) )
----
-1247

skipif mysql # not compatible
query I rowsort label-8437
SELECT 96 * - 13 - + ( - COUNT ( * ) )
----
-1247

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT CASE - - COUNT( * ) WHEN - - 95 + + 20 * + 9 THEN + 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8438
SELECT CASE - - COUNT ( * ) WHEN - - 95 + + 20 * + 9 THEN + 60 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8439
SELECT + COUNT( * ) DIV - - 8 + - 36 + + 52 * - COALESCE ( + 73, + - 6 * - MIN( - 86 ) - + + 70 DIV - 88 + - 83 ) AS col1
----
-3832

skipif mysql # not compatible
query I rowsort label-8439
SELECT + COUNT ( * ) / - - 8 + - 36 + + 52 * - COALESCE ( + 73, + - 6 * - MIN ( - 86 ) - + + 70 / - 88 + - 83 ) AS col1
----
-3832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8440
SELECT DISTINCT + CASE + - COALESCE ( 33, - + 54, + + 69 ) WHEN - - 75 THEN - COUNT( * ) ELSE - 60 DIV + - 62 END
----
0

skipif mysql # not compatible
query I rowsort label-8440
SELECT DISTINCT + CASE + - COALESCE ( 33, - + 54, + + 69 ) WHEN - - 75 THEN - COUNT ( * ) ELSE - 60 / + - 62 END
----
0

query I rowsort
SELECT ALL 11 * - COALESCE ( + 41, + 23 * + 58 )
----
-451

onlyif mysql # aggregate syntax: 
query II rowsort label-8442
SELECT DISTINCT 46 * + COUNT( * ), + 66 AS col0
----
46
66

skipif mysql # not compatible
query II rowsort label-8442
SELECT DISTINCT 46 * + COUNT ( * ), + 66 AS col0
----
46
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT + MIN( - 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-8443
SELECT + MIN ( - 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT SUM( ALL - 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8444
SELECT SUM ( ALL - 82 ) AS col1
----
-82

query I rowsort
SELECT + 4 * - ( 71 )
----
-284

query I rowsort
SELECT + ( - 48 ) + - 50
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8447
SELECT COUNT( DISTINCT 21 ) col2, 34 + - 71 * + MIN( - + CAST( NULL AS SIGNED ) ) + + 47 - + 41
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8447
SELECT COUNT ( DISTINCT 21 ) col2, 34 + - 71 * + MIN ( - + CAST ( NULL AS INTEGER ) ) + + 47 - + 41
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT + COUNT( * ) + - 76 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8448
SELECT + COUNT ( * ) + - 76 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT ALL + COALESCE ( 5, + 29 + COUNT( * ) ) * - 38 + 50 * + 55 + 28 + + 99 * + 31
----
5657

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL + COALESCE ( 5, + 29 + COUNT ( * ) ) * - 38 + 50 * + 55 + 28 + + 99 * + 31
----
5657

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT ALL + CASE - - 79 WHEN - + 1 * 22 + - 72 - SUM( + NULLIF ( + + 86, - - ( + 4 ) * 79 ) ) THEN NULL WHEN + 98 * + ( + SUM( + 0 ) ) THEN NULL ELSE + 63 END
----
63

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL + CASE - - 79 WHEN - + 1 * 22 + - 72 - SUM ( + NULLIF ( + + 86, - - ( + 4 ) * 79 ) ) THEN NULL WHEN + 98 * + ( + SUM ( + 0 ) ) THEN NULL ELSE + 63 END
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8451
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - ( + - 69 ) + - - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT CAST ( NULL AS REAL ) * - ( + - 69 ) + - - 31
----
NULL

query I rowsort
SELECT - - COALESCE ( 33, - - 55 ) - + - 24 + + 78 * - 97 * + 91 + + 32 AS col2
----
-688417

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL 50 + COUNT( * ) + + 18
----
69

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL 50 + COUNT ( * ) + + 18
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL + COUNT( * ) + 8 * 48
----
385

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL + COUNT ( * ) + 8 * 48
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT DISTINCT NULLIF ( - COUNT( * ), - 91 ) * - + 44
----
44

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT NULLIF ( - COUNT ( * ), - 91 ) * - + 44
----
44

query I rowsort
SELECT ALL + + 45 + - 19 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT COUNT( DISTINCT + + 59 )
----
1

skipif mysql # not compatible
query I rowsort label-8457
SELECT COUNT ( DISTINCT + + 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT DISTINCT + NULLIF ( 9, + - 58 * - 84 ) + MIN( DISTINCT 40 )
----
49

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT + NULLIF ( 9, + - 58 * - 84 ) + MIN ( DISTINCT 40 )
----
49

query I rowsort
SELECT DISTINCT - - 32 * - 10
----
-320

query I rowsort
SELECT ALL + 5 - - 77 * + 64 - 37 + 51
----
4947

query I rowsort
SELECT DISTINCT - - 40 * - 46
----
-1840

query I rowsort
SELECT ALL - 13 * + COALESCE ( + ( - 17 ), + + 0 * 90 ) AS col1
----
221

query I rowsort
SELECT DISTINCT + ( - - 53 ) * + - ( - 7 )
----
371

query I rowsort
SELECT - 47 + + - 42
----
-89

query I rowsort
SELECT ALL + NULLIF ( + 39, - - 23 * 9 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8466
SELECT DISTINCT - 59 * COALESCE ( 30, + 96, + 6 * + + NULLIF ( - COALESCE ( + 7, + - COALESCE ( - ( - CAST( NULL AS SIGNED ) ), 22 * 1 ), + 72 ), + 38 * + 0 ) ) * + 9 AS col2
----
-15930

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT - 59 * COALESCE ( 30, + 96, + 6 * + + NULLIF ( - COALESCE ( + 7, + - COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), 22 * 1 ), + 72 ), + 38 * + 0 ) ) * + 9 AS col2
----
-15930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8467
SELECT CAST( - - COUNT( * ) AS SIGNED ) DIV 96 + + 11 + - 44 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-8467
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) / 96 + + 11 + - 44 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT - 11 * - COUNT( * ) * 99
----
1089

skipif mysql # not compatible
query I rowsort label-8468
SELECT - 11 * - COUNT ( * ) * 99
----
1089

query I rowsort
SELECT + 17 * - - 92
----
1564

query I rowsort
SELECT ( - 77 ) AS col2
----
-77

query I rowsort
SELECT ( + 37 ) AS col0
----
37

query I rowsort
SELECT + 69 - - - 78 + + 52
----
43

query I rowsort
SELECT - 81 * + - 22
----
1782

query II rowsort
SELECT ALL + 54 AS col1, + 23
----
54
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL - ( - + 74 ) * - MIN( ALL - - 91 ) * + MAX( DISTINCT 57 ) * + 18 + - NULLIF ( - 58, 23 * - 3 * 22 ) * COALESCE ( 66, - 16, + 54 ) + + 95 + + 62 AS col0
----
-6905099

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL - ( - + 74 ) * - MIN ( ALL - - 91 ) * + MAX ( DISTINCT 57 ) * + 18 + - NULLIF ( - 58, 23 * - 3 * 22 ) * COALESCE ( 66, - 16, + 54 ) + + 95 + + 62 AS col0
----
-6905099

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8476
SELECT ( - - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT ( - - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT + 51 * + 88 AS col2
----
4488

onlyif mysql # DIV for integer division: 
query I rowsort label-8478
SELECT DISTINCT COALESCE ( + - 85, + 41 * + + 2 DIV 43 ) * - 61 * 44 + 68
----
228208

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT COALESCE ( + - 85, + 41 * + + 2 / 43 ) * - 61 * 44 + 68
----
228208

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8479
SELECT + SUM( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT + SUM ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT 16 * ( - 87 ) * - 88 * SUM( - + 40 ) + - 9 - + 1 + + - 61 * + ( - 10 ) * + 19 * - SUM( DISTINCT - + 4 ) + - 96 * 38 AS col2
----
-4857138

skipif mysql # not compatible
query I rowsort label-8480
SELECT 16 * ( - 87 ) * - 88 * SUM ( - + 40 ) + - 9 - + 1 + + - 61 * + ( - 10 ) * + 19 * - SUM ( DISTINCT - + 4 ) + - 96 * 38 AS col2
----
-4857138

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT ALL + 23 * + - 88 + COUNT( * ) + - 8
----
-2031

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL + 23 * + - 88 + COUNT ( * ) + - 8
----
-2031

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT + - 94 * - COUNT( * ) + 61
----
155

skipif mysql # not compatible
query I rowsort label-8482
SELECT + - 94 * - COUNT ( * ) + 61
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT - - 91 * 25 * - MAX( ( - 78 ) ) - MAX( - 63 ) col1
----
177513

skipif mysql # not compatible
query I rowsort label-8483
SELECT - - 91 * 25 * - MAX ( ( - 78 ) ) - MAX ( - 63 ) col1
----
177513

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8484
SELECT ALL + + ( - CASE - 6 WHEN - + 67 * COUNT( * ) THEN - - 64 ELSE NULL END ) * + NULLIF ( + 5, - COUNT( * ) + COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL + + ( - CASE - 6 WHEN - + 67 * COUNT ( * ) THEN - - 64 ELSE NULL END ) * + NULLIF ( + 5, - COUNT ( * ) + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + + ( + 82 ) * - + 36 AS col1
----
-2952

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL + + 18 * - ( + ( + COUNT( * ) ) ) * - 67
----
1206

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL + + 18 * - ( + ( + COUNT ( * ) ) ) * - 67
----
1206

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT + 81 + - - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-8487
SELECT + 81 + - - COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT - MAX( 58 ) + - 62 * + COUNT( * ) AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-8488
SELECT - MAX ( 58 ) + - 62 * + COUNT ( * ) AS col0
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8489
SELECT + COALESCE ( - - 61, 39 * - + 39 + - - CASE + 34 WHEN + 66 THEN - 6 END * 19 ) * - 59, CAST( - NULLIF ( - 41, + 73 + - 57 ) AS SIGNED ) - + COUNT( * ) col0
----
-3599
40

skipif mysql # not compatible
query II rowsort label-8489
SELECT + COALESCE ( - - 61, 39 * - + 39 + - - CASE + 34 WHEN + 66 THEN - 6 END * 19 ) * - 59, CAST ( - NULLIF ( - 41, + 73 + - 57 ) AS INTEGER ) - + COUNT ( * ) col0
----
-3599
40

query I rowsort
SELECT - 8 + - + 38
----
-46

query I rowsort
SELECT - COALESCE ( + - 69, - COALESCE ( + ( + 9 ), - 77, - + 94 * 36 - 96, + COALESCE ( - 26, 37 * - - ( + 80 ) + 75 ) * + 80 ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT + MIN( - 49 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-8492
SELECT + MIN ( - 49 ) AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT ALL - + CAST( NULL AS SIGNED ) * - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 9
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT + ( + + 24 ) + + CASE 86 WHEN + COUNT( * ) * + CASE + 55 WHEN 22 * + + MAX( ALL + 39 ) + 81 THEN COUNT( * ) END THEN - 90 ELSE NULL END AS col2, 44 * 83 * + 4 AS col0
----
NULL
14608

skipif mysql # not compatible
query II rowsort label-8494
SELECT + ( + + 24 ) + + CASE 86 WHEN + COUNT ( * ) * + CASE + 55 WHEN 22 * + + MAX ( ALL + 39 ) + 81 THEN COUNT ( * ) END THEN - 90 ELSE NULL END AS col2, 44 * 83 * + 4 AS col0
----
NULL
14608

query I rowsort
SELECT 58 * - 10
----
-580

query I rowsort
SELECT ALL NULLIF ( 88, 9 ) * - 58 AS col2
----
-5104

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT 84 * COUNT( + 24 )
----
84

skipif mysql # not compatible
query I rowsort label-8497
SELECT 84 * COUNT ( + 24 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8498
SELECT DISTINCT + 1 DIV + COUNT( * ), CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8498
SELECT DISTINCT + 1 / + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8499
SELECT - 14 AS col1, COUNT( * )
----
-14
1

skipif mysql # not compatible
query II rowsort label-8499
SELECT - 14 AS col1, COUNT ( * )
----
-14
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8500
SELECT ALL + 83 + - + 39 AS col0, 12 + + NULLIF ( + 63, + MAX( ALL - - ( - 58 ) ) * + - 82 * 69 + - 45 ) AS col2
----
44
75

skipif mysql # not compatible
query II rowsort label-8500
SELECT ALL + 83 + - + 39 AS col0, 12 + + NULLIF ( + 63, + MAX ( ALL - - ( - 58 ) ) * + - 82 * 69 + - 45 ) AS col2
----
44
75

query II rowsort
SELECT 74 * - 60 AS col0, - 45 * + 63 * - 72 - + - 42 + 29
----
-4440
204191

query II rowsort
SELECT + 23 AS col2, 56 * + 48
----
23
2688

query II rowsort
SELECT ALL - 54 AS col0, - 2 * - 13 * - - 68 col2
----
-54
1768

query II rowsort
SELECT 26, - 98 col0
----
26
-98

query II rowsort
SELECT ALL - 25 AS col0, - 72
----
-25
-72

query I rowsort
SELECT ALL + 83 + 66 + + 41 - + - 75 * - 69 - 15 * + 14 AS col0
----
-5195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8507
SELECT ALL ( - COUNT( * ) ) + + - CAST( - 48 AS SIGNED ) * - COUNT( * ) - - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL ( - COUNT ( * ) ) + + - CAST ( - 48 AS INTEGER ) * - COUNT ( * ) - - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8508
SELECT ALL 4 + COUNT( DISTINCT - 16 ) + - 36 AS col1, 63 * + + 82 AS col2
----
-31
5166

skipif mysql # not compatible
query II rowsort label-8508
SELECT ALL 4 + COUNT ( DISTINCT - 16 ) + - 36 AS col1, 63 * + + 82 AS col2
----
-31
5166

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT COALESCE ( + 75, + - 6, 64 ) DIV ( 39 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8509
SELECT COALESCE ( + 75, + - 6, 64 ) / ( 39 ) AS col0
----
1

query I rowsort
SELECT 89 * - + 6
----
-534

query I rowsort
SELECT + 20 + - 35
----
-15

query I rowsort
SELECT DISTINCT - + 94 AS col1
----
-94

query I rowsort
SELECT DISTINCT - + ( - 9 ) AS col0
----
9

query I rowsort
SELECT DISTINCT - 71 - + 34 - - + ( COALESCE ( 46, + + 0, + 92 ) )
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-8515
SELECT + 24, MIN( ALL - 29 ) AS col1
----
24
-29

skipif mysql # not compatible
query II rowsort label-8515
SELECT + 24, MIN ( ALL - 29 ) AS col1
----
24
-29

query II rowsort
SELECT ALL - - 96, 3 AS col0
----
96
3

query I rowsort
SELECT DISTINCT - - 61 - + + 86
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT ALL COUNT( * ) * + ( + - 99 ) + - 43
----
-142

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL COUNT ( * ) * + ( + - 99 ) + - 43
----
-142

query II rowsort
SELECT 50 AS col2, 9
----
50
9

query I rowsort
SELECT - NULLIF ( 66, - 54 ) AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8521
SELECT + CAST( NULL AS SIGNED ) / + 44 * CASE + 86 WHEN MIN( + 4 ) THEN + 74 ELSE NULL END + - 39 - 85 col2, - NULLIF ( - 80, 57 / + 37 )
----
NULL
80

skipif mysql # not compatible
query II rowsort label-8521
SELECT + CAST ( NULL AS INTEGER ) / + 44 * CASE + 86 WHEN MIN ( + 4 ) THEN + 74 ELSE NULL END + - 39 - 85 col2, - NULLIF ( - 80, 57 / + 37 )
----
NULL
80

query I rowsort
SELECT 17 * 16 col1
----
272

query II rowsort
SELECT DISTINCT 75 AS col1, + 36
----
75
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8524
SELECT DISTINCT + CASE - + 39 WHEN + + 77 THEN + 59 WHEN - 12 / 61 * MIN( - + 14 ) + - 36 + - ( - CASE + - CAST( 31 AS DECIMAL ) WHEN - 81 * - - ( - + COUNT( * ) ) - 66 THEN 99 END ) - - 54 * 19 THEN - 78 WHEN + COUNT( * ) THEN NULL ELSE 37 END AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT + CASE - + 39 WHEN + + 77 THEN + 59 WHEN - 12 / 61 * MIN ( - + 14 ) + - 36 + - ( - CASE + - CAST ( 31 AS REAL ) WHEN - 81 * - - ( - + COUNT ( * ) ) - 66 THEN 99 END ) - - 54 * 19 THEN - 78 WHEN + COUNT ( * ) THEN NULL ELSE 37 END AS col0
----
37

query I rowsort
SELECT ALL 88 * - 55
----
-4840

query I rowsort
SELECT 48 + - 58 * 49
----
-2794

query I rowsort
SELECT 55 + + + 27
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT SUM( DISTINCT - + 39 ) * + NULLIF ( - - 70, - 45 )
----
-2730

skipif mysql # not compatible
query I rowsort label-8528
SELECT SUM ( DISTINCT - + 39 ) * + NULLIF ( - - 70, - 45 )
----
-2730

query I rowsort
SELECT 93 * + 3 col2
----
279

query I rowsort
SELECT 74 + + 90 - - - 49
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT ALL + MAX( ALL + 10 ) + + 1 * - + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + MAX ( ALL + 10 ) + + 1 * - + COUNT ( * )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8532
SELECT 93 + - COUNT( * ) - - COUNT( + ( 65 ) ) * + CAST( NULL AS SIGNED ) + 74 AS col0, 52 * + 84 col1
----
NULL
4368

skipif mysql # not compatible
query II rowsort label-8532
SELECT 93 + - COUNT ( * ) - - COUNT ( + ( 65 ) ) * + CAST ( NULL AS INTEGER ) + 74 AS col0, 52 * + 84 col1
----
NULL
4368

onlyif mysql # DIV for integer division: 
query I rowsort label-8533
SELECT DISTINCT 81 + - + 27 + 88 DIV + 20 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT 81 + - + 27 + 88 / + 20 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT ALL - 61 * + 35 + + - 91 + + SUM( - - 62 ) * MIN( ALL + 2 ) * + 70 + + 36
----
6490

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL - 61 * + 35 + + - 91 + + SUM ( - - 62 ) * MIN ( ALL + 2 ) * + 70 + + 36
----
6490

query I rowsort
SELECT ALL 67 * - 92 + 1 * - + 76 AS col1
----
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT + COUNT( - - 54 )
----
1

skipif mysql # not compatible
query I rowsort label-8536
SELECT + COUNT ( - - 54 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8537
SELECT MAX( DISTINCT 9 ) AS col1, - 87
----
9
-87

skipif mysql # not compatible
query II rowsort label-8537
SELECT MAX ( DISTINCT 9 ) AS col1, - 87
----
9
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8538
SELECT 52 DIV - + 44 + 23 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8538
SELECT 52 / - + 44 + 23 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT COUNT( * ) * + - 98 * + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-8539
SELECT COUNT ( * ) * + - 98 * + COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - 27 * - COUNT( * ) * - 52 * 10
----
-14040

skipif mysql # not compatible
query I rowsort label-8540
SELECT - 27 * - COUNT ( * ) * - 52 * 10
----
-14040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8541
SELECT ALL - SUM( ALL CAST( NULL AS SIGNED ) ), 19 AS col1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-8541
SELECT ALL - SUM ( ALL CAST ( NULL AS INTEGER ) ), 19 AS col1
----
NULL
19

query II rowsort
SELECT DISTINCT - - 9 - + - 58, 70 col0
----
67
70

query I rowsort
SELECT DISTINCT - - 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT COUNT( * ) * - 24 + - 98 AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-8544
SELECT COUNT ( * ) * - 24 + - 98 AS col1
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT + 93 * - COUNT( * ) * 68 AS col1
----
-6324

skipif mysql # not compatible
query I rowsort label-8545
SELECT + 93 * - COUNT ( * ) * 68 AS col1
----
-6324

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ( - - 80 ) * - + 80 * COALESCE ( - ( COUNT( * ) ), + CASE 47 WHEN 47 * + + 95 THEN + + 29 ELSE - - 0 END - + 28 * - ( 75 ) + COUNT( * ), 25 + - 86 ) + + 68 AS col0
----
6468

skipif mysql # not compatible
query I rowsort label-8546
SELECT ( - - 80 ) * - + 80 * COALESCE ( - ( COUNT ( * ) ), + CASE 47 WHEN 47 * + + 95 THEN + + 29 ELSE - - 0 END - + 28 * - ( 75 ) + COUNT ( * ), 25 + - 86 ) + + 68 AS col0
----
6468

onlyif mysql # aggregate syntax: 
query II rowsort label-8547
SELECT 96 * COUNT( * ) AS col0, NULLIF ( + 32, 12 )
----
96
32

skipif mysql # not compatible
query II rowsort label-8547
SELECT 96 * COUNT ( * ) AS col0, NULLIF ( + 32, 12 )
----
96
32

query I rowsort
SELECT + + 40 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT 27 + - COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8549
SELECT 27 + - COUNT ( * ) AS col1
----
26

query I rowsort
SELECT + + NULLIF ( - 29, + 20 / + + 21 )
----
-29

query I rowsort
SELECT + 99 - - COALESCE ( ( 23 ), + 13, 59 + 45 )
----
122

query I rowsort
SELECT - 43 * + + 11
----
-473

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8553
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) DIV - + ( + + 87 ) * + COUNT( * ) + - 15
----
-15

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) / - + ( + + 87 ) * + COUNT ( * ) + - 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ( + 8 ) * 77 + + 44 + + MIN( + + 3 ) - - + 42 * + + 78 * - - COUNT( * )
----
3939

skipif mysql # not compatible
query I rowsort label-8554
SELECT ( + 8 ) * 77 + + 44 + + MIN ( + + 3 ) - - + 42 * + + 78 * - - COUNT ( * )
----
3939

query I rowsort
SELECT ALL + 2 * - - COALESCE ( 31, + 67 ) + + 55 + - + 30 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT ALL + ( - ( MAX( ALL 21 ) ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL + ( - ( MAX ( ALL 21 ) ) ) AS col1
----
-21

query II rowsort
SELECT 37 AS col1, + 91 + - - 85 * 49 * 73 + - 33
----
37
304103

query I rowsort
SELECT - 88 * 4
----
-352

query I rowsort
SELECT + 70 + - + 14
----
56

query I rowsort
SELECT ALL 76 + + - 89 + + 34
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT - COUNT( - 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-8561
SELECT - COUNT ( - 17 )
----
-1

query I rowsort
SELECT ALL COALESCE ( + 77, - 37 * 62 ) + + 93
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-8563
SELECT + 10 DIV + - 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8563
SELECT + 10 / + - 49 AS col1
----
0

query I rowsort
SELECT + 22 * 54 AS col2
----
1188

query I rowsort
SELECT + 87 * 77
----
6699

query I rowsort
SELECT - ( 20 ) AS col0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8567
SELECT + COUNT( + 23 ) DIV - COUNT( * ) AS col0, - 99 + + + COUNT( * ) + + MAX( ALL 92 )
----
-1
-6

skipif mysql # not compatible
query II rowsort label-8567
SELECT + COUNT ( + 23 ) / - COUNT ( * ) AS col0, - 99 + + + COUNT ( * ) + + MAX ( ALL 92 )
----
-1
-6

query I rowsort
SELECT - 80 * + 34
----
-2720

onlyif mysql # aggregate syntax: 
query II rowsort label-8569
SELECT ( CASE + - 24 WHEN 92 THEN - + 45 * - MAX( - 55 ) * + 33 + + 81 + 6 - - - 60 + + COUNT( * ) * + + 49 * - + 16 * 90 + - 53 ELSE NULL END ), + 21 AS col0
----
NULL
21

skipif mysql # not compatible
query II rowsort label-8569
SELECT ( CASE + - 24 WHEN 92 THEN - + 45 * - MAX ( - 55 ) * + 33 + + 81 + 6 - - - 60 + + COUNT ( * ) * + + 49 * - + 16 * 90 + - 53 ELSE NULL END ), + 21 AS col0
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL + SUM( + 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL + SUM ( + 45 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + MAX( - 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-8571
SELECT + MAX ( - 27 ) AS col0
----
-27

query I rowsort
SELECT ALL + + 51 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT - 90 * 29 - + + 59 + + - COUNT( * ) col2
----
-2670

skipif mysql # not compatible
query I rowsort label-8573
SELECT - 90 * 29 - + + 59 + + - COUNT ( * ) col2
----
-2670

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT + COUNT( 10 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8574
SELECT + COUNT ( 10 ) col2
----
1

query I rowsort
SELECT + 5 + - - 91 AS col0
----
96

query II rowsort
SELECT + + 54 AS col0, + 68 * - 39
----
54
-2652

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL - - NULLIF ( + COALESCE ( + 2, + + 78 + 50 ), + ( + - 92 ) ) * - + 40 - 95 + + SUM( + + 8 ) + + 57 - + COUNT( * ) * + + 97 * - COUNT( 77 ) - 74 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL - - NULLIF ( + COALESCE ( + 2, + + 78 + 50 ), + ( + - 92 ) ) * - + 40 - 95 + + SUM ( + + 8 ) + + 57 - + COUNT ( * ) * + + 97 * - COUNT ( 77 ) - 74 AS col2
----
-87

query II rowsort
SELECT ALL + - 1, 61 AS col1
----
-1
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT ALL + + MIN( ALL 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL + + MIN ( ALL 4 ) AS col2
----
4

query II rowsort
SELECT + 93 AS col1, + 88 - + 73
----
93
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT ALL - 36 * + MAX( - + 11 ) AS col0
----
396

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - 36 * + MAX ( - + 11 ) AS col0
----
396

query I rowsort
SELECT - 63 * + 99 AS col2
----
-6237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8583
SELECT - - 67 + - CAST( + MAX( - 82 ) AS SIGNED ) + + ( 88 ) + 43 * + 25 * - 93 + + - 98 + + 45 - - 73 * + COALESCE ( - 12, NULLIF ( - + 84, + 60 / + - CASE + CASE 94 WHEN 29 THEN NULL WHEN - MAX( 72 ) THEN COUNT( * ) + + 60 WHEN 2 THEN NULL END WHEN 30 THEN NULL ELSE 40 * - 61 END + - 6 * COUNT( * ) + - 4 ) ) + ( - 13 ) * + 18 AS col1
----
-100901

skipif mysql # not compatible
query I rowsort label-8583
SELECT - - 67 + - CAST ( + MAX ( - 82 ) AS INTEGER ) + + ( 88 ) + 43 * + 25 * - 93 + + - 98 + + 45 - - 73 * + COALESCE ( - 12, NULLIF ( - + 84, + 60 / + - CASE + CASE 94 WHEN 29 THEN NULL WHEN - MAX ( 72 ) THEN COUNT ( * ) + + 60 WHEN 2 THEN NULL END WHEN 30 THEN NULL ELSE 40 * - 61 END + - 6 * COUNT ( * ) + - 4 ) ) + ( - 13 ) * + 18 AS col1
----
-100901

onlyif mysql # aggregate syntax: 
query II rowsort label-8584
SELECT ALL 27 * 60 + + - 97 AS col2, - MAX( + 92 ) * - COUNT( * ) AS col0
----
1523
92

skipif mysql # not compatible
query II rowsort label-8584
SELECT ALL 27 * 60 + + - 97 AS col2, - MAX ( + 92 ) * - COUNT ( * ) AS col0
----
1523
92

query II rowsort
SELECT - - 59, + 43 * - 26 AS col2
----
59
-1118

query I rowsort
SELECT - 94 * + 86 * 11
----
-88924

onlyif mysql # DIV for integer division: 
query I rowsort label-8587
SELECT DISTINCT - 42 DIV + - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT - 42 / + - 86 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT ALL CAST( 90 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL CAST ( 90 AS INTEGER )
----
90

query I rowsort
SELECT DISTINCT - 97 + + 44
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL 29 + 88 * COUNT( * ) * - 16 + - - NULLIF ( 21, - + 65 + + 23 + + - 86 / - COUNT( * ) * - 15 * + ( 58 ) )
----
-1358

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL 29 + 88 * COUNT ( * ) * - 16 + - - NULLIF ( 21, - + 65 + + 23 + + - 86 / - COUNT ( * ) * - 15 * + ( 58 ) )
----
-1358

query I rowsort
SELECT - 34 - + 30 + + 84 + 27
----
47

query I rowsort
SELECT ALL ( ( 49 ) ) AS col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8593
SELECT DISTINCT CAST( + + ( - 30 ) AS SIGNED ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT CAST ( + + ( - 30 ) AS INTEGER ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT - 98 + - - COALESCE ( - - 63, + 36 - 62 + 93 + - 2 * + - 21 * + 78, - 24 * + 40 * + CASE + 23 WHEN 98 THEN MAX( ALL - + 95 ) * - COUNT( * ) ELSE + 2 * - - COUNT( * ) * 21 END + 76 )
----
-35

skipif mysql # not compatible
query I rowsort label-8594
SELECT - 98 + - - COALESCE ( - - 63, + 36 - 62 + 93 + - 2 * + - 21 * + 78, - 24 * + 40 * + CASE + 23 WHEN 98 THEN MAX ( ALL - + 95 ) * - COUNT ( * ) ELSE + 2 * - - COUNT ( * ) * 21 END + 76 )
----
-35

query I rowsort
SELECT + 80 - + 4 AS col0
----
76

query I rowsort
SELECT - 51 + - + 69 * - 71 AS col0
----
4848

query I rowsort
SELECT + 68 * + 57 / + + ( - + 83 ) / + CASE - 85 WHEN + 18 THEN + - 95 END
----
NULL

query I rowsort
SELECT + 27 + - 78 - - 55 AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8599
SELECT ALL CAST( - 4 AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL CAST ( - 4 AS INTEGER ) AS col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8600
SELECT DISTINCT - NULLIF ( + CAST( NULL AS SIGNED ), NULLIF ( + 63, + ( ( + 49 ) ) + - + 94 ) + 9 ) - + 6 + 30 / 3 AS col0, 88
----
NULL
88

skipif mysql # not compatible
query II rowsort label-8600
SELECT DISTINCT - NULLIF ( + CAST ( NULL AS INTEGER ), NULLIF ( + 63, + ( ( + 49 ) ) + - + 94 ) + 9 ) - + 6 + 30 / 3 AS col0, 88
----
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT ALL COUNT( * ) * + - CASE 98 WHEN + CASE + + 44 WHEN + + 52 THEN NULL WHEN + ( - 57 ) THEN NULL WHEN - + 77 + - 30 * + 53 THEN + 67 + 9 END THEN NULL ELSE COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL COUNT ( * ) * + - CASE 98 WHEN + CASE + + 44 WHEN + + 52 THEN NULL WHEN + ( - 57 ) THEN NULL WHEN - + 77 + - 30 * + 53 THEN + 67 + 9 END THEN NULL ELSE COUNT ( * ) END AS col2
----
-1

query I rowsort
SELECT + 21 + + + 1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8603
SELECT - 88 / + 44 + + - ( + 73 ) + CASE - COUNT( * ) WHEN 39 THEN - 94 END + - - 92, 4 AS col2, CAST( 80 AS SIGNED ) AS col1
----
NULL
4
80

skipif mysql # not compatible
query III rowsort label-8603
SELECT - 88 / + 44 + + - ( + 73 ) + CASE - COUNT ( * ) WHEN 39 THEN - 94 END + - - 92, 4 AS col2, CAST ( 80 AS INTEGER ) AS col1
----
NULL
4
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8604
SELECT - CASE - ( - CAST( - 89 AS SIGNED ) ) WHEN - - SUM( - 63 ) * CASE - ( 43 ) WHEN 1 THEN + ( - 78 ) * - 40 + + 65 + + CAST( + 49 AS SIGNED ) - MIN( 87 ) + + CAST( NULL AS SIGNED ) + 44 / - 7 END + 41 THEN NULL WHEN 87 THEN 69 * 70 ELSE NULL END * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8604
SELECT - CASE - ( - CAST ( - 89 AS INTEGER ) ) WHEN - - SUM ( - 63 ) * CASE - ( 43 ) WHEN 1 THEN + ( - 78 ) * - 40 + + 65 + + CAST ( + 49 AS INTEGER ) - MIN ( 87 ) + + CAST ( NULL AS INTEGER ) + 44 / - 7 END + 41 THEN NULL WHEN 87 THEN 69 * 70 ELSE NULL END * - 30
----
NULL

query I rowsort
SELECT DISTINCT + CASE - 13 WHEN + 12 * AVG ( - 57 ) THEN 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT ALL 6 * + - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL 6 * + - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT + + COUNT( - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-8607
SELECT + + COUNT ( - 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT + MAX( ALL + 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-8608
SELECT + MAX ( ALL + 14 ) AS col0
----
14

query I rowsort
SELECT ALL + 1 * + + 49
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT + 98 * + 34 + - 26 + + CAST( - - 39 AS SIGNED ) AS col0
----
3345

skipif mysql # not compatible
query I rowsort label-8610
SELECT + 98 * + 34 + - 26 + + CAST ( - - 39 AS INTEGER ) AS col0
----
3345

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT + - CASE - 95 WHEN + - MAX( DISTINCT - 60 ) THEN NULL WHEN + 37 * - - 72 * 89 THEN ( + - COUNT( * ) ) * - 92 WHEN 12 * - 47 THEN NULL ELSE + 37 * + - COUNT( * ) * 52 END
----
1924

skipif mysql # not compatible
query I rowsort label-8611
SELECT + - CASE - 95 WHEN + - MAX ( DISTINCT - 60 ) THEN NULL WHEN + 37 * - - 72 * 89 THEN ( + - COUNT ( * ) ) * - 92 WHEN 12 * - 47 THEN NULL ELSE + 37 * + - COUNT ( * ) * 52 END
----
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT DISTINCT - - COUNT( ALL + 2 )
----
1

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT - - COUNT ( ALL + 2 )
----
1

query I rowsort
SELECT ALL + 76 + + 58 col2
----
134

query I rowsort
SELECT DISTINCT - + 73
----
-73

query I rowsort
SELECT DISTINCT + 7 + 94
----
101

query I rowsort
SELECT 25 * + 22 + - 16 AS col1
----
534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8617
SELECT ALL - 74 + - 89 + + 6 + NULLIF ( + - COUNT( * ), - COUNT( * ) * - COALESCE ( + 78, - CAST( NULL AS SIGNED ) ) + 71 + - + 63 + - + 0 * - 9 + + 78 - - COUNT( * ) DIV COUNT( * ) * - - 26 + COUNT( * ) + + 38 DIV + 33 ) DIV 38 DIV - 13 col0
----
-157

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL - 74 + - 89 + + 6 + NULLIF ( + - COUNT ( * ), - COUNT ( * ) * - COALESCE ( + 78, - CAST ( NULL AS INTEGER ) ) + 71 + - + 63 + - + 0 * - 9 + + 78 - - COUNT ( * ) / COUNT ( * ) * - - 26 + COUNT ( * ) + + 38 / + 33 ) / 38 / - 13 col0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT ALL NULLIF ( + + COUNT( * ), - 62 - COUNT( * ) * + - 25 + 62 - 93 + 89 / + 19 ) + COUNT( ALL 25 )
----
2

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL NULLIF ( + + COUNT ( * ), - 62 - COUNT ( * ) * + - 25 + 62 - 93 + 89 / + 19 ) + COUNT ( ALL 25 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT + 14 + + + 55 DIV - + 86 * + 95 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-8619
SELECT + 14 + + + 55 / - + 86 * + 95 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT 74 - COUNT( * ) - - 71
----
144

skipif mysql # not compatible
query I rowsort label-8620
SELECT 74 - COUNT ( * ) - - 71
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT ALL - COUNT( * ) * + 62 + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL - COUNT ( * ) * + 62 + COUNT ( * )
----
-61

query I rowsort
SELECT NULLIF ( - - 40, + - 88 ) + - 81 - + + 53 AS col1
----
-94

query I rowsort
SELECT 90 + - 60 AS col1
----
30

query II rowsort
SELECT 6 AS col2, 79 * + 9 AS col1
----
6
711

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8625
SELECT ALL 7, ( + COUNT( * ) ) + + 74 * 62 DIV + COUNT( * ) AS col0
----
7
4589

skipif mysql # not compatible
query II rowsort label-8625
SELECT ALL 7, ( + COUNT ( * ) ) + + 74 * 62 / + COUNT ( * ) AS col0
----
7
4589

onlyif mysql # aggregate syntax: 
query II rowsort label-8626
SELECT ( - COALESCE ( + COUNT( * ), 97 - 39 ) ) * + 31 AS col0, 71 + + 61 * - + 50
----
-31
-2979

skipif mysql # not compatible
query II rowsort label-8626
SELECT ( - COALESCE ( + COUNT ( * ), 97 - 39 ) ) * + 31 AS col0, 71 + + 61 * - + 50
----
-31
-2979

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT 18 + 52 * - MIN( - ( 3 ) ) + - 77 + 93 * - - 36 + 79
----
3524

skipif mysql # not compatible
query I rowsort label-8627
SELECT 18 + 52 * - MIN ( - ( 3 ) ) + - 77 + 93 * - - 36 + 79
----
3524

onlyif mysql # DIV for integer division: 
query I rowsort label-8628
SELECT ( 54 ) DIV + - 2
----
-27

skipif mysql # not compatible
query I rowsort label-8628
SELECT ( 54 ) / + - 2
----
-27

query I rowsort
SELECT 25 * 38 AS col1
----
950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8630
SELECT 34 + - + 40 DIV 11 * - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-8630
SELECT 34 + - + 40 / 11 * - COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL - COUNT( * ) * CASE + + 76 WHEN 33 THEN + + ( - 4 ) * + 29 WHEN 69 + + 62 + - 12 * + 74 - - 71 * + + AVG ( + 79 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL - COUNT ( * ) * CASE + + 76 WHEN 33 THEN + + ( - 4 ) * + 29 WHEN 69 + + 62 + - 12 * + 74 - - 71 * + + AVG ( + 79 ) THEN NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8632
SELECT 24 * 34 DIV 61 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-8632
SELECT 24 * 34 / 61 AS col1
----
13

query I rowsort
SELECT DISTINCT 74 * 17 AS col2
----
1258

query I rowsort
SELECT ALL - ( 80 ) * - 1
----
80

query II rowsort
SELECT - 40, ( + + 58 ) AS col2
----
-40
58

query I rowsort
SELECT + 46 * - - 47 + - 8
----
2154

query I rowsort
SELECT 99 * 22
----
2178

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT ALL + COUNT( + - 33 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL + COUNT ( + - 33 ) AS col0
----
1

query I rowsort
SELECT COALESCE ( 38, 30 - + 46 + - + 65 * - - 70 ) - + + 66 AS col0
----
-28

query I rowsort
SELECT CASE 53 WHEN - 9 * 92 THEN NULL ELSE - 83 * - ( + 50 ) END * 18 * - 18
----
-1344600

query I rowsort
SELECT + 73 - + - 59
----
132

query I rowsort
SELECT 79 * - 71 AS col0
----
-5609

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT NULLIF ( MAX( 9 ), - - 77 )
----
9

skipif mysql # not compatible
query I rowsort label-8643
SELECT NULLIF ( MAX ( 9 ), - - 77 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT ALL 40 + 86 * COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL 40 + 86 * COUNT ( * )
----
126

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8645
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + 53 + + 51 + ( + - 94 ) * 16 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + 53 + + 51 + ( + - 94 ) * 16 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT - 89 * ( + CASE 69 WHEN + COUNT( * ) * + 95 THEN + 79 WHEN + 50 - + 98 THEN + 57 * 97 + 47 + 91 END ) + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8646
SELECT - 89 * ( + CASE 69 WHEN + COUNT ( * ) * + 95 THEN + 79 WHEN + 50 - + 98 THEN + 57 * 97 + 47 + 91 END ) + - 53
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8647
SELECT - COUNT( * ) * - 0 + + ( - ( 56 ) ) * - 97, 20 AS col2
----
5432
20

skipif mysql # not compatible
query II rowsort label-8647
SELECT - COUNT ( * ) * - 0 + + ( - ( 56 ) ) * - 97, 20 AS col2
----
5432
20

query I rowsort
SELECT - ( + - 27 )
----
27

query I rowsort
SELECT + + 97 AS col1
----
97

query I rowsort
SELECT - 98 * + ( + + ( - 23 ) ) AS col1
----
2254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8651
SELECT + COUNT( * ) + CAST( 45 AS SIGNED ) + - MAX( DISTINCT - ( + + 23 ) ) - - - 87 + - 9 + + COUNT( * ) * CAST( NULL AS SIGNED ) + + ( + CAST( NULL AS SIGNED ) ) * - 9 * - 29 + - + 63 * + 86 * - 3 * - COUNT( * ) / 42 + - 26 + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8651
SELECT + COUNT ( * ) + CAST ( 45 AS INTEGER ) + - MAX ( DISTINCT - ( + + 23 ) ) - - - 87 + - 9 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + ( + CAST ( NULL AS INTEGER ) ) * - 9 * - 29 + - + 63 * + 86 * - 3 * - COUNT ( * ) / 42 + - 26 + 56 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8652
SELECT + CAST( - AVG ( + - 50 ) AS SIGNED ) * - 22
----
-1100

skipif mysql # not compatible
query I rowsort label-8652
SELECT + CAST ( - AVG ( + - 50 ) AS INTEGER ) * - 22
----
-1100

query I rowsort
SELECT ALL - 54 * - 97 - 70
----
5168

query I rowsort
SELECT DISTINCT - 95 + NULLIF ( + + 27, - 26 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT ALL 53 + - SUM( ALL - 57 ) + - 89 + + 12 + - 33 * + + MIN( DISTINCT - - 52 ) * - + 17 + + - 49 * 26
----
27931

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL 53 + - SUM ( ALL - 57 ) + - 89 + + 12 + - 33 * + + MIN ( DISTINCT - - 52 ) * - + 17 + + - 49 * 26
----
27931

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT + COUNT( + ( - 20 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8656
SELECT + COUNT ( + ( - 20 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT COUNT( * ) * + 77 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8657
SELECT COUNT ( * ) * + 77 AS col2
----
77

query II rowsort
SELECT 53 AS col0, + 81
----
53
81

query I rowsort
SELECT ALL 17 - 12 * ( - - 62 ) + 5
----
-722

query I rowsort
SELECT 89 - - + 14 * + 13 col2
----
271

query I rowsort
SELECT 28 * + - 67 AS col0
----
-1876

onlyif mysql # DIV for integer division: 
query I rowsort label-8662
SELECT 34 DIV + - ( + 61 ) * + - 86 * ( 93 ) + - + 16
----
-16

skipif mysql # not compatible
query I rowsort label-8662
SELECT 34 / + - ( + 61 ) * + - 86 * ( 93 ) + - + 16
----
-16

query I rowsort
SELECT DISTINCT + 7 * + 2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT DISTINCT CASE + + 11 WHEN - CASE - + 79 WHEN 94 / ( + + SUM( DISTINCT + 36 ) ) THEN + NULLIF ( - 13, + 69 ) WHEN 82 * - - 67 THEN - 36 ELSE - 13 END * SUM( ALL - 9 ) THEN NULL WHEN - - 2 THEN NULL WHEN + - ( + + 20 ) THEN NULL ELSE 12 END * 96
----
1152

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT CASE + + 11 WHEN - CASE - + 79 WHEN 94 / ( + + SUM ( DISTINCT + 36 ) ) THEN + NULLIF ( - 13, + 69 ) WHEN 82 * - - 67 THEN - 36 ELSE - 13 END * SUM ( ALL - 9 ) THEN NULL WHEN - - 2 THEN NULL WHEN + - ( + + 20 ) THEN NULL ELSE 12 END * 96
----
1152

query I rowsort
SELECT ( - + 62 ) + - 24 AS col0
----
-86

query I rowsort
SELECT 43 - + 3 + - 78 + ( - - 92 )
----
54

query I rowsort
SELECT ALL ( - 11 ) * - + 97 * + + 1
----
1067

query II rowsort
SELECT 83 AS col1, - 35 AS col2
----
83
-35

query II rowsort
SELECT 20, 23 col1
----
20
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8670
SELECT DISTINCT - 58 AS col2, + COUNT( ALL 42 ) DIV + - 1 - 86
----
-58
-87

skipif mysql # not compatible
query II rowsort label-8670
SELECT DISTINCT - 58 AS col2, + COUNT ( ALL 42 ) / + - 1 - 86
----
-58
-87

query I rowsort
SELECT + + 70 + + 94 col2
----
164

query I rowsort
SELECT ALL - 1 + + 45 + - 88
----
-44

query I rowsort
SELECT - 71 + + - 37 + + 45 AS col0
----
-63

query I rowsort
SELECT ALL 41 + 18
----
59

query I rowsort
SELECT DISTINCT ( 11 )
----
11

query I rowsort
SELECT DISTINCT + 73 + 79 - - 60 * 42 + + 16 AS col0
----
2688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8677
SELECT ALL - + 24 + - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL - + 24 + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT - NULLIF ( + + MAX( DISTINCT 40 ), + 24 * - 81 + + - 55 )
----
-40

skipif mysql # not compatible
query I rowsort label-8678
SELECT - NULLIF ( + + MAX ( DISTINCT 40 ), + 24 * - 81 + + - 55 )
----
-40

query I rowsort
SELECT ALL + + 12 * - + 98 AS col0
----
-1176

query I rowsort
SELECT - + 13 * + 55 * - + 71 AS col1
----
50765

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL + 46 * COUNT( * ) * 13 + + - 55 + 94
----
637

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL + 46 * COUNT ( * ) * 13 + + - 55 + 94
----
637

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8682
SELECT + COALESCE ( - COALESCE ( + 71, COALESCE ( - + COUNT( * ), + + COUNT( ALL - ( 23 ) ) ) * - + COUNT( * ), 18 + + COUNT( * ) + 6 DIV 67 - - 81 + + - 77 ), COUNT( * ) * - 47 * 7 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-8682
SELECT + COALESCE ( - COALESCE ( + 71, COALESCE ( - + COUNT ( * ), + + COUNT ( ALL - ( 23 ) ) ) * - + COUNT ( * ), 18 + + COUNT ( * ) + 6 / 67 - - 81 + + - 77 ), COUNT ( * ) * - 47 * 7 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT - + 80 + - 67 * - + NULLIF ( + MIN( 49 ), 71 * 14 + + 88 + - - ( + 31 ) )
----
3203

skipif mysql # not compatible
query I rowsort label-8683
SELECT - + 80 + - 67 * - + NULLIF ( + MIN ( 49 ), 71 * 14 + + 88 + - - ( + 31 ) )
----
3203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8684
SELECT - + CASE - - 39 WHEN + 11 * - - 45 + COUNT( * ) THEN NULL WHEN - - 7 - + 97 THEN - CAST( NULL AS DECIMAL ) ELSE COUNT( * ) + + COUNT( * ) END * + - CASE + - 51 WHEN 36 THEN NULL WHEN + + 89 THEN - 38 + + 92 END * + 41 * CASE - 62 WHEN + COUNT( * ) * + ( + 53 ) THEN + 40 * + 61 WHEN 57 THEN 44 END - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT - + CASE - - 39 WHEN + 11 * - - 45 + COUNT ( * ) THEN NULL WHEN - - 7 - + 97 THEN - CAST ( NULL AS REAL ) ELSE COUNT ( * ) + + COUNT ( * ) END * + - CASE + - 51 WHEN 36 THEN NULL WHEN + + 89 THEN - 38 + + 92 END * + 41 * CASE - 62 WHEN + COUNT ( * ) * + ( + 53 ) THEN + 40 * + 61 WHEN 57 THEN 44 END - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 58 * + 14 AS col1
----
812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8686
SELECT - 83 + NULLIF ( - CAST( NULL AS SIGNED ), - - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT - 83 + NULLIF ( - CAST ( NULL AS INTEGER ), - - COUNT ( * ) ) AS col2
----
NULL

query II rowsort
SELECT 10, COALESCE ( 44, + + ( + 68 ) ) AS col2
----
10
44

query I rowsort
SELECT DISTINCT + ( + ( + 17 ) ) AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8689
SELECT - NULLIF ( - 30, - ( + - AVG ( - 96 ) ) * + NULLIF ( - 1, + - 84 * - + MIN( + 60 ) * ( - + 70 ) - + 23 + - 88 ) ) DIV + + 47
----
0

skipif mysql # not compatible
query I rowsort label-8689
SELECT - NULLIF ( - 30, - ( + - AVG ( - 96 ) ) * + NULLIF ( - 1, + - 84 * - + MIN ( + 60 ) * ( - + 70 ) - + 23 + - 88 ) ) / + + 47
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8690
SELECT ALL 53 * 80 DIV + COUNT( * ) - - COUNT( * ) AS col2
----
4241

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL 53 * 80 / + COUNT ( * ) - - COUNT ( * ) AS col2
----
4241

onlyif mysql # aggregate syntax: 
query II rowsort label-8691
SELECT DISTINCT + 16 col2, - MIN( DISTINCT - ( 56 ) ) AS col2
----
16
56

skipif mysql # not compatible
query II rowsort label-8691
SELECT DISTINCT + 16 col2, - MIN ( DISTINCT - ( 56 ) ) AS col2
----
16
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT ALL - - 9 * - 12 + 78 * + ( 16 ) - + + 56 * COUNT( * )
----
1084

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL - - 9 * - 12 + 78 * + ( 16 ) - + + 56 * COUNT ( * )
----
1084

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8693
SELECT DISTINCT 58 DIV + CAST( - 27 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT 58 / + CAST ( - 27 AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8694
SELECT + COUNT( * ) + 26 AS col2, 34 + - 44 + COUNT( * ) DIV - 85 + + - 22 * - 13
----
27
276

skipif mysql # not compatible
query II rowsort label-8694
SELECT + COUNT ( * ) + 26 AS col2, 34 + - 44 + COUNT ( * ) / - 85 + + - 22 * - 13
----
27
276

query II rowsort
SELECT + 94 * + + 21, - 30 AS col0
----
1974
-30

query I rowsort
SELECT - ( - - 60 ) * 6
----
-360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8697
SELECT ALL + 20 DIV COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + 20 / COUNT ( * )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8698
SELECT ALL + COALESCE ( + + 75, 93 DIV + COUNT( * ) ) col0
----
75

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL + COALESCE ( + + 75, 93 / + COUNT ( * ) ) col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT COALESCE ( + COUNT( * ), + 7 )
----
1

skipif mysql # not compatible
query I rowsort label-8699
SELECT COALESCE ( + COUNT ( * ), + 7 )
----
1

query II rowsort
SELECT + 64 * + ( - 57 ) AS col1, + 73
----
-3648
73

query I rowsort
SELECT ALL 70 * - - 25 * 12 * - - 72
----
1512000

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT - 76 + + COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8702
SELECT - 76 + + COUNT ( * ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT 20 * COUNT( * ) * - MAX( + - 29 ) - MAX( - 28 )
----
608

skipif mysql # not compatible
query I rowsort label-8703
SELECT 20 * COUNT ( * ) * - MAX ( + - 29 ) - MAX ( - 28 )
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT + 40 * - + SUM( - 89 )
----
3560

skipif mysql # not compatible
query I rowsort label-8704
SELECT + 40 * - + SUM ( - 89 )
----
3560

query I rowsort
SELECT + 52 + - 64 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT ALL CASE - 16 WHEN SUM( ALL + 61 ) THEN + - 15 + - COALESCE ( - 75, + 98 * - ( - 15 ) - 19 + - 89 * 76 * 78 - MAX( 4 ), - + MAX( - - 82 ), COUNT( * ) ) END * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL CASE - 16 WHEN SUM ( ALL + 61 ) THEN + - 15 + - COALESCE ( - 75, + 98 * - ( - 15 ) - 19 + - 89 * 76 * 78 - MAX ( 4 ), - + MAX ( - - 82 ), COUNT ( * ) ) END * 36
----
NULL

query II rowsort
SELECT DISTINCT + ( 67 ), 29 * 2 AS col2
----
67
58

query I rowsort
SELECT DISTINCT 23 col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8709
SELECT MAX( + - ( + 87 ) ), 55 AS col2
----
-87
55

skipif mysql # not compatible
query II rowsort label-8709
SELECT MAX ( + - ( + 87 ) ), 55 AS col2
----
-87
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8710
SELECT + 98 + + - NULLIF ( 62, + - 29 + + 16 ) + 57 + 66 * - CAST( NULL AS SIGNED ) / COUNT( * ) * - 32 + - - AVG ( ALL - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8710
SELECT + 98 + + - NULLIF ( 62, + - 29 + + 16 ) + 57 + 66 * - CAST ( NULL AS INTEGER ) / COUNT ( * ) * - 32 + - - AVG ( ALL - 76 )
----
NULL

query I rowsort
SELECT + 68 * + - 28 col0
----
-1904

onlyif mysql # aggregate syntax: 
query II rowsort label-8712
SELECT - CASE + + NULLIF ( + - 44, 97 - - 43 ) WHEN + + 82 - + + 8 THEN + 90 * + ( + 38 ) WHEN + - 49 + + - 37 + - NULLIF ( + COUNT( * ), + 32 * + 51 ) / 66 THEN NULL ELSE NULL END AS col0, 79 AS col0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-8712
SELECT - CASE + + NULLIF ( + - 44, 97 - - 43 ) WHEN + + 82 - + + 8 THEN + 90 * + ( + 38 ) WHEN + - 49 + + - 37 + - NULLIF ( + COUNT ( * ), + 32 * + 51 ) / 66 THEN NULL ELSE NULL END AS col0, 79 AS col0
----
NULL
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8713
SELECT - CAST( + COUNT( * ) AS SIGNED ), 64 AS col2
----
-1
64

skipif mysql # not compatible
query II rowsort label-8713
SELECT - CAST ( + COUNT ( * ) AS INTEGER ), 64 AS col2
----
-1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL - 13 + + MIN( ( + COALESCE ( - + 28, - ( + ( - 78 ) ) ) ) ) + + - 86 AS col2
----
-127

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL - 13 + + MIN ( ( + COALESCE ( - + 28, - ( + ( - 78 ) ) ) ) ) + + - 86 AS col2
----
-127

query I rowsort
SELECT DISTINCT 57 + 64
----
121

query I rowsort
SELECT + + 89 * 32 col1
----
2848

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL SUM( DISTINCT + 19 ) + - 41 * + + 54
----
-2195

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL SUM ( DISTINCT + 19 ) + - 41 * + + 54
----
-2195

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT DISTINCT MIN( ALL + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT MIN ( ALL + 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT - COUNT( * ) * + + CASE + 8 WHEN - + 69 * - - 13 THEN - 44 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT - COUNT ( * ) * + + CASE + 8 WHEN - + 69 * - - 13 THEN - 44 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8720
SELECT + CAST( - 51 AS SIGNED ) - + - COUNT( + - 28 ) + + - 68 - - ( NULLIF ( - 56, + 62 * - 20 * - 61 + + + 46 + + + 14 * - 45 + + + 56 ) ) DIV 99 AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-8720
SELECT + CAST ( - 51 AS INTEGER ) - + - COUNT ( + - 28 ) + + - 68 - - ( NULLIF ( - 56, + 62 * - 20 * - 61 + + + 46 + + + 14 * - 45 + + + 56 ) ) / 99 AS col1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT - - 57 * - ( - CASE + + 53 WHEN + NULLIF ( - + 90, + - 31 + + 47 * 87 * - - 99 * + + 44 * ( - + SUM( ALL 74 ) ) ) + + - 28 THEN - COUNT( * ) ELSE + COUNT( * ) END )
----
57

skipif mysql # not compatible
query I rowsort label-8721
SELECT - - 57 * - ( - CASE + + 53 WHEN + NULLIF ( - + 90, + - 31 + + 47 * 87 * - - 99 * + + 44 * ( - + SUM ( ALL 74 ) ) ) + + - 28 THEN - COUNT ( * ) ELSE + COUNT ( * ) END )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL + COUNT( * ) * - COUNT( * ) * - 99 * - 98
----
-9702

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * - 99 * - 98
----
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8723
SELECT - 71 - ( + 77 ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8723
SELECT - 71 - ( + 77 ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8724
SELECT ALL 99 DIV - 60 - + 6
----
-7

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL 99 / - 60 - + 6
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8725
SELECT - CAST( - + SUM( ALL 52 ) AS SIGNED ) * - 14 AS col1
----
-728

skipif mysql # not compatible
query I rowsort label-8725
SELECT - CAST ( - + SUM ( ALL 52 ) AS INTEGER ) * - 14 AS col1
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL + SUM( ALL + + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + SUM ( ALL + + 82 )
----
82

query I rowsort
SELECT DISTINCT - 7 * - 97 AS col0
----
679

query I rowsort
SELECT - 35 + - 66
----
-101

query I rowsort
SELECT + 40 * 93
----
3720

query I rowsort
SELECT - 52 * + 63
----
-3276

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8731
SELECT DISTINCT + 79 col0, - 60 DIV SUM( - 53 ) AS col2
----
79
1

skipif mysql # not compatible
query II rowsort label-8731
SELECT DISTINCT + 79 col0, - 60 / SUM ( - 53 ) AS col2
----
79
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL + MAX( DISTINCT + NULLIF ( 36, - + 82 ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + MAX ( DISTINCT + NULLIF ( 36, - + 82 ) ) AS col2
----
36

query I rowsort
SELECT - 22 * - 73 AS col1
----
1606

query I rowsort
SELECT COALESCE ( - 69, + 37 * + 29 + - 6 - - 60 )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8735
SELECT + CASE - 95 WHEN - 65 THEN NULL ELSE 57 DIV - + COUNT( 29 ) + - 99 END
----
-156

skipif mysql # not compatible
query I rowsort label-8735
SELECT + CASE - 95 WHEN - 65 THEN NULL ELSE 57 / - + COUNT ( 29 ) + - 99 END
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT 53 DIV + 43 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8736
SELECT 53 / + 43 AS col0
----
1

query I rowsort
SELECT 24 - 15
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8738
SELECT ALL CAST( - 78 AS SIGNED ) + - - 83
----
5

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL CAST ( - 78 AS INTEGER ) + - - 83
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT - COUNT( ALL - 46 ) * + 86 + - 54
----
-140

skipif mysql # not compatible
query I rowsort label-8739
SELECT - COUNT ( ALL - 46 ) * + 86 + - 54
----
-140

query II rowsort
SELECT 73 AS col0, - 95
----
73
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8741
SELECT ALL - 72 DIV - COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL - 72 / - COUNT ( * ) AS col1
----
72

query I rowsort
SELECT 49 * + 91
----
4459

query I rowsort
SELECT DISTINCT - + 16 * + - 77 - + + 46 * + 43
----
-746

query I rowsort
SELECT ALL + 73 + + 65 - 98 + 48 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT - + SUM( - + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-8745
SELECT - + SUM ( - + 93 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8746
SELECT ALL + 93 + + 60 + + ( + 50 ) + + COUNT( * ) DIV 74 * 85 - + 41 + - + 64 * 88
----
-5470

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL + 93 + + 60 + + ( + 50 ) + + COUNT ( * ) / 74 * 85 - + 41 + - + 64 * 88
----
-5470

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT ALL 84 AS col1, 63 + + COUNT( * )
----
84
64

skipif mysql # not compatible
query II rowsort label-8747
SELECT ALL 84 AS col1, 63 + + COUNT ( * )
----
84
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT 69 + + - 77 + - COUNT( * ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-8748
SELECT 69 + + - 77 + - COUNT ( * ) col0
----
-9

query I rowsort
SELECT 56 * 18 * + + 74 AS col1
----
74592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT - CASE + 52 WHEN + - 33 + + 69 THEN + 88 ELSE - 20 * + 87 + NULLIF ( + + CAST( NULL AS SIGNED ), + - 20 ) / 7 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT - CASE + 52 WHEN + - 33 + + 69 THEN + 88 ELSE - 20 * + 87 + NULLIF ( + + CAST ( NULL AS INTEGER ), + - 20 ) / 7 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT DISTINCT MIN( DISTINCT 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT MIN ( DISTINCT 43 ) AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8752
SELECT - 42 + + CASE + 39 WHEN + + CASE + 72 WHEN - CASE - 73 WHEN - MAX( ALL 84 ) - - 12 THEN + CAST( NULL AS DECIMAL ) + - ( ( - COALESCE ( 3, 40 ) ) ) / + + AVG ( 70 ) + + 44 * + COUNT( * ) - - + 32 END + + 45 THEN 10 WHEN - 30 THEN 14 END * + NULLIF ( - COUNT( * ) * + 39, CASE CAST( NULL AS DECIMAL ) WHEN ( MAX( 87 ) ) - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 90 THEN NULL ELSE + COUNT( * ) END ) THEN NULL WHEN + 13 THEN NULL WHEN 14 THEN 5 END + - 24 * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT - 42 + + CASE + 39 WHEN + + CASE + 72 WHEN - CASE - 73 WHEN - MAX ( ALL 84 ) - - 12 THEN + CAST ( NULL AS REAL ) + - ( ( - COALESCE ( 3, 40 ) ) ) / + + AVG ( 70 ) + + 44 * + COUNT ( * ) - - + 32 END + + 45 THEN 10 WHEN - 30 THEN 14 END * + NULLIF ( - COUNT ( * ) * + 39, CASE CAST ( NULL AS REAL ) WHEN ( MAX ( 87 ) ) - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 90 THEN NULL ELSE + COUNT ( * ) END ) THEN NULL WHEN + 13 THEN NULL WHEN 14 THEN 5 END + - 24 * - 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8753
SELECT - 23 AS col2, + COUNT( * )
----
-23
1

skipif mysql # not compatible
query II rowsort label-8753
SELECT - 23 AS col2, + COUNT ( * )
----
-23
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT 48 + + - COUNT( - + 41 ) + + 69 * - 45
----
-3058

skipif mysql # not compatible
query I rowsort label-8754
SELECT 48 + + - COUNT ( - + 41 ) + + 69 * - 45
----
-3058

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL - 66 - - COALESCE ( 94, + COUNT( * ), ( + COUNT( + + 55 ) ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL - 66 - - COALESCE ( 94, + COUNT ( * ), ( + COUNT ( + + 55 ) ) ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8756
SELECT - 30, ( 37 ) + - NULLIF ( 71, + MIN( ALL + - 57 ) ) col1
----
-30
-34

skipif mysql # not compatible
query II rowsort label-8756
SELECT - 30, ( 37 ) + - NULLIF ( 71, + MIN ( ALL + - 57 ) ) col1
----
-30
-34

query I rowsort
SELECT + 83 + + - 98
----
-15

query I rowsort
SELECT DISTINCT 57 - + + 91
----
-34

query I rowsort
SELECT ALL - 75 * + 83 * + + 57
----
-354825

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT DISTINCT - MAX( ALL + ( - - 52 ) ) * + ( + 68 ) AS col0
----
-3536

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT - MAX ( ALL + ( - - 52 ) ) * + ( + 68 ) AS col0
----
-3536

onlyif mysql # DIV for integer division: 
query I rowsort label-8761
SELECT - 58 DIV - 96 + + + 39 * + + 98 col1
----
3822

skipif mysql # not compatible
query I rowsort label-8761
SELECT - 58 / - 96 + + + 39 * + + 98 col1
----
3822

query I rowsort
SELECT 94 * + 38
----
3572

query I rowsort
SELECT - 32 + - 9 AS col1
----
-41

query I rowsort
SELECT 28 * + ( - - 71 )
----
1988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8765
SELECT CAST( - 47 AS SIGNED ) + - 57 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-8765
SELECT CAST ( - 47 AS INTEGER ) + - 57 AS col2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT MIN( - 74 ) * 70
----
-5180

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT MIN ( - 74 ) * 70
----
-5180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8767
SELECT 18 * CAST( - - 77 AS SIGNED )
----
1386

skipif mysql # not compatible
query I rowsort label-8767
SELECT 18 * CAST ( - - 77 AS INTEGER )
----
1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8768
SELECT DISTINCT SUM( ALL + 79 ) + - - CAST( + 2 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT SUM ( ALL + 79 ) + - - CAST ( + 2 AS INTEGER )
----
81

query I rowsort
SELECT ALL + 30 + + + 53 - 38
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT 34 + + NULLIF ( COUNT( * ), + 89 ) - + ( 12 ) + 16 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8770
SELECT 34 + + NULLIF ( COUNT ( * ), + 89 ) - + ( 12 ) + 16 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT DISTINCT COALESCE ( - - 22, + 75 * + COUNT( * ) * - - 37 * 58 ) + - 46 col2
----
-24

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT COALESCE ( - - 22, + 75 * + COUNT ( * ) * - - 37 * 58 ) + - 46 col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT 43 + + MAX( DISTINCT + 71 ) AS col2
----
114

skipif mysql # not compatible
query I rowsort label-8772
SELECT 43 + + MAX ( DISTINCT + 71 ) AS col2
----
114

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8773
SELECT ALL + CAST( NULL AS DECIMAL ) + + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL + CAST ( NULL AS REAL ) + + 27 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 58 * - 44, - 30 AS col1
----
2552
-30

query I rowsort
SELECT DISTINCT 86 * - - 4
----
344

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT ALL + COUNT( * ) + 13 - 12
----
2

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL + COUNT ( * ) + 13 - 12
----
2

query I rowsort
SELECT ALL - 68 * 73 AS col2
----
-4964

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8778
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col2, - 96 * 12 + + + 23 col0
----
NULL
-1129

skipif mysql # not compatible
query II rowsort label-8778
SELECT DISTINCT + CAST ( NULL AS REAL ) + + COUNT ( * ) AS col2, - 96 * 12 + + + 23 col0
----
NULL
-1129

query I rowsort
SELECT 92 + + 11 AS col1
----
103

query I rowsort
SELECT ALL + 11 + 24 + - 34 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT - MIN( - 10 ) + + 1
----
11

skipif mysql # not compatible
query I rowsort label-8781
SELECT - MIN ( - 10 ) + + 1
----
11

query I rowsort
SELECT + 13 * + 10 * 41 AS col2
----
5330

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT - - MAX( ALL 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-8783
SELECT - - MAX ( ALL 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8784
SELECT - + COALESCE ( - + 87, 61 * - + 34 DIV 19 + + COUNT( * ) )
----
87

skipif mysql # not compatible
query I rowsort label-8784
SELECT - + COALESCE ( - + 87, 61 * - + 34 / 19 + + COUNT ( * ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT NULLIF ( + 39, + COUNT( * ) / - 55 ) * - 15 + 37
----
-548

skipif mysql # not compatible
query I rowsort label-8785
SELECT NULLIF ( + 39, + COUNT ( * ) / - 55 ) * - 15 + 37
----
-548

query I rowsort
SELECT - NULLIF ( - 93, + - 51 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL 79 * - + COUNT( * ) - + + 29
----
-108

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL 79 * - + COUNT ( * ) - + + 29
----
-108

query I rowsort
SELECT ALL ( + 43 ) col0
----
43

query I rowsort
SELECT + 99 + 26
----
125

query I rowsort
SELECT ALL - ( - - 61 )
----
-61

query I rowsort
SELECT + 56 - 37 * - 8 AS col2
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT - SUM( - + 33 ) * - 47
----
-1551

skipif mysql # not compatible
query I rowsort label-8792
SELECT - SUM ( - + 33 ) * - 47
----
-1551

onlyif mysql # aggregate syntax: 
query II rowsort label-8793
SELECT COALESCE ( SUM( + 32 ), + + MIN( + 50 ), - - 76 ) - + + COUNT( * ), - 76 AS col0
----
31
-76

skipif mysql # not compatible
query II rowsort label-8793
SELECT COALESCE ( SUM ( + 32 ), + + MIN ( + 50 ), - - 76 ) - + + COUNT ( * ), - 76 AS col0
----
31
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8794
SELECT ALL 91 AS col0, + COUNT( * ) AS col2
----
91
1

skipif mysql # not compatible
query II rowsort label-8794
SELECT ALL 91 AS col0, + COUNT ( * ) AS col2
----
91
1

query I rowsort
SELECT ALL - NULLIF ( 75, - COALESCE ( + NULLIF ( 61, - 1 / + - 37 + + - 72 ), + NULLIF ( 11, - + 59 ) * + - 74, - 31 ) ) col0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8796
SELECT DISTINCT COUNT( DISTINCT + 49 ) DIV + 67 + - 16 col2
----
-16

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT COUNT ( DISTINCT + 49 ) / + 67 + - 16 col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT ALL COUNT( * ) * - 20 * - 24 + - 29 + 99 AS col2
----
550

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL COUNT ( * ) * - 20 * - 24 + - 29 + 99 AS col2
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT ALL SUM( 96 ) * + - 92 AS col2
----
-8832

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL SUM ( 96 ) * + - 92 AS col2
----
-8832

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT + 99 DIV + 34
----
2

skipif mysql # not compatible
query I rowsort label-8799
SELECT + 99 / + 34
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8800
SELECT + 22 + - ( + ( + - AVG ( + + 74 ) ) ) + AVG ( + 8 ) + + CAST( NULL AS SIGNED ) - 95 + 24 * + + CAST( NULL AS SIGNED ) * 6 * - SUM( DISTINCT + - 97 ) * - 21 * - + AVG ( ALL + + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8800
SELECT + 22 + - ( + ( + - AVG ( + + 74 ) ) ) + AVG ( + 8 ) + + CAST ( NULL AS INTEGER ) - 95 + 24 * + + CAST ( NULL AS INTEGER ) * 6 * - SUM ( DISTINCT + - 97 ) * - 21 * - + AVG ( ALL + + 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT MAX( + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-8801
SELECT MAX ( + 46 )
----
46

query I rowsort
SELECT ALL 46 * - 45 + + + 6 AS col2
----
-2064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8803
SELECT DISTINCT CAST( NULL AS SIGNED ) / 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 65
----
NULL

query I rowsort
SELECT - 9 * ( 25 ) AS col1
----
-225

query I rowsort
SELECT ALL - 65 - 61 AS col2
----
-126

query I rowsort
SELECT + - NULLIF ( - + 23, 65 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT + CASE - - 35 WHEN 46 THEN - 66 ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-8807
SELECT + CASE - - 35 WHEN 46 THEN - 66 ELSE - COUNT ( * ) END
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8808
SELECT + 11 + - 33 DIV + 56 * + COUNT( * ) + 81 + 59 + + + 10 AS col0
----
161

skipif mysql # not compatible
query I rowsort label-8808
SELECT + 11 + - 33 / + 56 * + COUNT ( * ) + 81 + 59 + + + 10 AS col0
----
161

query I rowsort
SELECT - 80 * + 80 AS col1
----
-6400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT + 90 * - 20 * - CASE + 41 WHEN - + 90 THEN + CAST( NULL AS SIGNED ) END + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT + 90 * - 20 * - CASE + 41 WHEN - + 90 THEN + CAST ( NULL AS INTEGER ) END + + 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8811
SELECT ALL + 73 col1, 87 * - COUNT( * ) * 36
----
73
-3132

skipif mysql # not compatible
query II rowsort label-8811
SELECT ALL + 73 col1, 87 * - COUNT ( * ) * 36
----
73
-3132

query II rowsort
SELECT DISTINCT + 60, - 82 AS col1
----
60
-82

query I rowsort
SELECT ALL 7 * 11 - 47
----
30

query I rowsort
SELECT DISTINCT - 72 - 6 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT DISTINCT + CASE 82 WHEN 59 THEN NULL ELSE 70 + - COUNT( * ) + + - ( - + 53 ) END AS col0
----
122

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT + CASE 82 WHEN 59 THEN NULL ELSE 70 + - COUNT ( * ) + + - ( - + 53 ) END AS col0
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8816
SELECT DISTINCT + - 44 * - + CAST( CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT + - 44 * - + CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col2
----
-44

query I rowsort
SELECT - + 32 col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-8818
SELECT ALL + + 19 DIV + - 14 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL + + 19 / + - 14 AS col0
----
-1

query I rowsort
SELECT - 40 + 71 + - - 93 + + + 19 * + 66 * + - 85 * + 62 AS col0
----
-6608456

query II rowsort
SELECT - 54 + 78 - 66, 16 AS col2
----
-42
16

query I rowsort
SELECT DISTINCT - + 89 + - 69 + - 66 AS col1
----
-224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8822
SELECT DISTINCT CAST( NULL AS SIGNED ) + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL COUNT( * ) + + 80
----
81

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL COUNT ( * ) + + 80
----
81

query I rowsort
SELECT ALL - 3 * + - ( + ( - - 92 ) )
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT + SUM( ALL 35 ) + + + 16 + - MIN( 11 ) * + 18 - 2 * + + 14 * - COUNT( + 20 )
----
-119

skipif mysql # not compatible
query I rowsort label-8825
SELECT + SUM ( ALL 35 ) + + + 16 + - MIN ( 11 ) * + 18 - 2 * + + 14 * - COUNT ( + 20 )
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT DISTINCT - 44 DIV + 83 + + 34 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT - 44 / + 83 + + 34 AS col0
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-8827
SELECT ALL + ( - - 31 ) DIV - 1 + + 47 - - 63 * + 10, - 13 AS col1
----
646
-13

skipif mysql # not compatible
query II rowsort label-8827
SELECT ALL + ( - - 31 ) / - 1 + + 47 - - 63 * + 10, - 13 AS col1
----
646
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8828
SELECT + CASE CAST( NULL AS SIGNED ) WHEN - COALESCE ( - ( + 64 ), - COUNT( * ) + - - 30, + CAST( - CASE - COUNT( * ) WHEN - + 67 THEN NULL ELSE + 61 * COUNT( + 95 ) END AS SIGNED ) ) / + + 15 THEN NULL ELSE 65 END AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8828
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN - COALESCE ( - ( + 64 ), - COUNT ( * ) + - - 30, + CAST ( - CASE - COUNT ( * ) WHEN - + 67 THEN NULL ELSE + 61 * COUNT ( + 95 ) END AS INTEGER ) ) / + + 15 THEN NULL ELSE 65 END AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8829
SELECT ALL - 11 DIV - - 46 + - COUNT( * ) + 5
----
4

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL - 11 / - - 46 + - COUNT ( * ) + 5
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT CAST( 5 AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8830
SELECT CAST ( 5 AS INTEGER ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8832
SELECT ALL - 34 DIV + COUNT( * ) - - 48
----
14

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL - 34 / + COUNT ( * ) - - 48
----
14

query I rowsort
SELECT DISTINCT + ( + ( 75 ) ) AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8834
SELECT ALL 42 * + + COALESCE ( - - 19, + 21 + - ( 69 ) * CASE + + 53 WHEN - - NULLIF ( + 76, - 69 * 74 ) THEN - ( - 56 ) WHEN + 90 * + + CAST( NULL AS SIGNED ) + + + 29 + + MAX( + + CAST( NULL AS SIGNED ) ) THEN - 80 * 17 * + 63 + + COUNT( * ) END ) * - + 67 * - - 54 - COUNT( * ) + - 14
----
-2887179

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL 42 * + + COALESCE ( - - 19, + 21 + - ( 69 ) * CASE + + 53 WHEN - - NULLIF ( + 76, - 69 * 74 ) THEN - ( - 56 ) WHEN + 90 * + + CAST ( NULL AS INTEGER ) + + + 29 + + MAX ( + + CAST ( NULL AS INTEGER ) ) THEN - 80 * 17 * + 63 + + COUNT ( * ) END ) * - + 67 * - - 54 - COUNT ( * ) + - 14
----
-2887179

onlyif mysql # aggregate syntax: 
query II rowsort label-8835
SELECT DISTINCT + 1 AS col1, + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-8835
SELECT DISTINCT + 1 AS col1, + COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT + ( - + 90 ) AS col1
----
-90

query I rowsort
SELECT NULLIF ( - 81, + 13 + + + 92 ) * - + ( - 9 ) + + 86 * - 45 - + 77
----
-4676

query I rowsort
SELECT + 95 + + 63 AS col1
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT + + 53 * 67 + - COUNT( * ) + - 92 + - - 82
----
3540

skipif mysql # not compatible
query I rowsort label-8839
SELECT + + 53 * 67 + - COUNT ( * ) + - 92 + - - 82
----
3540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8840
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 78 * + 94
----
7332

onlyif mysql # aggregate syntax: 
query II rowsort label-8842
SELECT ALL + - SUM( DISTINCT - - 13 ), 47 AS col0
----
-13
47

skipif mysql # not compatible
query II rowsort label-8842
SELECT ALL + - SUM ( DISTINCT - - 13 ), 47 AS col0
----
-13
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8843
SELECT ALL + COUNT( * ) AS col1, 51 AS col0, ( COALESCE ( + 1, 0 + - + 4, - MAX( - CAST( 73 AS SIGNED ) ) ) ) - - + 14 AS col0
----
1
51
15

skipif mysql # not compatible
query III rowsort label-8843
SELECT ALL + COUNT ( * ) AS col1, 51 AS col0, ( COALESCE ( + 1, 0 + - + 4, - MAX ( - CAST ( 73 AS INTEGER ) ) ) ) - - + 14 AS col0
----
1
51
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT DISTINCT + - CASE + MIN( + ( + 74 ) ) WHEN - - COUNT( * ) THEN NULL ELSE + + 28 END
----
-28

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT + - CASE + MIN ( + ( + 74 ) ) WHEN - - COUNT ( * ) THEN NULL ELSE + + 28 END
----
-28

query I rowsort
SELECT DISTINCT + + 1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8846
SELECT + - COUNT( * ) * COALESCE ( - 33, + ( - ( - 41 ) ) ) * + ( + CAST( NULL AS SIGNED ) ) + + - 47 * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT + - COUNT ( * ) * COALESCE ( - 33, + ( - ( - 41 ) ) ) * + ( + CAST ( NULL AS INTEGER ) ) + + - 47 * + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT ALL MAX( + 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL MAX ( + 90 ) AS col1
----
90

query II rowsort
SELECT DISTINCT 92 AS col0, - 66
----
92
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8849
SELECT - 20, 93 + + 91 + CAST( NULL AS DECIMAL ) col1
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-8849
SELECT - 20, 93 + + 91 + CAST ( NULL AS REAL ) col1
----
-20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + - 29 * + - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-8850
SELECT + - 29 * + - COUNT ( * )
----
29

query I rowsort
SELECT - - COALESCE ( - 64, 41 * 10, + 65 ) + + - CASE - 25 WHEN 0 THEN ( + 80 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8852
SELECT DISTINCT MAX( - ( CAST( NULL AS DECIMAL ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT MAX ( - ( CAST ( NULL AS REAL ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT - SUM( + + 1 ) * + 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-8853
SELECT - SUM ( + + 1 ) * + 34 AS col1
----
-34

query I rowsort
SELECT DISTINCT + 16 + - + 55
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8855
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8856
SELECT - COUNT( * ) AS col2, 96
----
-1
96

skipif mysql # not compatible
query II rowsort label-8856
SELECT - COUNT ( * ) AS col2, 96
----
-1
96

query I rowsort
SELECT ALL - 83 + - - 4 AS col0
----
-79

query I rowsort
SELECT DISTINCT 26 * + 90
----
2340

onlyif mysql # aggregate syntax: 
query II rowsort label-8859
SELECT ALL SUM( - - 11 ) AS col0, 73 - + COUNT( * )
----
11
72

skipif mysql # not compatible
query II rowsort label-8859
SELECT ALL SUM ( - - 11 ) AS col0, 73 - + COUNT ( * )
----
11
72

query II rowsort
SELECT - 5 col2, + 39 col1
----
-5
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8861
SELECT ALL CASE + + 98 WHEN NULLIF ( - + 80, + 82 ) THEN - CASE - 35 WHEN COALESCE ( + - 53, - 88 + - COUNT( * ) + 91 ) * + - ( + + 39 ) * - + 59 * CASE CASE CAST( + 13 AS SIGNED ) WHEN - 27 THEN - - 99 ELSE NULL END WHEN + - COUNT( * ) * - 58 - + + 37 - - + 62 THEN + 61 + + - 72 ELSE 24 END * - 45 + 58 + 48 / 31 THEN NULL WHEN - 57 * 32 + - COUNT( * ) * ( 60 ) THEN 53 + 6 * - 69 ELSE 11 END ELSE + CAST( - SUM( DISTINCT 15 ) AS SIGNED ) * 31 - + 21 END AS col2
----
-486

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL CASE + + 98 WHEN NULLIF ( - + 80, + 82 ) THEN - CASE - 35 WHEN COALESCE ( + - 53, - 88 + - COUNT ( * ) + 91 ) * + - ( + + 39 ) * - + 59 * CASE CASE CAST ( + 13 AS INTEGER ) WHEN - 27 THEN - - 99 ELSE NULL END WHEN + - COUNT ( * ) * - 58 - + + 37 - - + 62 THEN + 61 + + - 72 ELSE 24 END * - 45 + 58 + 48 / 31 THEN NULL WHEN - 57 * 32 + - COUNT ( * ) * ( 60 ) THEN 53 + 6 * - 69 ELSE 11 END ELSE + CAST ( - SUM ( DISTINCT 15 ) AS INTEGER ) * 31 - + 21 END AS col2
----
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT 44 + 38 * - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-8862
SELECT 44 + 38 * - COUNT ( * )
----
6

query I rowsort
SELECT DISTINCT - 98 + + + 57
----
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8864
SELECT ALL + NULLIF ( MAX( DISTINCT - 91 ), - + 46 ) + CAST( NULL AS DECIMAL ) + - - COUNT( ALL - + 71 ) * COUNT( * ) / 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL + NULLIF ( MAX ( DISTINCT - 91 ), - + 46 ) + CAST ( NULL AS REAL ) + - - COUNT ( ALL - + 71 ) * COUNT ( * ) / 1 AS col0
----
NULL

query I rowsort
SELECT 18 * - NULLIF ( - 43, + 72 * - - 46 * - 51 + - - 27 * 11 * - - 52 ) AS col0
----
774

query I rowsort
SELECT 27 - 43 - + 99
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT ALL - 45 - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL - 45 - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL - CASE - - 11 WHEN + + COUNT( * ) THEN MAX( + + 1 ) WHEN 77 + - - 66 THEN - + ( 73 ) * - + COUNT( * ) WHEN + + COUNT( * ) * + + 40 * AVG ( + - 14 ) + - MIN( DISTINCT + - 63 ) * 91 THEN + ( + - 99 ) + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL - CASE - - 11 WHEN + + COUNT ( * ) THEN MAX ( + + 1 ) WHEN 77 + - - 66 THEN - + ( 73 ) * - + COUNT ( * ) WHEN + + COUNT ( * ) * + + 40 * AVG ( + - 14 ) + - MIN ( DISTINCT + - 63 ) * 91 THEN + ( + - 99 ) + 47 END
----
NULL

query I rowsort
SELECT ALL 86 - + 57 * + 55 * + 40
----
-125314

onlyif mysql # DIV for integer division: 
query I rowsort label-8870
SELECT 62 DIV - 16
----
-3

skipif mysql # not compatible
query I rowsort label-8870
SELECT 62 / - 16
----
-3

query I rowsort
SELECT DISTINCT + 54 * + - 53
----
-2862

query II rowsort
SELECT ALL + 36 * - 17 AS col0, + 97 AS col1
----
-612
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8873
SELECT MAX( ALL 97 ) + + COUNT( * ) AS col1, - 10
----
98
-10

skipif mysql # not compatible
query II rowsort label-8873
SELECT MAX ( ALL 97 ) + + COUNT ( * ) AS col1, - 10
----
98
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8874
SELECT + + COALESCE ( + 31, - + 60, COALESCE ( - + COUNT( * ), - - 50 ) * + - 66 - 12 - + - COUNT( * ) * - CAST( 22 AS SIGNED ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8874
SELECT + + COALESCE ( + 31, - + 60, COALESCE ( - + COUNT ( * ), - - 50 ) * + - 66 - 12 - + - COUNT ( * ) * - CAST ( 22 AS INTEGER ) ) AS col0
----
31

query III rowsort
SELECT ALL - ( + 80 ) AS col2, + 65, + + 12 AS col1
----
-80
65
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT ALL - MIN( ALL ( - ( 62 ) ) ) col1
----
62

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL - MIN ( ALL ( - ( 62 ) ) ) col1
----
62

query I rowsort
SELECT DISTINCT - - 85 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT ALL - ( + + MIN( 49 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL - ( + + MIN ( 49 ) )
----
-49

query III rowsort
SELECT DISTINCT 68 * + + 90 AS col0, 37, - - CASE 21 WHEN + 9 + - - 11 - + 55 + + 12 * + 68 THEN NULL WHEN - 12 THEN 53 + - 25 * + 77 * + + 40 END AS col1
----
6120
37
NULL

query I rowsort
SELECT 48 + 90 col1
----
138

query I rowsort
SELECT 38 * + ( - 52 )
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL 25 + - MIN( ALL 94 ) + - COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL 25 + - MIN ( ALL 94 ) + - COUNT ( * ) AS col2
----
-70

query I rowsort
SELECT 25 + 37 * 48 AS col0
----
1801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8884
SELECT DISTINCT - 31 * + 47 * - CASE + - COUNT( * ) WHEN + + 9 THEN NULL WHEN + 65 THEN 30 + - 91 ELSE 31 + - MAX( - - CAST( NULL AS SIGNED ) ) + + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT - 31 * + 47 * - CASE + - COUNT ( * ) WHEN + + 9 THEN NULL WHEN + 65 THEN 30 + - 91 ELSE 31 + - MAX ( - - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT + COALESCE ( 9, COUNT( * ), 34 ) + 36 + + + 89 * 43 AS col0
----
3872

skipif mysql # not compatible
query I rowsort label-8885
SELECT + COALESCE ( 9, COUNT ( * ), 34 ) + 36 + + + 89 * 43 AS col0
----
3872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8886
SELECT DISTINCT - CAST( + + MIN( ALL 38 ) AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT - CAST ( + + MIN ( ALL 38 ) AS INTEGER )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT ALL 53 + - - ( COUNT( * ) ) - - 3 * + CASE 1 WHEN + COALESCE ( + ( - - NULLIF ( + 17, - NULLIF ( 87, + - 99 ) * 86 + MIN( + 21 ) / - 21 ) ), + 1 * - 71 ) THEN + 80 - - 92 + + + 48 * - - 94 * - 24 ELSE - - SUM( ALL 23 ) * 27 + - 16 END
----
1869

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL 53 + - - ( COUNT ( * ) ) - - 3 * + CASE 1 WHEN + COALESCE ( + ( - - NULLIF ( + 17, - NULLIF ( 87, + - 99 ) * 86 + MIN ( + 21 ) / - 21 ) ), + 1 * - 71 ) THEN + 80 - - 92 + + + 48 * - - 94 * - 24 ELSE - - SUM ( ALL 23 ) * 27 + - 16 END
----
1869

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT CASE + 46 WHEN - 49 THEN ( - - 33 ) WHEN - 55 + - MIN( ALL + 6 ) + 76 THEN NULL WHEN + - 53 + + 48 / - 98 * - - 50 * + COUNT( * ) THEN NULL ELSE + 45 END + 75 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-8888
SELECT CASE + 46 WHEN - 49 THEN ( - - 33 ) WHEN - 55 + - MIN ( ALL + 6 ) + 76 THEN NULL WHEN + - 53 + + 48 / - 98 * - - 50 * + COUNT ( * ) THEN NULL ELSE + 45 END + 75 AS col2
----
120

query I rowsort
SELECT ALL - 37 + 52
----
15

query I rowsort
SELECT DISTINCT - - 26 * 44 + - ( + - 69 ) + - 71 - + 31 + + 40 * + - 21 + - 73 AS col0
----
198

query I rowsort
SELECT 43 + + - 13 - - 67 * - 1 AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8892
SELECT 87 + + - 21 * 10 DIV + - 55 + ( - 41 ) + - 19 + + 68 + CASE + 6 WHEN + COUNT( * ) THEN NULL WHEN + + 34 * NULLIF ( - ( ( + 98 ) ), - 81 * - COUNT( * ) + + - 21 DIV 59 ) * - + SUM( - 36 ) * - 74 + - 44 THEN - + ( 61 ) ELSE + CAST( 97 AS SIGNED ) END + - 73 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-8892
SELECT 87 + + - 21 * 10 / + - 55 + ( - 41 ) + - 19 + + 68 + CASE + 6 WHEN + COUNT ( * ) THEN NULL WHEN + + 34 * NULLIF ( - ( ( + 98 ) ), - 81 * - COUNT ( * ) + + - 21 / 59 ) * - + SUM ( - 36 ) * - 74 + - 44 THEN - + ( 61 ) ELSE + CAST ( 97 AS INTEGER ) END + - 73 AS col2
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-8893
SELECT ALL 42 + + 90 AS col0, - ( + MIN( ALL COALESCE ( 20, - 50 ) ) ) + - + COUNT( * )
----
132
-21

skipif mysql # not compatible
query II rowsort label-8893
SELECT ALL 42 + + 90 AS col0, - ( + MIN ( ALL COALESCE ( 20, - 50 ) ) ) + - + COUNT ( * )
----
132
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT 47 + - ( - MIN( + NULLIF ( 73, + 43 * + 21 ) ) ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-8894
SELECT 47 + - ( - MIN ( + NULLIF ( 73, + 43 * + 21 ) ) ) AS col1
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-8895
SELECT DISTINCT 94 AS col0, MAX( + 55 )
----
94
55

skipif mysql # not compatible
query II rowsort label-8895
SELECT DISTINCT 94 AS col0, MAX ( + 55 )
----
94
55

query I rowsort
SELECT 56 + - ( 95 ) AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8897
SELECT CAST( NULL AS SIGNED ) + - SUM( - + 81 ) + + 78 * - 99 + - + 1 + - + 24 * + - 88 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT CAST ( NULL AS INTEGER ) + - SUM ( - + 81 ) + + 78 * - 99 + - + 1 + - + 24 * + - 88 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 63 * + + 77 AS col0
----
4851

query I rowsort
SELECT ALL 58 * - 47 * - 37
----
100862

query I rowsort
SELECT NULLIF ( 46, 28 / - 76 + 45 * 68 ) + - 96 + + 69 + ( + 14 ) - - 45 + - 11 + + - ( + 48 ) * - 12
----
643

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL COUNT( * ) - + + ( 88 )
----
-87

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL COUNT ( * ) - + + ( 88 )
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT 46 + + + 21 + + + 2 DIV + + 90
----
67

skipif mysql # not compatible
query I rowsort label-8902
SELECT 46 + + + 21 + + + 2 / + + 90
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL - 13 - CASE WHEN 72 <= 42 * 95 / + 88 + - 44 THEN - 42 END + - + COUNT( * ) * - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL - 13 - CASE WHEN 72 <= 42 * 95 / + 88 + - 44 THEN - 42 END + - + COUNT ( * ) * - + 60
----
NULL

query II rowsort
SELECT 53 * - 16 * + 85 AS col2, + 12 + + 87 * - + 54
----
-72080
-4686

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL 22 * COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL 22 * COUNT ( * ) AS col0
----
22

query I rowsort
SELECT 78 * - + 29 AS col2
----
-2262

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8907
SELECT + COUNT( * ) DIV - 10 + 27 + + 53 - ( 71 ) + - 96 * + 91 * 34 AS col1
----
-297015

skipif mysql # not compatible
query I rowsort label-8907
SELECT + COUNT ( * ) / - 10 + 27 + + 53 - ( 71 ) + - 96 * + 91 * 34 AS col1
----
-297015

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT SUM( DISTINCT + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8908
SELECT SUM ( DISTINCT + 0 )
----
0

query I rowsort
SELECT ALL - COALESCE ( + 36, - + 3, + 0 ) AS col1
----
-36

query I rowsort
SELECT 58 + + ( - 88 ) AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8911
SELECT + 29 AS col1, + CAST( + CASE - 94 WHEN COUNT( * ) THEN NULL WHEN + - 77 * - 22 + 76 + + + ( + SUM( + 17 ) ) * + CASE WHEN ( - 84 IN ( + 51, - 97, 6, + 9 ) ) THEN NULL WHEN NOT 98 = + 50 THEN NULL WHEN NOT NULL NOT IN ( - ( 96 ) / - + 99 + 28 ) AND NOT + 23 IN ( 42 * + 1 ) THEN 40 + 3 END + CASE - 74 WHEN - 58 THEN - NULLIF ( - 36, + 44 ) * 80 + 67 END THEN NULL WHEN + SUM( ALL 23 ) THEN NULL WHEN 6 + - 47 * + 94 THEN + 54 END AS SIGNED ) + + 54 AS col0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-8911
SELECT + 29 AS col1, + CAST ( + CASE - 94 WHEN COUNT ( * ) THEN NULL WHEN + - 77 * - 22 + 76 + + + ( + SUM ( + 17 ) ) * + CASE WHEN ( - 84 IN ( + 51, - 97, 6, + 9 ) ) THEN NULL WHEN NOT 98 = + 50 THEN NULL WHEN NOT NULL NOT IN ( - ( 96 ) / - + 99 + 28 ) AND NOT + 23 IN ( 42 * + 1 ) THEN 40 + 3 END + CASE - 74 WHEN - 58 THEN - NULLIF ( - 36, + 44 ) * 80 + 67 END THEN NULL WHEN + SUM ( ALL 23 ) THEN NULL WHEN 6 + - 47 * + 94 THEN + 54 END AS INTEGER ) + + 54 AS col0
----
29
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8912
SELECT 97 DIV 9
----
10

skipif mysql # not compatible
query I rowsort label-8912
SELECT 97 / 9
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT ALL - 78 DIV - + 64
----
1

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL - 78 / - + 64
----
1

query I rowsort
SELECT ALL + - 67 * + 69 AS col1
----
-4623

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ALL - 54 * + COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL - 54 * + COUNT ( * ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT + - ( + COUNT( * ) ) + + COUNT( * ) * + + 11 * SUM( DISTINCT - 17 )
----
-188

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT + - ( + COUNT ( * ) ) + + COUNT ( * ) * + + 11 * SUM ( DISTINCT - 17 )
----
-188

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT DISTINCT - COALESCE ( - 54, COALESCE ( - 7, - 61 * + + 78 ) * - 27 DIV + - 26 * - 25 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT - COALESCE ( - 54, COALESCE ( - 7, - 61 * + + 78 ) * - 27 / + - 26 * - 25 ) AS col2
----
54

query I rowsort
SELECT - 57 * + - 90 + + + 53 - 82 + + - 8 AS col2
----
5093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8919
SELECT 61 + - 47 + + CAST( - ( + 63 ) AS SIGNED ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-8919
SELECT 61 + - 47 + + CAST ( - ( + 63 ) AS INTEGER ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT ALL - 51 + - 26 * + COUNT( * ) + 21 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL - 51 + - 26 * + COUNT ( * ) + 21 AS col1
----
-56

query II rowsort
SELECT ALL - - 1 AS col2, 12 col2
----
1
12

query I rowsort
SELECT + - 63 AS col1
----
-63

query I rowsort
SELECT + - ( 72 ) col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-8924
SELECT DISTINCT - 81, - ( - - 35 ) * - COUNT( * ) + 41 + - ( + ( - - 4 ) ) * + + 90 + + + 40 col1
----
-81
-244

skipif mysql # not compatible
query II rowsort label-8924
SELECT DISTINCT - 81, - ( - - 35 ) * - COUNT ( * ) + 41 + - ( + ( - - 4 ) ) * + + 90 + + + 40 col1
----
-81
-244

query I rowsort
SELECT ALL - NULLIF ( + 17, 59 ) col0
----
-17

query I rowsort
SELECT ALL + - 95 + + 88 - 35 * + 29
----
-1022

query I rowsort
SELECT ALL 46 + - + 95 AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8928
SELECT ALL 59 + - 65 * + - 41 * + ( - + ( - COALESCE ( - 82, - + CAST( COUNT( * ) AS SIGNED ) + + - 88 DIV + 37 * + 90 ) ) )
----
-218471

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL 59 + - 65 * + - 41 * + ( - + ( - COALESCE ( - 82, - + CAST ( COUNT ( * ) AS INTEGER ) + + - 88 / + 37 * + 90 ) ) )
----
-218471

query I rowsort
SELECT DISTINCT - + 64 AS col1
----
-64

query I rowsort
SELECT DISTINCT - 8 + - 16 * 96
----
-1544

query I rowsort
SELECT DISTINCT + + 70 + + + ( + 0 ) * - 80 AS col2
----
70

query I rowsort
SELECT ALL - + 7 + 28 col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT - + COUNT( DISTINCT + 16 ) * COUNT( * ) + + + 87
----
86

skipif mysql # not compatible
query I rowsort label-8933
SELECT - + COUNT ( DISTINCT + 16 ) * COUNT ( * ) + + + 87
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT ALL COUNT( * ) * 16 * - 8 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL COUNT ( * ) * 16 * - 8 AS col2
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8935
SELECT + 52 * + COUNT( * ) DIV + 67 * + 66 * + 33
----
0

skipif mysql # not compatible
query I rowsort label-8935
SELECT + 52 * + COUNT ( * ) / + 67 * + 66 * + 33
----
0

query I rowsort
SELECT ALL + 81 - - 28 * - 37 * + 3 * - NULLIF ( + 41, - - 70 + + 32 + - - NULLIF ( 49, - + 93 * 94 ) )
----
127509

query I rowsort
SELECT DISTINCT - ( + - 55 ) * + 10 AS col0
----
550

query I rowsort
SELECT ALL 11 - 77 AS col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8939
SELECT + 16 DIV + 55 * - ( + 47 )
----
0

skipif mysql # not compatible
query I rowsort label-8939
SELECT + 16 / + 55 * - ( + 47 )
----
0

query I rowsort
SELECT + 93 * - - 7 * - - 21 AS col0
----
13671

query I rowsort
SELECT + 63 + + 59
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-8942
SELECT + 80 DIV - 40
----
-2

skipif mysql # not compatible
query I rowsort label-8942
SELECT + 80 / - 40
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8943
SELECT - ( + - 56 ), 93 - - COUNT( * ) AS col1
----
56
94

skipif mysql # not compatible
query II rowsort label-8943
SELECT - ( + - 56 ), 93 - - COUNT ( * ) AS col1
----
56
94

query I rowsort
SELECT + 63 * 32
----
2016

query I rowsort
SELECT + NULLIF ( - - 97, - ( - 33 ) ) - - - ( 13 )
----
84

query I rowsort
SELECT ALL - 82 * + 53
----
-4346

query I rowsort
SELECT + 27 * - 54 AS col1
----
-1458

query I rowsort
SELECT ALL 35 * - 21 + 59 * + - 41 AS col0
----
-3154

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT + ( + COUNT( 99 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8949
SELECT + ( + COUNT ( 99 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT 85 * 50 + - 89 AS col0
----
4161

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT DISTINCT + SUM( - 98 ) * 12 * - - COUNT( * ) + + 80 * - 85 * 97 * 62
----
-40896376

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT + SUM ( - 98 ) * 12 * - - COUNT ( * ) + + 80 * - 85 * 97 * 62
----
-40896376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8952
SELECT SUM( - - CAST( - 14 AS SIGNED ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8952
SELECT SUM ( - - CAST ( - 14 AS INTEGER ) ) AS col0
----
-14

query I rowsort
SELECT + 77 * - 72
----
-5544

query I rowsort
SELECT ALL + 68 col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8955
SELECT DISTINCT + 32 * COUNT( * ) + + - 2 * 83 * - 77 - COALESCE ( + - ( - + 6 ), 52 * + 31 DIV + ( + + AVG ( DISTINCT + 9 ) ) * + 21 + CASE - + 34 WHEN - 69 * + 93 + - 67 DIV + 90 + 4 DIV - + 30 THEN - CAST( 80 AS SIGNED ) + + 30 - - 42 * - - COUNT( * ) + 66 WHEN - 47 THEN NULL END ) AS col2
----
12808

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT + 32 * COUNT ( * ) + + - 2 * 83 * - 77 - COALESCE ( + - ( - + 6 ), 52 * + 31 / + ( + + AVG ( DISTINCT + 9 ) ) * + 21 + CASE - + 34 WHEN - 69 * + 93 + - 67 / + 90 + 4 / - + 30 THEN - CAST ( 80 AS INTEGER ) + + 30 - - 42 * - - COUNT ( * ) + 66 WHEN - 47 THEN NULL END ) AS col2
----
12808

query I rowsort
SELECT - - 59 - ( + 48 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8957
SELECT DISTINCT + 48 * - 6 * CAST( - CASE 83 WHEN - 44 + AVG ( ALL + - 83 ) THEN ( - - COUNT( * ) ) - - 83 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT + 48 * - 6 * CAST ( - CASE 83 WHEN - 44 + AVG ( ALL + - 83 ) THEN ( - - COUNT ( * ) ) - - 83 END AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8958
SELECT DISTINCT + - 88 * + - 37 * + CAST( NULL AS DECIMAL ) * - + 71 * + - 25 + + 42 + + 60 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT + - 88 * + - 37 * + CAST ( NULL AS REAL ) * - + 71 * + - 25 + + 42 + + 60 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT - CAST( NULL AS SIGNED ) * + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT - CAST ( NULL AS INTEGER ) * + - 34
----
NULL

query I rowsort
SELECT + - ( - - 56 ) + - + 50
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-8961
SELECT - - 9 DIV - - 75
----
0

skipif mysql # not compatible
query I rowsort label-8961
SELECT - - 9 / - - 75
----
0

query I rowsort
SELECT ALL + 60 * + 17 * + + 68 + - 66 - - 62 AS col2
----
69356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8963
SELECT - - 98 * - CAST( + NULLIF ( 8, + 49 ) AS SIGNED ) col1
----
-784

skipif mysql # not compatible
query I rowsort label-8963
SELECT - - 98 * - CAST ( + NULLIF ( 8, + 49 ) AS INTEGER ) col1
----
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT - 63 * + COUNT( - 45 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8964
SELECT - 63 * + COUNT ( - 45 ) AS col2
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-8965
SELECT + 76 - + 19 + + 56 * 81 AS col0, 71 DIV - - 62 AS col2
----
4593
1

skipif mysql # not compatible
query II rowsort label-8965
SELECT + 76 - + 19 + + 56 * 81 AS col0, 71 / - - 62 AS col2
----
4593
1

query I rowsort
SELECT ALL - 58 * + - 3
----
174

query I rowsort
SELECT 85 * + 22 + - + 66 AS col2
----
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL CASE - + 33 WHEN - 92 THEN - 18 WHEN 28 THEN + SUM( - 54 ) * + 18 + - 1 ELSE + ( - 87 ) END
----
-87

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL CASE - + 33 WHEN - 92 THEN - 18 WHEN 28 THEN + SUM ( - 54 ) * + 18 + - 1 ELSE + ( - 87 ) END
----
-87

query I rowsort
SELECT DISTINCT 70 * - 10 AS col1
----
-700

query I rowsort
SELECT - 75 * - 78 AS col2
----
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT - MIN( ALL + + 50 ) + 97
----
47

skipif mysql # not compatible
query I rowsort label-8971
SELECT - MIN ( ALL + + 50 ) + 97
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT - 40 * + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-8972
SELECT - 40 * + COUNT ( * )
----
-40

query I rowsort
SELECT + NULLIF ( 25, - 23 ) + + 65
----
90

query I rowsort
SELECT ALL 69 * - + 73
----
-5037

query I rowsort
SELECT DISTINCT + 96 * - + 20 col2
----
-1920

query II rowsort
SELECT DISTINCT 24, - 78 + + 87 AS col0
----
24
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8977
SELECT 57, COUNT( * ) AS col0
----
57
1

skipif mysql # not compatible
query II rowsort label-8977
SELECT 57, COUNT ( * ) AS col0
----
57
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8978
SELECT ALL - 23 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL - 23 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT CASE + ( + 1 ) WHEN + 21 - + 1 THEN 27 END / + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL 15 + - NULLIF ( + - COUNT( * ), - ( + 35 ) * 56 ) * + COALESCE ( + ( 79 ), + 57 ) + + 6 + - + 60 * + + 52 * + 94
----
-293180

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL 15 + - NULLIF ( + - COUNT ( * ), - ( + 35 ) * 56 ) * + COALESCE ( + ( 79 ), + 57 ) + + 6 + - + 60 * + + 52 * + 94
----
-293180

query II rowsort
SELECT DISTINCT 26 + + + ( 82 ) + + + CASE + + 78 WHEN - 39 + - 31 THEN NULL ELSE - 78 END, 11 AS col2
----
30
11

onlyif mysql # DIV for integer division: 
query I rowsort label-8982
SELECT + 97 DIV - 42
----
-2

skipif mysql # not compatible
query I rowsort label-8982
SELECT + 97 / - 42
----
-2

query I rowsort
SELECT + - 57 + - 52
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8984
SELECT ALL + SUM( ALL - CAST( 81 AS SIGNED ) )
----
-81

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL + SUM ( ALL - CAST ( 81 AS INTEGER ) )
----
-81

query I rowsort
SELECT - + ( 87 ) AS col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8986
SELECT ALL + 29 DIV - + 21 + + 66 + - 90 * + 79 + + + 86 + + - SUM( 98 ) * + ( 39 ) AS col1, - ( - 70 ) + - - 12 + + 33
----
-10781
115

skipif mysql # not compatible
query II rowsort label-8986
SELECT ALL + 29 / - + 21 + + 66 + - 90 * + 79 + + + 86 + + - SUM ( 98 ) * + ( 39 ) AS col1, - ( - 70 ) + - - 12 + + 33
----
-10781
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8987
SELECT DISTINCT - 43 DIV - + 72 * MAX( ALL - 66 ) + ( 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT - 43 / - + 72 * MAX ( ALL - 66 ) + ( 9 ) AS col2
----
9

query I rowsort
SELECT DISTINCT 23 * + + NULLIF ( + - ( + 31 ), 10 )
----
-713

query I rowsort
SELECT DISTINCT - - 37 col0
----
37

query I rowsort
SELECT + + ( - + 92 ) AS col1
----
-92

query II rowsort
SELECT ALL - 51 AS col2, 27 AS col1
----
-51
27

query I rowsort
SELECT + 69 * + 51 AS col2
----
3519

query II rowsort
SELECT ALL - - 21 AS col1, CASE - + 57 WHEN + AVG ( - - 47 ) * + 85 * + NULLIF ( 24, + 26 ) THEN NULL ELSE ( 15 ) END
----
21
15

query II rowsort
SELECT 72 * + 63 + + 90 AS col0, 27 + + 61 + + 82 * 12 + - 7 * 88 col2
----
4626
456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8995
SELECT ALL + - COUNT( * ) - + + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL + - COUNT ( * ) - + + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT DISTINCT ( + 17 ) DIV + 93 col1
----
0

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT ( + 17 ) / + 93 col1
----
0

query I rowsort
SELECT DISTINCT + 72 * + 8 * 37 AS col0
----
21312

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8998
SELECT DISTINCT CAST( + 99 AS SIGNED ) DIV - - 88 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT CAST ( + 99 AS INTEGER ) / - - 88 AS col0
----
1

query I rowsort
SELECT 56 * - + 56 AS col1
----
-3136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9000
SELECT ALL - CAST( NULL AS SIGNED ) col2, + COUNT( * ) * + 35 + + ( + 77 ) + 4 * 40 + + 79
----
NULL
351

skipif mysql # not compatible
query II rowsort label-9000
SELECT ALL - CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) * + 35 + + ( + 77 ) + 4 * 40 + + 79
----
NULL
351

query II rowsort
SELECT + 95 AS col2, - 91 AS col2
----
95
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9002
SELECT - 48, - COUNT( * ) + 6 AS col2
----
-48
5

skipif mysql # not compatible
query II rowsort label-9002
SELECT - 48, - COUNT ( * ) + 6 AS col2
----
-48
5

query I rowsort
SELECT 81 * + 10 AS col2
----
810

query II rowsort
SELECT ALL 5, 45 * + 31 AS col0
----
5
1395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9005
SELECT COUNT( * ) * - 3 - + 68 - 51 AS col0, CAST( NULL AS SIGNED )
----
-122
NULL

skipif mysql # not compatible
query II rowsort label-9005
SELECT COUNT ( * ) * - 3 - + 68 - 51 AS col0, CAST ( NULL AS INTEGER )
----
-122
NULL

query II rowsort
SELECT 38, + 67 * - 87 AS col1
----
38
-5829

query I rowsort
SELECT 91 * - 11 AS col1
----
-1001

query I rowsort
SELECT ALL + 91 + 71
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-9009
SELECT ALL 62, COUNT( * ) * - - MAX( - - 78 ) col2
----
62
78

skipif mysql # not compatible
query II rowsort label-9009
SELECT ALL 62, COUNT ( * ) * - - MAX ( - - 78 ) col2
----
62
78

query I rowsort
SELECT 68 * - + 7 AS col0
----
-476

onlyif mysql # aggregate syntax: 
query II rowsort label-9011
SELECT DISTINCT + 9 + 38 - + COUNT( * ) * - 93 col0, + 9 AS col1
----
140
9

skipif mysql # not compatible
query II rowsort label-9011
SELECT DISTINCT + 9 + 38 - + COUNT ( * ) * - 93 col0, + 9 AS col1
----
140
9

query II rowsort
SELECT DISTINCT 68, 29 AS col0
----
68
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT 81 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9013
SELECT 81 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 37 + ( - 15 )
----
-52

query I rowsort
SELECT 3 + + 69 * - 30 AS col2
----
-2067

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL + COUNT( * ) + + - 88 + + 44
----
-43

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL + COUNT ( * ) + + - 88 + + 44
----
-43

query I rowsort
SELECT ALL - + 5 + - 26 + 94
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL + 20 * + COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL + 20 * + COUNT ( * ) AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9019
SELECT ALL + - 76 + + 45 * 89 DIV 6 + - + 59 AS col2
----
532

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL + - 76 + + 45 * 89 / 6 + - + 59 AS col2
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT ALL COUNT( - 89 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL COUNT ( - 89 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL - CASE - - 2 WHEN + + COUNT( * ) THEN NULL WHEN 79 THEN - COUNT( * ) ELSE - - 45 * COUNT( * ) END - - 74 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL - CASE - - 2 WHEN + + COUNT ( * ) THEN NULL WHEN 79 THEN - COUNT ( * ) ELSE - - 45 * COUNT ( * ) END - - 74 AS col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9022
SELECT ALL NULLIF ( + 71, - + 45 ) DIV - 29 + - - 69 * + ( - 89 ) AS col2
----
-6143

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL NULLIF ( + 71, - + 45 ) / - 29 + - - 69 * + ( - 89 ) AS col2
----
-6143

query II rowsort
SELECT + 85, + 83 * 42 + 37 AS col2
----
85
3523

query I rowsort
SELECT DISTINCT - + 76 - - 96 * ( 51 ) AS col2
----
4820

query I rowsort
SELECT - CASE 84 WHEN + - COALESCE ( 39, - 45 ) THEN + 44 WHEN - 91 THEN NULL END * + 64 - + 59 * + 24 AS col0
----
NULL

query I rowsort
SELECT 7 * + 8
----
56

query I rowsort
SELECT - 66 * 44 AS col0
----
-2904

query II rowsort
SELECT - 36 AS col0, - 68 + 84 + + 5 AS col0
----
-36
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT 56 + - 36 * + 90 + - - COUNT( * ) col0
----
-3183

skipif mysql # not compatible
query I rowsort label-9029
SELECT 56 + - 36 * + 90 + - - COUNT ( * ) col0
----
-3183

query II rowsort
SELECT 69, - 7 + + 98 AS col1
----
69
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL - MAX( - 55 ) * + - 41 AS col0
----
-2255

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - MAX ( - 55 ) * + - 41 AS col0
----
-2255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9032
SELECT + 2 * - CAST( NULL AS SIGNED ) + + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT + 2 * - CAST ( NULL AS INTEGER ) + + + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL 42 * MAX( - 82 ) AS col0
----
-3444

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL 42 * MAX ( - 82 ) AS col0
----
-3444

query I rowsort
SELECT 64 - - 74
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT DISTINCT 81 * - 86 + - COUNT( * ) AS col0
----
-6967

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT 81 * - 86 + - COUNT ( * ) AS col0
----
-6967

query I rowsort
SELECT ALL 58 * + COALESCE ( + + 56, - 4 * + + 73 )
----
3248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT DISTINCT 93 + - 51 - + 6 - 46 * CAST( NULL AS SIGNED ) / 34
----
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT 93 + - 51 - + 6 - 46 * CAST ( NULL AS INTEGER ) / 34
----
NULL

query I rowsort
SELECT ALL 52 + - 22
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT MIN( DISTINCT - 19 ) + - 6 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-9039
SELECT MIN ( DISTINCT - 19 ) + - 6 AS col1
----
-25

query I rowsort
SELECT 23 * - - ( 67 ) + 87 AS col1
----
1628

onlyif mysql # DIV for integer division: 
query I rowsort label-9041
SELECT ALL - 50 DIV - 39 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - 50 / - 39 AS col1
----
1

query I rowsort
SELECT ALL + 96 + 27 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT - SUM( - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9043
SELECT - SUM ( - 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9044
SELECT ALL 92 + + COUNT( * ) + CAST( + + 53 AS SIGNED ) * - - 40 * 18 * + + 43 + + 65 col2
----
1641038

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL 92 + + COUNT ( * ) + CAST ( + + 53 AS INTEGER ) * - - 40 * 18 * + + 43 + + 65 col2
----
1641038

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT ALL - COALESCE ( 73, + 5 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL - COALESCE ( 73, + 5 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 87 * 64 AS col2, 56
----
5568
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT ALL 10 DIV - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL 10 / - 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT - SUM( DISTINCT 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-9048
SELECT - SUM ( DISTINCT 45 )
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-9049
SELECT 71 DIV + 94, 77 col1
----
0
77

skipif mysql # not compatible
query II rowsort label-9049
SELECT 71 / + 94, 77 col1
----
0
77

query II rowsort
SELECT 77 * + 62, + 69 AS col1
----
4774
69

query II rowsort
SELECT ALL + 61 + + 60 col1, 72 AS col1
----
121
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT - MAX( - 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9052
SELECT - MAX ( - 77 ) AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9053
SELECT ALL CAST( 93 AS SIGNED ) AS col2, 20
----
93
20

skipif mysql # not compatible
query II rowsort label-9053
SELECT ALL CAST ( 93 AS INTEGER ) AS col2, 20
----
93
20

query I rowsort
SELECT ALL - 74 - - - 50 * 26 + 8 + - 28 AS col1
----
-1394

onlyif mysql # aggregate syntax: 
query II rowsort label-9055
SELECT DISTINCT + COUNT( + 81 ), + 9 * - 89 + + - 24 AS col2
----
1
-825

skipif mysql # not compatible
query II rowsort label-9055
SELECT DISTINCT + COUNT ( + 81 ), + 9 * - 89 + + - 24 AS col2
----
1
-825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9056
SELECT ALL + CAST( + 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL + CAST ( + 25 AS INTEGER )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT ALL - - 78 - + - 64 + - 80 + COUNT( + 40 ) * - - 57
----
119

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL - - 78 - + - 64 + - 80 + COUNT ( + 40 ) * - - 57
----
119

query I rowsort
SELECT - ( + 28 ) * 13 + 24 AS col1
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT - ( - + 28 ) * COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9059
SELECT - ( - + 28 ) * COUNT ( * )
----
28

query I rowsort
SELECT CASE + + 20 WHEN 34 THEN + 64 ELSE 29 + + 21 END
----
50

query I rowsort
SELECT - 98 + + - 8 * - 76
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL - - CASE - COALESCE ( + 83, COUNT( * ), 8 ) WHEN - 33 * - 88 THEN 59 ELSE NULL END * - - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL - - CASE - COALESCE ( + 83, COUNT ( * ), 8 ) WHEN - 33 * - 88 THEN 59 ELSE NULL END * - - 88
----
NULL

query I rowsort
SELECT + + 47 * - 59
----
-2773

query I rowsort
SELECT - - 36 + - - 43
----
79

query I rowsort
SELECT + ( - + 70 )
----
-70

query II rowsort
SELECT ALL + NULLIF ( - 3, 39 ), - 50 AS col2
----
-3
-50

query I rowsort
SELECT - + COALESCE ( - 86, 46 ) * - 72 * 43 + + + 71 + + 75 * 78
----
-260335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9068
SELECT ALL + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9069
SELECT ALL - - NULLIF ( COUNT( * ), - 25 ) * - - 86 DIV 59 + + - 28 * 41 DIV - 38
----
31

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - - NULLIF ( COUNT ( * ), - 25 ) * - - 86 / 59 + + - 28 * 41 / - 38
----
31

query II rowsort
SELECT - 87 * + - 78 AS col1, 70
----
6786
70

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9071
SELECT + CAST( NULL AS DECIMAL ) + - 29 AS col1, 7 * 9 * 66, - - 48 AS col2
----
NULL
4158
48

skipif mysql # not compatible
query III rowsort label-9071
SELECT + CAST ( NULL AS REAL ) + - 29 AS col1, 7 * 9 * 66, - - 48 AS col2
----
NULL
4158
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9072
SELECT - 64 DIV + 71 * + 96
----
0

skipif mysql # not compatible
query I rowsort label-9072
SELECT - 64 / + 71 * + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT ALL SUM( DISTINCT + + 39 ) * + 68 + - + 98 - + - SUM( ALL 40 )
----
2594

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL SUM ( DISTINCT + + 39 ) * + 68 + - + 98 - + - SUM ( ALL 40 )
----
2594

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT + 58 * + - 11 + + COUNT( * ) AS col1
----
-637

skipif mysql # not compatible
query I rowsort label-9074
SELECT + 58 * + - 11 + + COUNT ( * ) AS col1
----
-637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9075
SELECT DISTINCT 39 * CAST( NULL AS SIGNED ) + + 14 * 61 * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT 39 * CAST ( NULL AS INTEGER ) + + 14 * 61 * - 61
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9076
SELECT NULLIF ( + + 83, COUNT( * ) + + 59 ) AS col0, 63 AS col2
----
83
63

skipif mysql # not compatible
query II rowsort label-9076
SELECT NULLIF ( + + 83, COUNT ( * ) + + 59 ) AS col0, 63 AS col2
----
83
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9077
SELECT + COALESCE ( + ( + + 63 ), + AVG ( 2 ) DIV - + 58 - + 52 )
----
63

skipif mysql # not compatible
query I rowsort label-9077
SELECT + COALESCE ( + ( + + 63 ), + AVG ( 2 ) / - + 58 - + 52 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT DISTINCT + 66 * 94 * + ( + NULLIF ( + 18, - 52 * 83 - - + COUNT( * ) ) ) * - 70 * 77 + + COALESCE ( - NULLIF ( - + COUNT( * ), - + 73 ), + ( 58 ) ) - - 64
----
-601912015

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT + 66 * 94 * + ( + NULLIF ( + 18, - 52 * 83 - - + COUNT ( * ) ) ) * - 70 * 77 + + COALESCE ( - NULLIF ( - + COUNT ( * ), - + 73 ), + ( 58 ) ) - - 64
----
-601912015

query I rowsort
SELECT ALL 4 * + 98
----
392

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT + 10 * - MIN( + 75 )
----
-750

skipif mysql # not compatible
query I rowsort label-9080
SELECT + 10 * - MIN ( + 75 )
----
-750

query I rowsort
SELECT ALL 7 * 85 + 57
----
652

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT DISTINCT + COALESCE ( + 65, + + 3 * - + COUNT( * ) + + 9 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT + COALESCE ( + 65, + + 3 * - + COUNT ( * ) + + 9 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT ALL + 94 * + 79 + + MAX( DISTINCT - - 75 ) - + 95 - + 23
----
7383

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL + 94 * + 79 + + MAX ( DISTINCT - - 75 ) - + 95 - + 23
----
7383

query I rowsort
SELECT ALL 69 * - 40 AS col1
----
-2760

query I rowsort
SELECT - 74 * 16
----
-1184

query I rowsort
SELECT + 80 * - 75
----
-6000

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT - SUM( DISTINCT - 25 )
----
25

skipif mysql # not compatible
query I rowsort label-9087
SELECT - SUM ( DISTINCT - 25 )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9088
SELECT ALL COUNT( ALL - 11 ) + - 43 DIV 20 + - NULLIF ( + 50, + - 90 ) DIV 92 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL COUNT ( ALL - 11 ) + - 43 / 20 + - NULLIF ( + 50, + - 90 ) / 92 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT - SUM( DISTINCT - 12 ) col2
----
12

skipif mysql # not compatible
query I rowsort label-9089
SELECT - SUM ( DISTINCT - 12 ) col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 38 - - + 24 AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9092
SELECT COUNT( DISTINCT ( + 57 ) ) * - 75 * + 28 * - 7 - - CAST( NULL AS SIGNED ) + - 99 AS col2, MIN( ALL - - 57 ) * + SUM( + 0 ) + 95
----
NULL
95

skipif mysql # not compatible
query II rowsort label-9092
SELECT COUNT ( DISTINCT ( + 57 ) ) * - 75 * + 28 * - 7 - - CAST ( NULL AS INTEGER ) + - 99 AS col2, MIN ( ALL - - 57 ) * + SUM ( + 0 ) + 95
----
NULL
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT ALL SUM( - + NULLIF ( - 29, - 6 ) )
----
29

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL SUM ( - + NULLIF ( - 29, - 6 ) )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9094
SELECT ALL 91 DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL 91 / 98 AS col2
----
0

query I rowsort
SELECT - ( - - 34 ) AS col1
----
-34

query I rowsort
SELECT ALL 2 - + + 95
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT + 41 * - + COUNT( DISTINCT 57 ) + - 47 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-9097
SELECT + 41 * - + COUNT ( DISTINCT 57 ) + - 47 AS col0
----
-88

query I rowsort
SELECT ALL + + 38 - + + 25
----
13

query I rowsort
SELECT - 68 - + - 71 col1
----
3

query I rowsort
SELECT + - 32 * + 60
----
-1920

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9101
SELECT - - CAST( NULL AS SIGNED ) + + AVG ( ALL + 82 ) AS col0, 34 AS col1
----
NULL
34

skipif mysql # not compatible
query II rowsort label-9101
SELECT - - CAST ( NULL AS INTEGER ) + + AVG ( ALL + 82 ) AS col0, 34 AS col1
----
NULL
34

query I rowsort
SELECT ALL NULLIF ( 41, - 35 - 57 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT DISTINCT - 29 * + - COUNT( * ) col0
----
29

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT - 29 * + - COUNT ( * ) col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9104
SELECT ALL 59, + 62 * - + COUNT( * ) DIV - 69 AS col1
----
59
0

skipif mysql # not compatible
query II rowsort label-9104
SELECT ALL 59, + 62 * - + COUNT ( * ) / - 69 AS col1
----
59
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9105
SELECT + COALESCE ( - + COUNT( * ), - - 85 * + 91 DIV + COALESCE ( 21, - 67 ) ) * + + 38
----
-38

skipif mysql # not compatible
query I rowsort label-9105
SELECT + COALESCE ( - + COUNT ( * ), - - 85 * + 91 / + COALESCE ( 21, - 67 ) ) * + + 38
----
-38

query I rowsort
SELECT DISTINCT 14 * - + 37
----
-518

query II rowsort
SELECT DISTINCT + 44 AS col0, - NULLIF ( + ( - 71 ), + + 81 ) AS col0
----
44
71

query II rowsort
SELECT ALL + - 54, ( - 88 ) AS col1
----
-54
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT + SUM( DISTINCT - - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-9109
SELECT + SUM ( DISTINCT - - 20 )
----
20

query I rowsort
SELECT ( - 88 ) AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9111
SELECT ALL - CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 77 END * - + 72 + 91 / + 80 + + 95 / - CAST( COALESCE ( - + 38, - MIN( 50 ) * COUNT( * ), 68 ) AS SIGNED ) AS col0, + 69 * 17
----
NULL
1173

skipif mysql # not compatible
query II rowsort label-9111
SELECT ALL - CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 77 END * - + 72 + 91 / + 80 + + 95 / - CAST ( COALESCE ( - + 38, - MIN ( 50 ) * COUNT ( * ), 68 ) AS INTEGER ) AS col0, + 69 * 17
----
NULL
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT - COUNT( * ) * + + 14
----
-14

skipif mysql # not compatible
query I rowsort label-9112
SELECT - COUNT ( * ) * + + 14
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT COUNT( * ) * - 97 * + COALESCE ( 14, - 83 ) * - COUNT( * ) - + 67
----
1291

skipif mysql # not compatible
query I rowsort label-9113
SELECT COUNT ( * ) * - 97 * + COALESCE ( 14, - 83 ) * - COUNT ( * ) - + 67
----
1291

query I rowsort
SELECT DISTINCT - 50 * 29 * 19 AS col0
----
-27550

onlyif mysql # DIV for integer division: 
query II rowsort label-9115
SELECT ALL 3 DIV - 89 * 80 + 46 AS col0, - 91
----
46
-91

skipif mysql # not compatible
query II rowsort label-9115
SELECT ALL 3 / - 89 * 80 + 46 AS col0, - 91
----
46
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9116
SELECT ALL 47 DIV COUNT( * ) + SUM( ALL + + CAST( - 31 AS SIGNED ) ) + + 7 * - + 77 + + 58
----
-465

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL 47 / COUNT ( * ) + SUM ( ALL + + CAST ( - 31 AS INTEGER ) ) + + 7 * - + 77 + + 58
----
-465

query I rowsort
SELECT DISTINCT - 50 * - 90 * - ( 66 ) AS col0
----
-297000

query I rowsort
SELECT - 4 - + 87
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9119
SELECT ALL + COALESCE ( + 33, - COALESCE ( + - 70, 89 * CAST( - + 32 AS SIGNED ) ) ) col1
----
33

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL + COALESCE ( + 33, - COALESCE ( + - 70, 89 * CAST ( - + 32 AS INTEGER ) ) ) col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT - 51 + - + 34 + COALESCE ( - + 51, ( 33 ) + + + 20 + - COUNT( * ) * ( - MIN( ALL - 13 ) ) ) + + 73 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-9120
SELECT - 51 + - + 34 + COALESCE ( - + 51, ( 33 ) + + + 20 + - COUNT ( * ) * ( - MIN ( ALL - 13 ) ) ) + + 73 AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT + NULLIF ( + COALESCE ( + ( - - 91 ), - - ( - 30 ) ), - CAST( + + 67 AS SIGNED ) + NULLIF ( - CAST( 54 AS SIGNED ), + 20 ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9121
SELECT + NULLIF ( + COALESCE ( + ( - - 91 ), - - ( - 30 ) ), - CAST ( + + 67 AS INTEGER ) + NULLIF ( - CAST ( 54 AS INTEGER ), + 20 ) ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ALL SUM( + 13 ) * + CASE 31 WHEN + 73 + + 68 THEN 33 ELSE 9 END - - 77 col1
----
194

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL SUM ( + 13 ) * + CASE 31 WHEN + 73 + + 68 THEN 33 ELSE 9 END - - 77 col1
----
194

query I rowsort
SELECT ( - 51 ) col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9124
SELECT DISTINCT COUNT( + 81 ) DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT COUNT ( + 81 ) / 75
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9125
SELECT DISTINCT + 15 DIV + + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT + 15 / + + COUNT ( * ) AS col0
----
15

query II rowsort
SELECT + 97 + 7 col1, 68 AS col2
----
104
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL ( - + 73 ) - 7 - NULLIF ( 77, - SUM( 80 ) * 46 ) AS col2
----
-157

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL ( - + 73 ) - 7 - NULLIF ( 77, - SUM ( 80 ) * 46 ) AS col2
----
-157

query I rowsort
SELECT 15 + - 72 * + 54 AS col1
----
-3873

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT + 39 * - CASE 23 WHEN 90 * 34 - - COUNT( * ) THEN NULL WHEN + - 4 THEN 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT + 39 * - CASE 23 WHEN 90 * 34 - - COUNT ( * ) THEN NULL WHEN + - 4 THEN 45 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT - - COUNT( ALL - - 35 )
----
1

skipif mysql # not compatible
query I rowsort label-9130
SELECT - - COUNT ( ALL - - 35 )
----
1

query I rowsort
SELECT + 53 + 93 AS col0
----
146

query I rowsort
SELECT 82 + - ( - - 54 ) * + 77 - 85
----
-4161

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT ALL - 91 * 64 + - + 76 * - 23 + + ( SUM( ALL 12 ) ) AS col0
----
-4064

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL - 91 * 64 + - + 76 * - 23 + + ( SUM ( ALL 12 ) ) AS col0
----
-4064

query I rowsort
SELECT + 80 + + 61
----
141

query I rowsort
SELECT DISTINCT + ( + ( - - 38 ) )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9136
SELECT - 28 + + 35 + + + 86 + + 75 + - - ( + - 0 ) * COUNT( + - 81 ) DIV + + 21 - 62 DIV - 63 AS col2
----
168

skipif mysql # not compatible
query I rowsort label-9136
SELECT - 28 + + 35 + + + 86 + + 75 + - - ( + - 0 ) * COUNT ( + - 81 ) / + + 21 - 62 / - 63 AS col2
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9137
SELECT ALL + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + ( - + 23 ) AS col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9139
SELECT ALL + 65 DIV ( - - 79 )
----
0

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL + 65 / ( - - 79 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT - 78 + - CAST( - 66 AS SIGNED ) * 22 AS col1
----
1374

skipif mysql # not compatible
query I rowsort label-9140
SELECT - 78 + - CAST ( - 66 AS INTEGER ) * 22 AS col1
----
1374

query I rowsort
SELECT - + NULLIF ( + - 86, - + 61 * - - ( - 49 ) + - 90 + + 45 * CASE WHEN NULL NOT BETWEEN NULL AND ( NULL ) THEN + - 89 END ) AS col2
----
86

query I rowsort
SELECT ALL 61 + + 57 AS col0
----
118

query I rowsort
SELECT ALL + 15 + 85 AS col0
----
100

query I rowsort
SELECT DISTINCT - 57 * + 25
----
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT DISTINCT - COUNT( DISTINCT + + 79 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT - COUNT ( DISTINCT + + 79 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT ALL - - ( - - MAX( ALL + 21 ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL - - ( - - MAX ( ALL + 21 ) ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT MAX( - ( + 79 ) ) + - 66
----
-145

skipif mysql # not compatible
query I rowsort label-9147
SELECT MAX ( - ( + 79 ) ) + - 66
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9148
SELECT ALL COUNT( * ) + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL COUNT ( * ) + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 81 AS col1
----
NULL

query I rowsort
SELECT ALL 99 * - 87 AS col2
----
-8613

query I rowsort
SELECT ALL + 91 + - 17 * + 99 AS col2
----
-1592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9151
SELECT 92 DIV - 11 + - + COALESCE ( 89, + - 69 DIV - 66 ) * + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-9151
SELECT 92 / - 11 + - + COALESCE ( 89, + - 69 / - 66 ) * + COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT 97 + + + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-9152
SELECT 97 + + + COUNT ( * )
----
98

query I rowsort
SELECT ALL - 92 - + 3
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9154
SELECT ALL + 28 - CAST( NULL AS SIGNED ) - + 41 * 69 + + - 66 col1, 82 AS col0
----
NULL
82

skipif mysql # not compatible
query II rowsort label-9154
SELECT ALL + 28 - CAST ( NULL AS INTEGER ) - + 41 * 69 + + - 66 col1, 82 AS col0
----
NULL
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT DISTINCT + COUNT( * ) * + - 97 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT + COUNT ( * ) * + - 97 AS col1
----
-97

query I rowsort
SELECT ALL + 2 * - 82
----
-164

query I rowsort
SELECT ALL 27 - + 2
----
25

query I rowsort
SELECT DISTINCT - ( - 75 )
----
75

query I rowsort
SELECT 15 * - + 86 AS col2
----
-1290

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL + COUNT( * ) * + - 97 * - + 19
----
1843

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL + COUNT ( * ) * + - 97 * - + 19
----
1843

query II rowsort
SELECT 6, - 28 AS col2
----
6
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ( 29 ) * + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-9162
SELECT ( 29 ) * + + COUNT ( * )
----
29

query II rowsort
SELECT 51 * - + NULLIF ( 22, - - 72 ) + + 60, 97 AS col2
----
-1062
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT ALL CASE - 47 WHEN + 0 THEN AVG ( DISTINCT + + 19 ) ELSE + SUM( + ( + 91 ) ) END
----
91

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL CASE - 47 WHEN + 0 THEN AVG ( DISTINCT + + 19 ) ELSE + SUM ( + ( + 91 ) ) END
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT COUNT( * ) - - 84
----
85

skipif mysql # not compatible
query I rowsort label-9165
SELECT COUNT ( * ) - - 84
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9166
SELECT + 26 DIV 71 + 33 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9166
SELECT + 26 / 71 + 33 AS col0
----
33

query II rowsort
SELECT - - 77, + 80 col0
----
77
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT ALL + CASE + 19 WHEN - 66 THEN NULL WHEN - + CAST( NULL AS SIGNED ) * - AVG ( ALL - 45 ) / - 21 THEN + 4 END * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL + CASE + 19 WHEN - 66 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) * - AVG ( ALL - 45 ) / - 21 THEN + 4 END * 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT DISTINCT - SUM( 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT - SUM ( 62 )
----
-62

query I rowsort
SELECT ALL - 10 + - + 67
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT - + MIN( DISTINCT - - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-9171
SELECT - + MIN ( DISTINCT - - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT DISTINCT + - 12 + - 21 * - COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT + - 12 + - 21 * - COUNT ( * ) AS col2
----
9

query I rowsort
SELECT ( + + 62 ) + + 23 - - 40
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9174
SELECT CAST( NULL AS SIGNED ) - + COALESCE ( + CASE + + 72 WHEN - 78 + + 10 THEN + 22 * 8 END, + + 11 + - 35, - + 55 * - + 14 * 93 / 77 * COUNT( * ) ) + 57 * - ( 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT CAST ( NULL AS INTEGER ) - + COALESCE ( + CASE + + 72 WHEN - 78 + + 10 THEN + 22 * 8 END, + + 11 + - 35, - + 55 * - + 14 * 93 / 77 * COUNT ( * ) ) + 57 * - ( 30 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL COUNT( * ) * - 79 * + 5 - - 38 * - + 37 + + NULLIF ( + 21, - 0 + + 74 + - COUNT( * ) * + 70 )
----
-1780

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL COUNT ( * ) * - 79 * + 5 - - 38 * - + 37 + + NULLIF ( + 21, - 0 + + 74 + - COUNT ( * ) * + 70 )
----
-1780

query I rowsort
SELECT - 76 * 0 + + 65 + - 73
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT + COALESCE ( COUNT( * ), + - 18 + 80 + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT + COALESCE ( COUNT ( * ), + - 18 + 80 + 3 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT 79 + - COUNT( * ) col0
----
78

skipif mysql # not compatible
query I rowsort label-9178
SELECT 79 + - COUNT ( * ) col0
----
78

query I rowsort
SELECT - ( - 43 ) col0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9180
SELECT 25 + ( + COUNT( * ) ) + COALESCE ( - 5, 92 * - COUNT( * ), + 64 + - + 98 ) * - - 17 AS col1, ( - 29 ) AS col2
----
-59
-29

skipif mysql # not compatible
query II rowsort label-9180
SELECT 25 + ( + COUNT ( * ) ) + COALESCE ( - 5, 92 * - COUNT ( * ), + 64 + - + 98 ) * - - 17 AS col1, ( - 29 ) AS col2
----
-59
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT DISTINCT 23 - MAX( 48 ) + - NULLIF ( + 63, + 33 - + 17 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT 23 - MAX ( 48 ) + - NULLIF ( + 63, + 33 - + 17 ) AS col2
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-9182
SELECT ALL 88, - 74 DIV 70 AS col1
----
88
-1

skipif mysql # not compatible
query II rowsort label-9182
SELECT ALL 88, - 74 / 70 AS col1
----
88
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT DISTINCT SUM( ALL 30 ) * + 21 * + - 26 - - - 17
----
-16397

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT SUM ( ALL 30 ) * + 21 * + - 26 - - - 17
----
-16397

onlyif mysql # aggregate syntax: 
query II rowsort label-9184
SELECT + COUNT( * ) AS col2, - 77 col1
----
1
-77

skipif mysql # not compatible
query II rowsort label-9184
SELECT + COUNT ( * ) AS col2, - 77 col1
----
1
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-9185
SELECT ALL COUNT( * ) * 96 AS col1, - COUNT( * )
----
96
-1

skipif mysql # not compatible
query II rowsort label-9185
SELECT ALL COUNT ( * ) * 96 AS col1, - COUNT ( * )
----
96
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT + COUNT( - + ( - 16 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9186
SELECT + COUNT ( - + ( - 16 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL COUNT( * ) * - CASE 97 WHEN - NULLIF ( + - 14, 82 ) THEN - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL COUNT ( * ) * - CASE 97 WHEN - NULLIF ( + - 14, 82 ) THEN - 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT + CASE - + CASE - 27 WHEN - 47 * COALESCE ( + 6, + - 59 * - + 48 + + 52 + 74 + 8 / - 7 + + - 48 - - 39 + + - 72 * - 44 * - - ( 62 ) * - 53 * - - 28 ) + + + 85 THEN NULL ELSE + 15 + - 50 + - 19 + 1 + - 37 + + + 49 + - + COUNT( * ) * - 30 * ( + 28 ) * + 80 - 34 + 54 + COUNT( * ) * - COUNT( * ) END WHEN 30 THEN - 29 END * ( + 54 * 76 ) - - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT + CASE - + CASE - 27 WHEN - 47 * COALESCE ( + 6, + - 59 * - + 48 + + 52 + 74 + 8 / - 7 + + - 48 - - 39 + + - 72 * - 44 * - - ( 62 ) * - 53 * - - 28 ) + + + 85 THEN NULL ELSE + 15 + - 50 + - 19 + 1 + - 37 + + + 49 + - + COUNT ( * ) * - 30 * ( + 28 ) * + 80 - 34 + 54 + COUNT ( * ) * - COUNT ( * ) END WHEN 30 THEN - 29 END * ( + 54 * 76 ) - - 3
----
NULL

query II rowsort
SELECT ALL - 61, + 90 AS col2
----
-61
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9190
SELECT 33 DIV + COUNT( * ) + 43 col1
----
76

skipif mysql # not compatible
query I rowsort label-9190
SELECT 33 / + COUNT ( * ) + 43 col1
----
76

query I rowsort
SELECT DISTINCT 45 * - + 23
----
-1035

query I rowsort
SELECT + 15 * - CASE - 44 WHEN - 35 THEN NULL WHEN - - 67 THEN + 2 END / - 99
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9193
SELECT ALL + 51 col0, MAX( - 96 )
----
51
-96

skipif mysql # not compatible
query II rowsort label-9193
SELECT ALL + 51 col0, MAX ( - 96 )
----
51
-96

query I rowsort
SELECT - 91 - 63
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT - 50 * SUM( DISTINCT - 14 ) AS col0
----
700

skipif mysql # not compatible
query I rowsort label-9195
SELECT - 50 * SUM ( DISTINCT - 14 ) AS col0
----
700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9196
SELECT + CAST( ( 52 ) AS SIGNED ) + - - COUNT( * ) * - 11 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9196
SELECT + CAST ( ( 52 ) AS INTEGER ) + - - COUNT ( * ) * - 11 AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9197
SELECT - 25 * + MIN( ALL + 84 ) - 96 * 98 DIV 87 AS col2
----
-2208

skipif mysql # not compatible
query I rowsort label-9197
SELECT - 25 * + MIN ( ALL + 84 ) - 96 * 98 / 87 AS col2
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT ALL + SUM( ALL - - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + SUM ( ALL - - 31 )
----
31

query I rowsort
SELECT - COALESCE ( - - 73, 99 ) * 83 + + 92 + - 75
----
-6042

query I rowsort
SELECT ALL + - 39 + 8 + - 40 AS col2
----
-71

query I rowsort
SELECT ALL + + ( - 28 )
----
-28

query I rowsort
SELECT ALL + 9 + + 28
----
37

query I rowsort
SELECT - + 45 + 85 * - + 69 * + ( - 77 ) * - - 58 AS col0
----
26193045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT ALL + - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL + - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) + 67 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 97 + + + 70 AS col2
----
-27

query I rowsort
SELECT + 77 + + + 50 + - - 58 col0
----
185

query I rowsort
SELECT - 51 + + 87 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT - + COUNT( - 57 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9208
SELECT - + COUNT ( - 57 ) col1
----
-1

query I rowsort
SELECT - 64 + + 84 * + + 55 + - 0 AS col1
----
4556

onlyif mysql # aggregate syntax: 
query II rowsort label-9210
SELECT - 23, + COUNT( * ) AS col0
----
-23
1

skipif mysql # not compatible
query II rowsort label-9210
SELECT - 23, + COUNT ( * ) AS col0
----
-23
1

query II rowsort
SELECT ALL 73 col1, + 95 + - + CASE + - 80 WHEN + + ( + 13 ) + + 31 + 60 * - + 25 THEN 23 + + 60 ELSE NULL END AS col1
----
73
NULL

query I rowsort
SELECT - + 76 + + 95
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9213
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + 55 AS col2
----
NULL
55

skipif mysql # not compatible
query II rowsort label-9213
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 55 AS col2
----
NULL
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT DISTINCT CASE + 71 WHEN + + 91 THEN NULL WHEN COUNT( * ) THEN + ( - 52 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT CASE + 71 WHEN + + 91 THEN NULL WHEN COUNT ( * ) THEN + ( - 52 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT DISTINCT + 19 * COUNT( ALL + 77 )
----
19

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT + 19 * COUNT ( ALL + 77 )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9217
SELECT - CAST( NULL AS SIGNED ) * + 53 AS col2, + 87
----
NULL
87

skipif mysql # not compatible
query II rowsort label-9217
SELECT - CAST ( NULL AS INTEGER ) * + 53 AS col2, + 87
----
NULL
87

query I rowsort
SELECT + 34 * + ( 44 )
----
1496

onlyif mysql # aggregate syntax: 
query II rowsort label-9219
SELECT + COUNT( 95 ) AS col1, - 24 AS col1
----
1
-24

skipif mysql # not compatible
query II rowsort label-9219
SELECT + COUNT ( 95 ) AS col1, - 24 AS col1
----
1
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT DISTINCT + NULLIF ( - COUNT( * ), + 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT + NULLIF ( - COUNT ( * ), + 16 )
----
-1

query I rowsort
SELECT + 68 + - 66
----
2

query I rowsort
SELECT - 58 * + 81 * + 48 + 73
----
-225431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT ( - + CAST( - ( + 51 ) AS SIGNED ) ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9223
SELECT ( - + CAST ( - ( + 51 ) AS INTEGER ) ) AS col0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-9224
SELECT + 20 DIV + 57, - 96 AS col2
----
0
-96

skipif mysql # not compatible
query II rowsort label-9224
SELECT + 20 / + 57, - 96 AS col2
----
0
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL - COUNT( * ) * - - 57 * + + COALESCE ( + - COUNT( * ), - 90, - MIN( + 86 ) ) + 57
----
114

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL - COUNT ( * ) * - - 57 * + + COALESCE ( + - COUNT ( * ), - 90, - MIN ( + 86 ) ) + 57
----
114

query II rowsort
SELECT + 32 * + 92 col2, - CASE + + 33 WHEN + 50 / + 12 THEN 56 ELSE NULL END
----
2944
NULL

query I rowsort
SELECT ALL 38 * - ( 69 ) * + + ( + 1 ) col0
----
-2622

query II rowsort
SELECT ALL + ( + - 21 ), 43 AS col1
----
-21
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9229
SELECT ALL + CASE + - AVG ( - + 39 ) WHEN + COUNT( * ) THEN + COUNT( * ) / - CAST( - ( - 87 ) AS SIGNED ) ELSE + 86 END col0
----
86

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL + CASE + - AVG ( - + 39 ) WHEN + COUNT ( * ) THEN + COUNT ( * ) / - CAST ( - ( - 87 ) AS INTEGER ) ELSE + 86 END col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9230
SELECT + 99 DIV COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-9230
SELECT + 99 / COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL + - 20 * + + 55 + - 11 * + + COUNT( * ) * 79
----
-1969

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL + - 20 * + + 55 + - 11 * + + COUNT ( * ) * 79
----
-1969

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL COUNT( * ) * - SUM( + 69 ) + + 27 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL COUNT ( * ) * - SUM ( + 69 ) + + 27 AS col0
----
-42

query I rowsort
SELECT ALL + + 91 col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9234
SELECT + COUNT( DISTINCT - - 1 ) AS col1, + 45 * + 6 col1
----
1
270

skipif mysql # not compatible
query II rowsort label-9234
SELECT + COUNT ( DISTINCT - - 1 ) AS col1, + 45 * + 6 col1
----
1
270

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT - - COUNT( DISTINCT + - 52 ) + + 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-9235
SELECT - - COUNT ( DISTINCT + - 52 ) + + 51 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT - - COUNT( * ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9236
SELECT - - COUNT ( * ) * COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT + + ( COUNT( * ) ) * 29 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9237
SELECT + + ( COUNT ( * ) ) * 29 AS col2
----
29

query I rowsort
SELECT - ( 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT ALL - 54 * + - 43 * + 24 - COUNT( * ) * + - 73 + - 16
----
55785

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - 54 * + - 43 * + 24 - COUNT ( * ) * + - 73 + - 16
----
55785

query I rowsort
SELECT ALL 94 * 29 AS col2
----
2726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9241
SELECT DISTINCT CAST( + - 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT CAST ( + - 66 AS INTEGER )
----
-66

query I rowsort
SELECT ALL - 76 * - 72
----
5472

query I rowsort
SELECT - - 65 + 24 + 28 AS col0
----
117

query II rowsort
SELECT 98 AS col0, 46
----
98
46

query II rowsort
SELECT 33 AS col2, + 58 AS col0
----
33
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL ( - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL ( - COUNT ( * ) ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9247
SELECT - COUNT( * ) DIV COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9247
SELECT - COUNT ( * ) / COUNT ( * )
----
-1

query I rowsort
SELECT - 34 * 21 AS col2
----
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-9249
SELECT ALL - 69 DIV 43 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL - 69 / 43 AS col1
----
-1

query II rowsort
SELECT - 43 AS col0, + 95
----
-43
95

query I rowsort
SELECT 0 + - - 61 AS col0
----
61

query I rowsort
SELECT ALL + ( + + 81 ) * ( - 71 )
----
-5751

onlyif mysql # DIV for integer division: 
query I rowsort label-9253
SELECT 6 DIV - - 63 * + + 92
----
0

skipif mysql # not compatible
query I rowsort label-9253
SELECT 6 / - - 63 * + + 92
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9254
SELECT ALL + 70 DIV COUNT( ALL + 48 ) col1
----
70

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL + 70 / COUNT ( ALL + 48 ) col1
----
70

query I rowsort
SELECT 15 * - + 22 AS col1
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT 96 + + + ( + COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-9256
SELECT 96 + + + ( + COUNT ( * ) )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9257
SELECT + 64, 85 * + 51 * + COUNT( * ) AS col0
----
64
4335

skipif mysql # not compatible
query II rowsort label-9257
SELECT + 64, 85 * + 51 * + COUNT ( * ) AS col0
----
64
4335

query I rowsort
SELECT 35 + + 24
----
59

query I rowsort
SELECT 5 * 52 col0
----
260

query I rowsort
SELECT 41 * 95 AS col0
----
3895

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL - COUNT( ALL - - 16 ) + + 17 + COUNT( * ) * + 24 * ( - 20 ) * 2 + COUNT( * ) col1
----
-943

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL - COUNT ( ALL - - 16 ) + + 17 + COUNT ( * ) * + 24 * ( - 20 ) * 2 + COUNT ( * ) col1
----
-943

query II rowsort
SELECT 65 AS col1, - NULLIF ( - - 21, + 72 ) * - - 26
----
65
-546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9263
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) + + 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT - 17 * + MIN( - 82 ) - 37 + + + 27
----
1384

skipif mysql # not compatible
query I rowsort label-9264
SELECT - 17 * + MIN ( - 82 ) - 37 + + + 27
----
1384

query II rowsort
SELECT DISTINCT - 92, 77 AS col1
----
-92
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9266
SELECT DISTINCT + COUNT( * ) + + CASE 31 WHEN 88 THEN + - 59 ELSE - - 63 + + 94 END * - 84 - 34 AS col0, + 15
----
-13221
15

skipif mysql # not compatible
query II rowsort label-9266
SELECT DISTINCT + COUNT ( * ) + + CASE 31 WHEN 88 THEN + - 59 ELSE - - 63 + + 94 END * - 84 - 34 AS col0, + 15
----
-13221
15

query I rowsort
SELECT ALL - - 14 AS col1
----
14

query I rowsort
SELECT ALL + 72 + + 39 col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT DISTINCT - 14 + - + COUNT( * ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT - 14 + - + COUNT ( * ) col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL + 92 + + ( + - COUNT( * ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL + 92 + + ( + - COUNT ( * ) ) AS col1
----
91

query I rowsort
SELECT 62 + - - 73
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT + 76 * - + 75 * 35 - - COUNT( + - 7 ) - - - 72 AS col2
----
-199571

skipif mysql # not compatible
query I rowsort label-9272
SELECT + 76 * - + 75 * 35 - - COUNT ( + - 7 ) - - - 72 AS col2
----
-199571

query I rowsort
SELECT ALL - 31 - ( - 33 )
----
2

query I rowsort
SELECT - 72 + - + 87 AS col0
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9275
SELECT - CAST( - 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-9275
SELECT - CAST ( - 79 AS INTEGER )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9276
SELECT ALL 16 * + COUNT( * ) * 45, - 23 + + 3 AS col0
----
720
-20

skipif mysql # not compatible
query II rowsort label-9276
SELECT ALL 16 * + COUNT ( * ) * 45, - 23 + + 3 AS col0
----
720
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL ( + + 97 ) * + - MAX( + 90 ) - - - 51 * + 82 col2
----
-12912

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL ( + + 97 ) * + - MAX ( + 90 ) - - - 51 * + 82 col2
----
-12912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9278
SELECT + CAST( + CAST( + - COUNT( * ) AS SIGNED ) AS SIGNED ) * - - COUNT( * ) + + 96 col0
----
95

skipif mysql # not compatible
query I rowsort label-9278
SELECT + CAST ( + CAST ( + - COUNT ( * ) AS INTEGER ) AS INTEGER ) * - - COUNT ( * ) + + 96 col0
----
95

query II rowsort
SELECT ALL - - 39 AS col2, - 34 + - 44
----
39
-78

query II rowsort
SELECT - - 10 AS col0, 88
----
10
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9281
SELECT CAST( NULL AS DECIMAL ) + + ( + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT CAST ( NULL AS REAL ) + + ( + 91 )
----
NULL

query I rowsort
SELECT - CASE + 51 WHEN + 91 THEN 3 * - - ( 47 ) + - - 74 + 49 * + 98 + + 99 + + - 25 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9283
SELECT + 62 + ( + CASE COUNT( * ) WHEN - CAST( 5 AS SIGNED ) + + 49 * + - 12 * + ( - 16 ) THEN - CASE 78 WHEN 33 THEN 55 + - MAX( ALL + - 7 ) WHEN + 96 THEN + 58 + - - 27 * + COALESCE ( - 92, - 74 ) * - ( 18 ) END - 16 + ( - 54 ) + + 93 * 6 * + + 59 * 17 ELSE NULL END ) + + + 72 * + 79 + + ( + ( 94 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT + 62 + ( + CASE COUNT ( * ) WHEN - CAST ( 5 AS INTEGER ) + + 49 * + - 12 * + ( - 16 ) THEN - CASE 78 WHEN 33 THEN 55 + - MAX ( ALL + - 7 ) WHEN + 96 THEN + 58 + - - 27 * + COALESCE ( - 92, - 74 ) * - ( 18 ) END - 16 + ( - 54 ) + + 93 * 6 * + + 59 * 17 ELSE NULL END ) + + + 72 * + 79 + + ( + ( 94 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 74 * 12 * + 33 AS col1
----
-29304

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT MAX( - 21 ) + - 40 * - - COUNT( * ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-9285
SELECT MAX ( - 21 ) + - 40 * - - COUNT ( * ) col2
----
-61

query I rowsort
SELECT DISTINCT + 2 + 93 + + 37
----
132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9287
SELECT ALL + CAST( NULL AS DECIMAL ) + 40 / 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL + CAST ( NULL AS REAL ) + 40 / 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9288
SELECT 90 - + 37 + + CASE + ( - CASE - CAST( + - ( + COUNT( * ) ) AS SIGNED ) WHEN - 98 * - + 18 THEN - COUNT( * ) * - MIN( - + 31 ) * + 5 + 24 END ) WHEN - - 64 THEN + 36 WHEN - 87 * - COUNT( * ) + + 0 + - + 12 / 66 + 1 THEN SUM( DISTINCT 49 ) END * + COALESCE ( + 88, - ( + CAST( - 91 AS SIGNED ) ), 87 * COUNT( * ) * + 17 * 28 + 17 * ( + COUNT( * ) ) * + 84, - + 44 / + 37 ) / + 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT 90 - + 37 + + CASE + ( - CASE - CAST ( + - ( + COUNT ( * ) ) AS INTEGER ) WHEN - 98 * - + 18 THEN - COUNT ( * ) * - MIN ( - + 31 ) * + 5 + 24 END ) WHEN - - 64 THEN + 36 WHEN - 87 * - COUNT ( * ) + + 0 + - + 12 / 66 + 1 THEN SUM ( DISTINCT 49 ) END * + COALESCE ( + 88, - ( + CAST ( - 91 AS INTEGER ) ), 87 * COUNT ( * ) * + 17 * 28 + 17 * ( + COUNT ( * ) ) * + 84, - + 44 / + 37 ) / + 47 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT DISTINCT + 57 + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT + 57 + COUNT ( * )
----
58

query I rowsort
SELECT 35 * 8 * 75 AS col0
----
21000

query I rowsort
SELECT 41 + 97 + + + 20 * + 70 AS col2
----
1538

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL + COUNT( * ) + + - 21
----
-20

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL + COUNT ( * ) + + - 21
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ( - 45 ) + - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-9293
SELECT ( - 45 ) + - COUNT ( * )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT 21 + - COUNT( * ) + - 17
----
3

skipif mysql # not compatible
query I rowsort label-9294
SELECT 21 + - COUNT ( * ) + - 17
----
3

query II rowsort
SELECT 25 * + - 29 * ( + + 26 ) AS col2, - 0 AS col2
----
-18850
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT - 50 * COUNT( * ) + + - ( - 9 ) + + 21 + - ( + - 42 ) * + COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9296
SELECT - 50 * COUNT ( * ) + + - ( - 9 ) + + 21 + - ( + - 42 ) * + COUNT ( * ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL NULLIF ( COALESCE ( - 47, - 32 + NULLIF ( + 61, - + 50 + + 99 ) ), + ( 94 ) ) + + COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL NULLIF ( COALESCE ( - 47, - 32 + NULLIF ( + 61, - + 50 + + 99 ) ), + ( 94 ) ) + + COUNT ( * ) AS col1
----
-46

query II rowsort
SELECT DISTINCT + 94 * - 86, 43 AS col0
----
-8084
43

query I rowsort
SELECT ALL - ( - - 60 ) col0
----
-60

query I rowsort
SELECT DISTINCT - - 69 col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT 61 * COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-9301
SELECT 61 * COUNT ( * ) AS col1
----
61

query I rowsort
SELECT + 49 * - 46 * + 15 * - + 12 + 4 + - 38 AS col0
----
405686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9303
SELECT ALL + + COALESCE ( + 17, - COUNT( * ) DIV + - SUM( ALL - 59 ) + 85, + 33 + - 88 ) - + 24
----
-7

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL + + COALESCE ( + 17, - COUNT ( * ) / + - SUM ( ALL - 59 ) + 85, + 33 + - 88 ) - + 24
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT DISTINCT - 28 - - - 34 + ( - + 52 ) + + 49 + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT - 28 - - - 34 + ( - + 52 ) + + 49 + COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT DISTINCT + - COUNT( * ) * + + 55 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT + - COUNT ( * ) * + + 55 AS col0
----
-55

query I rowsort
SELECT 79 - + 97
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL - + SUM( ALL - + 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL - + SUM ( ALL - + 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT + CASE + + 54 WHEN + 22 * + 5 THEN 68 / + + 38 WHEN 68 - + + 7 THEN NULL ELSE NULL END * - ( COUNT( 87 ) ) * - 7 + + 36 * 94 + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT + CASE + + 54 WHEN + 22 * + 5 THEN 68 / + + 38 WHEN 68 - + + 7 THEN NULL ELSE NULL END * - ( COUNT ( 87 ) ) * - 7 + + 36 * 94 + - 16
----
NULL

query I rowsort
SELECT DISTINCT - 26 * - 23 * - 57 AS col1
----
-34086

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9310
SELECT + CAST( NULL AS SIGNED ) - + - 29 + + ( - - 97 ) + 95 * + 27 * + MAX( DISTINCT - 62 ) + + + COUNT( * ) + - 79 + + 59 - 52 * + 95 + ( 23 ) * - CAST( + - SUM( + - 68 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT + CAST ( NULL AS INTEGER ) - + - 29 + + ( - - 97 ) + 95 * + 27 * + MAX ( DISTINCT - 62 ) + + + COUNT ( * ) + - 79 + + 59 - 52 * + 95 + ( 23 ) * - CAST ( + - SUM ( + - 68 ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT + CAST( NULL AS SIGNED ) / + 42 * + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT + CAST ( NULL AS INTEGER ) / + 42 * + 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT + 99 * COALESCE ( + + COUNT( 37 ), + + ( 55 ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-9312
SELECT + 99 * COALESCE ( + + COUNT ( 37 ), + + ( 55 ) ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT DISTINCT COUNT( * ) + - 69
----
-68

skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT COUNT ( * ) + - 69
----
-68

query I rowsort
SELECT DISTINCT 22 * - 45 AS col2
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT ALL CASE 2 WHEN - 75 - + 45 THEN + 32 / + COUNT( * ) + + 8 - + - MAX( + 27 ) WHEN 54 * + 17 THEN NULL ELSE NULL END + - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL CASE 2 WHEN - 75 - + 45 THEN + 32 / + COUNT ( * ) + + 8 - + - MAX ( + 27 ) WHEN 54 * + 17 THEN NULL ELSE NULL END + - - 41
----
NULL

query I rowsort
SELECT - NULLIF ( - 21, - 10 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT + CASE - - 55 WHEN 35 THEN + 31 ELSE NULL END * + CAST( 41 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT + CASE - - 55 WHEN 35 THEN + 31 ELSE NULL END * + CAST ( 41 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9318
SELECT ALL COALESCE ( - NULLIF ( + CASE 16 WHEN + ( + 45 ) THEN 65 END, + 73 ), 8 DIV 25, 88 ) + + 97 - - - 45 AS col0, 5 AS col1
----
52
5

skipif mysql # not compatible
query II rowsort label-9318
SELECT ALL COALESCE ( - NULLIF ( + CASE 16 WHEN + ( + 45 ) THEN 65 END, + 73 ), 8 / 25, 88 ) + + 97 - - - 45 AS col0, 5 AS col1
----
52
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9319
SELECT DISTINCT 80 + + 1 + - 40 + - MIN( ALL - 31 ) + + + 53, 30 * + 56 * - 10 AS col2
----
125
-16800

skipif mysql # not compatible
query II rowsort label-9319
SELECT DISTINCT 80 + + 1 + - 40 + - MIN ( ALL - 31 ) + + + 53, 30 * + 56 * - 10 AS col2
----
125
-16800

query I rowsort
SELECT + 91 + 36
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9321
SELECT DISTINCT + ( - + COUNT( * ) ) + - 58 AS col2, ( - CAST( - COUNT( * ) AS SIGNED ) ) AS col0
----
-59
1

skipif mysql # not compatible
query II rowsort label-9321
SELECT DISTINCT + ( - + COUNT ( * ) ) + - 58 AS col2, ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
-59
1

query I rowsort
SELECT ALL + 8 - + ( - 39 )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9323
SELECT ALL + ( - ( + 91 ) ) * - 77 - - COUNT( * ) AS col1, CASE + + 36 WHEN + - 45 * + 56 THEN + SUM( ALL + 27 ) ELSE - 33 END col2
----
7008
-33

skipif mysql # not compatible
query II rowsort label-9323
SELECT ALL + ( - ( + 91 ) ) * - 77 - - COUNT ( * ) AS col1, CASE + + 36 WHEN + - 45 * + 56 THEN + SUM ( ALL + 27 ) ELSE - 33 END col2
----
7008
-33

query I rowsort
SELECT - + 60 + + - 67
----
-127

query I rowsort
SELECT ALL - 49 * 30
----
-1470

onlyif mysql # DIV for integer division: 
query I rowsort label-9326
SELECT - 90 DIV - 49
----
1

skipif mysql # not compatible
query I rowsort label-9326
SELECT - 90 / - 49
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT DISTINCT - COALESCE ( 76, 19 / - 0 ) / - - 66 + 0 * - + 83 + + - ( + 62 ) * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT - COALESCE ( 76, 19 / - 0 ) / - - 66 + 0 * - + 83 + + - ( + 62 ) * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT + 25 * - + ( + - 83 ) * 67 + - COUNT( * ) col1
----
139024

skipif mysql # not compatible
query I rowsort label-9328
SELECT + 25 * - + ( + - 83 ) * 67 + - COUNT ( * ) col1
----
139024

query I rowsort
SELECT - 48 + + 57 * 32 * + 11 * + 64 col0
----
1284048

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT + + MAX( ALL - + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-9330
SELECT + + MAX ( ALL - + 83 )
----
-83

query I rowsort
SELECT - ( + 52 ) + 98 col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9332
SELECT ALL CAST( 26 AS SIGNED ) * + 32 * + + 12 / - 54 + - 6 + - CAST( NULL AS SIGNED ) * + - 93 - + 58 col1, ( 20 )
----
NULL
20

skipif mysql # not compatible
query II rowsort label-9332
SELECT ALL CAST ( 26 AS INTEGER ) * + 32 * + + 12 / - 54 + - 6 + - CAST ( NULL AS INTEGER ) * + - 93 - + 58 col1, ( 20 )
----
NULL
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9333
SELECT ALL + 66 * + NULLIF ( - - CAST( - + ( 89 ) AS SIGNED ), - ( - + 97 ) ) * + - 20 + - 49 + 48 + - 27 col0, 67 AS col0
----
117452
67

skipif mysql # not compatible
query II rowsort label-9333
SELECT ALL + 66 * + NULLIF ( - - CAST ( - + ( 89 ) AS INTEGER ), - ( - + 97 ) ) * + - 20 + - 49 + 48 + - 27 col0, 67 AS col0
----
117452
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9334
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + COUNT( * ) * + 52 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + COUNT ( * ) * + 52 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9335
SELECT - SUM( COALESCE ( - - 65, + CAST( 54 AS SIGNED ), + - ( - 70 ) ) ) + - COUNT( * ) - - 66 * 23
----
1452

skipif mysql # not compatible
query I rowsort label-9335
SELECT - SUM ( COALESCE ( - - 65, + CAST ( 54 AS INTEGER ), + - ( - 70 ) ) ) + - COUNT ( * ) - - 66 * 23
----
1452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT - CAST( NULL AS SIGNED ) * + 55 * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9336
SELECT - CAST ( NULL AS INTEGER ) * + 55 * - 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9337
SELECT - 94 AS col1, 3 * + 45 * - COUNT( * )
----
-94
-135

skipif mysql # not compatible
query II rowsort label-9337
SELECT - 94 AS col1, 3 * + 45 * - COUNT ( * )
----
-94
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9338
SELECT + SUM( DISTINCT + 46 ) DIV + 71 + + + 65
----
65

skipif mysql # not compatible
query I rowsort label-9338
SELECT + SUM ( DISTINCT + 46 ) / + 71 + + + 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT + COALESCE ( - + 3, - 48 + - 16 * 24 ) + - COUNT( * ) * + COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT + COALESCE ( - + 3, - 48 + - 16 * 24 ) + - COUNT ( * ) * + COUNT ( * ) AS col2
----
-4

query I rowsort
SELECT - NULLIF ( - - 55, + 34 )
----
-55

query I rowsort
SELECT - 16 * + + 41 AS col0
----
-656

query I rowsort
SELECT ALL 27 * 30
----
810

onlyif mysql # aggregate syntax: 
query II rowsort label-9343
SELECT DISTINCT - 39 + CASE - 4 WHEN - SUM( ALL - 10 ) THEN - + 72 WHEN + 87 * - 16 * + - 48 THEN NULL ELSE NULL END AS col0, - 96 * + 37 - + NULLIF ( + - NULLIF ( 81, - 99 - + 81 * + 94 ), - 43 )
----
NULL
-3471

skipif mysql # not compatible
query II rowsort label-9343
SELECT DISTINCT - 39 + CASE - 4 WHEN - SUM ( ALL - 10 ) THEN - + 72 WHEN + 87 * - 16 * + - 48 THEN NULL ELSE NULL END AS col0, - 96 * + 37 - + NULLIF ( + - NULLIF ( 81, - 99 - + 81 * + 94 ), - 43 )
----
NULL
-3471

query I rowsort
SELECT + 9 + 16
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9345
SELECT + 68 DIV + + 11 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9345
SELECT + 68 / + + 11 AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT DISTINCT CAST( + 65 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT CAST ( + 65 AS INTEGER )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT DISTINCT 15 DIV + 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT 15 / + 51 AS col1
----
0

query II rowsort
SELECT DISTINCT 21 AS col2, 16 - + + 30
----
21
-14

query I rowsort
SELECT - 32 - - 94 AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT + 38 DIV - 94 * - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9350
SELECT + 38 / - 94 * - 98 AS col0
----
0

query I rowsort
SELECT + 55 + 62 AS col1
----
117

query II rowsort
SELECT 54 AS col2, - 69
----
54
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9353
SELECT DISTINCT - 32 AS col2, 58 + + + CASE + 47 WHEN + NULLIF ( 6, - 65 ) * - - COUNT( * ) THEN - 26 ELSE 21 * 44 DIV 45 * + - 95 END * 3 + + + 72 + + ( + 61 ) * - + 61 col1
----
-32
-9291

skipif mysql # not compatible
query II rowsort label-9353
SELECT DISTINCT - 32 AS col2, 58 + + + CASE + 47 WHEN + NULLIF ( 6, - 65 ) * - - COUNT ( * ) THEN - 26 ELSE 21 * 44 / 45 * + - 95 END * 3 + + + 72 + + ( + 61 ) * - + 61 col1
----
-32
-9291

onlyif mysql # aggregate syntax: 
query II rowsort label-9354
SELECT ALL COUNT( * ), 39 - + 90 col2
----
1
-51

skipif mysql # not compatible
query II rowsort label-9354
SELECT ALL COUNT ( * ), 39 - + 90 col2
----
1
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT + - COUNT( * ) + - + 99 * + 23 * + + 97 - + + ( - 15 ) + 98 * - COALESCE ( + + 1, 14, - 59 * + - 39 - - 21 ) * + + 9 col1
----
-221737

skipif mysql # not compatible
query I rowsort label-9355
SELECT + - COUNT ( * ) + - + 99 * + 23 * + + 97 - + + ( - 15 ) + 98 * - COALESCE ( + + 1, 14, - 59 * + - 39 - - 21 ) * + + 9 col1
----
-221737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9356
SELECT + + 37 col2, COALESCE ( + 43, + 31 * + - 29 + COUNT( * ), + MIN( DISTINCT + - 29 ) ) + CAST( - - ( 39 ) AS SIGNED ) + - + 52
----
37
30

skipif mysql # not compatible
query II rowsort label-9356
SELECT + + 37 col2, COALESCE ( + 43, + 31 * + - 29 + COUNT ( * ), + MIN ( DISTINCT + - 29 ) ) + CAST ( - - ( 39 ) AS INTEGER ) + - + 52
----
37
30

query I rowsort
SELECT ALL 91 * + + 18 AS col2
----
1638

query II rowsort
SELECT + + 83 col1, - NULLIF ( - - ( - + 59 ), - - 65 )
----
83
59

query I rowsort
SELECT + 79 * 21 * - 43 AS col2
----
-71337

query I rowsort
SELECT ALL 49 * + 25 AS col2
----
1225

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9361
SELECT - + 23 + + CAST( - 20 AS SIGNED ) DIV + + NULLIF ( - 22, + CAST( NULL AS SIGNED ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9361
SELECT - + 23 + + CAST ( - 20 AS INTEGER ) / + + NULLIF ( - 22, + CAST ( NULL AS INTEGER ) ) AS col1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9362
SELECT + + CAST( - 8 AS SIGNED ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-9362
SELECT + + CAST ( - 8 AS INTEGER ) col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9363
SELECT + - 54 DIV + 40 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9363
SELECT + - 54 / + 40 AS col0
----
-1

query I rowsort
SELECT - - 48 * + 69 col0
----
3312

query I rowsort
SELECT ALL 38 + + 90 * - - ( - NULLIF ( + 53, 76 - 74 ) )
----
-4732

query I rowsort
SELECT DISTINCT + - 56 + 22 * + 98 AS col0
----
2100

query I rowsort
SELECT DISTINCT - COALESCE ( + 94, - + 73 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9368
SELECT ALL - 25 + + COUNT( * ) AS col1, 32 * + 40
----
-24
1280

skipif mysql # not compatible
query II rowsort label-9368
SELECT ALL - 25 + + COUNT ( * ) AS col1, 32 * + 40
----
-24
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT MIN( ALL - 38 ) + + 33 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9369
SELECT MIN ( ALL - 38 ) + + 33 AS col2
----
-5

query I rowsort
SELECT 25 * + 94
----
2350

query I rowsort
SELECT + 45 * 56 + - 6 AS col0
----
2514

query II rowsort
SELECT 35 * 50 AS col0, 25 * + 99 AS col0
----
1750
2475

query I rowsort
SELECT ALL + 52 + - 92
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9374
SELECT ALL - CAST( NULL AS SIGNED ) - - 55 - + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL - CAST ( NULL AS INTEGER ) - - 55 - + 16 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9375
SELECT 25 - + - 65 DIV 42
----
26

skipif mysql # not compatible
query I rowsort label-9375
SELECT 25 - + - 65 / 42
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT ALL - ( - ( - + 77 ) ) * + SUM( - 96 ) + 56 AS col0
----
7448

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL - ( - ( - + 77 ) ) * + SUM ( - 96 ) + 56 AS col0
----
7448

onlyif mysql # aggregate syntax: 
query III rowsort label-9377
SELECT 34 + 89, + ( - MAX( + - 66 ) ) AS col0, + 1 + - 88 AS col2
----
123
66
-87

skipif mysql # not compatible
query III rowsort label-9377
SELECT 34 + 89, + ( - MAX ( + - 66 ) ) AS col0, + 1 + - 88 AS col2
----
123
66
-87

query II rowsort
SELECT DISTINCT - 35 * - - 36 * - + 39 col1, + 86 * - 63 * 88 - - 0
----
49140
-476784

query I rowsort
SELECT ALL 59 col1
----
59

query I rowsort
SELECT ALL 56 - + - 73
----
129

query II rowsort
SELECT 50 * + 45 AS col1, ( 44 )
----
2250
44

query I rowsort
SELECT 24 + + 32 AS col0
----
56

query I rowsort
SELECT 69 - + 83 + + 68
----
54

query I rowsort
SELECT 40 * 5
----
200

query I rowsort
SELECT 75 * + 15
----
1125

query I rowsort
SELECT DISTINCT - 15 * - - 76
----
-1140

onlyif mysql # aggregate syntax: 
query II rowsort label-9387
SELECT 75 + + - 61 AS col0, - COUNT( * )
----
14
-1

skipif mysql # not compatible
query II rowsort label-9387
SELECT 75 + + - 61 AS col0, - COUNT ( * )
----
14
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9388
SELECT ALL - 4 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL - 4 / - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT + 16 + + - 96 * + MIN( ALL 69 )
----
-6608

skipif mysql # not compatible
query I rowsort label-9389
SELECT + 16 + + - 96 * + MIN ( ALL 69 )
----
-6608

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT + 46 * - COUNT( * ) * + 2 + - 78 AS col0
----
-170

skipif mysql # not compatible
query I rowsort label-9390
SELECT + 46 * - COUNT ( * ) * + 2 + - 78 AS col0
----
-170

query I rowsort
SELECT ALL - + 50 + + 17 AS col0
----
-33

query I rowsort
SELECT - 66 + - COALESCE ( 33, + 35 * + 17 + + - NULLIF ( + + 64, 58 ) + 39 )
----
-99

query I rowsort
SELECT ALL - 5 + + 46 * + ( - 47 ) AS col0
----
-2167

query I rowsort
SELECT ALL 10 * 31 + - - 5 - - 64 col2
----
379

onlyif mysql # DIV for integer division: 
query I rowsort label-9395
SELECT - 79 + 66 * - + 23 - - 8 DIV 58 col1
----
-1597

skipif mysql # not compatible
query I rowsort label-9395
SELECT - 79 + 66 * - + 23 - - 8 / 58 col1
----
-1597

query I rowsort
SELECT ALL ( - - 18 ) + - - 9
----
27

query I rowsort
SELECT + ( - 7 ) * + 0
----
0

query II rowsort
SELECT ALL - 61 col1, + 57
----
-61
57

query I rowsort
SELECT 57 * + 95 * + + 92 * + 84 + 15 AS col0
----
41847135

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT 57 * + ( - 96 ) + - MAX( + 60 )
----
-5532

skipif mysql # not compatible
query I rowsort label-9400
SELECT 57 * + ( - 96 ) + - MAX ( + 60 )
----
-5532

query II rowsort
SELECT ALL - 60 AS col0, 81 AS col2
----
-60
81

query II rowsort
SELECT ALL - 76 AS col0, + 24 AS col2
----
-76
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9403
SELECT 50 DIV - CAST( + 90 AS SIGNED ) AS col0, 15 * + 4
----
0
60

skipif mysql # not compatible
query II rowsort label-9403
SELECT 50 / - CAST ( + 90 AS INTEGER ) AS col0, 15 * + 4
----
0
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9404
SELECT COALESCE ( 65, + AVG ( + 50 ) * + + AVG ( 25 ) * + + 47 - 22 + - 32 + 10 * - + 13 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9404
SELECT COALESCE ( 65, + AVG ( + 50 ) * + + AVG ( 25 ) * + + 47 - 22 + - 32 + 10 * - + 13 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9405
SELECT - COUNT( * ), 94 * 48 * + 97 col0
----
-1
437664

skipif mysql # not compatible
query II rowsort label-9405
SELECT - COUNT ( * ), 94 * 48 * + 97 col0
----
-1
437664

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT + 84 * + MIN( + - 51 ) + COUNT( * ) AS col2
----
-4283

skipif mysql # not compatible
query I rowsort label-9406
SELECT + 84 * + MIN ( + - 51 ) + COUNT ( * ) AS col2
----
-4283

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT DISTINCT - 4 * + + COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT - 4 * + + COUNT ( * ) AS col1
----
-4

query I rowsort
SELECT 56 + + - 8
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9409
SELECT ALL 77 col1, - ( - CAST( NULL AS SIGNED ) ) * + COUNT( * )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-9409
SELECT ALL 77 col1, - ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * )
----
77
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9410
SELECT DISTINCT 43 * + COUNT( - 76 ) AS col1, CASE 83 WHEN - + 75 THEN - + 50 * 24 END - - MIN( DISTINCT + 88 ) * - ( COUNT( * ) ) + - - CAST( - - ( - 97 ) AS DECIMAL ) * COUNT( * ) * - 90 + + + ( - NULLIF ( - - NULLIF ( - MAX( - 95 ), - 3 * - 56 + + 71 ), + ( + COUNT( * ) ) ) )
----
43
NULL

skipif mysql # not compatible
query II rowsort label-9410
SELECT DISTINCT 43 * + COUNT ( - 76 ) AS col1, CASE 83 WHEN - + 75 THEN - + 50 * 24 END - - MIN ( DISTINCT + 88 ) * - ( COUNT ( * ) ) + - - CAST ( - - ( - 97 ) AS REAL ) * COUNT ( * ) * - 90 + + + ( - NULLIF ( - - NULLIF ( - MAX ( - 95 ), - 3 * - 56 + + 71 ), + ( + COUNT ( * ) ) ) )
----
43
NULL

query II rowsort
SELECT DISTINCT 59 col1, + 17 AS col0
----
59
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT DISTINCT + + 40 + + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT + + 40 + + COUNT ( * )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9413
SELECT - MIN( DISTINCT - + 18 ) + ( + CAST( NULL AS SIGNED ) ) * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT - MIN ( DISTINCT - + 18 ) + ( + CAST ( NULL AS INTEGER ) ) * + 81
----
NULL

query I rowsort
SELECT 99 * + 6 AS col0
----
594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9415
SELECT - COUNT( - 3 ) + + COUNT( * ) + + CAST( NULL AS SIGNED ) + - - 93 / + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT - COUNT ( - 3 ) + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - - 93 / + - 7 AS col0
----
NULL

query I rowsort
SELECT ALL - 1 + - 24
----
-25

query II rowsort
SELECT - 60 AS col0, 48 AS col0
----
-60
48

query II rowsort
SELECT ALL + 35 AS col1, 51
----
35
51

query I rowsort
SELECT - - 20 * 8 col1
----
160

query I rowsort
SELECT DISTINCT - 9 * 44
----
-396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9421
SELECT DISTINCT + + 85 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + + 85 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 71 * + 54 * + - 31 + + 96 - + 27 + + 87 - COALESCE ( 56, + 46 + + - 22 ) AS col2
----
118954

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT SUM( DISTINCT + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-9423
SELECT SUM ( DISTINCT + 26 )
----
26

query I rowsort
SELECT - + 85 * - 90
----
7650

query I rowsort
SELECT ALL - 74 * - 48 AS col2
----
3552

query II rowsort
SELECT ALL + + 60, - 91 AS col1
----
60
-91

query I rowsort
SELECT NULLIF ( - 72, - - 7 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9428
SELECT + NULLIF ( COALESCE ( - 22, ( + CAST( 15 AS SIGNED ) ) + + 51 * + 87 DIV - COUNT( * ) ), + COUNT( * ) + - + 62 )
----
-22

skipif mysql # not compatible
query I rowsort label-9428
SELECT + NULLIF ( COALESCE ( - 22, ( + CAST ( 15 AS INTEGER ) ) + + 51 * + 87 / - COUNT ( * ) ), + COUNT ( * ) + - + 62 )
----
-22

query II rowsort
SELECT - 16 * - 39, 98 AS col0
----
624
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9430
SELECT ALL + CAST( 8 AS SIGNED ) AS col2, CAST( + 39 AS SIGNED ) * + 43 * - 15
----
8
-25155

skipif mysql # not compatible
query II rowsort label-9430
SELECT ALL + CAST ( 8 AS INTEGER ) AS col2, CAST ( + 39 AS INTEGER ) * + 43 * - 15
----
8
-25155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-9431
SELECT CASE - - 94 WHEN 10 - - CASE + CAST( - MAX( - 58 ) AS SIGNED ) WHEN + 25 THEN - + COUNT( 45 ) + - + 17 + - 5 * + 49 + + - 5 * + 24 + - 64 - - 39 - - 3 * - + SUM( ALL - + 15 ) * CAST( NULL AS DECIMAL ) + 30 - + ( 31 ) + + ( ( - 92 ) ) DIV + COUNT( * ) * + 13 * 12 ELSE + - 97 - NULLIF ( + COUNT( * ), 5 ) END * - - 40 THEN NULL ELSE - - 51 DIV + 98 END AS col1, SUM( ALL - - 85 )
----
0
85

skipif mysql # not compatible
query II rowsort label-9431
SELECT CASE - - 94 WHEN 10 - - CASE + CAST ( - MAX ( - 58 ) AS INTEGER ) WHEN + 25 THEN - + COUNT ( 45 ) + - + 17 + - 5 * + 49 + + - 5 * + 24 + - 64 - - 39 - - 3 * - + SUM ( ALL - + 15 ) * CAST ( NULL AS REAL ) + 30 - + ( 31 ) + + ( ( - 92 ) ) / + COUNT ( * ) * + 13 * 12 ELSE + - 97 - NULLIF ( + COUNT ( * ), 5 ) END * - - 40 THEN NULL ELSE - - 51 / + 98 END AS col1, SUM ( ALL - - 85 )
----
0
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT + CASE + 59 WHEN - - 77 * + - 88 * ( - + MIN( + 14 ) ) THEN - 72 * - 97 + + 79 - + COUNT( * ) - - + 86 WHEN + ( - 82 ) THEN - 7 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT + CASE + 59 WHEN - - 77 * + - 88 * ( - + MIN ( + 14 ) ) THEN - 72 * - 97 + + 79 - + COUNT ( * ) - - + 86 WHEN + ( - 82 ) THEN - 7 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 97 * + 31 - 69 AS col2
----
-3076

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT - 33 + - 9 * - + COUNT( * ) * + + 91 * + 42
----
34365

skipif mysql # not compatible
query I rowsort label-9434
SELECT - 33 + - 9 * - + COUNT ( * ) * + + 91 * + 42
----
34365

query I rowsort
SELECT ALL COALESCE ( + + 99, 6 + + 58 ) * - 23 col0
----
-2277

query I rowsort
SELECT + 50 * - + 58 * - 41 AS col1
----
118900

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT + 42 * - + 19 + - 80 + COUNT( * )
----
-877

skipif mysql # not compatible
query I rowsort label-9437
SELECT + 42 * - + 19 + - 80 + COUNT ( * )
----
-877

query I rowsort
SELECT AVG ( ALL CASE + 53 WHEN + 56 THEN + 35 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT - CASE + 79 WHEN - + 81 THEN COUNT( - 21 ) END * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9439
SELECT - CASE + 79 WHEN - + 81 THEN COUNT ( - 21 ) END * + 13
----
NULL

query I rowsort
SELECT + 79 + + 61 col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT MAX( DISTINCT + + 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9441
SELECT MAX ( DISTINCT + + 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT ALL 2 + + + 53 + - COUNT( * ) * ( - 68 ) + + + 7 AS col0
----
130

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL 2 + + + 53 + - COUNT ( * ) * ( - 68 ) + + + 7 AS col0
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-9443
SELECT + ( 39 ) DIV - + 12
----
-3

skipif mysql # not compatible
query I rowsort label-9443
SELECT + ( 39 ) / - + 12
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9444
SELECT + - ( + + 13 ) + MAX( DISTINCT 76 ) col2, - COUNT( * )
----
63
-1

skipif mysql # not compatible
query II rowsort label-9444
SELECT + - ( + + 13 ) + MAX ( DISTINCT 76 ) col2, - COUNT ( * )
----
63
-1

query I rowsort
SELECT + 71 * + 22 * ( + 17 ) AS col0
----
26554

onlyif mysql # DIV for integer division: 
query I rowsort label-9446
SELECT ALL 15 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL 15 / 40
----
0

query I rowsort
SELECT - 59 - - + 31
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT ALL - 30 + + COUNT( * ) * + - 43 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL - 30 + + COUNT ( * ) * + - 43 AS col0
----
-73

query I rowsort
SELECT + - 24 * + 7 * - 74 + + 48
----
12480

query II rowsort
SELECT DISTINCT 86 + - - 44, 33 AS col2
----
130
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9451
SELECT ALL - 69 + - + 26 + + MAX( - + 25 ), - 22 AS col0
----
-120
-22

skipif mysql # not compatible
query II rowsort label-9451
SELECT ALL - 69 + - + 26 + + MAX ( - + 25 ), - 22 AS col0
----
-120
-22

query I rowsort
SELECT - 57 - + 60 * - - 70 AS col0
----
-4257

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT + 1 + + - MAX( + + 13 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9453
SELECT + 1 + + - MAX ( + + 13 ) AS col1
----
-12

query I rowsort
SELECT - 28 * - - 43
----
-1204

query I rowsort
SELECT - 99 * - - 39 + - 64
----
-3925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT ALL + AVG ( - CASE - 87 WHEN + 84 * CAST( NULL AS SIGNED ) + - + 93 THEN NULL WHEN - - ( - 36 ) THEN 23 + + 6 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + AVG ( - CASE - 87 WHEN + 84 * CAST ( NULL AS INTEGER ) + - + 93 THEN NULL WHEN - - ( - 36 ) THEN 23 + + 6 END )
----
NULL

query I rowsort
SELECT ALL + ( 74 ) * + - 65 + + - 1
----
-4811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9458
SELECT ALL - ( + CASE - SUM( ALL + 28 ) WHEN 48 THEN COUNT( * ) + + 29 + 5 + - MIN( + 87 ) ELSE + + COUNT( * ) END ) * + CAST( NULL AS SIGNED ) / + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL - ( + CASE - SUM ( ALL + 28 ) WHEN 48 THEN COUNT ( * ) + + 29 + 5 + - MIN ( + 87 ) ELSE + + COUNT ( * ) END ) * + CAST ( NULL AS INTEGER ) / + - 93
----
NULL

query I rowsort
SELECT - 33 * 26 AS col1
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT + COUNT( * ) * - 6 + + 51 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9460
SELECT + COUNT ( * ) * - 6 + + 51 AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9461
SELECT - 51 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9461
SELECT - 51 / 93 AS col0
----
0

query I rowsort
SELECT ( + ( - 23 ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT + COUNT( * ) * 83
----
83

skipif mysql # not compatible
query I rowsort label-9463
SELECT + COUNT ( * ) * 83
----
83

query I rowsort
SELECT + 91 + - 11
----
80

query II rowsort
SELECT ALL + 14 AS col0, 10
----
14
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9466
SELECT DISTINCT + 59 * - ( + + COUNT( + 34 ) ) + - 73 + CASE - - 28 WHEN - - 28 * + + 35 + + 47 * - 61 THEN - CAST( NULL AS SIGNED ) + CASE + 45 WHEN - 49 THEN - + COUNT( * ) ELSE NULL END END + 66 + - 96 * COUNT( * ) * + 71 AS col1, 13 AS col0
----
NULL
13

skipif mysql # not compatible
query II rowsort label-9466
SELECT DISTINCT + 59 * - ( + + COUNT ( + 34 ) ) + - 73 + CASE - - 28 WHEN - - 28 * + + 35 + + 47 * - 61 THEN - CAST ( NULL AS INTEGER ) + CASE + 45 WHEN - 49 THEN - + COUNT ( * ) ELSE NULL END END + 66 + - 96 * COUNT ( * ) * + 71 AS col1, 13 AS col0
----
NULL
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT + CASE + + 40 WHEN - MIN( ALL - 96 ) * + 7 * + - COUNT( * ) THEN NULL ELSE 66 END * - 80 + - COUNT( * ) AS col1
----
-5281

skipif mysql # not compatible
query I rowsort label-9467
SELECT + CASE + + 40 WHEN - MIN ( ALL - 96 ) * + 7 * + - COUNT ( * ) THEN NULL ELSE 66 END * - 80 + - COUNT ( * ) AS col1
----
-5281

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT ALL 94 * + COUNT( * ) + 13
----
107

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL 94 * + COUNT ( * ) + 13
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9469
SELECT DISTINCT CAST( NULL AS SIGNED ) * 25 + + - 50 AS col2, 62 + + 85
----
NULL
147

skipif mysql # not compatible
query II rowsort label-9469
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 25 + + - 50 AS col2, 62 + + 85
----
NULL
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT - MIN( + 12 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9470
SELECT - MIN ( + 12 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL 55 * - CASE 12 WHEN - 43 THEN - - 61 / - CASE - + 81 WHEN + 62 * - 44 THEN + COUNT( * ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL 55 * - CASE 12 WHEN - 43 THEN - - 61 / - CASE - + 81 WHEN + 62 * - 44 THEN + COUNT ( * ) END END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9472
SELECT - MAX( ALL ( + 41 ) ) col2, + 6 + - - 16 AS col0
----
-41
22

skipif mysql # not compatible
query II rowsort label-9472
SELECT - MAX ( ALL ( + 41 ) ) col2, + 6 + - - 16 AS col0
----
-41
22

query I rowsort
SELECT DISTINCT - 34 + + 87
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT - CASE + SUM( ALL + - 39 ) WHEN - 21 * - 95 THEN + - 26 WHEN + 96 * NULLIF ( - - 70, + 61 ) + - 56 THEN NULL ELSE 16 END AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9474
SELECT - CASE + SUM ( ALL + - 39 ) WHEN - 21 * - 95 THEN + - 26 WHEN + 96 * NULLIF ( - - 70, + 61 ) + - 56 THEN NULL ELSE 16 END AS col2
----
-16

query I rowsort
SELECT ALL + 1 + - 39 * + 43 AS col1
----
-1676

query I rowsort
SELECT ALL 75 + - 45
----
30

query I rowsort
SELECT ALL + ( - 6 ) col2
----
-6

query I rowsort
SELECT - 19 + + 43 col0
----
24

query I rowsort
SELECT ALL - ( + 50 ) - + 59 + - - 98 - 65
----
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-9480
SELECT ALL - 39 AS col0, - 67 DIV + 66 + + - 6 AS col1
----
-39
-7

skipif mysql # not compatible
query II rowsort label-9480
SELECT ALL - 39 AS col0, - 67 / + 66 + + - 6 AS col1
----
-39
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9481
SELECT ALL COUNT( * ) DIV - 93 + - 95
----
-95

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL COUNT ( * ) / - 93 + - 95
----
-95

query I rowsort
SELECT - 59 * + 99 col1
----
-5841

onlyif mysql # aggregate syntax: 
query II rowsort label-9483
SELECT - NULLIF ( - + COALESCE ( + 50, 23, + 45 ), 95 * + COUNT( * ) + - + 22 ), 7 AS col0
----
50
7

skipif mysql # not compatible
query II rowsort label-9483
SELECT - NULLIF ( - + COALESCE ( + 50, 23, + 45 ), 95 * + COUNT ( * ) + - + 22 ), 7 AS col0
----
50
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9484
SELECT DISTINCT + NULLIF ( - CAST( NULL AS SIGNED ), MAX( 36 ) ) - - 47 + + 78 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT + NULLIF ( - CAST ( NULL AS INTEGER ), MAX ( 36 ) ) - - 47 + + 78 * - COUNT ( * )
----
NULL

query II rowsort
SELECT + 26 * 9 * + 39 - - + 95 - + - 17, - 28 AS col2
----
9238
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT DISTINCT COUNT( 96 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT COUNT ( 96 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL - ( COUNT( - 38 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL - ( COUNT ( - 38 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9488
SELECT MAX( ALL CAST( + + 88 AS SIGNED ) ) DIV + COUNT( * ) + + COALESCE ( + 14, ( + 97 ) * + 42 ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-9488
SELECT MAX ( ALL CAST ( + + 88 AS INTEGER ) ) / + COUNT ( * ) + + COALESCE ( + 14, ( + 97 ) * + 42 ) AS col0
----
102

query II rowsort
SELECT 9 AS col1, + 18 AS col2
----
9
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9490
SELECT ALL - CAST( - - SUM( - - 71 ) AS SIGNED ) + 50, + 65 * 31 AS col1
----
-21
2015

skipif mysql # not compatible
query II rowsort label-9490
SELECT ALL - CAST ( - - SUM ( - - 71 ) AS INTEGER ) + 50, + 65 * 31 AS col1
----
-21
2015

query II rowsort
SELECT + 61 AS col0, 38
----
61
38

query I rowsort
SELECT ALL + 0 + 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT DISTINCT - 45 * - COUNT( * ) * - 96 AS col0
----
-4320

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT - 45 * - COUNT ( * ) * - 96 AS col0
----
-4320

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT 78 DIV + 21 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9494
SELECT 78 / + 21 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9495
SELECT 85 * + - CAST( - - 75 AS SIGNED ) col0
----
-6375

skipif mysql # not compatible
query I rowsort label-9495
SELECT 85 * + - CAST ( - - 75 AS INTEGER ) col0
----
-6375

query I rowsort
SELECT ALL - 27 * + 2 * + - 28
----
1512

query I rowsort
SELECT 59 + 6 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT COUNT( * ) + + 98 * + COUNT( * ) + - + NULLIF ( + ( 16 ), + + ( 46 ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9498
SELECT COUNT ( * ) + + 98 * + COUNT ( * ) + - + NULLIF ( + ( 16 ), + + ( 46 ) ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT DISTINCT + 55 + + 17 + + NULLIF ( + 37, - + MIN( DISTINCT - + 60 ) / 93 * + COUNT( * ) - 78 / + ( 19 ) + - 58 ) * 9
----
405

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT + 55 + + 17 + + NULLIF ( + 37, - + MIN ( DISTINCT - + 60 ) / 93 * + COUNT ( * ) - 78 / + ( 19 ) + - 58 ) * 9
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT + CASE 35 WHEN + 13 THEN - + COALESCE ( + 59, 76 * + 63 * MIN( DISTINCT + 96 ) ) END * + 75 / - CASE 78 WHEN + COUNT( * ) * 13 THEN + 55 END * 20 - - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT + CASE 35 WHEN + 13 THEN - + COALESCE ( + 59, 76 * + 63 * MIN ( DISTINCT + 96 ) ) END * + 75 / - CASE 78 WHEN + COUNT ( * ) * 13 THEN + 55 END * 20 - - 31 AS col2
----
NULL

query II rowsort
SELECT 2, + 70 * 48 * - 30 AS col2
----
2
-100800

onlyif mysql # aggregate syntax: 
query II rowsort label-9502
SELECT CASE 67 WHEN + + NULLIF ( NULLIF ( + - 48, + 83 + - - 1 ), + COUNT( * ) ) THEN + CASE + 17 WHEN - 65 * - 4 / - + 66 THEN NULL ELSE 12 END - 33 * + - 91 / + AVG ( DISTINCT + - 24 ) END + 97 + - + ( + 97 ), - 49 AS col2
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-9502
SELECT CASE 67 WHEN + + NULLIF ( NULLIF ( + - 48, + 83 + - - 1 ), + COUNT ( * ) ) THEN + CASE + 17 WHEN - 65 * - 4 / - + 66 THEN NULL ELSE 12 END - 33 * + - 91 / + AVG ( DISTINCT + - 24 ) END + 97 + - + ( + 97 ), - 49 AS col2
----
NULL
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9503
SELECT DISTINCT + + 91 - - + 35, COUNT( * ) - 46 col1
----
126
-45

skipif mysql # not compatible
query II rowsort label-9503
SELECT DISTINCT + + 91 - - + 35, COUNT ( * ) - 46 col1
----
126
-45

query II rowsort
SELECT ALL - 87 AS col2, - 23 * - 61 AS col1
----
-87
1403

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9505
SELECT DISTINCT 34, COUNT( * ) DIV - + ( + - 75 ) + COUNT( * ) AS col1
----
34
1

skipif mysql # not compatible
query II rowsort label-9505
SELECT DISTINCT 34, COUNT ( * ) / - + ( + - 75 ) + COUNT ( * ) AS col1
----
34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT + 22 - + 37 + + 79 + + + 41 * + + 55 * + COUNT( * )
----
2319

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT + 22 - + 37 + + 79 + + + 41 * + + 55 * + COUNT ( * )
----
2319

query I rowsort
SELECT DISTINCT 4 * - 45 * - 36 + 53
----
6533

query I rowsort
SELECT ALL 22 * - 3
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9509
SELECT 0 col0, + ( - + COUNT( * ) ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-9509
SELECT 0 col0, + ( - + COUNT ( * ) ) AS col2
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT DISTINCT - - MAX( - - 8 ) * + 50 col1
----
400

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT - - MAX ( - - 8 ) * + 50 col1
----
400

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT 92 DIV + 81
----
1

skipif mysql # not compatible
query I rowsort label-9511
SELECT 92 / + 81
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT COALESCE ( + + 64, - + ( COUNT( * ) ) * + 37 ) col0
----
64

skipif mysql # not compatible
query I rowsort label-9512
SELECT COALESCE ( + + 64, - + ( COUNT ( * ) ) * + 37 ) col0
----
64

query I rowsort
SELECT 44 * COALESCE ( + 51, + 74 * 90 ) AS col2
----
2244

query I rowsort
SELECT 15 + + 99 AS col2
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9515
SELECT 50 - COUNT( * ) + 2 - - - ( AVG ( - 44 ) ) * - CAST( NULL AS SIGNED ) * 41 AS col0, 78 * - - 36 + - + 89 DIV - 60 + + - 37 + ( COUNT( ( + + 95 ) ) )
----
NULL
2773

skipif mysql # not compatible
query II rowsort label-9515
SELECT 50 - COUNT ( * ) + 2 - - - ( AVG ( - 44 ) ) * - CAST ( NULL AS INTEGER ) * 41 AS col0, 78 * - - 36 + - + 89 / - 60 + + - 37 + ( COUNT ( ( + + 95 ) ) )
----
NULL
2773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT CAST( - 34 AS SIGNED ) * - 89
----
3026

skipif mysql # not compatible
query I rowsort label-9516
SELECT CAST ( - 34 AS INTEGER ) * - 89
----
3026

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9517
SELECT NULLIF ( + CASE - + 40 WHEN + + 52 + ( - + NULLIF ( + 31, 83 ) ) + 81 * - 80 + - - 61 * CAST( NULL AS DECIMAL ) THEN 60 END, + 50 ) + - - 33 + + - 2 + - + 90 + 15 * + 7 * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT NULLIF ( + CASE - + 40 WHEN + + 52 + ( - + NULLIF ( + 31, 83 ) ) + 81 * - 80 + - - 61 * CAST ( NULL AS REAL ) THEN 60 END, + 50 ) + - - 33 + + - 2 + - + 90 + 15 * + 7 * - 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT - SUM( - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-9518
SELECT - SUM ( - 89 )
----
89

query I rowsort
SELECT 3 * + 70 + - 82 + + + 4 AS col2
----
132

query II rowsort
SELECT 69 * - 61 AS col0, 76 AS col2
----
-4209
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9521
SELECT ALL 5 * + COUNT( - 87 ) * + 73 * 89 + COUNT( * ) DIV + + 4, 35 AS col1
----
32485
35

skipif mysql # not compatible
query II rowsort label-9521
SELECT ALL 5 * + COUNT ( - 87 ) * + 73 * 89 + COUNT ( * ) / + + 4, 35 AS col1
----
32485
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT COUNT( * ) + 31 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9522
SELECT COUNT ( * ) + 31 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT + MIN( ALL + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-9523
SELECT + MIN ( ALL + 53 )
----
53

query I rowsort
SELECT DISTINCT 15 * - 69
----
-1035

onlyif mysql # DIV for integer division: 
query I rowsort label-9525
SELECT + COALESCE ( 37, + 29, - - 35 ) DIV + + 97 * - - 24 + ( 73 ) + 98 - + 66 + - 33 + 48 + + 27 AS col1
----
147

skipif mysql # not compatible
query I rowsort label-9525
SELECT + COALESCE ( 37, + 29, - - 35 ) / + + 97 * - - 24 + ( 73 ) + 98 - + 66 + - 33 + 48 + + 27 AS col1
----
147

query I rowsort
SELECT DISTINCT 44 * - - 55
----
2420

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL 61 * + - SUM( DISTINCT + 42 ) * + 11 + ( + 78 )
----
-28104

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL 61 * + - SUM ( DISTINCT + 42 ) * + 11 + ( + 78 )
----
-28104

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9528
SELECT ALL 79 * + CAST( NULL AS SIGNED ) AS col0, 27 DIV + 70 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9528
SELECT ALL 79 * + CAST ( NULL AS INTEGER ) AS col0, 27 / + 70 AS col1
----
NULL
0

query I rowsort
SELECT ALL 55 * 31 + + 70 * 6 AS col2
----
2125

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT + MIN( DISTINCT - 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-9530
SELECT + MIN ( DISTINCT - 27 )
----
-27

query I rowsort
SELECT 68 * + 76 + + - 27
----
5141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 2 + 61 AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT ALL 4 * - 82 + + NULLIF ( - CAST( - + 11 AS SIGNED ), - 78 * - CASE CASE - 57 WHEN + - CAST( NULL AS SIGNED ) THEN NULL ELSE - - 55 END WHEN 83 THEN NULL ELSE 73 + 49 END )
----
-317

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL 4 * - 82 + + NULLIF ( - CAST ( - + 11 AS INTEGER ), - 78 * - CASE CASE - 57 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - - 55 END WHEN 83 THEN NULL ELSE 73 + 49 END )
----
-317

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT SUM( ALL ( - 24 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-9535
SELECT SUM ( ALL ( - 24 ) )
----
-24

query I rowsort
SELECT DISTINCT - 76 * + 76 - + - 48 AS col1
----
-5728

query I rowsort
SELECT ALL - 42 * + - 46 AS col0
----
1932

query I rowsort
SELECT + - 12 col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT ALL COUNT( * ) - - 46 - - ( - 40 ) * - 29 * - - 20
----
23247

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL COUNT ( * ) - - 46 - - ( - 40 ) * - 29 * - - 20
----
23247

query I rowsort
SELECT ALL - 93 * + 88
----
-8184

query I rowsort
SELECT - - 87 * - + 96
----
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT + + SUM( ALL + 5 ) + - - 63 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9542
SELECT + + SUM ( ALL + 5 ) + - - 63 AS col1
----
68

query I rowsort
SELECT - 54 + - - 58
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9544
SELECT - 23 + 46 + - 3 + 0 DIV + 80
----
20

skipif mysql # not compatible
query I rowsort label-9544
SELECT - 23 + 46 + - 3 + 0 / + 80
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT - MAX( DISTINCT 56 ) * - - 94 AS col2
----
-5264

skipif mysql # not compatible
query I rowsort label-9545
SELECT - MAX ( DISTINCT 56 ) * - - 94 AS col2
----
-5264

query I rowsort
SELECT - 37 * 43
----
-1591

query I rowsort
SELECT - + 63 + - 57 col1
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-9548
SELECT - 81 * - + 71 + - ( - 21 ) + 95 * 97 + + - 65 DIV - 84 AS col2
----
14987

skipif mysql # not compatible
query I rowsort label-9548
SELECT - 81 * - + 71 + - ( - 21 ) + 95 * 97 + + - 65 / - 84 AS col2
----
14987

onlyif mysql # aggregate syntax: 
query II rowsort label-9549
SELECT DISTINCT - + 71 * + 54 AS col2, COUNT( * ) - + 50 + - 48 + - + MIN( DISTINCT + 69 )
----
-3834
-166

skipif mysql # not compatible
query II rowsort label-9549
SELECT DISTINCT - + 71 * + 54 AS col2, COUNT ( * ) - + 50 + - 48 + - + MIN ( DISTINCT + 69 )
----
-3834
-166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9550
SELECT ALL NULLIF ( 5, + 35 ) AS col0, + CAST( NULL AS SIGNED ) + 33
----
5
NULL

skipif mysql # not compatible
query II rowsort label-9550
SELECT ALL NULLIF ( 5, + 35 ) AS col0, + CAST ( NULL AS INTEGER ) + 33
----
5
NULL

query I rowsort
SELECT - - 86 + - 55 col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT COUNT( ALL 77 )
----
1

skipif mysql # not compatible
query I rowsort label-9552
SELECT COUNT ( ALL 77 )
----
1

query I rowsort
SELECT ALL + 5 + - 18 AS col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9554
SELECT + 39 + - 2 DIV - 98 + - 55 + 5 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9554
SELECT + 39 + - 2 / - 98 + - 55 + 5 AS col1
----
-11

query I rowsort
SELECT - 34 * 94
----
-3196

query I rowsort
SELECT + 40 + + + 91 AS col1
----
131

query I rowsort
SELECT + ( - + 2 ) + + 61 * ( + - 93 ) AS col2
----
-5675

query I rowsort
SELECT DISTINCT 81 * - 43
----
-3483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9559
SELECT ALL - CAST( SUM( + 80 ) AS SIGNED ) + - COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL - CAST ( SUM ( + 80 ) AS INTEGER ) + - COUNT ( * ) AS col1
----
-81

query I rowsort
SELECT ALL - 63 + + + 58
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT ALL 74 + SUM( DISTINCT - - 67 )
----
141

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL 74 + SUM ( DISTINCT - - 67 )
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT DISTINCT 33 + + COALESCE ( - 94, + 29, - - 1 + - + COUNT( * ) ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT 33 + + COALESCE ( - 94, + 29, - - 1 + - + COUNT ( * ) ) AS col0
----
-61

query I rowsort
SELECT DISTINCT - NULLIF ( + 85, + 95 ) * + - 29 AS col1
----
2465

query I rowsort
SELECT ( + + 78 ) AS col2
----
78

query I rowsort
SELECT ( + 51 ) AS col0
----
51

query I rowsort
SELECT + ( - 80 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT + MIN( 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9567
SELECT + MIN ( 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9568
SELECT + ( - - 6 ) DIV 73 + - 27 + + - 94 + 64 - + COUNT( * ) * + COUNT( * ) * + + 47 * + + 20 AS col2
----
-997

skipif mysql # not compatible
query I rowsort label-9568
SELECT + ( - - 6 ) / 73 + - 27 + + - 94 + 64 - + COUNT ( * ) * + COUNT ( * ) * + + 47 * + + 20 AS col2
----
-997

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT + COUNT( * ) * - 65
----
-65

skipif mysql # not compatible
query I rowsort label-9569
SELECT + COUNT ( * ) * - 65
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9570
SELECT + CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) * + COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9570
SELECT + CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) * + COUNT ( * )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT + COALESCE ( - MAX( ALL 66 ), + 3 )
----
-66

skipif mysql # not compatible
query I rowsort label-9571
SELECT + COALESCE ( - MAX ( ALL 66 ), + 3 )
----
-66

query I rowsort
SELECT ( - - 86 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT ALL 79 DIV + 38
----
2

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL 79 / + 38
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT 94 * + - MIN( DISTINCT - 38 ) - - + NULLIF ( + + 40, - COUNT( * ) - - 72 ) * + 55 AS col2
----
5772

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT 94 * + - MIN ( DISTINCT - 38 ) - - + NULLIF ( + + 40, - COUNT ( * ) - - 72 ) * + 55 AS col2
----
5772

onlyif mysql # DIV for integer division: 
query I rowsort label-9575
SELECT ALL 96 DIV - 40
----
-2

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL 96 / - 40
----
-2

query I rowsort
SELECT ALL 61 * - 90 * 7
----
-38430

query I rowsort
SELECT DISTINCT - + 61 * - 83 - - 36
----
5099

onlyif mysql # aggregate syntax: 
query II rowsort label-9578
SELECT + - 58 AS col1, COUNT( * )
----
-58
1

skipif mysql # not compatible
query II rowsort label-9578
SELECT + - 58 AS col1, COUNT ( * )
----
-58
1

query I rowsort
SELECT + - 47 + - + 20
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT - 99 * 89 DIV 20
----
-440

skipif mysql # not compatible
query I rowsort label-9580
SELECT - 99 * 89 / 20
----
-440

query II rowsort
SELECT ALL + 94 AS col2, - 39 AS col2
----
94
-39

query I rowsort
SELECT ALL + + ( - - 1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT + 78 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT + 78 + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT - + COUNT( DISTINCT - 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-9584
SELECT - + COUNT ( DISTINCT - 49 )
----
-1

query I rowsort
SELECT - + ( - 45 ) + + + 22 AS col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9586
SELECT ALL + COALESCE ( - + 33, 22 DIV - - COUNT( * ) )
----
-33

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL + COALESCE ( - + 33, 22 / - - COUNT ( * ) )
----
-33

query II rowsort
SELECT DISTINCT 93, 11 * - 9 * 82 AS col2
----
93
-8118

query I rowsort
SELECT ALL ( - + 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-9589
SELECT + MAX( ALL 67 ) + + + 70 AS col2, 41 + + 7 + + 51 + - 49 * - 66
----
137
3333

skipif mysql # not compatible
query II rowsort label-9589
SELECT + MAX ( ALL 67 ) + + + 70 AS col2, 41 + + 7 + + 51 + - 49 * - 66
----
137
3333

query II rowsort
SELECT 92 AS col2, + 82 col2
----
92
82

query I rowsort
SELECT - 37 * - 50
----
1850

query I rowsort
SELECT ALL - + 94 * - 2 AS col1
----
188

query I rowsort
SELECT - 16 * 80 * - + 25 * - 49 AS col0
----
-1568000

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT - 28 - - COUNT( * ) + + 4 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9594
SELECT - 28 - - COUNT ( * ) + + 4 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT ALL + 4 + - COALESCE ( + 47, 85 * - NULLIF ( + 84, 91 ) + + 18 ) - - COALESCE ( + COUNT( * ), + 79 + + + 41 ) + + + 0 + + 37 + 61
----
56

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL + 4 + - COALESCE ( + 47, 85 * - NULLIF ( + 84, 91 ) + + 18 ) - - COALESCE ( + COUNT ( * ), + 79 + + + 41 ) + + + 0 + + 37 + 61
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - COUNT( * ) - 52 + + ( - + ( 83 ) ) * + 16
----
-1381

skipif mysql # not compatible
query I rowsort label-9596
SELECT - COUNT ( * ) - 52 + + ( - + ( 83 ) ) * + 16
----
-1381

query I rowsort
SELECT - 81 * 87 AS col0
----
-7047

query I rowsort
SELECT ALL + 4 + + 36
----
40

query I rowsort
SELECT ALL 27 * - 35 col1
----
-945

query I rowsort
SELECT - 45 + + 82 AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9601
SELECT - SUM( 52 ) - - ( - 28 ), COUNT( * ) AS col2
----
-80
1

skipif mysql # not compatible
query II rowsort label-9601
SELECT - SUM ( 52 ) - - ( - 28 ), COUNT ( * ) AS col2
----
-80
1

query I rowsort
SELECT 94 - - 57
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-9603
SELECT ALL + COUNT( * ) * 78 col0, + ( + 76 )
----
78
76

skipif mysql # not compatible
query II rowsort label-9603
SELECT ALL + COUNT ( * ) * 78 col0, + ( + 76 )
----
78
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9604
SELECT + CAST( NULL AS SIGNED ) * - 84 * + 1 + - - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT + CAST ( NULL AS INTEGER ) * - 84 * + 1 + - - 7 AS col1
----
NULL

query I rowsort
SELECT 75 + + - 89
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT DISTINCT + 23 * - 47 * SUM( - ( + 45 ) )
----
48645

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT + 23 * - 47 * SUM ( - ( + 45 ) )
----
48645

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT COUNT( * ) * - 63 * - 42
----
2646

skipif mysql # not compatible
query I rowsort label-9607
SELECT COUNT ( * ) * - 63 * - 42
----
2646

query I rowsort
SELECT ALL - - ( 99 )
----
99

query I rowsort
SELECT ALL - - 52 AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9610
SELECT 60 * 77 DIV + 31 AS col2
----
149

skipif mysql # not compatible
query I rowsort label-9610
SELECT 60 * 77 / + 31 AS col2
----
149

query I rowsort
SELECT 96 * + 60 + 74
----
5834

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL - SUM( ALL - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL - SUM ( ALL - 54 )
----
54

query I rowsort
SELECT + 36 * - 58 * - - 81 + + ( - 72 ) AS col1
----
-169200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9614
SELECT + - CASE - 50 WHEN - 42 + - 23 * + + 33 + + CAST( NULL AS SIGNED ) THEN + - 24 * - 53 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT + - CASE - 50 WHEN - 42 + - 23 * + + 33 + + CAST ( NULL AS INTEGER ) THEN + - 24 * - 53 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT DISTINCT + 72 DIV + + 79
----
0

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT + 72 / + + 79
----
0

query I rowsort
SELECT + + 44 AS col1
----
44

query I rowsort
SELECT DISTINCT - + 50 AS col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT ALL 55 + + CAST( + 32 AS SIGNED ) + 8
----
95

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL 55 + + CAST ( + 32 AS INTEGER ) + 8
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9619
SELECT 8 + + CAST( + 59 AS SIGNED ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-9619
SELECT 8 + + CAST ( + 59 AS INTEGER ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT - MIN( DISTINCT 67 ) AS col0, 94
----
-67
94

skipif mysql # not compatible
query II rowsort label-9620
SELECT - MIN ( DISTINCT 67 ) AS col0, 94
----
-67
94

query I rowsort
SELECT ( + 7 ) + - - 57 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT + 35 * + SUM( - + 8 ) AS col0
----
-280

skipif mysql # not compatible
query I rowsort label-9622
SELECT + 35 * + SUM ( - + 8 ) AS col0
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT SUM( - 7 ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-9623
SELECT SUM ( - 7 ) col1
----
-7

query I rowsort
SELECT ALL - 72 + 26
----
-46

query I rowsort
SELECT 50 + 70
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT DISTINCT 10 + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT 10 + COUNT ( * )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT CAST( - COALESCE ( - 5, 68 ) AS SIGNED ) + + + 12
----
17

skipif mysql # not compatible
query I rowsort label-9627
SELECT CAST ( - COALESCE ( - 5, 68 ) AS INTEGER ) + + + 12
----
17

query I rowsort
SELECT DISTINCT 22 - - 83 col2
----
105

query I rowsort
SELECT 94 + - - 62 + - 6 AS col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT 4 + + + MIN( + - 65 )
----
-61

skipif mysql # not compatible
query I rowsort label-9630
SELECT 4 + + + MIN ( + - 65 )
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-9631
SELECT 75 DIV 43 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9631
SELECT 75 / 43 AS col2
----
1

query I rowsort
SELECT ALL 97 - - + 2 col1
----
99

query I rowsort
SELECT DISTINCT + 28 * - 98
----
-2744

query II rowsort
SELECT DISTINCT - 42, - 43 AS col1
----
-42
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT 0 * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9635
SELECT 0 * COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT NULLIF ( COUNT( * ), 18 + 23 ) * 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9636
SELECT NULLIF ( COUNT ( * ), 18 + 23 ) * 1 AS col2
----
1

query I rowsort
SELECT DISTINCT + 65 + + 6 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL + ( - 22 ) + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL + ( - 22 ) + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT COUNT( * ) - 47 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-9639
SELECT COUNT ( * ) - 47 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT DISTINCT - MIN( 58 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT - MIN ( 58 ) AS col0
----
-58

query I rowsort
SELECT DISTINCT 24 + 20
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT NULLIF ( 15, 93 ) * COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9642
SELECT NULLIF ( 15, 93 ) * COUNT ( * ) AS col2
----
15

query I rowsort
SELECT ALL - 48 + 14
----
-34

query I rowsort
SELECT ALL - ( + 55 ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT 85 * + 54 + - COUNT( * )
----
4589

skipif mysql # not compatible
query I rowsort label-9645
SELECT 85 * + 54 + - COUNT ( * )
----
4589

query I rowsort
SELECT 63 - + 49
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL 23 + COALESCE ( 96, + 34, + 43 + COUNT( * ) ) AS col2
----
119

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL 23 + COALESCE ( 96, + 34, + 43 + COUNT ( * ) ) AS col2
----
119

query I rowsort
SELECT DISTINCT - 31 + 72 AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9649
SELECT ALL - ( - 17 ) DIV 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL - ( - 17 ) / 18 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT ALL - CAST( NULL AS SIGNED ) - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL - CAST ( NULL AS INTEGER ) - + 20
----
NULL

query I rowsort
SELECT ALL 52 * 95
----
4940

query I rowsort
SELECT ALL 22 - + 47
----
-25

query I rowsort
SELECT DISTINCT 81 * 13 col2
----
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT 41 * - COUNT( * ) + 88 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9654
SELECT 41 * - COUNT ( * ) + 88 AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT + CAST( NULL AS SIGNED ) * - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT + CAST ( NULL AS INTEGER ) * - 43 AS col1
----
NULL

query I rowsort
SELECT - CASE 3 WHEN + 82 THEN 19 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT + COUNT( ALL 92 ) + 0 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9657
SELECT + COUNT ( ALL 92 ) + 0 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT + COUNT( * ) - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9658
SELECT + COUNT ( * ) - + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9659
SELECT + CAST( + 6 AS SIGNED ) * 47 AS col2
----
282

skipif mysql # not compatible
query I rowsort label-9659
SELECT + CAST ( + 6 AS INTEGER ) * 47 AS col2
----
282

query I rowsort
SELECT + 91 - 70
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT DISTINCT - 69 DIV - 59
----
1

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT - 69 / - 59
----
1

query I rowsort
SELECT ALL - 51 * 59
----
-3009

query I rowsort
SELECT + 44 * 33
----
1452

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT ALL 50 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL 50 / + 98
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9665
SELECT DISTINCT 67 DIV + 7 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT 67 / + 7 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT + ( - 65 ) + COUNT( * ) * 14 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9666
SELECT + ( - 65 ) + COUNT ( * ) * 14 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT - 37 - - MAX( 15 ) * 69 AS col1
----
998

skipif mysql # not compatible
query I rowsort label-9667
SELECT - 37 - - MAX ( 15 ) * 69 AS col1
----
998

query I rowsort
SELECT ALL 2 * + 25 col2
----
50

query I rowsort
SELECT + 8 + 60 AS col1
----
68

query I rowsort
SELECT DISTINCT - 52 * 61 + + 27
----
-3145

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL + COUNT( * ) * 12 + + MAX( ALL - ( ( - 12 ) ) )
----
24

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL + COUNT ( * ) * 12 + + MAX ( ALL - ( ( - 12 ) ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT - - MAX( ALL - 65 ) * - 52 + 77 * - ( - 27 ) AS col1
----
5459

skipif mysql # not compatible
query I rowsort label-9672
SELECT - - MAX ( ALL - 65 ) * - 52 + 77 * - ( - 27 ) AS col1
----
5459

query I rowsort
SELECT ALL 75 * + 64 + 1 AS col0
----
4801

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT ALL - 83 DIV 3 col0
----
-27

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL - 83 / 3 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT - 23 * - COUNT( * ) + 72 * MAX( - 33 * - 93 )
----
220991

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT - 23 * - COUNT ( * ) + 72 * MAX ( - 33 * - 93 )
----
220991

query I rowsort
SELECT ALL + 87 * 18 + ( + 9 ) * ( + 17 )
----
1719

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9677
SELECT + - COALESCE ( 3, + COUNT( * ) DIV ( ( + 70 ) ) - - 86 ) col1
----
-3

skipif mysql # not compatible
query I rowsort label-9677
SELECT + - COALESCE ( 3, + COUNT ( * ) / ( ( + 70 ) ) - - 86 ) col1
----
-3

query I rowsort
SELECT - 58 + - 89 * - 58
----
5104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9679
SELECT ALL - MAX( + NULLIF ( 70, + CAST( NULL AS SIGNED ) ) ) * 56 + COUNT( * ) DIV 34 AS col1
----
-3920

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL - MAX ( + NULLIF ( 70, + CAST ( NULL AS INTEGER ) ) ) * 56 + COUNT ( * ) / 34 AS col1
----
-3920

query I rowsort
SELECT + + 58 * - 46
----
-2668

query I rowsort
SELECT DISTINCT + + ( - 34 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9682
SELECT CASE 77 WHEN - 5 THEN - 71 * CAST( NULL AS DECIMAL ) WHEN 78 + - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT CASE 77 WHEN - 5 THEN - 71 * CAST ( NULL AS REAL ) WHEN 78 + - COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + - 73 AS col1
----
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9684
SELECT - CAST( NULL AS DECIMAL ) * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT - CAST ( NULL AS REAL ) * 7
----
NULL

query I rowsort
SELECT DISTINCT - + 20 * 17
----
-340

query I rowsort
SELECT DISTINCT + + 40 col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ALL - SUM( ALL 86 ) * - 16 - + 63 * NULLIF ( 17, - 64 * - 89 - + 14 ) AS col0
----
305

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL - SUM ( ALL 86 ) * - 16 - + 63 * NULLIF ( 17, - 64 * - 89 - + 14 ) AS col0
----
305

query I rowsort
SELECT + - 7 AS col1
----
-7

query I rowsort
SELECT DISTINCT + 40 col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT - COUNT( * ) - - + 79
----
78

skipif mysql # not compatible
query I rowsort label-9690
SELECT - COUNT ( * ) - - + 79
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9691
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT - COUNT( * ) + - 91 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-9692
SELECT - COUNT ( * ) + - 91 AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9693
SELECT + COUNT( * ) DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-9693
SELECT + COUNT ( * ) / - 42
----
0

query I rowsort
SELECT ALL ( - 43 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT + COUNT( * ) + - 44 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9695
SELECT + COUNT ( * ) + - 44 AS col0
----
-43

query I rowsort
SELECT - CASE + + 87 WHEN 17 THEN + 52 * - 96 WHEN 34 * ( - 10 ) + + 47 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT ( + 98 ) AS col2
----
98

query I rowsort
SELECT ALL ( - NULLIF ( 23, 70 ) )
----
-23

query I rowsort
SELECT DISTINCT ( - + 38 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT ALL ( 82 ) * + MAX( ALL 28 ) AS col2
----
2296

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL ( 82 ) * + MAX ( ALL 28 ) AS col2
----
2296

query I rowsort
SELECT + 68 + - 6 + 48 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT ALL + 55 * COUNT( ( + 37 ) ) * + 76 AS col2
----
4180

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL + 55 * COUNT ( ( + 37 ) ) * + 76 AS col2
----
4180

onlyif mysql # DIV for integer division: 
query I rowsort label-9703
SELECT + 44 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-9703
SELECT + 44 / + 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9704
SELECT DISTINCT 9 * + COUNT( * ) DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-9704
SELECT DISTINCT 9 * + COUNT ( * ) / + 29
----
0

query I rowsort
SELECT + 20 * - 98
----
-1960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT ALL 26 * + + 53 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL 26 * + + 53 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 38 + + - 75 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT - CASE - + COUNT( * ) WHEN 66 * COALESCE ( 85, - 18 ) THEN NULL ELSE + COALESCE ( COUNT( - 76 ), COUNT( * ), 82 * ( + 26 * - 54 ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-9708
SELECT - CASE - + COUNT ( * ) WHEN 66 * COALESCE ( 85, - 18 ) THEN NULL ELSE + COALESCE ( COUNT ( - 76 ), COUNT ( * ), 82 * ( + 26 * - 54 ) ) END
----
-1

query I rowsort
SELECT + 14 + 90 AS col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9710
SELECT - CASE + + 92 WHEN + 33 - CAST( NULL AS SIGNED ) THEN 55 * + COUNT( ALL CAST( NULL AS SIGNED ) * ( 97 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT - CASE + + 92 WHEN + 33 - CAST ( NULL AS INTEGER ) THEN 55 * + COUNT ( ALL CAST ( NULL AS INTEGER ) * ( 97 ) ) END AS col2
----
NULL

query I rowsort
SELECT + 90 + + - 24
----
66

query I rowsort
SELECT ALL 96 + - + 85
----
11

query I rowsort
SELECT - NULLIF ( 46, + ( + 95 ) * + 49 )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT ALL + 92 * - COALESCE ( 21, CAST( + 56 AS SIGNED ), 8 )
----
-1932

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL + 92 * - COALESCE ( 21, CAST ( + 56 AS INTEGER ), 8 )
----
-1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9715
SELECT ALL 76 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL 76 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 81 + 71 * - 96
----
-6735

query I rowsort
SELECT ALL + 53 + + - ( 12 ) AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT + + 48 * + 55 + 48 DIV 22 AS col1
----
2642

skipif mysql # not compatible
query I rowsort label-9718
SELECT + + 48 * + 55 + 48 / 22 AS col1
----
2642

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT DISTINCT NULLIF ( COUNT( * ), 51 + - MIN( + 75 - + 53 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT NULLIF ( COUNT ( * ), 51 + - MIN ( + 75 - + 53 ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9720
SELECT DISTINCT + 4 DIV + 49 + + NULLIF ( 68, - 80 ) + 95
----
163

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT + 4 / + 49 + + NULLIF ( 68, - 80 ) + 95
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT + + ( + 36 ) - - 11 * + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9721
SELECT + + ( + 36 ) - - 11 * + COUNT ( * ) AS col0
----
47

query I rowsort
SELECT ALL + - ( - ( 91 ) ) AS col0
----
91

query I rowsort
SELECT ALL - 93 * 82
----
-7626

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT MAX( ALL 43 ) * - MAX( DISTINCT 54 * 80 ) - - 96
----
-185664

skipif mysql # not compatible
query I rowsort label-9724
SELECT MAX ( ALL 43 ) * - MAX ( DISTINCT 54 * 80 ) - - 96
----
-185664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9725
SELECT - 65 * - - ( - MIN( + 91 ) ) * + NULLIF ( - 2 + 83 DIV + COUNT( * ), - 89 * 56 + ( 9 ) ) AS col2
----
479115

skipif mysql # not compatible
query I rowsort label-9725
SELECT - 65 * - - ( - MIN ( + 91 ) ) * + NULLIF ( - 2 + 83 / + COUNT ( * ), - 89 * 56 + ( 9 ) ) AS col2
----
479115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9726
SELECT DISTINCT - ( + COUNT( ALL 39 ) ) DIV 34 + + 62 DIV - 54
----
-1

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT - ( + COUNT ( ALL 39 ) ) / 34 + + 62 / - 54
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9727
SELECT ALL - 39 DIV - 48 * - 17 + 29 * 23
----
667

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL - 39 / - 48 * - 17 + 29 * 23
----
667

query I rowsort
SELECT - COALESCE ( - - 31, 81 * 72, - NULLIF ( 12, + 41 * + 63 ) )
----
-31

query I rowsort
SELECT + - 65 AS col2
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9730
SELECT - - 75 DIV 11 - + COUNT( * ) * + 70
----
-64

skipif mysql # not compatible
query I rowsort label-9730
SELECT - - 75 / 11 - + COUNT ( * ) * + 70
----
-64

query I rowsort
SELECT DISTINCT + - 6 col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9732
SELECT DISTINCT + 77 DIV - - 91
----
0

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT + 77 / - - 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT + SUM( + - 43 ) * - COUNT( * ) - - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-9733
SELECT + SUM ( + - 43 ) * - COUNT ( * ) - - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9734
SELECT ALL - COUNT( * ) DIV + 22 - COUNT( * ) DIV - 85 - 21 * + 89 AS col0
----
-1869

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL - COUNT ( * ) / + 22 - COUNT ( * ) / - 85 - 21 * + 89 AS col0
----
-1869

query I rowsort
SELECT - ( 50 ) * - 14
----
700

onlyif mysql # DIV for integer division: 
query I rowsort label-9736
SELECT DISTINCT + 44 DIV + 64 + 16
----
16

skipif mysql # not compatible
query I rowsort label-9736
SELECT DISTINCT + 44 / + 64 + 16
----
16

query I rowsort
SELECT + - 86 + - 99 AS col1
----
-185

query I rowsort
SELECT - 81 * + 14 + 5 * 7 col0
----
-1099

onlyif mysql # aggregate syntax: 
query II rowsort label-9739
SELECT DISTINCT - COUNT( * ) col1, COUNT( * ) * + 94 * 21
----
-1
1974

skipif mysql # not compatible
query II rowsort label-9739
SELECT DISTINCT - COUNT ( * ) col1, COUNT ( * ) * + 94 * 21
----
-1
1974

query I rowsort
SELECT ( + NULLIF ( + 9, - 68 ) ) + - 12 col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9741
SELECT 88 - - 79 + - CAST( + 20 AS SIGNED ) + COUNT( 37 ) DIV - 95 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-9741
SELECT 88 - - 79 + - CAST ( + 20 AS INTEGER ) + COUNT ( 37 ) / - 95 AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT DISTINCT - NULLIF ( - 78, - + 78 + - COUNT( * ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT - NULLIF ( - 78, - + 78 + - COUNT ( * ) ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL - MAX( + 26 ) * + - 67 * + 70 + CASE ( - 47 ) WHEN 27 THEN 26 END * COALESCE ( + 52, MIN( ALL 29 ) * ( + 45 ) + + 9, 1 - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL - MAX ( + 26 ) * + - 67 * + 70 + CASE ( - 47 ) WHEN 27 THEN 26 END * COALESCE ( + 52, MIN ( ALL 29 ) * ( + 45 ) + + 9, 1 - 80 )
----
NULL

query I rowsort
SELECT 4 * 95 AS col2
----
380

query I rowsort
SELECT DISTINCT - COALESCE ( + 80, - 97, 95 + + 90 ) AS col0
----
-80

query I rowsort
SELECT 94 * - + 69
----
-6486

query I rowsort
SELECT ALL - 78 * - 64
----
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT DISTINCT - MIN( - 94 ) * + + 47 - - 68
----
4486

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT - MIN ( - 94 ) * + + 47 - - 68
----
4486

query I rowsort
SELECT 74 + - - NULLIF ( + 69, + 62 ) + + 89 * + 94 AS col0
----
8509

query II rowsort
SELECT 7 AS col0, 95 AS col1
----
7
95

query I rowsort
SELECT ALL + 51 + + 27 - + 2
----
76

query I rowsort
SELECT + 30 * 78 * + ( 73 ) + - 90 AS col0
----
170730

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT DISTINCT + COUNT( * ) + - COALESCE ( - + ( 49 ), 98 ) * + 36 col1
----
1765

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT + COUNT ( * ) + - COALESCE ( - + ( 49 ), 98 ) * + 36 col1
----
1765

query I rowsort
SELECT ALL - 79 + COALESCE ( - 48, + 48 * 56 ) * + 80
----
-3919

query II rowsort
SELECT - 64, 27 - + 88 AS col1
----
-64
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9756
SELECT COUNT( * ) DIV + COALESCE ( 78, 93 * - ( - 43 ) + + 77, + COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9756
SELECT COUNT ( * ) / + COALESCE ( 78, 93 * - ( - 43 ) + + 77, + COUNT ( * ) ) AS col0
----
0

query I rowsort
SELECT 9 - - + 18
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT NULLIF ( - 22, + COALESCE ( + 97, + 88, NULLIF ( 46, COUNT( * ) ) ) * COUNT( * ) + 17 ) * 70 AS col2
----
-1540

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT NULLIF ( - 22, + COALESCE ( + 97, + 88, NULLIF ( 46, COUNT ( * ) ) ) * COUNT ( * ) + 17 ) * 70 AS col2
----
-1540

query I rowsort
SELECT ALL 72 + - 16 + 0 + - 12 * 75 * 95 col0
----
-85444

query I rowsort
SELECT 19 + + 11 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL - CASE + + COUNT( * ) WHEN - 47 - 60 * - 31 THEN + 32 END + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL - CASE + + COUNT ( * ) WHEN - 47 - 60 * - 31 THEN + 32 END + 84 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9762
SELECT + 13 + 90 DIV - 14
----
7

skipif mysql # not compatible
query I rowsort label-9762
SELECT + 13 + 90 / - 14
----
7

query I rowsort
SELECT ALL + + ( - 62 ) + 84 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT + + CASE + NULLIF ( 94, - COUNT( * ) * 87 ) WHEN SUM( DISTINCT 82 ) THEN 36 WHEN 67 THEN 54 + 76 ELSE NULL END * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT + + CASE + NULLIF ( 94, - COUNT ( * ) * 87 ) WHEN SUM ( DISTINCT 82 ) THEN 36 WHEN 67 THEN 54 + 76 ELSE NULL END * - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT 52 + + 10 * - 8 * + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-9765
SELECT 52 + + 10 * - 8 * + COUNT ( * )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9766
SELECT COUNT( * ), - CASE + CASE 65 WHEN + COUNT( * ) + + 7 THEN + 77 + + 8 WHEN CAST( ( - COUNT( * ) ) AS SIGNED ) * COUNT( * ) + - 64 THEN NULL END WHEN + 4 - SUM( 74 ) THEN NULL WHEN - CAST( 84 AS DECIMAL ) * 35 THEN NULL ELSE ( 3 ) * 57 + - 11 END AS col0
----
1
-160

skipif mysql # not compatible
query II rowsort label-9766
SELECT COUNT ( * ), - CASE + CASE 65 WHEN + COUNT ( * ) + + 7 THEN + 77 + + 8 WHEN CAST ( ( - COUNT ( * ) ) AS INTEGER ) * COUNT ( * ) + - 64 THEN NULL END WHEN + 4 - SUM ( 74 ) THEN NULL WHEN - CAST ( 84 AS REAL ) * 35 THEN NULL ELSE ( 3 ) * 57 + - 11 END AS col0
----
1
-160

query I rowsort
SELECT ALL - 80 * - - 13
----
-1040

query II rowsort
SELECT ALL 56 AS col0, 6
----
56
6

query I rowsort
SELECT - ( - 14 ) + + 33 - + 48
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT COUNT( * ) - - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9770
SELECT COUNT ( * ) - - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - 93 + + - 23
----
-116

query I rowsort
SELECT - 63 + + 93 AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9773
SELECT ALL - 31 - + - 69 DIV + 61
----
-30

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL - 31 - + - 69 / + 61
----
-30

query I rowsort
SELECT - 99 * - NULLIF ( - 48, - 96 * - 8 ) + + 19 AS col0
----
-4733

query I rowsort
SELECT ALL - + 60 AS col1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT + - 13 DIV - 3 + - 41 - ( - 37 + 27 ) + 63
----
36

skipif mysql # not compatible
query I rowsort label-9776
SELECT + - 13 / - 3 + - 41 - ( - 37 + 27 ) + 63
----
36

query I rowsort
SELECT ALL + 70 - + 64
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9778
SELECT + - 98, - 76 * + ( + COUNT( * ) ) * - 59 + + 46 AS col2
----
-98
4530

skipif mysql # not compatible
query II rowsort label-9778
SELECT + - 98, - 76 * + ( + COUNT ( * ) ) * - 59 + + 46 AS col2
----
-98
4530

query I rowsort
SELECT + 43 + 54
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9780
SELECT ALL - - 13 AS col0, + CAST( NULL AS SIGNED ) / 15
----
13
NULL

skipif mysql # not compatible
query II rowsort label-9780
SELECT ALL - - 13 AS col0, + CAST ( NULL AS INTEGER ) / 15
----
13
NULL

query I rowsort
SELECT + + 44 col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT SUM( + + 28 ) * + - COALESCE ( + 55, MAX( NULLIF ( + ( 32 ), 54 * + 54 ) ) ) AS col1
----
-1540

skipif mysql # not compatible
query I rowsort label-9782
SELECT SUM ( + + 28 ) * + - COALESCE ( + 55, MAX ( NULLIF ( + ( 32 ), 54 * + 54 ) ) ) AS col1
----
-1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9783
SELECT ALL COUNT( * ) DIV ( - + 72 ) * 35
----
0

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL COUNT ( * ) / ( - + 72 ) * 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT DISTINCT - SUM( DISTINCT + ( 14 ) ) * - 43
----
602

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT - SUM ( DISTINCT + ( 14 ) ) * - 43
----
602

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT + CASE - 53 WHEN + - COALESCE ( - COUNT( * ), AVG ( 28 ) * 32, 24 * 16 ) * COUNT( * ) THEN + 21 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT + CASE - 53 WHEN + - COALESCE ( - COUNT ( * ), AVG ( 28 ) * 32, 24 * 16 ) * COUNT ( * ) THEN + 21 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT - SUM( ALL - - 54 ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-9786
SELECT - SUM ( ALL - - 54 ) col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9787
SELECT + CAST( NULL AS DECIMAL ) / + 79 + - NULLIF ( - 21, COUNT( + 89 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT + CAST ( NULL AS REAL ) / + 79 + - NULLIF ( - 21, COUNT ( + 89 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9788
SELECT ALL 93 * + + 78 * + 76 * CASE 11 WHEN + 35 * + 74 THEN + 96 / - 79 + - COUNT( DISTINCT 79 ) * CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL 93 * + + 78 * + 76 * CASE 11 WHEN + 35 * + 74 THEN + 96 / - 79 + - COUNT ( DISTINCT 79 ) * CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT 4 * 41 AS col0
----
164

query I rowsort
SELECT ALL 57 * + 13 AS col2
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT + ( 75 ) * - 10 + - 41 + COUNT( * ) AS col0
----
-790

skipif mysql # not compatible
query I rowsort label-9791
SELECT + ( 75 ) * - 10 + - 41 + COUNT ( * ) AS col0
----
-790

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT DISTINCT + NULLIF ( - - COUNT( * ), + 84 ) + - + 52
----
-51

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT + NULLIF ( - - COUNT ( * ), + 84 ) + - + 52
----
-51

query I rowsort
SELECT 4 * 51 * ( 83 ) * 30
----
507960

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT ALL 50 + 6 + + COUNT( * ) + - ( 97 ) * + 82
----
-7897

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL 50 + 6 + + COUNT ( * ) + - ( 97 ) * + 82
----
-7897

query I rowsort
SELECT + 20 * + ( + COALESCE ( 16, + 41 ) ) - - ( 52 ) AS col2
----
372

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT + 26 * + + COUNT( * ) - - COUNT( * ) + + - 21
----
6

skipif mysql # not compatible
query I rowsort label-9796
SELECT + 26 * + + COUNT ( * ) - - COUNT ( * ) + + - 21
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9797
SELECT CASE - MAX( - - CAST( 73 AS DECIMAL ) ) WHEN 29 THEN 57 + + 13 END * COALESCE ( + 15 + - 65, 30 + + ( + 38 + 70 ) * 77 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9797
SELECT CASE - MAX ( - - CAST ( 73 AS REAL ) ) WHEN 29 THEN 57 + + 13 END * COALESCE ( + 15 + - 65, 30 + + ( + 38 + 70 ) * 77 ) AS col2
----
NULL

query I rowsort
SELECT 29 + - 71 col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT ALL + 47 + 99 * - 83 + MIN( + 35 ) + COUNT( * ) AS col2
----
-8134

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL + 47 + 99 * - 83 + MIN ( + 35 ) + COUNT ( * ) AS col2
----
-8134

query I rowsort
SELECT DISTINCT + 38 * + 91 AS col1
----
3458

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT DISTINCT 49 + + COUNT( * ) * + 67 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-9801
SELECT DISTINCT 49 + + COUNT ( * ) * + 67 AS col2
----
116

query I rowsort
SELECT ALL + ( - + 7 ) * + - 69 * - 37
----
-17871

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT DISTINCT + 2 + - + CASE - 33 WHEN + - 85 * 44 THEN + MIN( DISTINCT - 24 ) END + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT + 2 + - + CASE - 33 WHEN + - 85 * 44 THEN + MIN ( DISTINCT - 24 ) END + + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT DISTINCT + SUM( ALL - - NULLIF ( - 85, - 87 ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT + SUM ( ALL - - NULLIF ( - 85, - 87 ) ) AS col1
----
-85

query I rowsort
SELECT + 50 * 55 * - - 29 AS col1
----
79750

query I rowsort
SELECT ALL - 35 - + + 57 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT - + COALESCE ( 28, + 83 * + 93 * 91 + 35 * - 41, MAX( ALL 53 ) + 92 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9807
SELECT - + COALESCE ( 28, + 83 * + 93 * 91 + 35 * - 41, MAX ( ALL 53 ) + 92 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ( - - 36 ) + + COALESCE ( COUNT( * ), 38 )
----
37

skipif mysql # not compatible
query I rowsort label-9808
SELECT ( - - 36 ) + + COALESCE ( COUNT ( * ), 38 )
----
37

query I rowsort
SELECT ALL + - 55 - + - 82 - + - ( - 59 ) AS col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-9810
SELECT 44 * + 28 DIV - + COALESCE ( + 14, + ( - 81 ), 26 ) + - 93 AS col2
----
-181

skipif mysql # not compatible
query I rowsort label-9810
SELECT 44 * + 28 / - + COALESCE ( + 14, + ( - 81 ), 26 ) + - 93 AS col2
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT - COALESCE ( - COUNT( * ), 21, 62 ) * + 13 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9811
SELECT - COALESCE ( - COUNT ( * ), 21, 62 ) * + 13 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT ALL + COUNT( * ) * - 84 + - 82
----
-166

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL + COUNT ( * ) * - 84 + - 82
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL + ( + COUNT( * ) ) - + SUM( DISTINCT + 53 )
----
-52

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL + ( + COUNT ( * ) ) - + SUM ( DISTINCT + 53 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT DISTINCT + MAX( ALL - 82 ) * - - 2 * - 4 * - 17
----
-11152

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT + MAX ( ALL - 82 ) * - - 2 * - 4 * - 17
----
-11152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9815
SELECT NULLIF ( 38, + - CAST( 78 AS SIGNED ) ) * COALESCE ( 45 * 86 - - CAST( CASE + COUNT( * ) WHEN + 23 THEN NULL ELSE 77 END AS SIGNED ) * - 92, - 79 * - 11, + 65 ) AS col0
----
-122132

skipif mysql # not compatible
query I rowsort label-9815
SELECT NULLIF ( 38, + - CAST ( 78 AS INTEGER ) ) * COALESCE ( 45 * 86 - - CAST ( CASE + COUNT ( * ) WHEN + 23 THEN NULL ELSE 77 END AS INTEGER ) * - 92, - 79 * - 11, + 65 ) AS col0
----
-122132

query I rowsort
SELECT + 41 * + - 25
----
-1025

query I rowsort
SELECT ALL - 50 * + 11 * - 13 * - ( + 52 )
----
-371800

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT - 80 - + 18 - - 51 * - 46 + + 40 * + MIN( 72 ) AS col2
----
436

skipif mysql # not compatible
query I rowsort label-9818
SELECT - 80 - + 18 - - 51 * - 46 + + 40 * + MIN ( 72 ) AS col2
----
436

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9819
SELECT + - COUNT( * ) DIV + 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9819
SELECT + - COUNT ( * ) / + 12 AS col1
----
0

query I rowsort
SELECT ALL + - 0 * - 95 * 83
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9821
SELECT + + ( - 11 ) * - 89 + 48 DIV 34 AS col0
----
980

skipif mysql # not compatible
query I rowsort label-9821
SELECT + + ( - 11 ) * - 89 + 48 / 34 AS col0
----
980

query II rowsort
SELECT ALL - 58 * - - 52 AS col0, - 70 AS col1
----
-3016
-70

query I rowsort
SELECT - - 53 * + 45 * 77 col1
----
183645

onlyif mysql # DIV for integer division: 
query I rowsort label-9824
SELECT 94 DIV 31 + + 5
----
8

skipif mysql # not compatible
query I rowsort label-9824
SELECT 94 / 31 + + 5
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9825
SELECT ALL + CASE 61 WHEN - 76 * + 87 THEN NULL WHEN + 73 / 86 - + 55 THEN - ( CAST( - 14 AS SIGNED ) ) + 86 / 50 WHEN 43 THEN NULL ELSE - 31 * + 45 END AS col2
----
-1395

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL + CASE 61 WHEN - 76 * + 87 THEN NULL WHEN + 73 / 86 - + 55 THEN - ( CAST ( - 14 AS INTEGER ) ) + 86 / 50 WHEN 43 THEN NULL ELSE - 31 * + 45 END AS col2
----
-1395

query I rowsort
SELECT + ( 77 ) - 21 AS col2
----
56

query II rowsort
SELECT ALL + 49 AS col1, + 70 AS col0
----
49
70

query I rowsort
SELECT + 51 - - 9 AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9829
SELECT + 16 * 10 + - - 95 + - CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT + 16 * 10 + - - 95 + - CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL ( - + 70 ) * - 14
----
980

query I rowsort
SELECT ALL 66 * + CASE - - 19 WHEN + ( + 4 ) * 74 THEN 8 * - 96 ELSE NULL END / 28 + 52 AS col2
----
NULL

query I rowsort
SELECT ALL 35 * + 15 + - 20 AS col2
----
505

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT - COUNT( * ) + - + 22 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-9833
SELECT - COUNT ( * ) + - + 22 AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9834
SELECT + NULLIF ( + - CAST( + 9 AS SIGNED ), + - ( - 86 ) ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-9834
SELECT + NULLIF ( + - CAST ( + 9 AS INTEGER ), + - ( - 86 ) ) col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT MIN( ALL + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9835
SELECT MIN ( ALL + 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT + NULLIF ( - - NULLIF ( COUNT( * ), 71 + - 74 ), 9 * + 99 )
----
1

skipif mysql # not compatible
query I rowsort label-9836
SELECT + NULLIF ( - - NULLIF ( COUNT ( * ), 71 + - 74 ), 9 * + 99 )
----
1

query I rowsort
SELECT DISTINCT - 44 * 18 + + 51 AS col0
----
-741

query I rowsort
SELECT ALL NULLIF ( - ( 58 ), 15 / + 34 ) * + 18
----
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT COUNT( ALL - + 79 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9839
SELECT COUNT ( ALL - + 79 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9840
SELECT + COUNT( * ) DIV - + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9840
SELECT + COUNT ( * ) / - + 61 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9841
SELECT + 74 - 32 DIV COUNT( * ) * 28 AS col2
----
-822

skipif mysql # not compatible
query I rowsort label-9841
SELECT + 74 - 32 / COUNT ( * ) * 28 AS col2
----
-822

query III rowsort
SELECT ALL + 68 col0, 55 + 84 AS col2, 72 + - 47 + 54
----
68
139
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT + CASE + 27 WHEN - COUNT( * ) THEN AVG ( ALL + 42 ) + - 71 WHEN 52 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT + CASE + 27 WHEN - COUNT ( * ) THEN AVG ( ALL + 42 ) + - 71 WHEN 52 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9844
SELECT ALL + 84 AS col2, + CAST( NULL AS SIGNED ) * 1 / 35 + + + 97 + - AVG ( ALL 7 ) / + COUNT( * )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-9844
SELECT ALL + 84 AS col2, + CAST ( NULL AS INTEGER ) * 1 / 35 + + + 97 + - AVG ( ALL 7 ) / + COUNT ( * )
----
84
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9845
SELECT + 79 DIV - - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT + 79 / - - 92 AS col0
----
0

query I rowsort
SELECT ALL 85 + - 77 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT ALL COUNT( * ) * - 51
----
-51

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL COUNT ( * ) * - 51
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9848
SELECT DISTINCT 2 * COALESCE ( - + CAST( NULL AS SIGNED ), MIN( DISTINCT + ( 93 ) ) ) * 99 AS col2
----
18414

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT 2 * COALESCE ( - + CAST ( NULL AS INTEGER ), MIN ( DISTINCT + ( 93 ) ) ) * 99 AS col2
----
18414

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL + ( 9 ) - COUNT( * ) - + 28 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL + ( 9 ) - COUNT ( * ) - + 28 AS col0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9850
SELECT ALL - 61 DIV COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL - 61 / COUNT ( * )
----
-61

query I rowsort
SELECT + 31 * - 90 col0
----
-2790

query I rowsort
SELECT + 43 + 83 * - - 19 * 87 AS col0
----
137242

query I rowsort
SELECT + + 75 + 96 AS col1
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9854
SELECT - CASE + COUNT( * ) WHEN + 9 THEN + COUNT( * ) WHEN - 48 THEN CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9854
SELECT - CASE + COUNT ( * ) WHEN + 9 THEN + COUNT ( * ) WHEN - 48 THEN CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9855
SELECT ALL 88 - + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL 88 - + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + 45 AS col0
----
NULL

query I rowsort
SELECT + - NULLIF ( + 6, - - ( 18 ) + + 61 ) + 79 * + 75 col0
----
5919

query I rowsort
SELECT + 71 - 95
----
-24

query I rowsort
SELECT + + 25 * 58 col1
----
1450

query I rowsort
SELECT + 84 + - 16 AS col0
----
68

query I rowsort
SELECT DISTINCT - 79 AS col2
----
-79

query I rowsort
SELECT - - 42 * 33
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT + + CASE + - 19 WHEN + 45 - - 97 THEN + 33 END + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT + + CASE + - 19 WHEN + 45 - - 97 THEN + 33 END + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - + 68 - - 59 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9864
SELECT - CASE + - NULLIF ( 71, + 8 * - 59 DIV + 74 ) WHEN + ( 26 ) THEN NULL ELSE COUNT( * ) END DIV CAST( 96 * - 75 - + 58 * - MAX( DISTINCT - 60 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9864
SELECT - CASE + - NULLIF ( 71, + 8 * - 59 / + 74 ) WHEN + ( 26 ) THEN NULL ELSE COUNT ( * ) END / CAST ( 96 * - 75 - + 58 * - MAX ( DISTINCT - 60 ) AS INTEGER ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9865
SELECT - - 49 DIV + 21 + + - 57
----
-55

skipif mysql # not compatible
query I rowsort label-9865
SELECT - - 49 / + 21 + + - 57
----
-55

query I rowsort
SELECT + 52 * - 37 + - 97
----
-2021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT ALL + - CAST( + 45 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + - CAST ( + 45 AS INTEGER )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9868
SELECT + 37 DIV 15 * + COALESCE ( + 1, + 34 + + + ( - 98 ), 6 + ( 37 + 14 ) ) + - 26
----
-24

skipif mysql # not compatible
query I rowsort label-9868
SELECT + 37 / 15 * + COALESCE ( + 1, + 34 + + + ( - 98 ), 6 + ( 37 + 14 ) ) + - 26
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-9869
SELECT ALL CASE - 24 WHEN - 4 THEN NULL WHEN - - 12 + + 24 * + 71 * 94 THEN 18 ELSE + 60 * 82 END DIV - 7 + + 48 AS col0
----
-654

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL CASE - 24 WHEN - 4 THEN NULL WHEN - - 12 + + 24 * + 71 * 94 THEN 18 ELSE + 60 * 82 END / - 7 + + 48 AS col0
----
-654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9870
SELECT ALL + CAST( - - 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL + CAST ( - - 18 AS INTEGER )
----
18

query II rowsort
SELECT - ( 98 ) * 41 * - 99, 19 col0
----
397782
19

query I rowsort
SELECT ALL 39 * + 66 * 49
----
126126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9873
SELECT CAST( NULL AS SIGNED ), + ( + + CASE 77 WHEN 33 THEN NULL WHEN - 45 THEN - 94 * - 80 + + 71 ELSE NULL END ) + - ( - 45 ) col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9873
SELECT CAST ( NULL AS INTEGER ), + ( + + CASE 77 WHEN 33 THEN NULL WHEN - 45 THEN - 94 * - 80 + + 71 ELSE NULL END ) + - ( - 45 ) col1
----
NULL
NULL

query I rowsort
SELECT ALL - 19 * - ( - + 75 ) AS col2
----
-1425

query II rowsort
SELECT + 83 AS col2, - 55 + 28 AS col1
----
83
-27

query I rowsort
SELECT ( + - 19 )
----
-19

query I rowsort
SELECT + 12 * - 5 * 13 + - 60 * - 35 * ( 58 ) * - NULLIF ( 3, 31 )
----
-366180

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT - 0 / - CASE + - COUNT( * ) WHEN 74 THEN - 44 WHEN - - COUNT( * ) THEN NULL WHEN - 64 THEN - MIN( 72 ) ELSE NULL END * 6 + 95 * 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT - 0 / - CASE + - COUNT ( * ) WHEN 74 THEN - 44 WHEN - - COUNT ( * ) THEN NULL WHEN - 64 THEN - MIN ( 72 ) ELSE NULL END * 6 + 95 * 8 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9879
SELECT DISTINCT + COUNT( * ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT + COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT ( + NULLIF ( - MAX( DISTINCT + 34 ), - 57 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-9880
SELECT ( + NULLIF ( - MAX ( DISTINCT + 34 ), - 57 ) )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9881
SELECT ALL + 74 AS col0, - 23 * - CAST( NULLIF ( 54, 73 + - 1 * + 96 ) AS SIGNED )
----
74
1242

skipif mysql # not compatible
query II rowsort label-9881
SELECT ALL + 74 AS col0, - 23 * - CAST ( NULLIF ( 54, 73 + - 1 * + 96 ) AS INTEGER )
----
74
1242

query I rowsort
SELECT + 79 + + + ( - - NULLIF ( 65, - - 97 ) )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT + 38 * - + 67 * + COUNT( * )
----
-2546

skipif mysql # not compatible
query I rowsort label-9883
SELECT + 38 * - + 67 * + COUNT ( * )
----
-2546

query II rowsort
SELECT ALL + 93 col0, - 36 * - + 99 * + + 85
----
93
302940

query I rowsort
SELECT 57 * - + 18 * 0 + 39 + 97 * - 48
----
-4617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-9886
SELECT ALL + 74, + 24 + + + CASE 41 WHEN + 16 THEN NULL WHEN - + 4 + 70 * 59 THEN 11 + - COUNT( * ) DIV - NULLIF ( 56, + 14 * + CAST( NULL AS SIGNED ) ) ELSE - COALESCE ( 17, - COALESCE ( CASE + 57 WHEN - CAST( NULL AS DECIMAL ) THEN NULL ELSE + 41 * - 71 END, 60, - 96 + 37 ) + + 52 ) END - + 78 AS col0
----
74
-71

skipif mysql # not compatible
query II rowsort label-9886
SELECT ALL + 74, + 24 + + + CASE 41 WHEN + 16 THEN NULL WHEN - + 4 + 70 * 59 THEN 11 + - COUNT ( * ) / - NULLIF ( 56, + 14 * + CAST ( NULL AS INTEGER ) ) ELSE - COALESCE ( 17, - COALESCE ( CASE + 57 WHEN - CAST ( NULL AS REAL ) THEN NULL ELSE + 41 * - 71 END, 60, - 96 + 37 ) + + 52 ) END - + 78 AS col0
----
74
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT COALESCE ( - 46, - MAX( + 6 ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9887
SELECT COALESCE ( - 46, - MAX ( + 6 ) ) AS col1
----
-46

query I rowsort
SELECT 66 * - 8 - + 23
----
-551

query I rowsort
SELECT + 8 * ( + 51 )
----
408

query I rowsort
SELECT + 25 + - 39 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT - COUNT( DISTINCT 28 ) * + 29 - COUNT( * ) - - 27 * NULLIF ( 34, - 87 ) + 22 * COUNT( + 80 ) AS col1
----
910

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT - COUNT ( DISTINCT 28 ) * + 29 - COUNT ( * ) - - 27 * NULLIF ( 34, - 87 ) + 22 * COUNT ( + 80 ) AS col1
----
910

onlyif mysql # DIV for integer division: 
query II rowsort label-9892
SELECT - + 50, - 8 DIV 23 AS col2
----
-50
0

skipif mysql # not compatible
query II rowsort label-9892
SELECT - + 50, - 8 / 23 AS col2
----
-50
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT + + 38 + - - 43 + + - SUM( - 33 ) * - - 66 * 91 * 26 AS col0
----
5153229

skipif mysql # not compatible
query I rowsort label-9893
SELECT + + 38 + - - 43 + + - SUM ( - 33 ) * - - 66 * 91 * 26 AS col0
----
5153229

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT DISTINCT + 1 * + 7 * - 9 + - 87 + + - 1 - - COUNT( * ) - - 26
----
-124

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT + 1 * + 7 * - 9 + - 87 + + - 1 - - COUNT ( * ) - - 26
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT ALL - MIN( ALL + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL - MIN ( ALL + 32 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9896
SELECT DISTINCT MIN( ALL 33 ) * - - CASE CAST( + 58 AS SIGNED ) WHEN - 21 THEN + 91 + + 50 WHEN ( 76 ) THEN NULL END * 36 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT MIN ( ALL 33 ) * - - CASE CAST ( + 58 AS INTEGER ) WHEN - 21 THEN + 91 + + 50 WHEN ( 76 ) THEN NULL END * 36 col2
----
NULL

query I rowsort
SELECT + 40 * - 73 AS col1
----
-2920

query I rowsort
SELECT - 32 + + - 0 AS col2
----
-32

query I rowsort
SELECT 45 * + 27 * - 23 AS col2
----
-27945

query II rowsort
SELECT ALL 55 col1, 28 * - 45
----
55
-1260

query I rowsort
SELECT + COALESCE ( - 53, - + 20 + + 7 + + - 83 + + 27 * 97 ) * - 44 AS col2
----
2332

onlyif mysql # aggregate syntax: 
query II rowsort label-9902
SELECT ALL COUNT( * ) AS col1, - 63 + - 72 + + SUM( DISTINCT - 46 ) + - 81 * 98
----
1
-8119

skipif mysql # not compatible
query II rowsort label-9902
SELECT ALL COUNT ( * ) AS col1, - 63 + - 72 + + SUM ( DISTINCT - 46 ) + - 81 * 98
----
1
-8119

query I rowsort
SELECT ALL 10 + - 21 col1
----
-11

query II rowsort
SELECT ALL - 24 * 58 AS col1, 7 AS col1
----
-1392
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT + COUNT( * ) * + 50 * + ( - 82 ) + + 6 + + 10
----
-4084

skipif mysql # not compatible
query I rowsort label-9905
SELECT + COUNT ( * ) * + 50 * + ( - 82 ) + + 6 + + 10
----
-4084

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT 29 + + - COALESCE ( + + 30, + COALESCE ( - 91, + 41 - 17 ) * - COUNT( * ) + 64 ) + + ( + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-9906
SELECT 29 + + - COALESCE ( + + 30, + COALESCE ( - 91, + 41 - 17 ) * - COUNT ( * ) + 64 ) + + ( + COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT DISTINCT + 51 + + COALESCE ( - + 18, - - CAST( + CAST( - - 11 AS SIGNED ) AS SIGNED ), + - CAST( - 94 AS SIGNED ) + - 36 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT + 51 + + COALESCE ( - + 18, - - CAST ( + CAST ( - - 11 AS INTEGER ) AS INTEGER ), + - CAST ( - 94 AS INTEGER ) + - 36 ) AS col1
----
33

query I rowsort
SELECT 3 * + - 33 AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9909
SELECT ALL - COUNT( DISTINCT + 80 ) AS col2, + 31 + - - 56 + - - 72 * + 24 + - 41 + 49 / CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9909
SELECT ALL - COUNT ( DISTINCT + 80 ) AS col2, + 31 + - - 56 + - - 72 * + 24 + - 41 + 49 / CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT ALL - COALESCE ( - - 52, - ( + 49 ) ) AS col1
----
-52

query I rowsort
SELECT 22 - - - 33
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT 29 * - MAX( 70 ) * 23
----
-46690

skipif mysql # not compatible
query I rowsort label-9912
SELECT 29 * - MAX ( 70 ) * 23
----
-46690

onlyif mysql # DIV for integer division: 
query I rowsort label-9913
SELECT ALL - 34 - + ( 20 ) DIV + ( + ( - 1 ) ) + - - 24
----
10

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL - 34 - + ( 20 ) / + ( + ( - 1 ) ) + - - 24
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9914
SELECT ALL + CAST( - MAX( + 27 ) AS SIGNED ) * + NULLIF ( - COALESCE ( + 14, - + 85 ), 71 * COUNT( * ) )
----
378

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL + CAST ( - MAX ( + 27 ) AS INTEGER ) * + NULLIF ( - COALESCE ( + 14, - + 85 ), 71 * COUNT ( * ) )
----
378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT 12 + + CAST( + COUNT( * ) AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-9915
SELECT 12 + + CAST ( + COUNT ( * ) AS INTEGER )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9916
SELECT ALL + 62 * COUNT( * ) AS col0, COUNT( * ) col1
----
62
1

skipif mysql # not compatible
query II rowsort label-9916
SELECT ALL + 62 * COUNT ( * ) AS col0, COUNT ( * ) col1
----
62
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9917
SELECT 71 * + CAST( + + COUNT( * ) AS SIGNED ) + - 75 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9917
SELECT 71 * + CAST ( + + COUNT ( * ) AS INTEGER ) + - 75 AS col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9918
SELECT ALL - CAST( - + 64 AS SIGNED ) * + - 0 col0
----
0

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL - CAST ( - + 64 AS INTEGER ) * + - 0 col0
----
0

query I rowsort
SELECT DISTINCT - ( + 90 ) AS col2
----
-90

query I rowsort
SELECT ALL - 89 * + - 95 AS col1
----
8455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9921
SELECT DISTINCT - 17 * + - CASE COUNT( * ) WHEN CAST( 63 AS SIGNED ) THEN NULL WHEN - 79 THEN - COUNT( * ) * 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT - 17 * + - CASE COUNT ( * ) WHEN CAST ( 63 AS INTEGER ) THEN NULL WHEN - 79 THEN - COUNT ( * ) * 23 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9922
SELECT ALL - + 69 * CAST( NULL AS DECIMAL ) / COUNT( * ), - CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9922
SELECT ALL - + 69 * CAST ( NULL AS REAL ) / COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

query I rowsort
SELECT + - ( + 44 )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT + CASE + - 51 WHEN + 35 * + + 9 THEN + 3 - - 11 WHEN - + CAST( COUNT( * ) AS SIGNED ) THEN NULL WHEN 98 - 19 THEN NULL ELSE NULL END + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT + CASE + - 51 WHEN + 35 * + + 9 THEN + 3 - - 11 WHEN - + CAST ( COUNT ( * ) AS INTEGER ) THEN NULL WHEN 98 - 19 THEN NULL ELSE NULL END + 95
----
NULL

query I rowsort
SELECT DISTINCT ( - + 43 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT - COUNT( - 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-9926
SELECT - COUNT ( - 83 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT - 93 * 99 + + COUNT( * )
----
-9206

skipif mysql # not compatible
query I rowsort label-9927
SELECT - 93 * 99 + + COUNT ( * )
----
-9206

query I rowsort
SELECT - 61 * - + 71 + - ( - 2 ) * 95
----
4521

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT COUNT( * ) + - 83 * + + COUNT( * ) * - 96 + + 51 + 26 AS col0
----
8046

skipif mysql # not compatible
query I rowsort label-9929
SELECT COUNT ( * ) + - 83 * + + COUNT ( * ) * - 96 + + 51 + 26 AS col0
----
8046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9930
SELECT + 30 * + 55 - - CAST( + + 58 AS SIGNED ) + + 58 * CASE - MIN( - 70 ) WHEN 41 THEN NULL WHEN - 23 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT + 30 * + 55 - - CAST ( + + 58 AS INTEGER ) + + 58 * CASE - MIN ( - 70 ) WHEN 41 THEN NULL WHEN - 23 THEN - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT ALL - 71 + + + SUM( + 92 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL - 71 + + + SUM ( + 92 ) AS col0
----
21

query I rowsort
SELECT + 69 + - 94 * - - 28 * 38 AS col1
----
-99947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9933
SELECT DISTINCT + MIN( + - CAST( NULL AS SIGNED ) ) / - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT + MIN ( + - CAST ( NULL AS INTEGER ) ) / - 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9934
SELECT CAST( - - COALESCE ( + 33, + 78 ) AS SIGNED ) + + - COUNT( * ) + + ( - + 99 ) * - 45
----
4487

skipif mysql # not compatible
query I rowsort label-9934
SELECT CAST ( - - COALESCE ( + 33, + 78 ) AS INTEGER ) + + - COUNT ( * ) + + ( - + 99 ) * - 45
----
4487

query I rowsort
SELECT ALL + 27 * 20 - 98
----
442

query I rowsort
SELECT DISTINCT 61 + 2
----
63

query I rowsort
SELECT 29 + - 80 + - + 88 + + - 69 AS col0
----
-208

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT - 62 + 94 * - MIN( + 81 ) * - - 17 + + + 10 + 52 AS col0
----
-129438

skipif mysql # not compatible
query I rowsort label-9938
SELECT - 62 + 94 * - MIN ( + 81 ) * - - 17 + + + 10 + 52 AS col0
----
-129438

query I rowsort
SELECT 87 + 5
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT 23 + COUNT( * ) + + 4 * - - 77 + + + 24 + - - 23 * + 79 - + 74 + + 90 * + 59 * - 27 AS col1
----
-141271

skipif mysql # not compatible
query I rowsort label-9940
SELECT 23 + COUNT ( * ) + + 4 * - - 77 + + + 24 + - - 23 * + 79 - + 74 + + 90 * + 59 * - 27 AS col1
----
-141271

query II rowsort
SELECT DISTINCT 29 AS col2, + 19
----
29
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL CASE - 61 WHEN + 52 THEN - 46 + + + 65 - 56 * - + 61 WHEN 7 * 66 THEN NULL END - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL CASE - 61 WHEN + 52 THEN - 46 + + + 65 - 56 * - + 61 WHEN 7 * 66 THEN NULL END - + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT 75 AS col0, 65 - + + 98 col1
----
75
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-9944
SELECT ALL 83, - 65 + + - COUNT( * ) * - 45 AS col1
----
83
-20

skipif mysql # not compatible
query II rowsort label-9944
SELECT ALL 83, - 65 + + - COUNT ( * ) * - 45 AS col1
----
83
-20

query I rowsort
SELECT ALL 56 * 39
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT ALL - ( COUNT( * ) ) * + 79 - - - ( 70 ) + + - 87 * + 95
----
-8414

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL - ( COUNT ( * ) ) * + 79 - - - ( 70 ) + + - 87 * + 95
----
-8414

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9947
SELECT DISTINCT - 55 AS col2, - 12 DIV - + SUM( + + 29 )
----
-55
0

skipif mysql # not compatible
query II rowsort label-9947
SELECT DISTINCT - 55 AS col2, - 12 / - + SUM ( + + 29 )
----
-55
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9948
SELECT + MAX( DISTINCT + - ( + 97 ) ), 55 * - - ( + 21 ) - - - 57 DIV - 8 AS col0
----
-97
1162

skipif mysql # not compatible
query II rowsort label-9948
SELECT + MAX ( DISTINCT + - ( + 97 ) ), 55 * - - ( + 21 ) - - - 57 / - 8 AS col0
----
-97
1162

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT - SUM( ALL 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT - SUM ( ALL 11 ) AS col2
----
-11

query I rowsort
SELECT DISTINCT - ( + 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9951
SELECT COUNT( * ) * 58 * 22 * + + NULLIF ( + 70, - 5 ), - 95 AS col1
----
89320
-95

skipif mysql # not compatible
query II rowsort label-9951
SELECT COUNT ( * ) * 58 * 22 * + + NULLIF ( + 70, - 5 ), - 95 AS col1
----
89320
-95

query I rowsort
SELECT 38 * 58 AS col2
----
2204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9953
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( ALL 14 ) * CAST( NULL AS SIGNED ) - - - 0 - + - 98 * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( ALL 14 ) * CAST ( NULL AS INTEGER ) - - - 0 - + - 98 * 52
----
NULL

query I rowsort
SELECT + 46 * - - 1 + 61 AS col1
----
107

query I rowsort
SELECT 64 * + 67
----
4288

query II rowsort
SELECT ALL - 2 AS col1, - 44 - 63 AS col1
----
-2
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9957
SELECT ALL - 73 AS col1, ( - CAST( - - NULLIF ( + - 99, - 10 * - CAST( NULL AS DECIMAL ) ) AS SIGNED ) ) + + COUNT( * )
----
-73
100

skipif mysql # not compatible
query II rowsort label-9957
SELECT ALL - 73 AS col1, ( - CAST ( - - NULLIF ( + - 99, - 10 * - CAST ( NULL AS REAL ) ) AS INTEGER ) ) + + COUNT ( * )
----
-73
100

onlyif mysql # DIV for integer division: 
query I rowsort label-9958
SELECT ALL + 31 DIV 10 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL + 31 / 10 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT - 51 + - 32 + + - NULLIF ( + 79, COUNT( * ) * + 68 ) AS col0
----
-162

skipif mysql # not compatible
query I rowsort label-9959
SELECT - 51 + - 32 + + - NULLIF ( + 79, COUNT ( * ) * + 68 ) AS col0
----
-162

query I rowsort
SELECT ALL + - 95 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9961
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) + + - SUM( + - 23 ) * + 28 + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + - SUM ( + - 23 ) * + 28 + 83
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9962
SELECT ALL - 35 + - MAX( - + 43 ), 15 + - 72 AS col2
----
8
-57

skipif mysql # not compatible
query II rowsort label-9962
SELECT ALL - 35 + - MAX ( - + 43 ), 15 + - 72 AS col2
----
8
-57

query I rowsort
SELECT + + 61 * 90
----
5490

query I rowsort
SELECT DISTINCT + + 4 * - - 19
----
76

query II rowsort
SELECT - - 86 * - ( + 49 ) AS col2, 94 AS col1
----
-4214
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT - - 80 + - 50 + - CASE - COUNT( * ) WHEN - + 32 THEN - 43 + + - 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT - - 80 + - 50 + - CASE - COUNT ( * ) WHEN - + 32 THEN - 43 + + - 65 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT - COUNT( * ) * + 35 * 66 * 47
----
-108570

skipif mysql # not compatible
query I rowsort label-9967
SELECT - COUNT ( * ) * + 35 * 66 * 47
----
-108570

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT - + MIN( 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9968
SELECT - + MIN ( 22 ) AS col1
----
-22

query I rowsort
SELECT + + 5 + ( + 89 ) + - 26 + + + 55 AS col2
----
123

query I rowsort
SELECT ALL + + 29 + + + 5 AS col1
----
34

query II rowsort
SELECT - 88, - 60 AS col0
----
-88
-60

query II rowsort
SELECT DISTINCT 99 AS col0, 29 AS col0
----
99
29

query I rowsort
SELECT ALL - 31 * - 19 col2
----
589

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9974
SELECT - 67 * CAST( - - ( CAST( NULL AS SIGNED ) ) AS SIGNED ) * 32 + + + COUNT( - - 32 ) + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT - 67 * CAST ( - - ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) * 32 + + + COUNT ( - - 32 ) + 67
----
NULL

query I rowsort
SELECT ALL - 39 + - + 3
----
-42

query I rowsort
SELECT DISTINCT - 17 + + 86
----
69

query I rowsort
SELECT + + 53 * + 25 AS col1
----
1325

query I rowsort
SELECT DISTINCT - ( - 36 )
----
36

query II rowsort
SELECT - 12 AS col1, + 36 AS col0
----
-12
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9980
SELECT ALL COALESCE ( 42, + 9 ) AS col2, - ( - - 24 ) DIV - COUNT( * ) + - - 25
----
42
49

skipif mysql # not compatible
query II rowsort label-9980
SELECT ALL COALESCE ( 42, + 9 ) AS col2, - ( - - 24 ) / - COUNT ( * ) + - - 25
----
42
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9981
SELECT - + COUNT( * ) AS col2, + 78 + + 83
----
-1
161

skipif mysql # not compatible
query II rowsort label-9981
SELECT - + COUNT ( * ) AS col2, + 78 + + 83
----
-1
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9982
SELECT + + 4 DIV - + 80 + + 56 AS col2, COUNT( * ) AS col2
----
56
1

skipif mysql # not compatible
query II rowsort label-9982
SELECT + + 4 / - + 80 + + 56 AS col2, COUNT ( * ) AS col2
----
56
1

query I rowsort
SELECT DISTINCT COALESCE ( + COALESCE ( + 18, 16 ), 74 * + 57 * - 61 * - - 34 ) * - 23 * 58
----
-24012

query I rowsort
SELECT ALL ( 6 ) * + 69
----
414

query I rowsort
SELECT ALL - 34 - - 79 + + 8
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT - 27 + - MIN( 54 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9986
SELECT - 27 + - MIN ( 54 ) AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9987
SELECT + COUNT( * ) DIV + - 24 AS col2, - 30 AS col0
----
0
-30

skipif mysql # not compatible
query II rowsort label-9987
SELECT + COUNT ( * ) / + - 24 AS col2, - 30 AS col0
----
0
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9988
SELECT 71 * + - COUNT( * ) + - 40 + 31 DIV + 86
----
-111

skipif mysql # not compatible
query I rowsort label-9988
SELECT 71 * + - COUNT ( * ) + - 40 + 31 / + 86
----
-111

query I rowsort
SELECT + ( - 46 ) AS col1
----
-46

query I rowsort
SELECT ( - - 98 ) AS col0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT + 97 DIV + + 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9991
SELECT + 97 / + + 54 AS col2
----
1

query I rowsort
SELECT + 2 + + - 48
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT DISTINCT - COUNT( * ) * + 14 + - + 39 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT - COUNT ( * ) * + 14 + - + 39 AS col1
----
-53

query I rowsort
SELECT + 49 - - 4
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9995
SELECT DISTINCT 4 * + CAST( - - 16 AS SIGNED ) + + + CASE + + 53 WHEN - 22 THEN NULL WHEN 55 * - COUNT( * ) THEN ( 97 ) END * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT 4 * + CAST ( - - 16 AS INTEGER ) + + + CASE + + 53 WHEN - 22 THEN NULL WHEN 55 * - COUNT ( * ) THEN ( 97 ) END * 53 AS col2
----
NULL

query I rowsort
SELECT + 17 * - 57 + 34
----
-935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9998
SELECT + COALESCE ( - COUNT( * ), - 5 + - CASE + + 46 WHEN COUNT( * ) + - - 64 THEN NULL WHEN 51 * + 60 THEN NULL WHEN + 38 * COALESCE ( - 37, + 67 ) THEN + COUNT( * ) DIV + 31 + 46 END + 37 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9998
SELECT + COALESCE ( - COUNT ( * ), - 5 + - CASE + + 46 WHEN COUNT ( * ) + - - 64 THEN NULL WHEN 51 * + 60 THEN NULL WHEN + 38 * COALESCE ( - 37, + 67 ) THEN + COUNT ( * ) / + 31 + 46 END + 37 ) AS col1
----
-1

query I rowsort
SELECT + - 31 + - 75
----
-106

