sqllogictest
Artifact Content
Not logged in

Artifact 40e5043be1b002570fddebe7eb053db7e37e1522:


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