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)

query I rowsort
SELECT NULLIF ( - - 31, 64 ) AS col2
----
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2
SELECT - + 33 DIV - 14 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2
SELECT - + 33 / - 14 AS col2
----
2

query I rowsort
SELECT + + 28 + - 85 AS col2
----
-57

query I rowsort
SELECT + - 53 + - 91 AS col1
----
-144

query II rowsort
SELECT - + 78 AS col0, - 87 * + 43 * - 83
----
-78
310503

query I rowsort
SELECT ALL + + 80 * ( 74 )
----
5920

query I rowsort
SELECT ALL - 81 * - + ( - - 67 ) * - + 22 * - 17 + + 43 + - 70 AS col2
----
2029671

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8
SELECT - - 55 AS col1, 43 * - 46 * - 93 * + CAST( + 1 AS SIGNED )
----
55
183954

skipif mysql # not compatible
query II rowsort label-8
SELECT - - 55 AS col1, 43 * - 46 * - 93 * + CAST ( + 1 AS INTEGER )
----
55
183954

query I rowsort
SELECT ALL + 81 + + 32 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT - - 7 - - 0 - NULLIF ( + 57, + COUNT( * ) + 92 ) + + - NULLIF ( - COUNT( DISTINCT + 23 ), - 80 - + 88 + - + 29 )
----
-49

skipif mysql # not compatible
query I rowsort label-10
SELECT - - 7 - - 0 - NULLIF ( + 57, + COUNT ( * ) + 92 ) + + - NULLIF ( - COUNT ( DISTINCT + 23 ), - 80 - + 88 + - + 29 )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-11
SELECT + + COUNT( * ) * + 91 AS col1, + 40 + + - 33 + + 4 * + 51
----
91
211

skipif mysql # not compatible
query II rowsort label-11
SELECT + + COUNT ( * ) * + 91 AS col1, + 40 + + - 33 + + 4 * + 51
----
91
211

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT MAX( + + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-12
SELECT MAX ( + + 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT ALL COUNT( * ) - - 55 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL COUNT ( * ) - - 55 AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-14
SELECT + CAST( 57 AS SIGNED ) - - 43 DIV - CAST( + 50 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-14
SELECT + CAST ( 57 AS INTEGER ) - - 43 / - CAST ( + 50 AS INTEGER )
----
57

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-16
SELECT DISTINCT + COUNT( * ) AS col2, + MAX( ALL - 3 ) col2
----
1
-3

skipif mysql # not compatible
query II rowsort label-16
SELECT DISTINCT + COUNT ( * ) AS col2, + MAX ( ALL - 3 ) col2
----
1
-3

query I rowsort
SELECT ( - 68 ) * + + 53
----
-3604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT ALL ( 29 ) * 58 * 47 / - COALESCE ( - 44, - COUNT( * ) * - ( + 19 ) + - - 71, 92 ) + - 38 + + COUNT( * ) - - 68 * - 96 - - CAST( NULL AS SIGNED ) - + - 38 * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL ( 29 ) * 58 * 47 / - COALESCE ( - 44, - COUNT ( * ) * - ( + 19 ) + - - 71, 92 ) + - 38 + + COUNT ( * ) - - 68 * - 96 - - CAST ( NULL AS INTEGER ) - + - 38 * - 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-19
SELECT 48 DIV + - COUNT( * ) + 14
----
-34

skipif mysql # not compatible
query I rowsort label-19
SELECT 48 / + - COUNT ( * ) + 14
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT NULLIF ( ( - 1 ), + 2 + + COUNT( * ) ) * + ( + - 9 ) + - 54
----
-45

skipif mysql # not compatible
query I rowsort label-20
SELECT NULLIF ( ( - 1 ), + 2 + + COUNT ( * ) ) * + ( + - 9 ) + - 54
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT COUNT( * ) * - + ( NULLIF ( + + 45, - - 61 ) )
----
-45

skipif mysql # not compatible
query I rowsort label-21
SELECT COUNT ( * ) * - + ( NULLIF ( + + 45, - - 61 ) )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL 54 + + + 58 * - - MAX( + - 30 ) * CASE + 38 WHEN 52 THEN 32 WHEN + 56 THEN NULL END + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL 54 + + + 58 * - - MAX ( + - 30 ) * CASE + 38 WHEN 52 THEN 32 WHEN + 56 THEN NULL END + - 57
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-23
SELECT 42 * - SUM( DISTINCT + 50 ) * + CAST( + - 40 AS SIGNED ) AS col2
----
84000

skipif mysql # not compatible
query I rowsort label-23
SELECT 42 * - SUM ( DISTINCT + 50 ) * + CAST ( + - 40 AS INTEGER ) AS col2
----
84000

onlyif mysql # aggregate syntax: 
query II rowsort label-24
SELECT ALL 65 + 22 AS col2, 65 + + NULLIF ( + 4, 49 * + 18 + - - 61 * + 36 / - COUNT( * ) * 56 ) + - 32
----
87
37

skipif mysql # not compatible
query II rowsort label-24
SELECT ALL 65 + 22 AS col2, 65 + + NULLIF ( + 4, 49 * + 18 + - - 61 * + 36 / - COUNT ( * ) * 56 ) + - 32
----
87
37

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

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

query I rowsort
SELECT ALL 18 + + ( + 25 ) * - 74 + 20 AS col1
----
-1812

query I rowsort
SELECT 31 - - - 83
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-28
SELECT ( 35 ) * - 74 + CAST( 21 AS SIGNED )
----
-2569

skipif mysql # not compatible
query I rowsort label-28
SELECT ( 35 ) * - 74 + CAST ( 21 AS INTEGER )
----
-2569

query I rowsort
SELECT 76 * 5 * - 50 AS col0
----
-19000

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT ALL - MIN( + 74 ) + + 76
----
2

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL - MIN ( + 74 ) + + 76
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-31
SELECT DISTINCT + + ( - CAST( + COUNT( * ) AS SIGNED ) ) * + ( + 72 ) DIV - + 14
----
5

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT + + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) * + ( + 72 ) / - + 14
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT DISTINCT - CASE + COUNT( DISTINCT 33 ) WHEN + 77 THEN + COALESCE ( + 20, - ( + - COUNT( * ) ), - ( + 36 ) * - 95 + COUNT( + - 55 ) ) WHEN - + 66 - - 56 THEN 97 * - ( + + 48 ) + + 6 - - AVG ( 28 ) WHEN + 25 - - 42 THEN + NULLIF ( + COALESCE ( + 90, - 29 + 74, 99 + 95 * + 76 ), 46 ) + + 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT - CASE + COUNT ( DISTINCT 33 ) WHEN + 77 THEN + COALESCE ( + 20, - ( + - COUNT ( * ) ), - ( + 36 ) * - 95 + COUNT ( + - 55 ) ) WHEN - + 66 - - 56 THEN 97 * - ( + + 48 ) + + 6 - - AVG ( 28 ) WHEN + 25 - - 42 THEN + NULLIF ( + COALESCE ( + 90, - 29 + 74, 99 + 95 * + 76 ), 46 ) + + 97 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 24 + 94 AS col2
----
118

query I rowsort
SELECT ALL + 91 + - 17 - 4 * + NULLIF ( 61, + 68 ) AS col0
----
-170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-35
SELECT ALL - 10 - + + 38 + + 98, + COUNT( * ) + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-35
SELECT ALL - 10 - + + 38 + + 98, + COUNT ( * ) + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
50
NULL

query I rowsort
SELECT - 69 * + 40 - + 11 AS col2
----
-2771

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT 18 + - 79 - - 29 DIV - 85 + - 79 + 13 * - - 34 + + - 60 * 93 AS col0
----
-5278

skipif mysql # not compatible
query I rowsort label-37
SELECT 18 + - 79 - - 29 / - 85 + - 79 + 13 * - - 34 + + - 60 * 93 AS col0
----
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT - 15 - - - SUM( ALL COALESCE ( + - 77, - - 64, - 83 + + 87 ) ) * + 1
----
62

skipif mysql # not compatible
query I rowsort label-38
SELECT - 15 - - - SUM ( ALL COALESCE ( + - 77, - - 64, - 83 + + 87 ) ) * + 1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT ALL - 50 DIV - - 8 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL - 50 / - - 8 AS col2
----
-6

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

skipif mysql # not compatible
query I rowsort label-40
SELECT + ( + + 67 ) * + ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT - - 95 col1
----
95

query II rowsort
SELECT ALL - ( 28 ) col0, 35 * 95 - 58
----
-28
3267

query I rowsort
SELECT + ( 33 ) * + 14
----
462

query II rowsort
SELECT 88 + 48 AS col2, 16 + 58 + - ( + 32 ) + - ( + - 24 ) * + 85 * + + 33 * + 58 AS col2
----
136
3904602

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT ALL NULLIF ( - 78, + - COUNT( ALL - 51 ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL NULLIF ( - 78, + - COUNT ( ALL - 51 ) ) AS col2
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-46
SELECT ALL + 34 DIV - - CAST( - - 81 AS SIGNED ) * - + MIN( DISTINCT + 58 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL + 34 / - - CAST ( - - 81 AS INTEGER ) * - + MIN ( DISTINCT + 58 ) AS col0
----
0

query II rowsort
SELECT - 44, 32 AS col0
----
-44
32

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT 45 + 71 + 2 * - MAX( DISTINCT + 44 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-48
SELECT 45 + 71 + 2 * - MAX ( DISTINCT + 44 ) AS col1
----
28

query I rowsort
SELECT ( 24 ) + - 3 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-50
SELECT - 1, - 85 - + + COALESCE ( 67, - NULLIF ( + - CAST( NULL AS SIGNED ), - MAX( + - 16 ) * - + 4 DIV - 44 ) DIV + - 63 ) + + 87 DIV 75 * - 41 AS col0
----
-1
-193

skipif mysql # not compatible
query II rowsort label-50
SELECT - 1, - 85 - + + COALESCE ( 67, - NULLIF ( + - CAST ( NULL AS INTEGER ), - MAX ( + - 16 ) * - + 4 / - 44 ) / + - 63 ) + + 87 / 75 * - 41 AS col0
----
-1
-193

query II rowsort
SELECT 61 * - - ( + + 64 ), - 43 AS col2
----
3904
-43

query I rowsort
SELECT ALL 78 + + + 99
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-53
SELECT 32 + + 60 * - ( - ( + + 39 ) ) * + - CAST( NULL AS SIGNED ) * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-53
SELECT 32 + + 60 * - ( - ( + + 39 ) ) * + - CAST ( NULL AS INTEGER ) * + 41
----
NULL

query I rowsort
SELECT DISTINCT - ( + 43 ) + 79 + 63 AS col1
----
99

query I rowsort
SELECT ALL 54 + 52 col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT DISTINCT 72 + + CASE + - 31 WHEN - 44 + + 5 * - COUNT( * ) THEN NULL WHEN + 10 THEN - 85 / + + 69 ELSE NULL END + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT 72 + + CASE + - 31 WHEN - 44 + + 5 * - COUNT ( * ) THEN NULL WHEN + 10 THEN - 85 / + + 69 ELSE NULL END + 72
----
NULL

query I rowsort
SELECT DISTINCT - ( 82 ) AS col0
----
-82

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

query I rowsort
SELECT ALL ( ( + 96 ) ) + + + 72 AS col1
----
168

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-60
SELECT - 23 DIV - 85 + 8, CAST( 38 AS SIGNED ) * - + 54 * + 7 - + CAST( NULL AS SIGNED ) AS col0
----
8
NULL

skipif mysql # not compatible
query II rowsort label-60
SELECT - 23 / - 85 + 8, CAST ( 38 AS INTEGER ) * - + 54 * + 7 - + CAST ( NULL AS INTEGER ) AS col0
----
8
NULL

query I rowsort
SELECT + 35 * + ( - - 99 ) * + 51 - 44
----
176671

query I rowsort
SELECT 41 + 16 AS col1
----
57

query I rowsort
SELECT 9 * 39 * COALESCE ( - 93, 88, + 11 ) + - ( + 4 ) * 16
----
-32707

query I rowsort
SELECT ALL 12 + + 95 * + ( - 55 )
----
-5213

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-65
SELECT ALL - 15 AS col1, - 66 DIV + + 21 + + NULLIF ( + - COUNT( * ), - 42 ) AS col0
----
-15
-4

skipif mysql # not compatible
query II rowsort label-65
SELECT ALL - 15 AS col1, - 66 / + + 21 + + NULLIF ( + - COUNT ( * ), - 42 ) AS col0
----
-15
-4

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

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

query I rowsort
SELECT ( + - 31 ) + + 69
----
38

query II rowsort
SELECT ALL - 31 AS col1, 92
----
-31
92

onlyif mysql # aggregate syntax: 
query II rowsort label-69
SELECT - 17 * 64 + + 77 * + - 94 AS col2, COUNT( * ) + 25 col0
----
-8326
26

skipif mysql # not compatible
query II rowsort label-69
SELECT - 17 * 64 + + 77 * + - 94 AS col2, COUNT ( * ) + 25 col0
----
-8326
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-70
SELECT ALL - + COUNT( * ) AS col0, + CAST( + + 9 AS SIGNED ) * + 24 AS col2
----
-1
216

skipif mysql # not compatible
query II rowsort label-70
SELECT ALL - + COUNT ( * ) AS col0, + CAST ( + + 9 AS INTEGER ) * + 24 AS col2
----
-1
216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-71
SELECT DISTINCT - + 23 AS col1, ( + CAST( NULL AS SIGNED ) ) * - - 31 * - 84
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-71
SELECT DISTINCT - + 23 AS col1, ( + CAST ( NULL AS INTEGER ) ) * - - 31 * - 84
----
-23
NULL

query I rowsort
SELECT + 63 + + 37 AS col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-73
SELECT ALL - + 25 - + 24 DIV 18 + + 38
----
12

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL - + 25 - + 24 / 18 + + 38
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT - MAX( - 1 ) * ( - COALESCE ( + 81, + + COUNT( ALL - - 77 ) * - 82, - 15 ) ) * - + 8 * - COUNT( * ) AS col0
----
-648

skipif mysql # not compatible
query I rowsort label-74
SELECT - MAX ( - 1 ) * ( - COALESCE ( + 81, + + COUNT ( ALL - - 77 ) * - 82, - 15 ) ) * - + 8 * - COUNT ( * ) AS col0
----
-648

query I rowsort
SELECT DISTINCT - 12 - 33 col2
----
-45

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

query I rowsort
SELECT - NULLIF ( + 35, - - 28 )
----
-35

query I rowsort
SELECT + 21 * - NULLIF ( + + 19, + + 49 )
----
-399

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-81
SELECT - ( + + COALESCE ( 41, + 25 * + 61 + - NULLIF ( - + 49, 5 * 35 ), + + CAST( NULL AS SIGNED ) ) ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-81
SELECT - ( + + COALESCE ( 41, + 25 * + 61 + - NULLIF ( - + 49, 5 * 35 ), + + CAST ( NULL AS INTEGER ) ) ) AS col2
----
-41

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-84
SELECT ALL - + CAST( + 82 AS SIGNED ) + 98 AS col0, COUNT( * ) AS col2
----
16
1

skipif mysql # not compatible
query II rowsort label-84
SELECT ALL - + CAST ( + 82 AS INTEGER ) + 98 AS col0, COUNT ( * ) AS col2
----
16
1

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

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

query I rowsort
SELECT + 14 * + 23 * - 16 AS col1
----
-5152

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT ALL COUNT( ALL - 31 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL COUNT ( ALL - 31 ) AS col1
----
1

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

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

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

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

query I rowsort
SELECT - 84 + + - 24
----
-108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT - 19 - - COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-92
SELECT - 19 - - COUNT ( * ) AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-93
SELECT DISTINCT 66 DIV 33 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT 66 / 33 AS col2
----
2

query I rowsort
SELECT - 24 * + + 70 * + 49
----
-82320

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-95
SELECT - 30 + COUNT( * ) AS col1, 86 DIV - MAX( DISTINCT + 25 ) + + 39 AS col0
----
-29
36

skipif mysql # not compatible
query II rowsort label-95
SELECT - 30 + COUNT ( * ) AS col1, 86 / - MAX ( DISTINCT + 25 ) + + 39 AS col0
----
-29
36

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT - CASE + + 10 WHEN - 77 * - + 84 THEN NULL WHEN - 88 THEN + 45 * - + 79 / - COUNT( * ) - - + AVG ( DISTINCT - 22 ) ELSE NULL END * - SUM( + 70 ) * - 22 + - + COUNT( * ) / - AVG ( - + 4 ) + - + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-96
SELECT - CASE + + 10 WHEN - 77 * - + 84 THEN NULL WHEN - 88 THEN + 45 * - + 79 / - COUNT ( * ) - - + AVG ( DISTINCT - 22 ) ELSE NULL END * - SUM ( + 70 ) * - 22 + - + COUNT ( * ) / - AVG ( - + 4 ) + - + 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-97
SELECT + COALESCE ( + 37, + MIN( + CASE + CASE + 13 WHEN + NULLIF ( 81, + 15 ) THEN 58 / 15 + 50 + - 21 ELSE NULL END WHEN 57 THEN NULL WHEN - 30 THEN - 62 + - 25 ELSE NULL END ), - 28 + - 64 + + - 97 * + COUNT( * ) + 34 * 84 ) + - - COUNT( * ), MAX( DISTINCT 67 ) * - 85 * - + 41 AS col2
----
38
233495

skipif mysql # not compatible
query II rowsort label-97
SELECT + COALESCE ( + 37, + MIN ( + CASE + CASE + 13 WHEN + NULLIF ( 81, + 15 ) THEN 58 / 15 + 50 + - 21 ELSE NULL END WHEN 57 THEN NULL WHEN - 30 THEN - 62 + - 25 ELSE NULL END ), - 28 + - 64 + + - 97 * + COUNT ( * ) + 34 * 84 ) + - - COUNT ( * ), MAX ( DISTINCT 67 ) * - 85 * - + 41 AS col2
----
38
233495

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-99
SELECT CAST( NULL AS SIGNED ) * + + 17 * + COUNT( * ) * - 70 + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-99
SELECT CAST ( NULL AS INTEGER ) * + + 17 * + COUNT ( * ) * - 70 + + 53
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-100
SELECT - 94 * NULLIF ( - 36, - - COUNT( * ) ) AS col2, - 64
----
3384
-64

skipif mysql # not compatible
query II rowsort label-100
SELECT - 94 * NULLIF ( - 36, - - COUNT ( * ) ) AS col2, - 64
----
3384
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT ALL COUNT( * ) * 79 - + 9 + + 4 - - + 14 col0
----
88

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL COUNT ( * ) * 79 - + 9 + + 4 - - + 14 col0
----
88

query I rowsort
SELECT + 60 * 77 col0
----
4620

query I rowsort
SELECT + - 25 * 37 * - + 51 + - - ( - 29 ) col2
----
47146

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT + 98 * 25 + 55 - + 89 - + COUNT( * )
----
2415

skipif mysql # not compatible
query I rowsort label-105
SELECT + 98 * 25 + 55 - + 89 - + COUNT ( * )
----
2415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-106
SELECT + 6 DIV 33 - - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-106
SELECT + 6 / 33 - - + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT + COALESCE ( - 73, - 94, - + 42 + - 35 ) - + - MAX( - 49 ) col1
----
-122

skipif mysql # not compatible
query I rowsort label-107
SELECT + COALESCE ( - 73, - 94, - + 42 + - 35 ) - + - MAX ( - 49 ) col1
----
-122

query I rowsort
SELECT + 63 + 37 + - NULLIF ( - + 67, - 4 )
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-109
SELECT DISTINCT + COUNT( - ( - 57 ) ) DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-109
SELECT DISTINCT + COUNT ( - ( - 57 ) ) / + 52
----
0

query I rowsort
SELECT - NULLIF ( + 34, + - 60 ) AS col1
----
-34

query I rowsort
SELECT + 29 + - 46 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT ALL + ( - 33 ) * - 86 * - COUNT( * ) - + 77 + + + SUM( 28 ) + - + 11 - + 62 * + 15
----
-3828

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL + ( - 33 ) * - 86 * - COUNT ( * ) - + 77 + + + SUM ( 28 ) + - + 11 - + 62 * + 15
----
-3828

query I rowsort
SELECT + + 43 + - 32 + + 1 + + 2 * - 54 * + 69
----
-7440

query I rowsort
SELECT - 96 * 28 AS col2
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT DISTINCT COUNT( * ) + + COUNT( - 82 ) + + 19 + 20 + 96 + + - 11 * + 78 + + CASE + 85 WHEN - COALESCE ( 69, - 7 ) * 2 THEN 92 ELSE NULL END * COUNT( * ) + + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT COUNT ( * ) + + COUNT ( - 82 ) + + 19 + 20 + 96 + + - 11 * + 78 + + CASE + 85 WHEN - COALESCE ( 69, - 7 ) * 2 THEN 92 ELSE NULL END * COUNT ( * ) + + 15 AS col1
----
NULL

query I rowsort
SELECT + 43 + ( + + 75 ) + + 72
----
190

query I rowsort
SELECT + 61 * - 26 col1
----
-1586

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT DISTINCT CASE ( + MAX( DISTINCT + 14 ) ) WHEN - + 91 THEN + + 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT CASE ( + MAX ( DISTINCT + 14 ) ) WHEN - + 91 THEN + + 41 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL COALESCE ( - - 99, 97, - + 32, 54 ) + + 30
----
129

query II rowsort
SELECT - 55 AS col1, 53
----
-55
53

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

skipif mysql # not compatible
query I rowsort label-121
SELECT + 25 + + + 70 * - COUNT ( * ) AS col0
----
-45

query II rowsort
SELECT ALL NULLIF ( - 37, + 25 ) AS col1, 53 AS col2
----
-37
53

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

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

query I rowsort
SELECT - 71 + + + 40 AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-125
SELECT - COALESCE ( + 41, + ( + MAX( ALL 47 ) ) + CAST( NULL AS SIGNED ) ) DIV - 40
----
1

skipif mysql # not compatible
query I rowsort label-125
SELECT - COALESCE ( + 41, + ( + MAX ( ALL 47 ) ) + CAST ( NULL AS INTEGER ) ) / - 40
----
1

query I rowsort
SELECT - ( - 15 ) + 88 + - - 31
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-127
SELECT DISTINCT 64 DIV - 4 - + 45 + + - 92 + 89 * + COUNT( * ) + + - 83 * - COUNT( * ) + 25 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT 64 / - 4 - + 45 + + - 92 + 89 * + COUNT ( * ) + + - 83 * - COUNT ( * ) + 25 AS col0
----
44

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT + + 79 DIV + SUM( + - 78 ) + 42
----
41

skipif mysql # not compatible
query I rowsort label-129
SELECT + + 79 / + SUM ( + - 78 ) + 42
----
41

query I rowsort
SELECT ALL + + ( - + 16 ) col0
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-131
SELECT + 81 + 45 * + - 9 * - + 77 * + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT + 81 + 45 * + - 9 * - + 77 * + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT - + 99 * + 88
----
-8712

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT - 70 * - + COUNT( * ) * + 25 * + 50 + - 59 AS col2
----
87441

skipif mysql # not compatible
query I rowsort label-133
SELECT - 70 * - + COUNT ( * ) * + 25 * + 50 + - 59 AS col2
----
87441

query I rowsort
SELECT DISTINCT + - 37 + - + 87 * - + 20 + + - 36 AS col1
----
1667

query I rowsort
SELECT ALL 91 * ( - 31 )
----
-2821

query I rowsort
SELECT - 61 + - 36 + - 86
----
-183

query I rowsort
SELECT ALL + 27 + - 35
----
-8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-139
SELECT + - CAST( - + MIN( - 85 ) AS SIGNED ), - COUNT( * ) AS col2
----
-85
-1

skipif mysql # not compatible
query II rowsort label-139
SELECT + - CAST ( - + MIN ( - 85 ) AS INTEGER ), - COUNT ( * ) AS col2
----
-85
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-140
SELECT + 83 + - COUNT( * ) * + - CAST( NULL AS SIGNED ), + 93 * + MAX( - 53 ) col0
----
NULL
-4929

skipif mysql # not compatible
query II rowsort label-140
SELECT + 83 + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ), + 93 * + MAX ( - 53 ) col0
----
NULL
-4929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-141
SELECT ALL + CASE COALESCE ( + + 66, 13 + COUNT( * ) + - - ( + - SUM( - 10 ) ) ) WHEN - 32 THEN NULL WHEN + + 3 THEN + COUNT( * ) DIV 94 ELSE - - 43 + - - 22 END + 89 - - - ( + 96 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL + CASE COALESCE ( + + 66, 13 + COUNT ( * ) + - - ( + - SUM ( - 10 ) ) ) WHEN - 32 THEN NULL WHEN + + 3 THEN + COUNT ( * ) / 94 ELSE - - 43 + - - 22 END + 89 - - - ( + 96 ) AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-142
SELECT + 27 * - 64 + - COUNT( * ) col1, + ( - 5 ) DIV + COUNT( * ) * + COUNT( * ) * COUNT( * )
----
-1729
-5

skipif mysql # not compatible
query II rowsort label-142
SELECT + 27 * - 64 + - COUNT ( * ) col1, + ( - 5 ) / + COUNT ( * ) * + COUNT ( * ) * COUNT ( * )
----
-1729
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT COALESCE ( + - 51, + 1 - + 17, - 95 + - + ( MIN( ALL 34 ) ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-143
SELECT COALESCE ( + - 51, + 1 - + 17, - 95 + - + ( MIN ( ALL 34 ) ) ) AS col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-144
SELECT - + CAST( + 13 AS SIGNED ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-144
SELECT - + CAST ( + 13 AS INTEGER ) AS col1
----
-13

query I rowsort
SELECT + 10 + + 32 AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT ALL 80 + 25 DIV 49 - - 47 AS col2
----
127

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL 80 + 25 / 49 - - 47 AS col2
----
127

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

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT 90 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-148
SELECT 70 col2, MAX( + - 58 ) AS col2
----
70
-58

skipif mysql # not compatible
query II rowsort label-148
SELECT 70 col2, MAX ( + - 58 ) AS col2
----
70
-58

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

skipif mysql # not compatible
query I rowsort label-149
SELECT CAST ( - ( 40 ) AS INTEGER ) * 59 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-150
SELECT 35 - - MIN( - 87 ) * - CAST( 90 AS DECIMAL ) / - CASE 93 WHEN - - 23 THEN + + ( - 83 ) * - - 57 END * + + MIN( ALL - 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-150
SELECT 35 - - MIN ( - 87 ) * - CAST ( 90 AS REAL ) / - CASE 93 WHEN - - 23 THEN + + ( - 83 ) * - - 57 END * + + MIN ( ALL - 93 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-151
SELECT 44 + + 11 + - + 99 - - SUM( ALL - 94 ) * - - COUNT( * ) + - 7 DIV + 63 * 22 * - 42 * - 51 AS col2, - 21
----
-138
-21

skipif mysql # not compatible
query II rowsort label-151
SELECT 44 + + 11 + - + 99 - - SUM ( ALL - 94 ) * - - COUNT ( * ) + - 7 / + 63 * 22 * - 42 * - 51 AS col2, - 21
----
-138
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT 80 DIV + - 20 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-152
SELECT 80 / + - 20 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT 86 + - 7 * COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-153
SELECT 86 + - 7 * COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-154
SELECT 0 AS col2, COUNT( + + 53 )
----
0
1

skipif mysql # not compatible
query II rowsort label-154
SELECT 0 AS col2, COUNT ( + + 53 )
----
0
1

query I rowsort
SELECT ALL 48 - - 51 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-156
SELECT ALL 65 col1, + CASE 7 WHEN - ( - 7 ) * 89 + + COALESCE ( + 40, - 66 ) THEN NULL ELSE - + CAST( - - COUNT( * ) AS SIGNED ) END
----
65
-1

skipif mysql # not compatible
query II rowsort label-156
SELECT ALL 65 col1, + CASE 7 WHEN - ( - 7 ) * 89 + + COALESCE ( + 40, - 66 ) THEN NULL ELSE - + CAST ( - - COUNT ( * ) AS INTEGER ) END
----
65
-1

query I rowsort
SELECT 70 - 62
----
8

query II rowsort
SELECT - 21 AS col2, + 60 * - 76
----
-21
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ( + 52 ) * - 11 - - 72 * + SUM( - 57 ) * + CASE + 69 WHEN + 32 THEN - - ( - + 65 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-159
SELECT ( + 52 ) * - 11 - - 72 * + SUM ( - 57 ) * + CASE + 69 WHEN + 32 THEN - - ( - + 65 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT 2 + SUM( - + 25 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-160
SELECT 2 + SUM ( - + 25 ) AS col1
----
-23

query II rowsort
SELECT + + 83 AS col1, - 28 * + 5 * 59 + 33
----
83
-8227

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT DISTINCT + 33 * + MIN( DISTINCT 80 ) + 89
----
2729

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT + 33 * + MIN ( DISTINCT 80 ) + 89
----
2729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-163
SELECT - COUNT( * ) DIV NULLIF ( COUNT( * ), + 22 + + - 94 + 69 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-163
SELECT - COUNT ( * ) / NULLIF ( COUNT ( * ), + 22 + + - 94 + 69 ) AS col0
----
-1

query II rowsort
SELECT ALL - 29 AS col1, ( 94 )
----
-29
94

query I rowsort
SELECT DISTINCT - 0 * + 25 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT ALL + 42 + CASE + + 49 WHEN 71 + - 21 THEN COUNT( + 33 ) WHEN 77 + - 31 * - 86 * 27 THEN NULL END * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + 42 + CASE + + 49 WHEN 71 + - 21 THEN COUNT ( + 33 ) WHEN 77 + - 31 * - 86 * 27 THEN NULL END * + 31
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-167
SELECT - 98 + - - 22 * CAST( 32 AS SIGNED ) AS col2
----
606

skipif mysql # not compatible
query I rowsort label-167
SELECT - 98 + - - 22 * CAST ( 32 AS INTEGER ) AS col2
----
606

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-169
SELECT - 81 DIV + - 76 col2
----
1

skipif mysql # not compatible
query I rowsort label-169
SELECT - 81 / + - 76 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT 18 * + CASE - - 44 WHEN COUNT( * ) THEN - - 80 + - 7 * - + 21 * + - 34 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT 18 * + CASE - - 44 WHEN COUNT ( * ) THEN - - 80 + - 7 * - + 21 * + - 34 END AS col2
----
NULL

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

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

query I rowsort
SELECT 77 * - 67 AS col0
----
-5159

query I rowsort
SELECT ALL + - 59 + - COALESCE ( 16, 90 ) + - 84 * - - 38 * - + 52 AS col0
----
165909

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT - - 8 * + - 64 - COUNT( * )
----
-513

skipif mysql # not compatible
query I rowsort label-174
SELECT - - 8 * + - 64 - COUNT ( * )
----
-513

query II rowsort
SELECT ALL - ( - 74 ) AS col0, 37
----
74
37

query I rowsort
SELECT ALL + 62 * + 20 * COALESCE ( + 73, + 6 * + 16, - + ( + 34 ) )
----
90520

onlyif mysql # DIV for integer division: 
query I rowsort label-177
SELECT ALL + 90 + + 76 DIV 23 - + - 26 + + + 52 + - 46
----
125

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL + 90 + + 76 / 23 - + - 26 + + + 52 + - 46
----
125

query I rowsort
SELECT 35 + + 70
----
105

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

skipif mysql # not compatible
query I rowsort label-179
SELECT 44 + - 27 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT SUM( - + 5 ) - 29 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-180
SELECT SUM ( - + 5 ) - 29 AS col1
----
-34

query I rowsort
SELECT 89 + COALESCE ( - + 84, + 93 ) AS col0
----
5

query I rowsort
SELECT 60 * + - 55 * + ( 24 )
----
-79200

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT DISTINCT COUNT( - 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-183
SELECT DISTINCT COUNT ( - 25 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT DISTINCT 0 DIV - 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT 0 / - 77 AS col2
----
0

query I rowsort
SELECT 79 + - 33 + 99
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-186
SELECT ALL 35 * - + ( + COUNT( * ) ), + 9 AS col1
----
-35
9

skipif mysql # not compatible
query II rowsort label-186
SELECT ALL 35 * - + ( + COUNT ( * ) ), + 9 AS col1
----
-35
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-187
SELECT DISTINCT 47 DIV + 63 * + - CASE - COUNT( - - 40 ) WHEN - 90 THEN NULL ELSE + 20 + 2 END col2
----
0

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT 47 / + 63 * + - CASE - COUNT ( - - 40 ) WHEN - 90 THEN NULL ELSE + 20 + 2 END col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT 76 + + - ( + MIN( + 76 ) ) * 64
----
-4788

skipif mysql # not compatible
query I rowsort label-188
SELECT 76 + + - ( + MIN ( + 76 ) ) * 64
----
-4788

query I rowsort
SELECT 11 * - 77 AS col1
----
-847

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-190
SELECT ALL 99 * + - 82 AS col1, + CAST( NULL AS SIGNED )
----
-8118
NULL

skipif mysql # not compatible
query II rowsort label-190
SELECT ALL 99 * + - 82 AS col1, + CAST ( NULL AS INTEGER )
----
-8118
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT + COUNT( * ) * 19 - - 88 col1
----
107

skipif mysql # not compatible
query I rowsort label-191
SELECT + COUNT ( * ) * 19 - - 88 col1
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-192
SELECT + + COUNT( * ) + - 60 + - 19 + + 51 DIV - 57 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-192
SELECT + + COUNT ( * ) + - 60 + - 19 + + 51 / - 57 AS col1
----
-78

query I rowsort
SELECT DISTINCT 28 * - 21 + 91 AS col2
----
-497

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT DISTINCT 67 + - + MAX( ALL + + 65 ) * - 37
----
2472

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT 67 + - + MAX ( ALL + + 65 ) * - 37
----
2472

onlyif mysql # aggregate syntax: 
query II rowsort label-195
SELECT ALL - 27 * - - 94 + - 35 - 78 * + + CASE COUNT( * ) WHEN 82 THEN NULL WHEN + + ( - - 13 ) THEN NULL WHEN + 88 THEN - ( - + 92 ) END AS col1, - 46 col0
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-195
SELECT ALL - 27 * - - 94 + - 35 - 78 * + + CASE COUNT ( * ) WHEN 82 THEN NULL WHEN + + ( - - 13 ) THEN NULL WHEN + 88 THEN - ( - + 92 ) END AS col1, - 46 col0
----
NULL
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-196
SELECT + + 66 + - 40, CAST( NULL AS SIGNED ) - - 69 AS col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-196
SELECT + + 66 + - 40, CAST ( NULL AS INTEGER ) - - 69 AS col1
----
26
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-197
SELECT ALL - + NULLIF ( + - 50, + + 82 ) * + COUNT( * ) + - 36 AS col2, 75
----
14
75

skipif mysql # not compatible
query II rowsort label-197
SELECT ALL - + NULLIF ( + - 50, + + 82 ) * + COUNT ( * ) + - 36 AS col2, 75
----
14
75

onlyif mysql # DIV for integer division: 
query I rowsort label-198
SELECT + 38 - - 81 + + - 82 DIV - 64
----
120

skipif mysql # not compatible
query I rowsort label-198
SELECT + 38 - - 81 + + - 82 / - 64
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-199
SELECT DISTINCT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2, - 86
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-199
SELECT DISTINCT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2, - 86
----
NULL
-86

query I rowsort
SELECT ALL + 98 * + - 84 + + 64 AS col1
----
-8168

query I rowsort
SELECT 99 * 22 + - 96
----
2082

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

skipif mysql # not compatible
query II rowsort label-202
SELECT ( - COUNT ( * ) ), + 95 col2
----
-1
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT CAST( - 89 AS SIGNED ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-203
SELECT CAST ( - 89 AS INTEGER ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-204
SELECT + MIN( + COALESCE ( - 59, - NULLIF ( + 33, 92 ), 0 + + 59 + ( + ( - + NULLIF ( - 69, + ( - - 65 ) ) ) ) - - 2 ) ) col2, ( - 67 ) AS col2
----
-59
-67

skipif mysql # not compatible
query II rowsort label-204
SELECT + MIN ( + COALESCE ( - 59, - NULLIF ( + 33, 92 ), 0 + + 59 + ( + ( - + NULLIF ( - 69, + ( - - 65 ) ) ) ) - - 2 ) ) col2, ( - 67 ) AS col2
----
-59
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL - ( - - CASE SUM( 65 ) WHEN + 38 THEN - 4 / - + 28 * + 22 END ) * + - 41 + - NULLIF ( + - ( + 84 ), - 12 * 37 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL - ( - - CASE SUM ( 65 ) WHEN + 38 THEN - 4 / - + 28 * + 22 END ) * + - 41 + - NULLIF ( + - ( + 84 ), - 12 * 37 ) AS col2
----
NULL

query I rowsort
SELECT - - 89 + + 64 col2
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-207
SELECT ALL - 82 * 22 - - CASE - 41 WHEN - CAST( NULL AS SIGNED ) THEN + 51 WHEN + 42 * + MAX( - 44 ) + CASE - CAST( COUNT( * ) AS DECIMAL ) WHEN + + MIN( ALL + 98 ) THEN - 68 ELSE NULL END * 15 + 42 THEN + 6 WHEN - 68 THEN NULL ELSE - ( - 93 ) END + - COALESCE ( 94, + - 60 ) DIV - CASE 67 WHEN + 49 THEN - + 35 * 34 WHEN + 88 + + 56 * - 70 THEN CAST( - 57 AS SIGNED ) ELSE 81 END AS col0
----
-1710

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL - 82 * 22 - - CASE - 41 WHEN - CAST ( NULL AS INTEGER ) THEN + 51 WHEN + 42 * + MAX ( - 44 ) + CASE - CAST ( COUNT ( * ) AS REAL ) WHEN + + MIN ( ALL + 98 ) THEN - 68 ELSE NULL END * 15 + 42 THEN + 6 WHEN - 68 THEN NULL ELSE - ( - 93 ) END + - COALESCE ( 94, + - 60 ) / - CASE 67 WHEN + 49 THEN - + 35 * 34 WHEN + 88 + + 56 * - 70 THEN CAST ( - 57 AS INTEGER ) ELSE 81 END AS col0
----
-1710

onlyif mysql # aggregate syntax: 
query II rowsort label-208
SELECT + SUM( ALL - + 59 ) AS col1, - 69 * + - 75
----
-59
5175

skipif mysql # not compatible
query II rowsort label-208
SELECT + SUM ( ALL - + 59 ) AS col1, - 69 * + - 75
----
-59
5175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-209
SELECT ALL CAST( NULL AS SIGNED ) * 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL CAST ( NULL AS INTEGER ) * 35 AS col1
----
NULL

query I rowsort
SELECT ( + ( - 17 ) ) * - 64 + - - 9 AS col2
----
1097

query I rowsort
SELECT + 2 * + 8 col1
----
16

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

skipif mysql # not compatible
query I rowsort label-212
SELECT COUNT ( 91 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-213
SELECT + ( 91 ) * - - CAST( NULL AS SIGNED ) * + - 5 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-213
SELECT + ( 91 ) * - - CAST ( NULL AS INTEGER ) * + - 5 + - COUNT ( * )
----
NULL

query I rowsort
SELECT - NULLIF ( - 76, + 32 ) + - - 30
----
106

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

skipif mysql # not compatible
query II rowsort label-215
SELECT COUNT ( * ) AS col1, 48 AS col2
----
1
48

query II rowsort
SELECT 25 AS col0, ( - ( + 64 ) ) AS col1
----
25
-64

query I rowsort
SELECT - 94 - + 16 col1
----
-110

query I rowsort
SELECT - 0 * - - 67
----
0

query I rowsort
SELECT ALL - 23 * 97 AS col0
----
-2231

query I rowsort
SELECT - 12 * + 64
----
-768

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-221
SELECT + 94 + COUNT( * ) DIV - 61, 74 AS col1
----
94
74

skipif mysql # not compatible
query II rowsort label-221
SELECT + 94 + COUNT ( * ) / - 61, 74 AS col1
----
94
74

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-223
SELECT - CAST( ( + COUNT( * ) ) AS SIGNED ), + 53 AS col1
----
-1
53

skipif mysql # not compatible
query II rowsort label-223
SELECT - CAST ( ( + COUNT ( * ) ) AS INTEGER ), + 53 AS col1
----
-1
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-224
SELECT DISTINCT + CASE - 96 WHEN 70 + SUM( DISTINCT + 41 ) THEN + 2 ELSE - - 83 - - + 31 + - 43 DIV - 24 END + - 3 AS col0
----
112

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT + CASE - 96 WHEN 70 + SUM ( DISTINCT + 41 ) THEN + 2 ELSE - - 83 - - + 31 + - 43 / - 24 END + - 3 AS col0
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-225
SELECT - COUNT( * ) DIV + - 75 * - 2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT DISTINCT COALESCE ( COUNT( DISTINCT - + 70 ), - 66 ) + + 98
----
99

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT COALESCE ( COUNT ( DISTINCT - + 70 ), - 66 ) + + 98
----
99

query I rowsort
SELECT + + 25 col2
----
25

query I rowsort
SELECT ALL + 90 * 82 AS col2
----
7380

query I rowsort
SELECT ALL 46 * + + 49
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT + 16 * + - COUNT( ALL + + 87 )
----
-16

skipif mysql # not compatible
query I rowsort label-230
SELECT + 16 * + - COUNT ( ALL + + 87 )
----
-16

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-232
SELECT ALL + 71 DIV 8 + COUNT( * ) - + COUNT( * ) + + + 39 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL + 71 / 8 + COUNT ( * ) - + COUNT ( * ) + + + 39 AS col1
----
47

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

skipif mysql # not compatible
query I rowsort label-233
SELECT - 83 + - - 71 + - + ( - COUNT ( * ) ) AS col1
----
-11

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-235
SELECT - CASE + - 35 WHEN + + COUNT( * ) * 49 + 44 * - + 63 * 19 + - - 88 * + + 53 THEN - - CAST( NULL AS SIGNED ) ELSE - - COALESCE ( + 54, - COUNT( * ) ) END * + - 54 / - - CAST( NULL AS SIGNED ) * + COUNT( * ) + 50 + - + 18 - 71 - 17 * + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT - CASE + - 35 WHEN + + COUNT ( * ) * 49 + 44 * - + 63 * 19 + - - 88 * + + 53 THEN - - CAST ( NULL AS INTEGER ) ELSE - - COALESCE ( + 54, - COUNT ( * ) ) END * + - 54 / - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 50 + - + 18 - 71 - 17 * + 9 AS col2
----
NULL

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

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

query I rowsort
SELECT 99 * + 36 + - - 54 + - + 61
----
3557

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-239
SELECT - MIN( + ( 14 ) ) * - + 57 DIV 57 + + 36 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-239
SELECT - MIN ( + ( 14 ) ) * - + 57 / 57 + + 36 AS col0
----
50

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT + COUNT( * ) * 67 + + 69 + 71
----
207

skipif mysql # not compatible
query I rowsort label-243
SELECT + COUNT ( * ) * 67 + + 69 + 71
----
207

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

skipif mysql # not compatible
query I rowsort label-244
SELECT + COUNT ( * ) / + 43
----
0

query I rowsort
SELECT + 71 + + - 32
----
39

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

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

query I rowsort
SELECT + 88 * + 47
----
4136

query I rowsort
SELECT - 53 - + 25 AS col0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-249
SELECT 21 DIV + - 18
----
-1

skipif mysql # not compatible
query I rowsort label-249
SELECT 21 / + - 18
----
-1

query II rowsort
SELECT 24 + + + 77, + 60 * + 88 * 79 AS col1
----
101
417120

query I rowsort
SELECT DISTINCT 88 + 18 + + + NULLIF ( 64, - 66 * - 28 ) + + 72 - + + 94 - + + 38 * 51
----
-1790

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT ALL - MAX( 19 ) + + 62 col2
----
43

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL - MAX ( 19 ) + + 62 col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-253
SELECT 1 * + - 57 AS col2, - 77 + - + NULLIF ( + 46, 20 * - - 24 * + 9 ) + - + ( - + 75 ) * + - 83 * + - 92 + + MAX( + 68 )
----
-57
572645

skipif mysql # not compatible
query II rowsort label-253
SELECT 1 * + - 57 AS col2, - 77 + - + NULLIF ( + 46, 20 * - - 24 * + 9 ) + - + ( - + 75 ) * + - 83 * + - 92 + + MAX ( + 68 )
----
-57
572645

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT DISTINCT 64 + + + 0 + + 92 * - 91 + + - COUNT( * ) AS col0
----
-8309

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT 64 + + + 0 + + 92 * - 91 + + - COUNT ( * ) AS col0
----
-8309

query I rowsort
SELECT 83 + 14 * + 73 col2
----
1105

query I rowsort
SELECT ALL - 55 * - 73 AS col2
----
4015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-257
SELECT ALL ( + 54 ) AS col0, COUNT( * ) + + COUNT( * ) - + CAST( - 0 AS SIGNED ) col1
----
54
2

skipif mysql # not compatible
query II rowsort label-257
SELECT ALL ( + 54 ) AS col0, COUNT ( * ) + + COUNT ( * ) - + CAST ( - 0 AS INTEGER ) col1
----
54
2

query I rowsort
SELECT + 37 + + 58 - + 80 AS col0
----
15

query I rowsort
SELECT + 51 + + 22
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-260
SELECT - COALESCE ( - - NULLIF ( + 63, - CAST( NULL AS SIGNED ) + + 80 + + - 45 ), COUNT( * ) - - CAST( - ( - + 95 ) AS SIGNED ) * + 65 * - 35, + 87 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-260
SELECT - COALESCE ( - - NULLIF ( + 63, - CAST ( NULL AS INTEGER ) + + 80 + + - 45 ), COUNT ( * ) - - CAST ( - ( - + 95 ) AS INTEGER ) * + 65 * - 35, + 87 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT ( - 42 ) + + NULLIF ( + 54, - 91 * - 95 * - COUNT( * ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-261
SELECT ( - 42 ) + + NULLIF ( + 54, - 91 * - 95 * - COUNT ( * ) ) AS col2
----
12

query I rowsort
SELECT ( + 35 ) + + - ( + 9 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT DISTINCT + 61 * + MAX( - 75 )
----
-4575

skipif mysql # not compatible
query I rowsort label-263
SELECT DISTINCT + 61 * + MAX ( - 75 )
----
-4575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-264
SELECT DISTINCT + CASE - MAX( + 25 ) WHEN - 43 * - 66 THEN - 8 WHEN + 12 THEN NULL ELSE - CAST( NULL AS SIGNED ) END - + 20 + + 45 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT + CASE - MAX ( + 25 ) WHEN - 43 * - 66 THEN - 8 WHEN + 12 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END - + 20 + + 45 col2
----
NULL

query I rowsort
SELECT 63 + - - 8
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT ALL + 36 - COUNT( * ) + + SUM( + 40 ) * ( + 89 ) + + 68 - - ( + 60 ) AS col1
----
3723

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL + 36 - COUNT ( * ) + + SUM ( + 40 ) * ( + 89 ) + + 68 - - ( + 60 ) AS col1
----
3723

onlyif mysql # DIV for integer division: 
query I rowsort label-267
SELECT ALL ( + 96 ) DIV + 78 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL ( + 96 ) / + 78 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT + 44 * - 45 + + MIN( ALL - 90 ) + + 35 + 93 + 6 * + COUNT( * ) * - 3 * + 59 AS col1
----
-3004

skipif mysql # not compatible
query I rowsort label-268
SELECT + 44 * - 45 + + MIN ( ALL - 90 ) + + 35 + 93 + 6 * + COUNT ( * ) * - 3 * + 59 AS col1
----
-3004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-269
SELECT + - MIN( DISTINCT CAST( 98 AS SIGNED ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-269
SELECT + - MIN ( DISTINCT CAST ( 98 AS INTEGER ) ) AS col0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-270
SELECT DISTINCT + - 11 DIV - SUM( + + 55 ) - + - MIN( - - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-270
SELECT DISTINCT + - 11 / - SUM ( + + 55 ) - + - MIN ( - - 75 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-271
SELECT + 1 DIV 56 + + SUM( ALL - 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-271
SELECT + 1 / 56 + + SUM ( ALL - 46 ) AS col2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-272
SELECT SUM( ALL 36 ) DIV - ( + NULLIF ( 65, 31 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-272
SELECT SUM ( ALL 36 ) / - ( + NULLIF ( 65, 31 ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-273
SELECT DISTINCT + 13 DIV - + 13
----
-1

skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT + 13 / - + 13
----
-1

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

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

query I rowsort
SELECT + 38 * - ( + 61 ) + - 34
----
-2352

query I rowsort
SELECT DISTINCT - 41 * 45
----
-1845

onlyif mysql # aggregate syntax: 
query II rowsort label-277
SELECT ALL - 50, COUNT( * ) + + COUNT( + + 32 ) - + + COUNT( * ) * + 33 col2
----
-50
-31

skipif mysql # not compatible
query II rowsort label-277
SELECT ALL - 50, COUNT ( * ) + + COUNT ( + + 32 ) - + + COUNT ( * ) * + 33 col2
----
-50
-31

query II rowsort
SELECT DISTINCT - 54 AS col1, 1
----
-54
1

onlyif mysql # aggregate syntax: 
query II rowsort label-279
SELECT + 3 AS col2, COALESCE ( 25, 64, - NULLIF ( + 75, 24 * + - COUNT( * ) + - 88 ) ) - - 70
----
3
95

skipif mysql # not compatible
query II rowsort label-279
SELECT + 3 AS col2, COALESCE ( 25, 64, - NULLIF ( + 75, 24 * + - COUNT ( * ) + - 88 ) ) - - 70
----
3
95

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT SUM( DISTINCT + - ( - 84 ) ) * - - 0 * 94 * + 57
----
0

skipif mysql # not compatible
query I rowsort label-280
SELECT SUM ( DISTINCT + - ( - 84 ) ) * - - 0 * 94 * + 57
----
0

query I rowsort
SELECT DISTINCT 77 + - 30 AS col0
----
47

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

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

query I rowsort
SELECT ALL - 73 * - - 76 * 79 AS col0
----
-438292

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT MIN( + CASE 33 WHEN - 22 THEN 66 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-284
SELECT MIN ( + CASE 33 WHEN - 22 THEN 66 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-285
SELECT - + 16, + COALESCE ( MAX( + + 46 ), 55, + 90 ) * - + 97 + - 4 - 94 * + 29 * 29 col1
----
-16
-83520

skipif mysql # not compatible
query II rowsort label-285
SELECT - + 16, + COALESCE ( MAX ( + + 46 ), 55, + 90 ) * - + 97 + - 4 - 94 * + 29 * 29 col1
----
-16
-83520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-286
SELECT 59 + - 27 + + 56 + + 26 + + - 37 * - + COUNT( * ) DIV COUNT( * )
----
151

skipif mysql # not compatible
query I rowsort label-286
SELECT 59 + - 27 + + 56 + + 26 + + - 37 * - + COUNT ( * ) / COUNT ( * )
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT DISTINCT 74 - 84 * + - COUNT( ALL + + 30 )
----
158

skipif mysql # not compatible
query I rowsort label-287
SELECT DISTINCT 74 - 84 * + - COUNT ( ALL + + 30 )
----
158

query I rowsort
SELECT - NULLIF ( 85, 96 ) + 78 AS col2
----
-7

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

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT - COUNT ( * ) - + 11 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-290
SELECT DISTINCT - 57, 11 * CASE + + COUNT( * ) WHEN + 64 + + - 80 + - 2 * + 65 THEN NULL WHEN + 92 THEN + 34 + COUNT( * ) ELSE NULL END AS col0
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-290
SELECT DISTINCT - 57, 11 * CASE + + COUNT ( * ) WHEN + 64 + + - 80 + - 2 * + 65 THEN NULL WHEN + 92 THEN + 34 + COUNT ( * ) ELSE NULL END AS col0
----
-57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT ALL MIN( DISTINCT - - 90 )
----
90

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL MIN ( DISTINCT - - 90 )
----
90

query II rowsort
SELECT + 59 AS col0, 31 AS col2
----
59
31

query I rowsort
SELECT DISTINCT - COALESCE ( 1, - 58 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-294
SELECT CAST( 22 AS SIGNED ) * 65 col1
----
1430

skipif mysql # not compatible
query I rowsort label-294
SELECT CAST ( 22 AS INTEGER ) * 65 col1
----
1430

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

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

query I rowsort
SELECT - + 11 AS col1
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-297
SELECT ALL + + 8 * 7 * + 79, - 45 DIV + 64 * 70 col2
----
4424
0

skipif mysql # not compatible
query II rowsort label-297
SELECT ALL + + 8 * 7 * + 79, - 45 / + 64 * 70 col2
----
4424
0

query I rowsort
SELECT - 92 * + + 21
----
-1932

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

skipif mysql # not compatible
query II rowsort label-299
SELECT COUNT ( * ) AS col1, + 28
----
1
28

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

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

query II rowsort
SELECT ALL - 99, 39 + + NULLIF ( - + 19, 74 ) AS col1
----
-99
20

onlyif mysql # aggregate syntax: 
query II rowsort label-302
SELECT DISTINCT COUNT( * ) * + - 58 + + 34 * + 37 * NULLIF ( - 94, - COUNT( * ) / + 45 ) * 96 + + 99 - + 50 AS col0, 87 + - - COALESCE ( + 26, + - 77, 39 * - - 77 ) - - 50 * + 23 AS col0
----
-11352201
1263

skipif mysql # not compatible
query II rowsort label-302
SELECT DISTINCT COUNT ( * ) * + - 58 + + 34 * + 37 * NULLIF ( - 94, - COUNT ( * ) / + 45 ) * 96 + + 99 - + 50 AS col0, 87 + - - COALESCE ( + 26, + - 77, 39 * - - 77 ) - - 50 * + 23 AS col0
----
-11352201
1263

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-303
SELECT ALL MAX( + 2 ) * - - 0 + - 81 DIV + 48 + - 64 AS col2, - 12 DIV - SUM( ALL + 4 )
----
-65
3

skipif mysql # not compatible
query II rowsort label-303
SELECT ALL MAX ( + 2 ) * - - 0 + - 81 / + 48 + - 64 AS col2, - 12 / - SUM ( ALL + 4 )
----
-65
3

query I rowsort
SELECT 60 + 97
----
157

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT + COUNT( * ) * 34 * + 98 + 23 * + - 52 + + 59 * + + 60 + 88
----
5764

skipif mysql # not compatible
query I rowsort label-308
SELECT + COUNT ( * ) * 34 * + 98 + 23 * + - 52 + + 59 * + + 60 + 88
----
5764

onlyif mysql # aggregate syntax: 
query III rowsort label-309
SELECT + 59 AS col1, - 6 AS col0, CASE + COUNT( * ) WHEN + 89 THEN + 18 * - MIN( ALL 49 ) END AS col0
----
59
-6
NULL

skipif mysql # not compatible
query III rowsort label-309
SELECT + 59 AS col1, - 6 AS col0, CASE + COUNT ( * ) WHEN + 89 THEN + 18 * - MIN ( ALL 49 ) END AS col0
----
59
-6
NULL

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

skipif mysql # not compatible
query I rowsort label-310
SELECT SUM ( - - ( + 68 ) )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-311
SELECT DISTINCT + 56 col2, COUNT( * )
----
56
1

skipif mysql # not compatible
query II rowsort label-311
SELECT DISTINCT + 56 col2, COUNT ( * )
----
56
1

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL 36 + 30 + MIN( DISTINCT + 74 ) + - 50 * + 52 * 38 * 57 * + - 76 AS col2
----
428001740

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL 36 + 30 + MIN ( DISTINCT + 74 ) + - 50 * + 52 * 38 * 57 * + - 76 AS col2
----
428001740

query I rowsort
SELECT - 41 + 54 AS col2
----
13

query I rowsort
SELECT - 18 + + 69 + 96
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT SUM( + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-315
SELECT SUM ( + 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT DISTINCT + 93 * MIN( NULLIF ( + + 63, - 36 ) ) AS col2
----
5859

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT + 93 * MIN ( NULLIF ( + + 63, - 36 ) ) AS col2
----
5859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-317
SELECT - CAST( - 73 AS SIGNED ) + COALESCE ( + - 3, - 28 )
----
70

skipif mysql # not compatible
query I rowsort label-317
SELECT - CAST ( - 73 AS INTEGER ) + COALESCE ( + - 3, - 28 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-318
SELECT + 87 * 0 DIV - 69 * + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-318
SELECT + 87 * 0 / - 69 * + 73 AS col2
----
0

query I rowsort
SELECT - 24 + + 60 * + CASE - 51 WHEN + - 54 THEN 91 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-320
SELECT + 93 - ( + SUM( 59 ) ) - - CASE 79 WHEN - + 85 + - + COUNT( * ) THEN 96 / MAX( ALL - 27 ) * - - CAST( + COUNT( * ) AS SIGNED ) END + - 93 * + + COUNT( * ) * ( + + 70 ) / - - 74 + + MIN( + - 46 ) + 75 - + SUM( 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT + 93 - ( + SUM ( 59 ) ) - - CASE 79 WHEN - + 85 + - + COUNT ( * ) THEN 96 / MAX ( ALL - 27 ) * - - CAST ( + COUNT ( * ) AS INTEGER ) END + - 93 * + + COUNT ( * ) * ( + + 70 ) / - - 74 + + MIN ( + - 46 ) + 75 - + SUM ( 34 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-321
SELECT ALL - 87 AS col2, + 23 DIV 18 * - 24
----
-87
-24

skipif mysql # not compatible
query II rowsort label-321
SELECT ALL - 87 AS col2, + 23 / 18 * - 24
----
-87
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-322
SELECT COALESCE ( - 11, + CAST( - - 2 AS SIGNED ) + + 35 * + 7 + - 37 * + 24 + 64 * + 46 * + 10 * 67 ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-322
SELECT COALESCE ( - 11, + CAST ( - - 2 AS INTEGER ) + + 35 * + 7 + - 37 * + 24 + 64 * + 46 * + 10 * 67 ) col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-323
SELECT 57 AS col1, + COALESCE ( - + 89, - COUNT( * ) DIV - 2, - 74 * + 20 - COUNT( * ) + + + 74 ) - + COUNT( - - 65 ) + CAST( - - 99 AS SIGNED ) + - 57 AS col0
----
57
-48

skipif mysql # not compatible
query II rowsort label-323
SELECT 57 AS col1, + COALESCE ( - + 89, - COUNT ( * ) / - 2, - 74 * + 20 - COUNT ( * ) + + + 74 ) - + COUNT ( - - 65 ) + CAST ( - - 99 AS INTEGER ) + - 57 AS col0
----
57
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-324
SELECT + 7 + - 55 + + 9 DIV + 5 + - 2 + + + 45 + 48 + - 58 * 77 DIV 60 * - + COUNT( * ) DIV CAST( - COUNT( * ) AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-324
SELECT + 7 + - 55 + + 9 / + 5 + - 2 + + + 45 + 48 + - 58 * 77 / 60 * - + COUNT ( * ) / CAST ( - COUNT ( * ) AS INTEGER )
----
-30

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-327
SELECT + - NULLIF ( 93, - - 65 ) + - 65 + - CASE - CAST( ( + COUNT( * ) ) AS SIGNED ) WHEN + - 89 THEN NULL WHEN - SUM( ALL + 60 ) - 36 - + - 95 THEN CAST( NULL AS SIGNED ) * + 50 END + - + 17 / - - ( 92 ) * - 88 + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-327
SELECT + - NULLIF ( 93, - - 65 ) + - 65 + - CASE - CAST ( ( + COUNT ( * ) ) AS INTEGER ) WHEN + - 89 THEN NULL WHEN - SUM ( ALL + 60 ) - 36 - + - 95 THEN CAST ( NULL AS INTEGER ) * + 50 END + - + 17 / - - ( 92 ) * - 88 + 95
----
NULL

query I rowsort
SELECT + 82 * + 12
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT COALESCE ( MIN( + + 59 ), - + 46 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-329
SELECT COALESCE ( MIN ( + + 59 ), - + 46 ) AS col0
----
59

query I rowsort
SELECT + ( 28 ) + + 93
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT - - NULLIF ( + + 81, + + 25 * + + ( COUNT( DISTINCT - - 68 ) ) - 35 + - MAX( + 99 ) + + - MIN( + 54 ) + + COUNT( * ) + COUNT( * ) * 53 * + COUNT( * ) * - 95 * + 65 * - + ( - - 83 ) + COALESCE ( + - 44, + COUNT( * ) * + + 13 + + + 47 - - COALESCE ( 20, ( MIN( DISTINCT + 81 ) ) ), - 74 ) * - ( ( + + COUNT( * ) ) ) + + 41 * - - ( - 0 ) + 1 * + 47 )
----
81

skipif mysql # not compatible
query I rowsort label-331
SELECT - - NULLIF ( + + 81, + + 25 * + + ( COUNT ( DISTINCT - - 68 ) ) - 35 + - MAX ( + 99 ) + + - MIN ( + 54 ) + + COUNT ( * ) + COUNT ( * ) * 53 * + COUNT ( * ) * - 95 * + 65 * - + ( - - 83 ) + COALESCE ( + - 44, + COUNT ( * ) * + + 13 + + + 47 - - COALESCE ( 20, ( MIN ( DISTINCT + 81 ) ) ), - 74 ) * - ( ( + + COUNT ( * ) ) ) + + 41 * - - ( - 0 ) + 1 * + 47 )
----
81

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

skipif mysql # not compatible
query II rowsort label-332
SELECT ALL - 82 AS col1, COUNT ( * )
----
-82
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-333
SELECT + 62 + - COUNT( * ) DIV 48 col0
----
62

skipif mysql # not compatible
query I rowsort label-333
SELECT + 62 + - COUNT ( * ) / 48 col0
----
62

query I rowsort
SELECT ALL - 84 + + 54 * 44
----
2292

query I rowsort
SELECT + - 79 + - 46 + - - 78 col2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-336
SELECT DISTINCT + COUNT( * ) col1, NULLIF ( + 60, - + COUNT( + 12 ) ) AS col2
----
1
60

skipif mysql # not compatible
query II rowsort label-336
SELECT DISTINCT + COUNT ( * ) col1, NULLIF ( + 60, - + COUNT ( + 12 ) ) AS col2
----
1
60

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ALL + COUNT( * ) * CASE COUNT( ALL + CASE + 71 WHEN - 52 THEN - + 80 * - 85 WHEN COALESCE ( + 66, + 75 ) THEN NULL ELSE NULL END ) WHEN - 65 / - 57 THEN - 91 WHEN 75 THEN NULL ELSE 68 + + 45 END
----
113

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL + COUNT ( * ) * CASE COUNT ( ALL + CASE + 71 WHEN - 52 THEN - + 80 * - 85 WHEN COALESCE ( + 66, + 75 ) THEN NULL ELSE NULL END ) WHEN - 65 / - 57 THEN - 91 WHEN 75 THEN NULL ELSE 68 + + 45 END
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-338
SELECT DISTINCT CASE 70 WHEN + + 56 + NULLIF ( - COALESCE ( - 8, COUNT( * ) / 99 ), AVG ( DISTINCT 15 ) + 83 ) THEN NULL ELSE - 18 END + + COUNT( * ) * - 96 * 2 * + - 39 AS col0, + COUNT( - 51 ) AS col0
----
7470
1

skipif mysql # not compatible
query II rowsort label-338
SELECT DISTINCT CASE 70 WHEN + + 56 + NULLIF ( - COALESCE ( - 8, COUNT ( * ) / 99 ), AVG ( DISTINCT 15 ) + 83 ) THEN NULL ELSE - 18 END + + COUNT ( * ) * - 96 * 2 * + - 39 AS col0, + COUNT ( - 51 ) AS col0
----
7470
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-339
SELECT DISTINCT 43 DIV 21 * + 92 + - COUNT( * ) AS col0
----
183

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT 43 / 21 * + 92 + - COUNT ( * ) AS col0
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-340
SELECT ALL 12 DIV 83 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL 12 / 83 + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-341
SELECT + COUNT( * ) * - - 26 + 24 * CASE MIN( 95 ) WHEN COALESCE ( + 95, - 51, 7 ) / + - COUNT( * ) + + 71 + + 21 * + + COUNT( * ) - + 18 THEN - CAST( NULL AS SIGNED ) * - 62 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-341
SELECT + COUNT ( * ) * - - 26 + 24 * CASE MIN ( 95 ) WHEN COALESCE ( + 95, - 51, 7 ) / + - COUNT ( * ) + + 71 + + 21 * + + COUNT ( * ) - + 18 THEN - CAST ( NULL AS INTEGER ) * - 62 END AS col2
----
NULL

query I rowsort
SELECT + 43 * 9 * 46 + 60 AS col1
----
17862

query II rowsort
SELECT ( + - ( - - 96 ) ) AS col1, 5 AS col2
----
-96
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT - 54 + + 58 + + MIN( DISTINCT + + ( 96 ) ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-345
SELECT - 54 + + 58 + + MIN ( DISTINCT + + ( 96 ) ) AS col2
----
100

query I rowsort
SELECT - 65 * - 86 AS col0
----
5590

query I rowsort
SELECT ALL - 68 * - 94 + + - 33
----
6359

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT ALL 6 * + COUNT( * ) * + 37 * - 50 AS col2
----
-11100

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL 6 * + COUNT ( * ) * + 37 * - 50 AS col2
----
-11100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-349
SELECT ALL + ( 91 ), 18 - - COUNT( 3 ) * + 10 * CAST( NULL AS SIGNED ) + AVG ( DISTINCT + 68 ) AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-349
SELECT ALL + ( 91 ), 18 - - COUNT ( 3 ) * + 10 * CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + 68 ) AS col2
----
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-350
SELECT COALESCE ( - 87, - + 14 ) AS col2, CAST( NULL AS SIGNED ) * - - COALESCE ( + ( + 10 ), - 98 )
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-350
SELECT COALESCE ( - 87, - + 14 ) AS col2, CAST ( NULL AS INTEGER ) * - - COALESCE ( + ( + 10 ), - 98 )
----
-87
NULL

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

skipif mysql # not compatible
query I rowsort label-351
SELECT - 82 / - COUNT ( * ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-352
SELECT - AVG ( + - 31 ) * - - SUM( DISTINCT + - 76 ) - 12 + + + 78 + + 89 * CAST( 88 AS SIGNED ) + + 76 + - 22 + + - 15 * + 89 + 3 * - - SUM( ALL + 89 ) * 92 - 25 + + - 25 + CAST( NULL AS SIGNED ) * - 91 * + + CAST( NULL AS SIGNED ) / - 17 * 40 / - 68 + + + 34 + - NULLIF ( SUM( DISTINCT 41 ), - 12 ) * ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-352
SELECT - AVG ( + - 31 ) * - - SUM ( DISTINCT + - 76 ) - 12 + + + 78 + + 89 * CAST ( 88 AS INTEGER ) + + 76 + - 22 + + - 15 * + 89 + 3 * - - SUM ( ALL + 89 ) * 92 - 25 + + - 25 + CAST ( NULL AS INTEGER ) * - 91 * + + CAST ( NULL AS INTEGER ) / - 17 * 40 / - 68 + + + 34 + - NULLIF ( SUM ( DISTINCT 41 ), - 12 ) * ( + COUNT ( * ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-353
SELECT - + 1 / - 75 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT ALL + COUNT( * ) * - - 77 + - 54
----
23

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL + COUNT ( * ) * - - 77 + - 54
----
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT DISTINCT - + 79 * + + COUNT( * ) * - 65
----
5135

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT - + 79 * + + COUNT ( * ) * - 65
----
5135

onlyif mysql # aggregate syntax: 
query II rowsort label-357
SELECT ( - + 41 ) AS col1, CASE WHEN NOT - 87 NOT IN ( 78 + + 29 * 39, COALESCE ( - ( 81 ), COUNT( - 73 ) * - 81, - 30 ), + COUNT( * ), 10 ) THEN - + CASE - + 97 WHEN + 75 / + 88 + - + 20 THEN NULL WHEN + ( ( + COALESCE ( + 59, - - 9 * ( - 62 ) + - 81 - - 6 + MAX( ALL - 55 ) * 7 ) ) ) * 91 THEN - 46 END END * + 18
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-357
SELECT ( - + 41 ) AS col1, CASE WHEN NOT - 87 NOT IN ( 78 + + 29 * 39, COALESCE ( - ( 81 ), COUNT ( - 73 ) * - 81, - 30 ), + COUNT ( * ), 10 ) THEN - + CASE - + 97 WHEN + 75 / + 88 + - + 20 THEN NULL WHEN + ( ( + COALESCE ( + 59, - - 9 * ( - 62 ) + - 81 - - 6 + MAX ( ALL - 55 ) * 7 ) ) ) * 91 THEN - 46 END END * + 18
----
-41
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT + 80 * + 96 * - 99 AS col2, SUM( 86 )
----
-760320
86

skipif mysql # not compatible
query II rowsort label-359
SELECT + 80 * + 96 * - 99 AS col2, SUM ( 86 )
----
-760320
86

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT - 24 + - + 7 + NULLIF ( COUNT( * ), - 73 ) * + 8
----
-23

skipif mysql # not compatible
query I rowsort label-360
SELECT - 24 + - + 7 + NULLIF ( COUNT ( * ), - 73 ) * + 8
----
-23

query II rowsort
SELECT + + 69 + + + 95 AS col2, 87 + - 36
----
164
51

onlyif mysql # aggregate syntax: 
query II rowsort label-362
SELECT + - 94 + - 35 * ( 25 ) * 37 AS col2, 44 + - 85 * - 50 * + COUNT( * ) * - 63
----
-32469
-267706

skipif mysql # not compatible
query II rowsort label-362
SELECT + - 94 + - 35 * ( 25 ) * 37 AS col2, 44 + - 85 * - 50 * + COUNT ( * ) * - 63
----
-32469
-267706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-363
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) + - 15 + + - 28 * CAST( NULL AS SIGNED ) * + 80 * - + COUNT( DISTINCT - 8 ) * + 42 + - 25 AS col1, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-363
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) + - 15 + + - 28 * CAST ( NULL AS INTEGER ) * + 80 * - + COUNT ( DISTINCT - 8 ) * + 42 + - 25 AS col1, + COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT ALL + + 62 + - ( - 15 ) * - 72 + - 46 * 40
----
-2858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-365
SELECT ALL + 55 + - 78 DIV 86 AS col1, 0 * - CASE - 14 WHEN + 2 THEN - CAST( - 79 AS SIGNED ) + + COUNT( * ) WHEN + 30 * + + ( 47 ) * - 40 DIV - 76 * + 6 THEN NULL END
----
55
NULL

skipif mysql # not compatible
query II rowsort label-365
SELECT ALL + 55 + - 78 / 86 AS col1, 0 * - CASE - 14 WHEN + 2 THEN - CAST ( - 79 AS INTEGER ) + + COUNT ( * ) WHEN + 30 * + + ( 47 ) * - 40 / - 76 * + 6 THEN NULL END
----
55
NULL

query I rowsort
SELECT DISTINCT + 6 + 77
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT DISTINCT 8 * + NULLIF ( - 27, + 93 ) * + SUM( - + 71 ) - MIN( - + 75 )
----
15411

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT 8 * + NULLIF ( - 27, + 93 ) * + SUM ( - + 71 ) - MIN ( - + 75 )
----
15411

query II rowsort
SELECT + 43 AS col2, + 52 * - - 59
----
43
3068

query I rowsort
SELECT DISTINCT 72 * - + 79
----
-5688

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT ALL 30 * 74 * + - MAX( DISTINCT + - 5 )
----
11100

skipif mysql # not compatible
query I rowsort label-371
SELECT ALL 30 * 74 * + - MAX ( DISTINCT + - 5 )
----
11100

query I rowsort
SELECT 95 - - 35 AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL 24 - + - 51 + COUNT( * ) + + 36
----
112

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL 24 - + - 51 + COUNT ( * ) + + 36
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT DISTINCT - MIN( DISTINCT - 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT - MIN ( DISTINCT - 97 ) AS col0
----
97

query I rowsort
SELECT 11 * + - 1 + 60 - + 25
----
24

query I rowsort
SELECT 10 * - 76
----
-760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-377
SELECT - 68 DIV - 53 + + ( - MAX( ALL - + 96 ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-377
SELECT - 68 / - 53 + + ( - MAX ( ALL - + 96 ) ) AS col0
----
97

query II rowsort
SELECT ALL - 55 AS col1, + 43 * - CASE WHEN + 27 > + 64 THEN + 95 END AS col2
----
-55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT - COALESCE ( 65, + 18 ) + + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-379
SELECT - COALESCE ( 65, + 18 ) + + COUNT ( * )
----
-64

query II rowsort
SELECT ALL - 47 AS col2, 71 + - - 52
----
-47
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-381
SELECT DISTINCT - 33 * + COUNT( * ) + - 38 - 73 DIV - 83 * + + 9 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT - 33 * + COUNT ( * ) + - 38 - 73 / - 83 * + + 9 AS col2
----
-71

query I rowsort
SELECT + 35 * + 76 + - 24 AS col0
----
2636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-383
SELECT - + COALESCE ( - CAST( NULL AS SIGNED ), ( - COUNT( * ) ), + CAST( + 75 AS SIGNED ) DIV + 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-383
SELECT - + COALESCE ( - CAST ( NULL AS INTEGER ), ( - COUNT ( * ) ), + CAST ( + 75 AS INTEGER ) / + 46 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT DISTINCT + CASE + COUNT( * ) WHEN - 40 * - AVG ( - 32 ) * - 95 + + - ( + 44 ) THEN - + 76 + - - 37 END + 28 + - - ( + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT + CASE + COUNT ( * ) WHEN - 40 * - AVG ( - 32 ) * - 95 + + - ( + 44 ) THEN - + 76 + - - 37 END + 28 + - - ( + 52 )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-386
SELECT CASE - 97 WHEN - - 50 - - - 53 - ( 70 ) / - + 22 THEN + - MIN( ALL + COALESCE ( + 65, 94, - 11 - - NULLIF ( - 64, + - CAST( NULL AS SIGNED ) ) ) ) + + + ( 25 ) * + 48 WHEN - ( - CAST( 37 AS SIGNED ) ) + - - 40 * - - 4 + + COUNT( * ) / - COUNT( * ) + 83 * + - 48 * - COUNT( * ) THEN NULL END / 70 - - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-386
SELECT CASE - 97 WHEN - - 50 - - - 53 - ( 70 ) / - + 22 THEN + - MIN ( ALL + COALESCE ( + 65, 94, - 11 - - NULLIF ( - 64, + - CAST ( NULL AS INTEGER ) ) ) ) + + + ( 25 ) * + 48 WHEN - ( - CAST ( 37 AS INTEGER ) ) + - - 40 * - - 4 + + COUNT ( * ) / - COUNT ( * ) + 83 * + - 48 * - COUNT ( * ) THEN NULL END / 70 - - 59 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT 6 DIV 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-387
SELECT 6 / 34 AS col1
----
0

query I rowsort
SELECT ALL + + 2 + + 17 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT ALL - + NULLIF ( + 25, - 27 * + + 65 ) + COUNT( * ) col0
----
-24

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL - + NULLIF ( + 25, - 27 * + + 65 ) + COUNT ( * ) col0
----
-24

query I rowsort
SELECT ALL - 48 + + 66 AS col2
----
18

query I rowsort
SELECT DISTINCT + 90 + - - 85 * 10 AS col1
----
940

query I rowsort
SELECT 55 * + - 23 AS col2
----
-1265

query II rowsort
SELECT ALL + - ( 90 ) * 0, 75 AS col0
----
0
75

query I rowsort
SELECT ALL + - 10 + + + 74 AS col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-395
SELECT - 34, - ( ( - 56 ) ) - 70 + - CASE + 59 WHEN - - 31 THEN - + 51 WHEN SUM( 6 ) THEN - 11 * + COUNT( * ) ELSE NULL END AS col1
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-395
SELECT - 34, - ( ( - 56 ) ) - 70 + - CASE + 59 WHEN - - 31 THEN - + 51 WHEN SUM ( 6 ) THEN - 11 * + COUNT ( * ) ELSE NULL END AS col1
----
-34
NULL

query I rowsort
SELECT ALL + 77 + - 30 - - 49 + - 20 AS col1
----
76

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

query I rowsort
SELECT ALL - 78 * - ( 96 )
----
7488

query I rowsort
SELECT 70 + + + 86 col1
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-400
SELECT 95 + COUNT( * ), + 12 AS col0
----
96
12

skipif mysql # not compatible
query II rowsort label-400
SELECT 95 + COUNT ( * ), + 12 AS col0
----
96
12

query I rowsort
SELECT NULLIF ( + 64, 95 ) + - 82 AS col0
----
-18

query I rowsort
SELECT ALL - 6 - 67 + + - 46
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT DISTINCT COUNT( * ) * - 24
----
-24

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT COUNT ( * ) * - 24
----
-24

query I rowsort
SELECT NULLIF ( + 11, ( - 25 ) ) * + 32
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT SUM( + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-405
SELECT SUM ( + 71 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-406
SELECT - 2 DIV - COUNT( * ) + - NULLIF ( 19, - 16 + 49 ) * + 88 AS col2
----
-1670

skipif mysql # not compatible
query I rowsort label-406
SELECT - 2 / - COUNT ( * ) + - NULLIF ( 19, - 16 + 49 ) * + 88 AS col2
----
-1670

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT 49 + MAX( ALL 11 ) - + 79 + - 28 + 89 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-408
SELECT 49 + MAX ( ALL 11 ) - + 79 + - 28 + 89 AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-409
SELECT NULLIF ( - COALESCE ( - 97, 25 + + - COUNT( + CAST( NULL AS DECIMAL ) ) + + COUNT( * ) DIV + 24, + COALESCE ( COUNT( * ), - + 53 ) + - 8 ), 90 - + COUNT( * ) ) DIV + + COUNT( DISTINCT - 6 ) + - ( 1 )
----
96

skipif mysql # not compatible
query I rowsort label-409
SELECT NULLIF ( - COALESCE ( - 97, 25 + + - COUNT ( + CAST ( NULL AS REAL ) ) + + COUNT ( * ) / + 24, + COALESCE ( COUNT ( * ), - + 53 ) + - 8 ), 90 - + COUNT ( * ) ) / + + COUNT ( DISTINCT - 6 ) + - ( 1 )
----
96

query I rowsort
SELECT DISTINCT 76 * + 73
----
5548

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT ALL 40 DIV + - 56 * + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL 40 / + - 56 * + 81 AS col2
----
0

query I rowsort
SELECT + 35 * + 50 * + 21 + 40 + - 60 col2
----
36730

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT - 79 * + NULLIF ( SUM( + 90 ), 47 * + 92 ) + 85 - - 97 AS col2
----
-6928

skipif mysql # not compatible
query I rowsort label-413
SELECT - 79 * + NULLIF ( SUM ( + 90 ), 47 * + 92 ) + 85 - - 97 AS col2
----
-6928

query I rowsort
SELECT ALL - 55 + + - 76 + - 33
----
-164

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-416
SELECT + - SUM( - 1 ) col1, - ( - + MIN( - - 57 ) ) * - COALESCE ( + - COUNT( * ), + 38 + - 76 ) * CAST( + 33 AS SIGNED ) + - NULLIF ( - + 1, 71 / + NULLIF ( - CAST( - + 84 AS SIGNED ), + 40 ) ) col1
----
1
1882

skipif mysql # not compatible
query II rowsort label-416
SELECT + - SUM ( - 1 ) col1, - ( - + MIN ( - - 57 ) ) * - COALESCE ( + - COUNT ( * ), + 38 + - 76 ) * CAST ( + 33 AS INTEGER ) + - NULLIF ( - + 1, 71 / + NULLIF ( - CAST ( - + 84 AS INTEGER ), + 40 ) ) col1
----
1
1882

query I rowsort
SELECT DISTINCT NULLIF ( + 51, + 33 ) + + 82 AS col0
----
133

query I rowsort
SELECT 90 * + ( + - 91 ) AS col0
----
-8190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-419
SELECT ALL + 88 + - 8 + - 1 DIV + - 78 * - + 11 + + 1 + - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL + 88 + - 8 + - 1 / + - 78 * - + 11 + + 1 + - COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT DISTINCT - COALESCE ( - 75, COUNT( * ) * - 77 + 50, - 8 )
----
75

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT - COALESCE ( - 75, COUNT ( * ) * - 77 + 50, - 8 )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-421
SELECT DISTINCT COUNT( * ) + + 97, 28 * + 92 AS col2
----
98
2576

skipif mysql # not compatible
query II rowsort label-421
SELECT DISTINCT COUNT ( * ) + + 97, 28 * + 92 AS col2
----
98
2576

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT DISTINCT - 61 + + COUNT( * ) + - 89 * 77 * - - 11
----
-75443

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT - 61 + + COUNT ( * ) + - 89 * 77 * - - 11
----
-75443

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

skipif mysql # not compatible
query I rowsort label-423
SELECT + 51 + - - 18 / - CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 6 + 74
----
80

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

skipif mysql # not compatible
query I rowsort label-426
SELECT DISTINCT + - COUNT ( * ) + 26 AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT + CAST( + - 2 AS SIGNED ) * 31 - - 43
----
-19

skipif mysql # not compatible
query I rowsort label-427
SELECT + CAST ( + - 2 AS INTEGER ) * 31 - - 43
----
-19

query I rowsort
SELECT DISTINCT ( 18 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT DISTINCT + COALESCE ( - COUNT( DISTINCT - 17 ), + 64 ) - 64 + + - 1 + + NULLIF ( 66, + 72 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT + COALESCE ( - COUNT ( DISTINCT - 17 ), + 64 ) - 64 + + - 1 + + NULLIF ( 66, + 72 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT - 55 + + + MAX( DISTINCT + + 15 ) col1
----
-40

skipif mysql # not compatible
query I rowsort label-430
SELECT - 55 + + + MAX ( DISTINCT + + 15 ) col1
----
-40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-432
SELECT ALL 31 DIV 93 col0
----
0

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL 31 / 93 col0
----
0

query II rowsort
SELECT DISTINCT 37, - NULLIF ( - 49, - - 12 ) AS col2
----
37
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-434
SELECT ALL - 47 * + + COALESCE ( + + NULLIF ( 61, COUNT( * ) ), + + 86, - + 71 DIV + 3 ) AS col2
----
-2867

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL - 47 * + + COALESCE ( + + NULLIF ( 61, COUNT ( * ) ), + + 86, - + 71 / + 3 ) AS col2
----
-2867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-435
SELECT - CAST( NULL AS SIGNED ) - 95 + 1 * - + CASE - 41 WHEN - COALESCE ( + 53, - 18 * + - COALESCE ( - 54, 76 + + + ( - ( COUNT( * ) ) ) * - 98, + + NULLIF ( - 1, + + 91 + - 70 + + - 51 + + 59 + 12 ) * 94 ) + NULLIF ( 21, + 74 ) + NULLIF ( - 55, ( + 34 ) ) + 96 + + - ( COUNT( * ) ) * 26 * 75 * + 74 * - COUNT( * ), + 91 * - 27 ) * COUNT( * ) - 32 * COALESCE ( + 32 + - 62 * - 28, - MIN( + 26 ) * + SUM( 2 ), AVG ( + 24 ) * 47 ) + 50 THEN NULL WHEN - 44 + + 2 * 89 THEN CASE + COUNT( * ) WHEN 21 THEN 93 ELSE NULLIF ( 33, + COUNT( * ) * + ( 62 ) ) * + 31 END END + NULLIF ( + 52, - 5 ) * 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-435
SELECT - CAST ( NULL AS INTEGER ) - 95 + 1 * - + CASE - 41 WHEN - COALESCE ( + 53, - 18 * + - COALESCE ( - 54, 76 + + + ( - ( COUNT ( * ) ) ) * - 98, + + NULLIF ( - 1, + + 91 + - 70 + + - 51 + + 59 + 12 ) * 94 ) + NULLIF ( 21, + 74 ) + NULLIF ( - 55, ( + 34 ) ) + 96 + + - ( COUNT ( * ) ) * 26 * 75 * + 74 * - COUNT ( * ), + 91 * - 27 ) * COUNT ( * ) - 32 * COALESCE ( + 32 + - 62 * - 28, - MIN ( + 26 ) * + SUM ( 2 ), AVG ( + 24 ) * 47 ) + 50 THEN NULL WHEN - 44 + + 2 * 89 THEN CASE + COUNT ( * ) WHEN 21 THEN 93 ELSE NULLIF ( 33, + COUNT ( * ) * + ( 62 ) ) * + 31 END END + NULLIF ( + 52, - 5 ) * 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT ALL + COALESCE ( COUNT( 16 ), MAX( - - 79 ) * - - 6, 52 - + - SUM( + 10 ) * - + 97 ) * 63 col0
----
63

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL + COALESCE ( COUNT ( 16 ), MAX ( - - 79 ) * - - 6, 52 - + - SUM ( + 10 ) * - + 97 ) * 63 col0
----
63

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-438
SELECT - MIN( DISTINCT + + ( + + 87 ) ) DIV - COUNT( * ) - + + 33 col2
----
54

skipif mysql # not compatible
query I rowsort label-438
SELECT - MIN ( DISTINCT + + ( + + 87 ) ) / - COUNT ( * ) - + + 33 col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-439
SELECT DISTINCT + CASE + + ( NULLIF ( + 60, 67 ) ) WHEN + 85 * - 66 / - 50 THEN - COUNT( * ) WHEN 28 THEN - 11 - 87 + NULLIF ( - 7, + CAST( NULL AS DECIMAL ) ) + + - 69 + - - 10 + - 7 WHEN + CAST( - COUNT( * ) AS SIGNED ) + + - AVG ( DISTINCT 43 ) * - - 61 / + 30 THEN + - 38 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT + CASE + + ( NULLIF ( + 60, 67 ) ) WHEN + 85 * - 66 / - 50 THEN - COUNT ( * ) WHEN 28 THEN - 11 - 87 + NULLIF ( - 7, + CAST ( NULL AS REAL ) ) + + - 69 + - - 10 + - 7 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) + + - AVG ( DISTINCT 43 ) * - - 61 / + 30 THEN + - 38 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 65, 14 AS col1
----
65
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-441
SELECT ALL CAST( SUM( - 69 ) AS SIGNED ) * + 96 + + SUM( ALL - 86 ) + MIN( DISTINCT + - 12 ) + + 88 + - - 20 + + - 69
----
-6683

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL CAST ( SUM ( - 69 ) AS INTEGER ) * + 96 + + SUM ( ALL - 86 ) + MIN ( DISTINCT + - 12 ) + + 88 + - - 20 + + - 69
----
-6683

onlyif mysql # aggregate syntax: 
query II rowsort label-442
SELECT DISTINCT 29 * - - 3 + 59 * COUNT( ALL - 0 ) AS col2, ( - NULLIF ( - + 19, - COUNT( * ) ) )
----
146
19

skipif mysql # not compatible
query II rowsort label-442
SELECT DISTINCT 29 * - - 3 + 59 * COUNT ( ALL - 0 ) AS col2, ( - NULLIF ( - + 19, - COUNT ( * ) ) )
----
146
19

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

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

query I rowsort
SELECT DISTINCT - 0 * + COALESCE ( + ( + 19 ), 56 ) + + + 59 AS col2
----
59

query I rowsort
SELECT - 63 + - - 88 AS col0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-446
SELECT + + 89 DIV + 71
----
1

skipif mysql # not compatible
query I rowsort label-446
SELECT + + 89 / + 71
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT - 77 + + 74 - 2 * - + ( + - 51 ) * - ( + 37 ) - + 91 - COUNT( * )
----
3679

skipif mysql # not compatible
query I rowsort label-447
SELECT - 77 + + 74 - 2 * - + ( + - 51 ) * - ( + 37 ) - + 91 - COUNT ( * )
----
3679

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ( - - 31 ) * - ( + - 6 ) + + 53 + + + 29 + + - COUNT( * ) + 16 + - - 40 AS col2
----
323

skipif mysql # not compatible
query I rowsort label-448
SELECT ( - - 31 ) * - ( + - 6 ) + + 53 + + + 29 + + - COUNT ( * ) + 16 + - - 40 AS col2
----
323

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT + - 12 * + 78 * - COALESCE ( COUNT( * ), - 66 ) AS col0
----
936

skipif mysql # not compatible
query I rowsort label-450
SELECT + - 12 * + 78 * - COALESCE ( COUNT ( * ), - 66 ) AS col0
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT ALL + COUNT( * ) * + 87 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL + COUNT ( * ) * + 87 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT ALL + ( - 50 ) * - 46 + + COUNT( * ) AS col2
----
2301

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL + ( - 50 ) * - 46 + + COUNT ( * ) AS col2
----
2301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-453
SELECT + - 62 + CAST( NULL AS SIGNED ) * 3 - - + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT + - 62 + CAST ( NULL AS INTEGER ) * 3 - - + 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT ALL - SUM( + 53 ) * COUNT( * ) + + - ( - 32 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL - SUM ( + 53 ) * COUNT ( * ) + + - ( - 32 ) AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT + + CAST( NULL AS SIGNED ) * - 9 + + 16 + 12 / - AVG ( ALL - NULLIF ( 17, 42 * + + 32 + - + 20 + + 13 ) ) * - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT + + CAST ( NULL AS INTEGER ) * - 9 + + 16 + 12 / - AVG ( ALL - NULLIF ( 17, 42 * + + 32 + - + 20 + + 13 ) ) * - 66 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-456
SELECT + MIN ( ( + - 25 ) )
----
-25

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-458
SELECT ALL 59 * - CAST( + 4 AS SIGNED ) - + MAX( DISTINCT + 79 )
----
-315

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL 59 * - CAST ( + 4 AS INTEGER ) - + MAX ( DISTINCT + 79 )
----
-315

query I rowsort
SELECT CASE + - 85 WHEN - 65 * - - 22 + - 3 THEN NULL WHEN + 18 THEN + + 23 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-460
SELECT DISTINCT CASE + + ( - 47 ) WHEN - CASE + 57 WHEN + 69 + COALESCE ( ( + ( 16 ) ), + + 20 / + + 82 / - CAST( NULL AS SIGNED ) + + - 74 + SUM( DISTINCT - 75 ) * - 99 * - + 91 + + 27 ) + + 61 * - 47 - + COUNT( * ) THEN - 62 END * + 50 - 11 THEN NULL WHEN + 49 / + COALESCE ( + ( - 98 ), - 54 - + ( + 67 ) ) + - - 31 THEN + 30 WHEN - + 40 * MIN( + - 85 ) + - AVG ( DISTINCT 83 ) THEN NULL ELSE NULL END * + 36 * + + 39 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-460
SELECT DISTINCT CASE + + ( - 47 ) WHEN - CASE + 57 WHEN + 69 + COALESCE ( ( + ( 16 ) ), + + 20 / + + 82 / - CAST ( NULL AS INTEGER ) + + - 74 + SUM ( DISTINCT - 75 ) * - 99 * - + 91 + + 27 ) + + 61 * - 47 - + COUNT ( * ) THEN - 62 END * + 50 - 11 THEN NULL WHEN + 49 / + COALESCE ( + ( - 98 ), - 54 - + ( + 67 ) ) + - - 31 THEN + 30 WHEN - + 40 * MIN ( + - 85 ) + - AVG ( DISTINCT 83 ) THEN NULL ELSE NULL END * + 36 * + + 39 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT + COUNT( * ) + - CASE WHEN NOT NULL IS NULL THEN - ( + NULLIF ( - 21, COUNT( * ) ) ) ELSE NULL END + + + 57 + - 63 * - 63 * ( - + AVG ( + - 88 ) ) + CASE - COALESCE ( 48, 21, - + MIN( ( + COALESCE ( 45, - COALESCE ( - + 2, - 82 ) + + 17 ) ) ) * + ( + 65 ) * - 29 * + 45, + 56 ) WHEN + 70 * 71 THEN NULL WHEN + 7 THEN - 78 * 64 + + - 29 + 29 + + + CASE WHEN NULL = - 18 THEN + 11 END - 43 + - COUNT( * ) * 90 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-462
SELECT + COUNT ( * ) + - CASE WHEN NOT NULL IS NULL THEN - ( + NULLIF ( - 21, COUNT ( * ) ) ) ELSE NULL END + + + 57 + - 63 * - 63 * ( - + AVG ( + - 88 ) ) + CASE - COALESCE ( 48, 21, - + MIN ( ( + COALESCE ( 45, - COALESCE ( - + 2, - 82 ) + + 17 ) ) ) * + ( + 65 ) * - 29 * + 45, + 56 ) WHEN + 70 * 71 THEN NULL WHEN + 7 THEN - 78 * 64 + + - 29 + 29 + + + CASE WHEN NULL = - 18 THEN + 11 END - 43 + - COUNT ( * ) * 90 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT DISTINCT 49 - ( + COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT 49 - ( + COUNT ( * ) )
----
48

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-466
SELECT + COUNT( * ) + COUNT( * ), 32 AS col0
----
2
32

skipif mysql # not compatible
query II rowsort label-466
SELECT + COUNT ( * ) + COUNT ( * ), 32 AS col0
----
2
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT - MIN( DISTINCT - 62 ) - + 84 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-468
SELECT - MIN ( DISTINCT - 62 ) - + 84 AS col1
----
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT - 65 - 91 * 83 * SUM( - + 98 )
----
740129

skipif mysql # not compatible
query I rowsort label-470
SELECT - 65 - 91 * 83 * SUM ( - + 98 )
----
740129

query I rowsort
SELECT + 36 * + 57 AS col1
----
2052

query I rowsort
SELECT - 12 * + + 79 * + 24
----
-22752

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT - 29 + - - NULLIF ( - + 19, - 71 * + 97 + + 41 ) DIV 48
----
-29

skipif mysql # not compatible
query I rowsort label-474
SELECT - 29 + - - NULLIF ( - + 19, - 71 * + 97 + + 41 ) / 48
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT ALL SUM( - 48 ) AS col2, - SUM( + 59 )
----
-48
-59

skipif mysql # not compatible
query II rowsort label-475
SELECT ALL SUM ( - 48 ) AS col2, - SUM ( + 59 )
----
-48
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT - 5 + SUM( - 39 )
----
-44

skipif mysql # not compatible
query I rowsort label-476
SELECT - 5 + SUM ( - 39 )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-477
SELECT ALL + 73 DIV 22 + + 40
----
43

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL + 73 / 22 + + 40
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-478
SELECT + - 31 DIV 63 - 20 + + 13 + - + 6 + NULLIF ( 21, + 6 ) + - - 27 * + - 60
----
-1612

skipif mysql # not compatible
query I rowsort label-478
SELECT + - 31 / 63 - 20 + + 13 + - + 6 + NULLIF ( 21, + 6 ) + - - 27 * + - 60
----
-1612

onlyif mysql # DIV for integer division: 
query I rowsort label-479
SELECT ALL 7 DIV - 87 + 40 * - 87
----
-3480

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL 7 / - 87 + 40 * - 87
----
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT + COALESCE ( + COUNT( * ), - 6 * + - COUNT( * ) * - 96 + - + 30 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-480
SELECT + COALESCE ( + COUNT ( * ), - 6 * + - COUNT ( * ) * - 96 + - + 30 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-481
SELECT ALL - + 19 DIV + + ( + 49 ) * - 57 * + NULLIF ( - 98, + + 1 ) DIV - + COUNT( * ) - 44 + - 40
----
-84

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL - + 19 / + + ( + 49 ) * - 57 * + NULLIF ( - 98, + + 1 ) / - + COUNT ( * ) - 44 + - 40
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-482
SELECT DISTINCT + + ( 31 ) DIV + 63 + - 36, NULLIF ( - COUNT( * ), 17 * - CASE + 59 WHEN 53 + + 32 THEN - - 52 DIV + ( + - 46 ) ELSE + 97 DIV - - 16 + + 62 * 64 END * + - 25 ) + + + 10 AS col0
----
-36
9

skipif mysql # not compatible
query II rowsort label-482
SELECT DISTINCT + + ( 31 ) / + 63 + - 36, NULLIF ( - COUNT ( * ), 17 * - CASE + 59 WHEN 53 + + 32 THEN - - 52 / + ( + - 46 ) ELSE + 97 / - - 16 + + 62 * 64 END * + - 25 ) + + + 10 AS col0
----
-36
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-483
SELECT ALL COUNT( * ) DIV - - 65 * + + CAST( + 82 AS SIGNED ) + + 71 DIV + 69 - + - ( - 80 ) + - 39
----
-118

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL COUNT ( * ) / - - 65 * + + CAST ( + 82 AS INTEGER ) + + 71 / + 69 - + - ( - 80 ) + - 39
----
-118

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

query II rowsort
SELECT ALL + - 80 AS col2, + 32
----
-80
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-486
SELECT + CASE 41 WHEN - 38 * + 7 THEN NULL WHEN - + CAST( NULL AS SIGNED ) THEN + 3 - - 39 END, MAX( - - 59 ) * - MIN( + 17 ) * + 2 * + 90 col0
----
NULL
-180540

skipif mysql # not compatible
query II rowsort label-486
SELECT + CASE 41 WHEN - 38 * + 7 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) THEN + 3 - - 39 END, MAX ( - - 59 ) * - MIN ( + 17 ) * + 2 * + 90 col0
----
NULL
-180540

query II rowsort
SELECT + 2, + 75 AS col1
----
2
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-488
SELECT COUNT( * ) * + 26 * - 0 + MAX( ALL 68 ) DIV + 77 - + COUNT( * ) * + 74 + + + 54 + + 3 DIV + 55 + 24 * 3 * + - 14 * - - 74 * + 27 AS col0, 88
----
-2014004
88

skipif mysql # not compatible
query II rowsort label-488
SELECT COUNT ( * ) * + 26 * - 0 + MAX ( ALL 68 ) / + 77 - + COUNT ( * ) * + 74 + + + 54 + + 3 / + 55 + 24 * 3 * + - 14 * - - 74 * + 27 AS col0, 88
----
-2014004
88

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT + NULLIF ( - 17, - 50 ) * - COUNT( * ) * - 62 col1
----
-1054

skipif mysql # not compatible
query I rowsort label-489
SELECT + NULLIF ( - 17, - 50 ) * - COUNT ( * ) * - 62 col1
----
-1054

query II rowsort
SELECT + - 30 AS col0, 81 AS col1
----
-30
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-491
SELECT + MIN( + 3 ) DIV - + COUNT( * ) - - 78 * - 86
----
-6711

skipif mysql # not compatible
query I rowsort label-491
SELECT + MIN ( + 3 ) / - + COUNT ( * ) - - 78 * - 86
----
-6711

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-492
SELECT + NULLIF ( - 55, + 12 DIV + CAST( - 63 AS SIGNED ) ) * + 31 + - 35 * 67 DIV + COUNT( * ) AS col0, 35
----
-4050
35

skipif mysql # not compatible
query II rowsort label-492
SELECT + NULLIF ( - 55, + 12 / + CAST ( - 63 AS INTEGER ) ) * + 31 + - 35 * 67 / + COUNT ( * ) AS col0, 35
----
-4050
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-493
SELECT CAST( NULL AS SIGNED ) * MIN( DISTINCT + 19 )
----
NULL

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

query I rowsort
SELECT ALL - + 87 col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT DISTINCT - COUNT( * ) - 75 * - MIN( DISTINCT - 59 )
----
-4426

skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT - COUNT ( * ) - 75 * - MIN ( DISTINCT - 59 )
----
-4426

query II rowsort
SELECT DISTINCT + + 11 * - + 63 AS col2, + 83
----
-693
83

query I rowsort
SELECT ALL - 19 * 51
----
-969

onlyif mysql # aggregate syntax: 
query II rowsort label-498
SELECT DISTINCT + 65 * - + 3, COUNT( * ) AS col1
----
-195
1

skipif mysql # not compatible
query II rowsort label-498
SELECT DISTINCT + 65 * - + 3, COUNT ( * ) AS col1
----
-195
1

onlyif mysql # DIV for integer division: 
query I rowsort label-499
SELECT DISTINCT 31 DIV + - 70 * + 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-499
SELECT DISTINCT 31 / + - 70 * + 36 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-500
SELECT CASE - ( - 53 ) WHEN 1 * - 1 THEN MAX( - + 84 ) / - + COUNT( * ) + + 98 END + 11 + 4 + + - NULLIF ( + COALESCE ( + CASE + + COUNT( ALL + COALESCE ( + + 24, 70 + - 25, 17 + - 10 ) ) WHEN + 16 * + ( + MIN( ALL 46 ) ) - - + 4 * + 93 * - CAST( NULL AS SIGNED ) THEN 3 WHEN + + 68 THEN NULL END, + 29, - + 77 * + 27 / + COUNT( * ) / ( - 40 ) * - 78 - - - CASE + 19 WHEN - COUNT( * ) THEN - COUNT( DISTINCT 88 ) WHEN 99 THEN + 90 END ), 86 + + 83 * COALESCE ( 29, + ( - 92 ), + 71 + - 14 ) ) * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-500
SELECT CASE - ( - 53 ) WHEN 1 * - 1 THEN MAX ( - + 84 ) / - + COUNT ( * ) + + 98 END + 11 + 4 + + - NULLIF ( + COALESCE ( + CASE + + COUNT ( ALL + COALESCE ( + + 24, 70 + - 25, 17 + - 10 ) ) WHEN + 16 * + ( + MIN ( ALL 46 ) ) - - + 4 * + 93 * - CAST ( NULL AS INTEGER ) THEN 3 WHEN + + 68 THEN NULL END, + 29, - + 77 * + 27 / + COUNT ( * ) / ( - 40 ) * - 78 - - - CASE + 19 WHEN - COUNT ( * ) THEN - COUNT ( DISTINCT 88 ) WHEN 99 THEN + 90 END ), 86 + + 83 * COALESCE ( 29, + ( - 92 ), + 71 + - 14 ) ) * - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT COALESCE ( - COUNT( * ), + 37, 15 ) * + 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-501
SELECT COALESCE ( - COUNT ( * ), + 37, 15 ) * + 25 AS col0
----
-25

query I rowsort
SELECT DISTINCT 89 * 45 AS col2
----
4005

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT ALL NULLIF ( + COUNT( * ), - 83 * + 34 + + 88 / 27 + + - COUNT( * ) / + + 57 ) + + 40 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL NULLIF ( + COUNT ( * ), - 83 * + 34 + + 88 / 27 + + - COUNT ( * ) / + + 57 ) + + 40 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT ALL 24 + - 13 - ( + 61 ) * + COUNT( ALL - 50 ) * + + 46 + - 16 col2
----
-2811

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL 24 + - 13 - ( + 61 ) * + COUNT ( ALL - 50 ) * + + 46 + - 16 col2
----
-2811

query II rowsort
SELECT DISTINCT 53 + - 21 AS col0, + ( - + 69 ) AS col2
----
32
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT ALL 88 + - - COUNT( * ) * - 36
----
52

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL 88 + - - COUNT ( * ) * - 36
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT 20 - + 96 * + 31 * COUNT( * ) AS col1
----
-2956

skipif mysql # not compatible
query I rowsort label-507
SELECT 20 - + 96 * + 31 * COUNT ( * ) AS col1
----
-2956

query II rowsort
SELECT + 29 * + - 26 * - - 81 AS col0, - 64 * - 6 * - 65
----
-61074
-24960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-509
SELECT 37 * - CAST( + 31 AS SIGNED ) + + 67 * + - SUM( DISTINCT - + 15 ) AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-509
SELECT 37 * - CAST ( + 31 AS INTEGER ) + + 67 * + - SUM ( DISTINCT - + 15 ) AS col1
----
-142

onlyif mysql # aggregate syntax: 
query II rowsort label-510
SELECT ALL + 76 + 5 col2, COUNT( * ) AS col1
----
81
1

skipif mysql # not compatible
query II rowsort label-510
SELECT ALL + 76 + 5 col2, COUNT ( * ) AS col1
----
81
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-512
SELECT - 95 - COUNT( DISTINCT - 64 ) DIV - 52
----
-95

skipif mysql # not compatible
query I rowsort label-512
SELECT - 95 - COUNT ( DISTINCT - 64 ) / - 52
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT DISTINCT - 73 DIV - 81 + 64 + - - 58 col0
----
122

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT - 73 / - 81 + 64 + - - 58 col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ALL + COUNT( * ) * - + 83 * - - 54
----
-4482

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL + COUNT ( * ) * - + 83 * - - 54
----
-4482

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT ALL - + COUNT( * ) * - 62 * + 96
----
5952

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL - + COUNT ( * ) * - 62 * + 96
----
5952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-516
SELECT + 31 DIV + MIN( 85 ) * + 74 + - 75
----
-75

skipif mysql # not compatible
query I rowsort label-516
SELECT + 31 / + MIN ( 85 ) * + 74 + - 75
----
-75

query I rowsort
SELECT ALL - - 88 * + 72 * 86 - + COALESCE ( 51, - 82, - - ( - 25 ) * + 55 ) AS col1
----
544845

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT 44 - - COUNT( * ) * + 2 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-518
SELECT 44 - - COUNT ( * ) * + 2 AS col1
----
46

query I rowsort
SELECT + + 32 col0
----
32

query I rowsort
SELECT ALL - + 21 * 30
----
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-521
SELECT DISTINCT - COALESCE ( ( + CAST( NULL AS SIGNED ) ), - COUNT( * ) * COALESCE ( 38, + 5 ) DIV + - 50 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT - COALESCE ( ( + CAST ( NULL AS INTEGER ) ), - COUNT ( * ) * COALESCE ( 38, + 5 ) / + - 50 ) AS col1
----
0

query I rowsort
SELECT 24 + - 69 AS col2
----
-45

query I rowsort
SELECT ALL 77 * 9 AS col2
----
693

query I rowsort
SELECT 14 * + 42 AS col2
----
588

query I rowsort
SELECT ALL - ( - NULLIF ( 98, + - 70 ) ) AS col0
----
98

query I rowsort
SELECT 95 + + 2 AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-527
SELECT ALL - COUNT( + 23 ) * - ( - 98 ) * - 71 + - 91 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL - COUNT ( + 23 ) * - ( - 98 ) * - 71 + - 91 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 4 * + - 11 AS col0
----
-44

query I rowsort
SELECT 40 * - - 78
----
3120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-530
SELECT DISTINCT SUM( DISTINCT - - ( CAST( NULL AS SIGNED ) ) ) * - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT SUM ( DISTINCT - - ( CAST ( NULL AS INTEGER ) ) ) * - 47 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - 89 * 86 AS col1
----
-7654

query I rowsort
SELECT 30 + 21
----
51

query I rowsort
SELECT ALL - ( + 37 ) * - 22 * + - 81 * + ( 85 ) + - 2 AS col1
----
-5604392

query I rowsort
SELECT ALL - 16 + - + 79 AS col0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-536
SELECT ALL 76 DIV - 61 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL 76 / - 61 AS col2
----
-1

query II rowsort
SELECT 66 AS col2, 38
----
66
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-538
SELECT 20 + + + COALESCE ( COUNT( * ), + 72 * - 65 DIV - 19 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-538
SELECT 20 + + + COALESCE ( COUNT ( * ), + 72 * - 65 / - 19 ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-539
SELECT DISTINCT ( - 13 ) DIV 42 - - - 17 * - 59
----
1003

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT ( - 13 ) / 42 - - - 17 * - 59
----
1003

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT 29 + + NULLIF ( COUNT( * ), - 97 ) * + 4 * + COALESCE ( + 82, - 35 ) col2
----
357

skipif mysql # not compatible
query I rowsort label-540
SELECT 29 + + NULLIF ( COUNT ( * ), - 97 ) * + 4 * + COALESCE ( + 82, - 35 ) col2
----
357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-541
SELECT 65 - - CAST( 12 AS SIGNED ) + + - COUNT( * ) col2
----
76

skipif mysql # not compatible
query I rowsort label-541
SELECT 65 - - CAST ( 12 AS INTEGER ) + + - COUNT ( * ) col2
----
76

query II rowsort
SELECT DISTINCT 18, + 82 AS col1
----
18
82

onlyif mysql # aggregate syntax: 
query II rowsort label-543
SELECT ( - 70 ) + + 97 + + - 76 AS col2, + MIN( + 16 )
----
-49
16

skipif mysql # not compatible
query II rowsort label-543
SELECT ( - 70 ) + + 97 + + - 76 AS col2, + MIN ( + 16 )
----
-49
16

query I rowsort
SELECT ALL 96 - + + 24
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT SUM( ALL - 55 ) + + ( - 20 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-545
SELECT SUM ( ALL - 55 ) + + ( - 20 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT + MIN( DISTINCT + 10 ) + - 0
----
10

skipif mysql # not compatible
query I rowsort label-546
SELECT + MIN ( DISTINCT + 10 ) + - 0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT ALL + NULLIF ( + 90, 90 ) - - COUNT( * ) * - 98 / - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL + NULLIF ( + 90, 90 ) - - COUNT ( * ) * - 98 / - + 20
----
NULL

query I rowsort
SELECT + 2 * + 15 AS col0
----
30

query I rowsort
SELECT + + CASE 98 WHEN 10 + NULLIF ( + 16, + 69 ) THEN + - 97 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT + 86 * 92 + + - 20 + 82 - - ( - - CASE + + ( - + 48 ) WHEN - COUNT( * ) * - COUNT( * ) THEN - 27 WHEN 93 THEN NULL END ) / 84 + - NULLIF ( + COUNT( ALL 3 ), - + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-550
SELECT + 86 * 92 + + - 20 + 82 - - ( - - CASE + + ( - + 48 ) WHEN - COUNT ( * ) * - COUNT ( * ) THEN - 27 WHEN 93 THEN NULL END ) / 84 + - NULLIF ( + COUNT ( ALL 3 ), - + 27 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-551
SELECT ALL + 29 DIV - + MIN( DISTINCT - + 65 ) AS col1, NULLIF ( + 89, + - 34 )
----
0
89

skipif mysql # not compatible
query II rowsort label-551
SELECT ALL + 29 / - + MIN ( DISTINCT - + 65 ) AS col1, NULLIF ( + 89, + - 34 )
----
0
89

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

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

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

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

skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT 83 / - COUNT ( * ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT DISTINCT + COUNT( - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT + COUNT ( - 90 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-556
SELECT - + 57 DIV + + 66 col1
----
0

skipif mysql # not compatible
query I rowsort label-556
SELECT - + 57 / + + 66 col1
----
0

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

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

query II rowsort
SELECT ALL + 28, 79 AS col1
----
28
79

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ALL - NULLIF ( + 34, MAX( - 43 ) ) * + 62 * + 96
----
-202368

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL - NULLIF ( + 34, MAX ( - 43 ) ) * + 62 * + 96
----
-202368

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT + ( - ( CASE + 34 WHEN - 12 * + 0 THEN NULLIF ( MAX( ALL + 56 ), 55 + + 6 + - - 12 / ( - - 64 ) + - - 49 + 42 + - + 15 + + 40 ) WHEN + 83 THEN NULL ELSE NULL END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-561
SELECT + ( - ( CASE + 34 WHEN - 12 * + 0 THEN NULLIF ( MAX ( ALL + 56 ), 55 + + 6 + - - 12 / ( - - 64 ) + - - 49 + 42 + - + 15 + + 40 ) WHEN + 83 THEN NULL ELSE NULL END ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 17 * 19 + + 58 col2
----
381

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT DISTINCT + SUM( DISTINCT + NULLIF ( - + 96, + 48 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT + SUM ( DISTINCT + NULLIF ( - + 96, + 48 ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT COUNT( * ) * 0 - 41 col0
----
-41

skipif mysql # not compatible
query I rowsort label-564
SELECT COUNT ( * ) * 0 - 41 col0
----
-41

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

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

query I rowsort
SELECT - 6 * + 3
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-567
SELECT ALL + 84 + + + 4 DIV + - 91 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL + 84 + + + 4 / + - 91 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT ALL + SUM( ALL - + 89 ) + - ( - 74 ) - + SUM( ALL + 8 )
----
-23

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL + SUM ( ALL - + 89 ) + - ( - 74 ) - + SUM ( ALL + 8 )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-569
SELECT - 53 * 29, + CAST( 35 AS SIGNED ) * - 55 + + 4 + - 35 * - 19 * - 6 AS col2
----
-1537
-5911

skipif mysql # not compatible
query II rowsort label-569
SELECT - 53 * 29, + CAST ( 35 AS INTEGER ) * - 55 + + 4 + - 35 * - 19 * - 6 AS col2
----
-1537
-5911

onlyif mysql # aggregate syntax: 
query II rowsort label-570
SELECT - COUNT( + 25 ) + 27 * + 41, 84 - - 30 AS col2
----
1106
114

skipif mysql # not compatible
query II rowsort label-570
SELECT - COUNT ( + 25 ) + 27 * + 41, 84 - - 30 AS col2
----
1106
114

query I rowsort
SELECT DISTINCT + 40 * + - 3 * - + 26
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT ALL 34 * ( + CASE + - COUNT( * ) WHEN + 97 * + + 79 THEN - COALESCE ( - + ( - 90 ), - 32 * 72 + COUNT( * ), + - 97 ) * - 71 WHEN - - 26 THEN NULL END ) * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL 34 * ( + CASE + - COUNT ( * ) WHEN + 97 * + + 79 THEN - COALESCE ( - + ( - 90 ), - 32 * 72 + COUNT ( * ), + - 97 ) * - 71 WHEN - - 26 THEN NULL END ) * 96
----
NULL

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

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

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

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

query I rowsort
SELECT ALL COALESCE ( 83, + - 36 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-576
SELECT DISTINCT - 32 * - 39 AS col2, ( COUNT( * ) ) * - + 90
----
1248
-90

skipif mysql # not compatible
query II rowsort label-576
SELECT DISTINCT - 32 * - 39 AS col2, ( COUNT ( * ) ) * - + 90
----
1248
-90

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

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

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

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

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

query I rowsort
SELECT + 0 * - 63 * - 20 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-581
SELECT + - 29 * MIN( ALL 8 ) * + 61 AS col0, 35
----
-14152
35

skipif mysql # not compatible
query II rowsort label-581
SELECT + - 29 * MIN ( ALL 8 ) * + 61 AS col0, 35
----
-14152
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-582
SELECT ALL 74 DIV - COUNT( DISTINCT + 94 )
----
-74

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL 74 / - COUNT ( DISTINCT + 94 )
----
-74

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

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

query I rowsort
SELECT - 50 * ( + - ( + COALESCE ( - 35, + 21 ) ) ) + + 27
----
-1723

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT DISTINCT - COALESCE ( + - 15, + - COUNT( * ) ) * + + 11
----
165

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT - COALESCE ( + - 15, + - COUNT ( * ) ) * + + 11
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT ( - + COUNT( * ) ) * + - 75 + + 28 * + 42 + - - 8 + - 75 col1
----
1184

skipif mysql # not compatible
query I rowsort label-586
SELECT ( - + COUNT ( * ) ) * + - 75 + + 28 * + 42 + - - 8 + - 75 col1
----
1184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-587
SELECT + 43 - + CAST( - - 84 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-587
SELECT + 43 - + CAST ( - - 84 AS INTEGER )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT ( + CASE - 2 WHEN - MAX( DISTINCT + ( 54 ) ) THEN + SUM( ALL - 72 ) + - COUNT( * ) * - COUNT( * ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-588
SELECT ( + CASE - 2 WHEN - MAX ( DISTINCT + ( 54 ) ) THEN + SUM ( ALL - 72 ) + - COUNT ( * ) * - COUNT ( * ) ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-589
SELECT - 22 * - + 61 * + COUNT( * ) + - - 39 DIV 69 AS col0, + 89 + - ( COUNT( * ) ) AS col0
----
1342
88

skipif mysql # not compatible
query II rowsort label-589
SELECT - 22 * - + 61 * + COUNT ( * ) + - - 39 / 69 AS col0, + 89 + - ( COUNT ( * ) ) AS col0
----
1342
88

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT + ( + MIN( ALL 10 ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-590
SELECT + ( + MIN ( ALL 10 ) ) AS col0
----
10

query II rowsort
SELECT ALL + 94, 27 AS col1
----
94
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-592
SELECT DISTINCT - 96 * + 78 + COUNT( DISTINCT + - 90 ) + + - 68, ( + NULLIF ( + - 61, - 98 * + 28 ) ) * 99 + + - 38 DIV - - 1 + - COUNT( * ) AS col2
----
-7555
-6078

skipif mysql # not compatible
query II rowsort label-592
SELECT DISTINCT - 96 * + 78 + COUNT ( DISTINCT + - 90 ) + + - 68, ( + NULLIF ( + - 61, - 98 * + 28 ) ) * 99 + + - 38 / - - 1 + - COUNT ( * ) AS col2
----
-7555
-6078

query I rowsort
SELECT ALL + 25 * - ( + 42 ) * + 51 AS col0
----
-53550

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

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

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

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

query I rowsort
SELECT ALL 65 * 30 AS col0
----
1950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-597
SELECT + 71 + - - SUM( DISTINCT + 73 ) + COALESCE ( COUNT( * ), 24 ) * + + 50 * - 51 + - 54 + MAX( DISTINCT - - CAST( + 94 AS SIGNED ) )
----
-2366

skipif mysql # not compatible
query I rowsort label-597
SELECT + 71 + - - SUM ( DISTINCT + 73 ) + COALESCE ( COUNT ( * ), 24 ) * + + 50 * - 51 + - 54 + MAX ( DISTINCT - - CAST ( + 94 AS INTEGER ) )
----
-2366

onlyif mysql # DIV for integer division: 
query I rowsort label-598
SELECT - 77 DIV + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-598
SELECT - 77 / + 91 AS col1
----
0

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

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

query I rowsort
SELECT + 47 + - 39
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT COALESCE ( + + COUNT( * ), - 1 * + - 63, + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-601
SELECT COALESCE ( + + COUNT ( * ), - 1 * + - 63, + 52 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-602
SELECT ALL MAX( DISTINCT - ( CAST( NULL AS DECIMAL ) ) ) * + 97 * 51 - 58 * + 71 + COUNT( * ) * 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL MAX ( DISTINCT - ( CAST ( NULL AS REAL ) ) ) * + 97 * 51 - 58 * + 71 + COUNT ( * ) * 73 AS col1
----
NULL

query I rowsort
SELECT - 41 + 94 * - 12 * - 85 AS col0
----
95839

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT - COUNT( ALL 23 ) * - - 30 + + 56
----
26

skipif mysql # not compatible
query I rowsort label-604
SELECT - COUNT ( ALL 23 ) * - - 30 + + 56
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL ( 46 ) * ( MIN( - - ( 62 ) ) )
----
2852

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL ( 46 ) * ( MIN ( - - ( 62 ) ) )
----
2852

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT + 2 * COUNT( + 39 ) * + NULLIF ( - CASE + 22 WHEN - - 75 THEN + ( - MIN( DISTINCT + ( - - 19 ) ) ) * + 20 END, 26 * 24 ) + + 4 + - 63 * - COALESCE ( + COALESCE ( - 80, 24 + - - 94 - - - AVG ( ALL + 34 ) / + ( - 70 ) ), + 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-607
SELECT + 2 * COUNT ( + 39 ) * + NULLIF ( - CASE + 22 WHEN - - 75 THEN + ( - MIN ( DISTINCT + ( - - 19 ) ) ) * + 20 END, 26 * 24 ) + + 4 + - 63 * - COALESCE ( + COALESCE ( - 80, 24 + - - 94 - - - AVG ( ALL + 34 ) / + ( - 70 ) ), + 98 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-608
SELECT ALL CASE + 57 WHEN + - 87 + + CAST( NULLIF ( - - 47, + + CAST( NULL AS SIGNED ) ) AS DECIMAL ) + + 39 + + 40 / - 28 + 91 THEN NULL WHEN MIN( ALL - ( - 70 ) ) THEN - 15 + 0 WHEN + 85 THEN - + COUNT( * ) + 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL CASE + 57 WHEN + - 87 + + CAST ( NULLIF ( - - 47, + + CAST ( NULL AS INTEGER ) ) AS REAL ) + + 39 + + 40 / - 28 + 91 THEN NULL WHEN MIN ( ALL - ( - 70 ) ) THEN - 15 + 0 WHEN + 85 THEN - + COUNT ( * ) + 51 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL NULLIF ( 4, - + CASE + 70 WHEN 96 THEN NULL ELSE NULLIF ( COUNT( * ), - 43 + + MAX( ALL + - 90 ) + + + COUNT( * ) ) END ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL NULLIF ( 4, - + CASE + 70 WHEN 96 THEN NULL ELSE NULLIF ( COUNT ( * ), - 43 + + MAX ( ALL + - 90 ) + + + COUNT ( * ) ) END ) AS col2
----
4

query I rowsort
SELECT ALL + 44 - + 55
----
-11

query I rowsort
SELECT - 75 * 75 + - 28 AS col2
----
-5653

query I rowsort
SELECT - 14 + + - 83 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT DISTINCT - COALESCE ( + + COUNT( + 53 ), - 6 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT - COALESCE ( + + COUNT ( + 53 ), - 6 ) col1
----
-1

query I rowsort
SELECT 61 + - 89 + + 33
----
5

query I rowsort
SELECT + 97 + + 81
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-617
SELECT + 41 * + - CAST( + - 21 AS SIGNED ) DIV + + COUNT( * ) AS col0
----
861

skipif mysql # not compatible
query I rowsort label-617
SELECT + 41 * + - CAST ( + - 21 AS INTEGER ) / + + COUNT ( * ) AS col0
----
861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-618
SELECT CASE - - ( - CASE + - 19 WHEN 4 THEN NULL WHEN + 70 THEN + + COUNT( * ) END ) WHEN - 89 THEN NULL WHEN - - MIN( ALL - 7 ) * - MIN( 80 ) THEN - COUNT( * ) * - - 27 WHEN - 10 THEN NULL ELSE - + 14 + - 16 + + - 22 END + + 34 - + ( CAST( COUNT( * ) AS SIGNED ) ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-618
SELECT CASE - - ( - CASE + - 19 WHEN 4 THEN NULL WHEN + 70 THEN + + COUNT ( * ) END ) WHEN - 89 THEN NULL WHEN - - MIN ( ALL - 7 ) * - MIN ( 80 ) THEN - COUNT ( * ) * - - 27 WHEN - 10 THEN NULL ELSE - + 14 + - 16 + + - 22 END + + 34 - + ( CAST ( COUNT ( * ) AS INTEGER ) ) col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-619
SELECT DISTINCT + 51 DIV - ( - 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT + 51 / - ( - 7 ) AS col2
----
7

query II rowsort
SELECT ALL COALESCE ( - 19, 30 * 9 - 56, - - 83 + + 82 + 54 ) col2, - 98 AS col2
----
-19
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT + COUNT( DISTINCT 10 ) + MAX( 24 ) * + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-621
SELECT + COUNT ( DISTINCT 10 ) + MAX ( 24 ) * + COUNT ( * ) AS col0
----
25

query I rowsort
SELECT ALL + - 14 * + - 17 + 98 col1
----
336

query I rowsort
SELECT ALL + 12 + - 22
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT 30 + + MAX( + - ( - - 4 ) ) + + ( - 60 ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-624
SELECT 30 + + MAX ( + - ( - - 4 ) ) + + ( - 60 ) col1
----
-34

query I rowsort
SELECT ALL - 37 + - + 1 AS col1
----
-38

query I rowsort
SELECT ALL + - 2 + + + 56 AS col1
----
54

query I rowsort
SELECT DISTINCT ( + 94 ) AS col2
----
94

query I rowsort
SELECT DISTINCT + + 77 + + 42
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT - MIN( DISTINCT 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-629
SELECT - MIN ( DISTINCT 75 )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-630
SELECT - - 62 DIV 2 + - + 26
----
5

skipif mysql # not compatible
query I rowsort label-630
SELECT - - 62 / 2 + - + 26
----
5

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

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

query I rowsort
SELECT ALL - 85 + 69
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-633
SELECT ALL + 2 + - MAX( DISTINCT + COALESCE ( - 30, + + 69 ) ) * + 63 * + 53 - 7 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-633
SELECT ALL + 2 + - MAX ( DISTINCT + COALESCE ( - 30, + + 69 ) ) * + 63 * + 53 - 7 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-634
SELECT ( - - 15 ) * + - COALESCE ( - + CASE + 47 WHEN 17 DIV + 36 + COUNT( * ) - 65 THEN + 43 * + 71 DIV + - 92 + 42 + - 17 ELSE NULL END, 43 )
----
-645

skipif mysql # not compatible
query I rowsort label-634
SELECT ( - - 15 ) * + - COALESCE ( - + CASE + 47 WHEN 17 / + 36 + COUNT ( * ) - 65 THEN + 43 * + 71 / + - 92 + 42 + - 17 ELSE NULL END, 43 )
----
-645

query I rowsort
SELECT ALL ( + 39 ) - + ( - + ( + 0 ) ) - + + 70
----
-31

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

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

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

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

query II rowsort
SELECT + 47, 35 AS col2
----
47
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-639
SELECT COUNT( ALL + + ( - - 9 ) ) * 85 * + 96 + - 60 + - 5 * + CAST( NULL AS SIGNED ) * + - 58 * + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-639
SELECT COUNT ( ALL + + ( - - 9 ) ) * 85 * + 96 + - 60 + - 5 * + CAST ( NULL AS INTEGER ) * + - 58 * + 64 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 16 AS col0, 42
----
-16
42

query II rowsort
SELECT DISTINCT - 87 AS col1, 78 AS col1
----
-87
78

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT 58 DIV - 91 * - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-642
SELECT 58 / - 91 * - 58 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-643
SELECT ALL 11 DIV - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL 11 / - 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-644
SELECT DISTINCT - COUNT( * ) AS col0, + 70 AS col2
----
-1
70

skipif mysql # not compatible
query II rowsort label-644
SELECT DISTINCT - COUNT ( * ) AS col0, + 70 AS col2
----
-1
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-645
SELECT + 98 * CAST( NULL AS SIGNED ) * - COUNT( * ) - ( - 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-645
SELECT + 98 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) - ( - 27 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT ALL 58 DIV + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL 58 / + 88 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT 83 * - 52 * + 59 * + - COUNT( * ) AS col2
----
254644

skipif mysql # not compatible
query I rowsort label-647
SELECT 83 * - 52 * + 59 * + - COUNT ( * ) AS col2
----
254644

query II rowsort
SELECT 68, + 3 * - 15 AS col2
----
68
-45

query I rowsort
SELECT 98 + + - 76 AS col1
----
22

query I rowsort
SELECT - 73 * + 17
----
-1241

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

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

query I rowsort
SELECT + ( - 71 ) + + - 9 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT DISTINCT + 66 * ( + - MAX( ALL + 46 ) ) + + 17
----
-3019

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT + 66 * ( + - MAX ( ALL + 46 ) ) + + 17
----
-3019

onlyif mysql # aggregate syntax: 
query II rowsort label-654
SELECT ALL 44 col1, COUNT( * ) * - 18 * + 68 + + 15 AS col2
----
44
-1209

skipif mysql # not compatible
query II rowsort label-654
SELECT ALL 44 col1, COUNT ( * ) * - 18 * + 68 + + 15 AS col2
----
44
-1209

query I rowsort
SELECT + 39 * 66 + - ( - 80 ) + + 12 + + - 30 + 57 + 18 * - 35 * + 75
----
-44557

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

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL + 21 + - CAST ( + - 97 AS INTEGER )
----
118

query I rowsort
SELECT DISTINCT - 63 + - 77 + + 9
----
-131

query II rowsort
SELECT - - 68 AS col2, - 59
----
68
-59

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

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

query I rowsort
SELECT 44 * + + 16 - 96
----
608

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-662
SELECT + ( + 39 ) + - - 8 + 32 + - COUNT( 2 ) + - - CASE - + COUNT( * ) WHEN - CAST( - + 35 AS SIGNED ) + - - 80 + + - 40 + - COALESCE ( 21, 53 ) + - 1 - + 38 THEN NULLIF ( - COUNT( * ), + 41 ) + SUM( 52 ) + - + 88 + ( + - 6 ) WHEN + CAST( NULL AS SIGNED ) THEN + 17 ELSE NULLIF ( + - COUNT( 12 ), - - 10 ) * - 29 + - + 66 END - - 96 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-662
SELECT + ( + 39 ) + - - 8 + 32 + - COUNT ( 2 ) + - - CASE - + COUNT ( * ) WHEN - CAST ( - + 35 AS INTEGER ) + - - 80 + + - 40 + - COALESCE ( 21, 53 ) + - 1 - + 38 THEN NULLIF ( - COUNT ( * ), + 41 ) + SUM ( 52 ) + - + 88 + ( + - 6 ) WHEN + CAST ( NULL AS INTEGER ) THEN + 17 ELSE NULLIF ( + - COUNT ( 12 ), - - 10 ) * - 29 + - + 66 END - - 96 AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT - + ( ( - + SUM( - - 56 ) ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-663
SELECT - + ( ( - + SUM ( - - 56 ) ) ) AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-664
SELECT ALL - ( ( - 81 ) ) + + - 87 - + 77 / CAST( NULL AS SIGNED ) + - 41 AS col0, 73 - + 89 AS col1
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-664
SELECT ALL - ( ( - 81 ) ) + + - 87 - + 77 / CAST ( NULL AS INTEGER ) + - 41 AS col0, 73 - + 89 AS col1
----
NULL
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-665
SELECT 24 + + 34 AS col0, 94 * - NULLIF ( 0, - COUNT( * ) DIV 30 * NULLIF ( + + 29, + MIN( - CAST( NULL AS SIGNED ) ) ) * - + 33 ) + + - 85 + - 13 * - 0 AS col0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-665
SELECT 24 + + 34 AS col0, 94 * - NULLIF ( 0, - COUNT ( * ) / 30 * NULLIF ( + + 29, + MIN ( - CAST ( NULL AS INTEGER ) ) ) * - + 33 ) + + - 85 + - 13 * - 0 AS col0
----
58
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-667
SELECT DISTINCT - CAST( 47 AS SIGNED ) * - 39
----
1833

skipif mysql # not compatible
query I rowsort label-667
SELECT DISTINCT - CAST ( 47 AS INTEGER ) * - 39
----
1833

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT DISTINCT + SUM( DISTINCT 12 ) * 12 + 69 * - 46
----
-3030

skipif mysql # not compatible
query I rowsort label-669
SELECT DISTINCT + SUM ( DISTINCT 12 ) * 12 + 69 * - 46
----
-3030

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT ALL + COUNT( * ) * 85 + 82 * + 40 + - 0 * + 9 AS col0
----
3365

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL + COUNT ( * ) * 85 + 82 * + 40 + - 0 * + 9 AS col0
----
3365

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT DISTINCT - COUNT( * ) * 36 * - + 66
----
2376

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT - COUNT ( * ) * 36 * - + 66
----
2376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-673
SELECT MAX( ALL 43 ) DIV - - 1 + + + 55 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-673
SELECT MAX ( ALL 43 ) / - - 1 + + + 55 AS col2
----
98

query I rowsort
SELECT 13 * + + CASE - + 79 WHEN + 68 THEN + 51 * - 7 * 51 WHEN - + 24 THEN 20 * 9 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL - MAX( 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL - MAX ( 8 )
----
-8

query II rowsort
SELECT 68 - + + 44, 4 AS col2
----
24
4

onlyif mysql # DIV for integer division: 
query I rowsort label-678
SELECT ALL - 99 DIV - 81
----
1

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL - 99 / - 81
----
1

query II rowsort
SELECT + 88 * + 96 - 83 AS col2, - 79
----
8365
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-680
SELECT ALL 1 * + - ( + 96 ) - - 24 - - 19 AS col2, CASE + - 25 WHEN COUNT( * ) THEN NULL WHEN - - 63 THEN - - 55 + - SUM( - - 45 ) + - + 38 * ( 4 ) - + - CAST( NULL AS SIGNED ) END
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-680
SELECT ALL 1 * + - ( + 96 ) - - 24 - - 19 AS col2, CASE + - 25 WHEN COUNT ( * ) THEN NULL WHEN - - 63 THEN - - 55 + - SUM ( - - 45 ) + - + 38 * ( 4 ) - + - CAST ( NULL AS INTEGER ) END
----
-53
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-681
SELECT COUNT( * ) * + ( + MIN( + + 16 ) ) DIV 38 + - 70 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-681
SELECT COUNT ( * ) * + ( + MIN ( + + 16 ) ) / 38 + - 70 AS col0
----
-70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-683
SELECT 67 + - + 94 * ( ( + 55 ) ) - - - ( - 32 ) + - 16 DIV 72
----
-5071

skipif mysql # not compatible
query I rowsort label-683
SELECT 67 + - + 94 * ( ( + 55 ) ) - - - ( - 32 ) + - 16 / 72
----
-5071

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT DISTINCT - NULLIF ( + 74, - + 43 + + 61 + + + 35 + COUNT( * ) * COALESCE ( - 32, - 40, + - 87 ) * - + 43 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT - NULLIF ( + 74, - + 43 + + 61 + + + 35 + COUNT ( * ) * COALESCE ( - 32, - 40, + - 87 ) * - + 43 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT + 31 * ( + - 35 ) + 29 * - - COUNT( * ) + 31
----
-1025

skipif mysql # not compatible
query I rowsort label-685
SELECT + 31 * ( + - 35 ) + 29 * - - COUNT ( * ) + 31
----
-1025

query II rowsort
SELECT - 58 + 41 - + 50 + + + ( - 18 ) * ( - 45 ) AS col0, + 65
----
743
65

onlyif mysql # DIV for integer division: 
query I rowsort label-687
SELECT + COALESCE ( - 61, + 20 DIV + 45 * 27, - 18 + + CASE - - 93 WHEN - 46 THEN - ( - 8 ) WHEN + 92 THEN 63 ELSE + 45 + + 79 + 85 + - 41 END )
----
-61

skipif mysql # not compatible
query I rowsort label-687
SELECT + COALESCE ( - 61, + 20 / + 45 * 27, - 18 + + CASE - - 93 WHEN - 46 THEN - ( - 8 ) WHEN + 92 THEN 63 ELSE + 45 + + 79 + 85 + - 41 END )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-688
SELECT + + COUNT( * ) + 79 col0, - 95 - 35 + - - ( + CAST( - COUNT( * ) AS SIGNED ) )
----
80
-131

skipif mysql # not compatible
query II rowsort label-688
SELECT + + COUNT ( * ) + 79 col0, - 95 - 35 + - - ( + CAST ( - COUNT ( * ) AS INTEGER ) )
----
80
-131

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

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

query I rowsort
SELECT + 32 + + 86
----
118

query I rowsort
SELECT DISTINCT 25 + 40 + + ( + 98 ) * - ( - 35 ) AS col1
----
3495

query I rowsort
SELECT + + 79 + + 68 AS col0
----
147

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

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT + COUNT( + + 78 ) + + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-694
SELECT + COUNT ( + + 78 ) + + + COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-695
SELECT - CASE - 64 WHEN - - 79 THEN - 57 * - - 90 - - CASE 65 WHEN + 20 THEN - COUNT( * ) END + 12 - - - 44 / - + ( - 79 ) WHEN - 84 THEN + 58 + - 15 + - 90 WHEN CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT - CASE - 64 WHEN - - 79 THEN - 57 * - - 90 - - CASE 65 WHEN + 20 THEN - COUNT ( * ) END + 12 - - - 44 / - + ( - 79 ) WHEN - 84 THEN + 58 + - 15 + - 90 WHEN CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-696
SELECT + + 29 DIV 71, - COUNT( 69 ) + CAST( 71 AS SIGNED ) * 16 DIV 26 + - + 90 * + COUNT( * ) AS col1
----
0
-48

skipif mysql # not compatible
query II rowsort label-696
SELECT + + 29 / 71, - COUNT ( 69 ) + CAST ( 71 AS INTEGER ) * 16 / 26 + - + 90 * + COUNT ( * ) AS col1
----
0
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-697
SELECT ALL 65 + - - CASE CAST( NULL AS SIGNED ) WHEN 14 THEN - 66 * + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL 65 + - - CASE CAST ( NULL AS INTEGER ) WHEN 14 THEN - 66 * + 30 END
----
NULL

query I rowsort
SELECT ALL - ( + 19 ) * + 85 + 13
----
-1602

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT - COUNT( * ) + - 47 + - 88 AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-699
SELECT - COUNT ( * ) + - 47 + - 88 AS col1
----
-136

query I rowsort
SELECT - + 85 col2
----
-85

query I rowsort
SELECT ALL + 83 - + ( + + 40 ) col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT - MAX( ALL 73 ) + - + 18 col1
----
-91

skipif mysql # not compatible
query I rowsort label-702
SELECT - MAX ( ALL 73 ) + - + 18 col1
----
-91

query II rowsort
SELECT 12 AS col0, 10 + 4
----
12
14

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

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

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

query I rowsort
SELECT - 60 * - - 56 AS col2
----
-3360

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

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT - 21 / - ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT - 24 * - + 2 * + ( + 78 ) * - 38 AS col2
----
-142272

query I rowsort
SELECT DISTINCT - 94 * - + 1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-710
SELECT ALL + CAST( NULL AS SIGNED ), MIN( + + 69 ) + + + 25 AS col2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-710
SELECT ALL + CAST ( NULL AS INTEGER ), MIN ( + + 69 ) + + + 25 AS col2
----
NULL
94

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT ALL + COALESCE ( 28, 1 + - MIN( + - 29 ), + + 34 )
----
28

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + COALESCE ( 28, 1 + - MIN ( + - 29 ), + + 34 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT ALL + COALESCE ( 1, + SUM( + + 4 ), - 68 )
----
1

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL + COALESCE ( 1, + SUM ( + + 4 ), - 68 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT + SUM( ALL + 31 ) * 78 + MIN( + - 48 ) AS col0
----
2370

skipif mysql # not compatible
query I rowsort label-713
SELECT + SUM ( ALL + 31 ) * 78 + MIN ( + - 48 ) AS col0
----
2370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-714
SELECT ALL + 95 * COUNT( * ) DIV + 46
----
2

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL + 95 * COUNT ( * ) / + 46
----
2

query II rowsort
SELECT ALL + 19 AS col0, + 78
----
19
78

query I rowsort
SELECT NULLIF ( 61, - 53 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT + 89 * - - 61 * CAST( - 82 AS SIGNED ) * 76 - - - ( - - 76 ) + + ( COALESCE ( + 29, + 6 ) ) + 65 + - 47 * - 63
----
-33830549

skipif mysql # not compatible
query I rowsort label-717
SELECT + 89 * - - 61 * CAST ( - 82 AS INTEGER ) * 76 - - - ( - - 76 ) + + ( COALESCE ( + 29, + 6 ) ) + 65 + - 47 * - 63
----
-33830549

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-718
SELECT + ( - 18 ) + - - ( COUNT( - CAST( + - ( - 17 ) AS SIGNED ) ) )
----
-17

skipif mysql # not compatible
query I rowsort label-718
SELECT + ( - 18 ) + - - ( COUNT ( - CAST ( + - ( - 17 ) AS INTEGER ) ) )
----
-17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-720
SELECT 32 * CAST( - - 77 AS SIGNED ) * 21 + - - 95 AS col2
----
51839

skipif mysql # not compatible
query I rowsort label-720
SELECT 32 * CAST ( - - 77 AS INTEGER ) * 21 + - - 95 AS col2
----
51839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-721
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( DISTINCT 2 ) * + ( + MAX( ALL 50 ) ) * + 46 + - 41 + - + 10 + - 73 * - + 4, - 78 AS col1
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-721
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT 2 ) * + ( + MAX ( ALL 50 ) ) * + 46 + - 41 + - + 10 + - 73 * - + 4, - 78 AS col1
----
NULL
-78

query I rowsort
SELECT - + 94 * + 17
----
-1598

query II rowsort
SELECT - - 57 * 32 - + 14, + 55 AS col1
----
1810
55

query I rowsort
SELECT ALL + ( + 74 ) AS col2
----
74

query I rowsort
SELECT ALL 82 * 26 + + + 74
----
2206

query II rowsort
SELECT + 40 AS col2, + 56 AS col0
----
40
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-727
SELECT - - CASE + MAX( - - 16 ) WHEN + 11 THEN - SUM( ALL - ( + 31 ) ) WHEN - CAST( NULL AS SIGNED ) THEN - 94 WHEN - 9 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-727
SELECT - - CASE + MAX ( - - 16 ) WHEN + 11 THEN - SUM ( ALL - ( + 31 ) ) WHEN - CAST ( NULL AS INTEGER ) THEN - 94 WHEN - 9 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - + 95 * 7 AS col0
----
-665

query I rowsort
SELECT + 66 * 65 * - 29 AS col0
----
-124410

query II rowsort
SELECT - 41 AS col2, 79 AS col0
----
-41
79

query II rowsort
SELECT 38 AS col1, 72 col1
----
38
72

query I rowsort
SELECT ALL + 47 + + 67 * - - NULLIF ( + 78, 91 )
----
5273

onlyif mysql # DIV for integer division: 
query II rowsort label-733
SELECT DISTINCT - ( - 27 ) - 5 AS col1, 54 DIV - 33
----
22
-1

skipif mysql # not compatible
query II rowsort label-733
SELECT DISTINCT - ( - 27 ) - 5 AS col1, 54 / - 33
----
22
-1

query I rowsort
SELECT DISTINCT - COALESCE ( + 7, + 58 ) AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-735
SELECT 75 AS col2, CAST( + 89 AS SIGNED ) * 42 - + 70 + COUNT( * ) * + 33 * SUM( - - 34 ) AS col1
----
75
4790

skipif mysql # not compatible
query II rowsort label-735
SELECT 75 AS col2, CAST ( + 89 AS INTEGER ) * 42 - + 70 + COUNT ( * ) * + 33 * SUM ( - - 34 ) AS col1
----
75
4790

query II rowsort
SELECT - + 30 AS col1, 50 AS col0
----
-30
50

query I rowsort
SELECT ALL 99 * 19 * - 96 + - 76 * + - 16 AS col1
----
-179360

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

query I rowsort
SELECT - ( ( + - 59 ) ) + 79 AS col2
----
138

query I rowsort
SELECT - - 73 * + 77
----
5621

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-742
SELECT ALL CAST( + 42 AS SIGNED ) * 39
----
1638

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL CAST ( + 42 AS INTEGER ) * 39
----
1638

query II rowsort
SELECT + 31 + + 49, 52 AS col0
----
80
52

query I rowsort
SELECT ALL 42 * 62 * - + 92 AS col0
----
-239568

query I rowsort
SELECT + 48 * + 42 AS col0
----
2016

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT DISTINCT CASE - SUM( ALL - 93 ) WHEN - 62 * + + 50 * + 47 + - 59 + + - 80 * 38 * - 15 THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT CASE - SUM ( ALL - 93 ) WHEN - 62 * + + 50 * + 47 + - 59 + + - 80 * 38 * - 15 THEN + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 1 - - + 8 * + 91
----
729

onlyif mysql # aggregate syntax: 
query II rowsort label-750
SELECT ALL COUNT( * ) * 2, 95 * - + 99 AS col0
----
2
-9405

skipif mysql # not compatible
query II rowsort label-750
SELECT ALL COUNT ( * ) * 2, 95 * - + 99 AS col0
----
2
-9405

query I rowsort
SELECT + 80 * - 8 + + - ( - 29 ) AS col2
----
-611

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

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT COUNT( * ) + - + 18 * 54
----
-971

skipif mysql # not compatible
query I rowsort label-753
SELECT COUNT ( * ) + - + 18 * 54
----
-971

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT + 23 * + + 74 * + 54 * + + COUNT( * ) + - 47 + 65 AS col1
----
91926

skipif mysql # not compatible
query I rowsort label-754
SELECT + 23 * + + 74 * + 54 * + + COUNT ( * ) + - 47 + 65 AS col1
----
91926

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT ALL + 73 * ( + COUNT( + + COALESCE ( + + 14, + - 34 ) ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL + 73 * ( + COUNT ( + + COALESCE ( + + 14, + - 34 ) ) ) AS col1
----
73

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

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT - COUNT ( * ) + - 74 AS col1
----
-75

query I rowsort
SELECT DISTINCT + 64 + - 65 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-758
SELECT ALL - 0 + - 48 * + - SUM( - 44 ) DIV 47 DIV 45 * - NULLIF ( + COUNT( * ), CASE 61 WHEN + CAST( + COUNT( * ) AS SIGNED ) DIV 22 THEN 26 + - - 31 + + + 21 * + 72 * - + AVG ( - 9 ) WHEN - ( + 99 ) + + 23 THEN + + 20 END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL - 0 + - 48 * + - SUM ( - 44 ) / 47 / 45 * - NULLIF ( + COUNT ( * ), CASE 61 WHEN + CAST ( + COUNT ( * ) AS INTEGER ) / 22 THEN 26 + - - 31 + + + 21 * + 72 * - + AVG ( - 9 ) WHEN - ( + 99 ) + + 23 THEN + + 20 END ) AS col1
----
0

query I rowsort
SELECT 92 + + 24 AS col2
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-760
SELECT 4 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-760
SELECT 4 / 75
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-761
SELECT COUNT( * ) + - + 67 AS col2, - 53 col2
----
-66
-53

skipif mysql # not compatible
query II rowsort label-761
SELECT COUNT ( * ) + - + 67 AS col2, - 53 col2
----
-66
-53

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

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

query II rowsort
SELECT ALL + 84 + + - 85 AS col0, 82
----
-1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + + COUNT( * ) * COUNT( * ) * + 89 * + 32 + - 48 * - NULLIF ( + 30, + - 57 * - 37 + - + 27 ) AS col1
----
4288

skipif mysql # not compatible
query I rowsort label-764
SELECT + + COUNT ( * ) * COUNT ( * ) * + 89 * + 32 + - 48 * - NULLIF ( + 30, + - 57 * - 37 + - + 27 ) AS col1
----
4288

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT COALESCE ( COUNT( * ), + 48 ) + 44 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-765
SELECT COALESCE ( COUNT ( * ), + 48 ) + 44 AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT 73 * + - CASE + CAST( NULL AS SIGNED ) WHEN + 72 THEN NULL WHEN COUNT( * ) THEN + - 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT 73 * + - CASE + CAST ( NULL AS INTEGER ) WHEN + 72 THEN NULL WHEN COUNT ( * ) THEN + - 99 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-767
SELECT + COUNT( * ) * + 40 - 49 + 34 * + 31, - 84 + + - ( - 25 ) AS col0
----
1045
-59

skipif mysql # not compatible
query II rowsort label-767
SELECT + COUNT ( * ) * + 40 - 49 + 34 * + 31, - 84 + + - ( - 25 ) AS col0
----
1045
-59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT 53 + - + 4 + - ( + ( - COUNT( * ) ) ) - 76 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-769
SELECT 53 + - + 4 + - ( + ( - COUNT ( * ) ) ) - 76 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT ALL - NULLIF ( + 2, + + COUNT( * ) + + 53 - - 13 * 82 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL - NULLIF ( + 2, + + COUNT ( * ) + + 53 - - 13 * 82 ) col1
----
-2

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

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT MAX ( - 90 )
----
-90

query I rowsort
SELECT - 58 + + 78 * - - 92 + + ( 87 ) AS col2
----
7205

query I rowsort
SELECT ALL + 66 * - 3 * - 41
----
8118

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT DISTINCT - - 13 - - 43 - - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT - - 13 - - 43 - - COUNT ( * )
----
57

query I rowsort
SELECT DISTINCT + 33 * 38 * ( + 2 )
----
2508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-776
SELECT 37 * - + ( - COUNT( * ) ) DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-776
SELECT 37 * - + ( - COUNT ( * ) ) / - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT ALL + NULLIF ( COUNT( * ), + 65 * - 55 ) * ( + + 19 ) + - + CASE 78 WHEN + 71 THEN + COUNT( * ) WHEN - ( + COUNT( + 24 ) ) THEN + 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL + NULLIF ( COUNT ( * ), + 65 * - 55 ) * ( + + 19 ) + - + CASE 78 WHEN + 71 THEN + COUNT ( * ) WHEN - ( + COUNT ( + 24 ) ) THEN + 70 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT CASE - 65 WHEN + - 94 + - MIN( + 0 ) THEN 34 * - 20 ELSE NULL END + + + 61 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-778
SELECT CASE - 65 WHEN + - 94 + - MIN ( + 0 ) THEN 34 * - 20 ELSE NULL END + + + 61 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-779
SELECT DISTINCT 78, - COUNT( * ) * 92 AS col0
----
78
-92

skipif mysql # not compatible
query II rowsort label-779
SELECT DISTINCT 78, - COUNT ( * ) * 92 AS col0
----
78
-92

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-782
SELECT ALL 12 DIV - 60 * + 85
----
0

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL 12 / - 60 * + 85
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-783
SELECT DISTINCT + 95 + + NULLIF ( - 14, 17 * - + 8 ), 77 * - CAST( ( + 84 ) AS SIGNED ) col1
----
81
-6468

skipif mysql # not compatible
query II rowsort label-783
SELECT DISTINCT + 95 + + NULLIF ( - 14, 17 * - + 8 ), 77 * - CAST ( ( + 84 ) AS INTEGER ) col1
----
81
-6468

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-785
SELECT ( 63 ) * - 42 * - + 27 * - COUNT( * ) DIV - COUNT( * )
----
71442

skipif mysql # not compatible
query I rowsort label-785
SELECT ( 63 ) * - 42 * - + 27 * - COUNT ( * ) / - COUNT ( * )
----
71442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-786
SELECT DISTINCT 94 + - CASE - ( 42 ) WHEN - COUNT( * ) THEN NULL WHEN + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) THEN NULL WHEN + 29 * - 66 / COUNT( + 20 ) * - 67 THEN 95 END + 58 + + + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT 94 + - CASE - ( 42 ) WHEN - COUNT ( * ) THEN NULL WHEN + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) THEN NULL WHEN + 29 * - 66 / COUNT ( + 20 ) * - 67 THEN 95 END + 58 + + + 54 AS col2
----
NULL

query I rowsort
SELECT 67 * - 19 AS col0
----
-1273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-788
SELECT 77 DIV - - COUNT( + + 77 ) + - + 39 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-788
SELECT 77 / - - COUNT ( + + 77 ) + - + 39 AS col0
----
38

query I rowsort
SELECT DISTINCT 88 * - 22 * 96 AS col2
----
-185856

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT ALL COUNT( * ) + 20 * 31
----
621

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL COUNT ( * ) + 20 * 31
----
621

query II rowsort
SELECT 69 AS col1, 42 * 61 AS col0
----
69
2562

query I rowsort
SELECT ALL 81 + 85 col0
----
166

query I rowsort
SELECT DISTINCT 52 * + + 40
----
2080

query I rowsort
SELECT DISTINCT 10 + - 79
----
-69

query I rowsort
SELECT ALL 45 + + 41 col0
----
86

query I rowsort
SELECT + 43 * NULLIF ( 12, + 21 / 23 ) - 74 AS col2
----
442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-797
SELECT 27 * NULLIF ( 27 * 15, - CAST( NULL AS SIGNED ) ) AS col0
----
10935

skipif mysql # not compatible
query I rowsort label-797
SELECT 27 * NULLIF ( 27 * 15, - CAST ( NULL AS INTEGER ) ) AS col0
----
10935

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT ALL - MAX( 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL - MAX ( 69 ) AS col2
----
-69

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

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

query I rowsort
SELECT 34 + 11 * - 37
----
-373

query I rowsort
SELECT DISTINCT + 98 * - 40
----
-3920

query I rowsort
SELECT DISTINCT 38 * 96 AS col1
----
3648

query I rowsort
SELECT 7 * + 70 AS col0
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT DISTINCT COUNT( ALL 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-804
SELECT DISTINCT COUNT ( ALL 27 ) AS col1
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-806
SELECT DISTINCT - 62 DIV 57
----
-1

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT - 62 / 57
----
-1

query I rowsort
SELECT 48 - ( 94 )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-808
SELECT 52 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-808
SELECT 52 / - 85
----
0

query I rowsort
SELECT 58 * 44
----
2552

query I rowsort
SELECT DISTINCT NULLIF ( + 37, 5 )
----
37

query I rowsort
SELECT ALL + 81 + 73 AS col2
----
154

query I rowsort
SELECT ALL + 8 + 56 AS col1
----
64

query I rowsort
SELECT - 65 + + 60
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT - NULLIF ( + 59, + 62 * COUNT( * ) ) + 14 col2
----
-45

skipif mysql # not compatible
query I rowsort label-814
SELECT - NULLIF ( + 59, + 62 * COUNT ( * ) ) + 14 col2
----
-45

query I rowsort
SELECT ALL + 73 * - 28 AS col2
----
-2044

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT ALL NULLIF ( + CASE COUNT( * ) WHEN 86 THEN 67 WHEN 45 THEN - 46 + NULLIF ( 51, - 46 ) WHEN - 5 / + ( 63 ) THEN + 17 * ( + 20 ) ELSE NULL END, - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL NULLIF ( + CASE COUNT ( * ) WHEN 86 THEN 67 WHEN 45 THEN - 46 + NULLIF ( 51, - 46 ) WHEN - 5 / + ( 63 ) THEN + 17 * ( + 20 ) ELSE NULL END, - 82 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-817
SELECT - COUNT( * ) + CASE 37 + 23 / - NULLIF ( 73 * 67, + 32 ) WHEN 36 THEN 51 * 91 WHEN 46 THEN 38 + ( - CAST( + 96 AS SIGNED ) ) / + CAST( 9 - - 77 AS SIGNED ) END * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-817
SELECT - COUNT ( * ) + CASE 37 + 23 / - NULLIF ( 73 * 67, + 32 ) WHEN 36 THEN 51 * 91 WHEN 46 THEN 38 + ( - CAST ( + 96 AS INTEGER ) ) / + CAST ( 9 - - 77 AS INTEGER ) END * 54
----
NULL

query I rowsort
SELECT - 94 + 89 AS col1
----
-5

query I rowsort
SELECT ALL 5 + 78 AS col2
----
83

query I rowsort
SELECT - 11 * 65 col0
----
-715

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-822
SELECT ALL CASE 33 WHEN COUNT( * ) - + 73 THEN NULL WHEN 56 + - CASE - 21 + 74 WHEN + 68 * 32 THEN 73 WHEN 92 THEN + 37 * + CAST( ( + 51 ) AS SIGNED ) - - NULLIF ( COUNT( * ), 27 ) ELSE NULL END THEN NULL ELSE - MAX( ALL 4 ) * - 53 END AS col2
----
212

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL CASE 33 WHEN COUNT ( * ) - + 73 THEN NULL WHEN 56 + - CASE - 21 + 74 WHEN + 68 * 32 THEN 73 WHEN 92 THEN + 37 * + CAST ( ( + 51 ) AS INTEGER ) - - NULLIF ( COUNT ( * ), 27 ) ELSE NULL END THEN NULL ELSE - MAX ( ALL 4 ) * - 53 END AS col2
----
212

onlyif mysql # DIV for integer division: 
query I rowsort label-823
SELECT ALL 58 DIV 13
----
4

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL 58 / 13
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT ALL COUNT( * ) * - 88 - 55
----
-143

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL COUNT ( * ) * - 88 - 55
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-825
SELECT CASE - 79 WHEN - 35 / + ( - AVG ( - 46 ) ) + - 41 THEN CAST( NULL AS SIGNED ) * 7 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-825
SELECT CASE - 79 WHEN - 35 / + ( - AVG ( - 46 ) ) + - 41 THEN CAST ( NULL AS INTEGER ) * 7 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 39 / 48 + CASE - 12 WHEN 64 * 83 THEN 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT ALL + + MAX( DISTINCT + CASE 99 WHEN COALESCE ( 43, 16 ) * + 75 THEN 8 / + 23 - - 51 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL + + MAX ( DISTINCT + CASE 99 WHEN COALESCE ( 43, 16 ) * + 75 THEN 8 / + 23 - - 51 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT - COUNT( * ) * + 38 + - 82 * + ( - 54 ) col2
----
4390

skipif mysql # not compatible
query I rowsort label-828
SELECT - COUNT ( * ) * + 38 + - 82 * + ( - 54 ) col2
----
4390

query I rowsort
SELECT + + 57 * - ( 41 )
----
-2337

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT ALL + 51 * + MAX( ALL 13 ) col2
----
663

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL + 51 * + MAX ( ALL 13 ) col2
----
663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-831
SELECT - 63 * CAST( + 58 AS SIGNED )
----
-3654

skipif mysql # not compatible
query I rowsort label-831
SELECT - 63 * CAST ( + 58 AS INTEGER )
----
-3654

query I rowsort
SELECT - + 58 * - 40 + + 80
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT + - 82 + + COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-833
SELECT + - 82 + + COUNT ( * ) AS col1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT DISTINCT - - 46 DIV - 42 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT - - 46 / - 42 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT ALL 16 * + MIN( ALL - 22 ) AS col0
----
-352

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL 16 * + MIN ( ALL - 22 ) AS col0
----
-352

query I rowsort
SELECT ALL + 37 * + 36 - 24
----
1308

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL - 91 * - NULLIF ( - 23 * + COALESCE ( 54, - CASE ( + COALESCE ( + 59, 11 + + COUNT( * ) ) ) WHEN + 23 THEN 66 WHEN + 34 THEN NULL ELSE NULL END ) - - 52, + 6 * - 47 - 42 / + 10 ) col2
----
-108290

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - 91 * - NULLIF ( - 23 * + COALESCE ( 54, - CASE ( + COALESCE ( + 59, 11 + + COUNT ( * ) ) ) WHEN + 23 THEN 66 WHEN + 34 THEN NULL ELSE NULL END ) - - 52, + 6 * - 47 - 42 / + 10 ) col2
----
-108290

query I rowsort
SELECT + 4 + + 97 AS col0
----
101

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT DISTINCT + - NULLIF ( + COUNT( * ), 52 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT + - NULLIF ( + COUNT ( * ), 52 ) AS col0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT COUNT( * ) * - 18 - - MIN( DISTINCT 59 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-844
SELECT COUNT ( * ) * - 18 - - MIN ( DISTINCT 59 ) AS col1
----
41

query I rowsort
SELECT ALL + NULLIF ( 6, 22 + 42 / + 73 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT + SUM( 18 ) + 98
----
116

skipif mysql # not compatible
query I rowsort label-846
SELECT + SUM ( 18 ) + 98
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT - + 6 + COALESCE ( - 5, + 38 DIV + 66 )
----
-11

skipif mysql # not compatible
query I rowsort label-847
SELECT - + 6 + COALESCE ( - 5, + 38 / + 66 )
----
-11

query I rowsort
SELECT + 6 * - 78 AS col2
----
-468

query I rowsort
SELECT ALL - 42 * - 96 + - 81
----
3951

query I rowsort
SELECT + + 78 + + 57 AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT DISTINCT - - SUM( ALL 49 ) * - 22 col2
----
-1078

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT - - SUM ( ALL 49 ) * - 22 col2
----
-1078

query I rowsort
SELECT DISTINCT 94 + + 61 * - 65
----
-3871

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

skipif mysql # not compatible
query I rowsort label-853
SELECT MAX ( DISTINCT 10 )
----
10

query I rowsort
SELECT ALL - 49 + + 45 AS col2
----
-4

query I rowsort
SELECT - 78 + - + 6 AS col1
----
-84

query I rowsort
SELECT ALL 83 + - 7 * 89
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT - CASE - - 98 WHEN + 76 + + 8 * - 19 THEN - COUNT( 6 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT - CASE - - 98 WHEN + 76 + + 8 * - 19 THEN - COUNT ( 6 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT - ( + COALESCE ( + 11, 49 ) ) + - 5 DIV 71 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-858
SELECT - ( + COALESCE ( + 11, 49 ) ) + - 5 / 71 AS col0
----
-11

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

query I rowsort
SELECT ALL - 50 + - 2 - 76 * + 72 AS col1
----
-5524

query I rowsort
SELECT + 42 * - 31
----
-1302

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT + ( 52 ) * SUM( DISTINCT + 57 * 31 )
----
91884

skipif mysql # not compatible
query I rowsort label-862
SELECT + ( 52 ) * SUM ( DISTINCT + 57 * 31 )
----
91884

query I rowsort
SELECT - 24 + + 76
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT ALL + 77 + + NULLIF ( ( 59 ), COUNT( * ) * 66 ) + ( + 7 + 41 ) * - 88
----
-4088

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL + 77 + + NULLIF ( ( 59 ), COUNT ( * ) * 66 ) + ( + 7 + 41 ) * - 88
----
-4088

query I rowsort
SELECT DISTINCT 41 * - 4 col0
----
-164

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-867
SELECT DISTINCT ( + CASE 53 WHEN 45 - - CASE CAST( + 62 AS DECIMAL ) + COUNT( * ) / CAST( NULL AS SIGNED ) WHEN + ( 91 ) + - COUNT( + 19 ) / + 65 THEN NULL WHEN + 52 / SUM( - 80 ) THEN - 83 ELSE NULL END THEN AVG ( 51 ) + - 61 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT ( + CASE 53 WHEN 45 - - CASE CAST ( + 62 AS REAL ) + COUNT ( * ) / CAST ( NULL AS INTEGER ) WHEN + ( 91 ) + - COUNT ( + 19 ) / + 65 THEN NULL WHEN + 52 / SUM ( - 80 ) THEN - 83 ELSE NULL END THEN AVG ( 51 ) + - 61 END ) AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 35 - - - 53
----
-18

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

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

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

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

query I rowsort
SELECT DISTINCT NULLIF ( 10, + 59 * + 64 )
----
10

query I rowsort
SELECT - 52 - + 88 col0
----
-140

query I rowsort
SELECT DISTINCT - - 86 * - 38 * 96 AS col0
----
-313728

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT ALL - COUNT( * ) * + - 63 * 79
----
4977

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL - COUNT ( * ) * + - 63 * 79
----
4977

query I rowsort
SELECT ALL - 95 * - 84 * + 73 + 37
----
582577

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT ALL + - NULLIF ( 63, 82 * + COUNT( * ) ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL + - NULLIF ( 63, 82 * + COUNT ( * ) ) AS col1
----
-63

query I rowsort
SELECT 34 * - 10 + + 43 AS col0
----
-297

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT + COALESCE ( - NULLIF ( + 65, 28 ), - ( 26 ), + 69 * COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-880
SELECT + COALESCE ( - NULLIF ( + 65, 28 ), - ( 26 ), + 69 * COUNT ( * ) )
----
-65

query I rowsort
SELECT - ( 69 ) * - 50 col0
----
3450

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

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

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

skipif mysql # not compatible
query I rowsort label-883
SELECT + 46 + - COUNT ( * ) + - 14 * - 19 AS col0
----
311

query I rowsort
SELECT DISTINCT 56 * - + ( 90 ) * 45 + 29 AS col1
----
-226771

query I rowsort
SELECT ALL 21 * - CASE 4 WHEN 36 THEN + 26 ELSE NULL END + + 81
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-886
SELECT ALL - - COUNT( * ) * - 76 DIV 11 + - 45 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL - - COUNT ( * ) * - 76 / 11 + - 45 AS col0
----
-51

query I rowsort
SELECT ALL - 38 + + 80 * 11 AS col2
----
842

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT - MIN( - 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-888
SELECT - MIN ( - 72 ) AS col1
----
72

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

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

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

skipif mysql # not compatible
query I rowsort label-890
SELECT + 26 / + COUNT ( * )
----
26

query I rowsort
SELECT ALL 42 * + 36
----
1512

query I rowsort
SELECT 48 - + 55 AS col0
----
-7

query II rowsort
SELECT - 78 AS col2, - 60 AS col2
----
-78
-60

query I rowsort
SELECT DISTINCT 95 + 71 * - 97 * - 16
----
110287

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL 30 + + MAX( - - 33 )
----
63

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL 30 + + MAX ( - - 33 )
----
63

query I rowsort
SELECT 73 * 9 AS col2
----
657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-898
SELECT CAST( 73 AS SIGNED ) - - - 39
----
34

skipif mysql # not compatible
query I rowsort label-898
SELECT CAST ( 73 AS INTEGER ) - - - 39
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-899
SELECT DISTINCT 95 AS col0, + COALESCE ( - 30, 26 * + 33 + + 15 ) - 81 DIV + 79 AS col0
----
95
-31

skipif mysql # not compatible
query II rowsort label-899
SELECT DISTINCT 95 AS col0, + COALESCE ( - 30, 26 * + 33 + + 15 ) - 81 / + 79 AS col0
----
95
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL - COALESCE ( + ( + 80 ), - SUM( - 23 ), + CASE - 59 WHEN - 31 THEN NULL WHEN - 33 - + 65 THEN - 78 * 79 - 24 ELSE NULL END * 11 ) * 8
----
-640

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL - COALESCE ( + ( + 80 ), - SUM ( - 23 ), + CASE - 59 WHEN - 31 THEN NULL WHEN - 33 - + 65 THEN - 78 * 79 - 24 ELSE NULL END * 11 ) * 8
----
-640

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

skipif mysql # not compatible
query I rowsort label-901
SELECT COUNT ( DISTINCT + - 83 ) * 33 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT ALL 94 - - COUNT( * ) + - 57 * + 71
----
-3952

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL 94 - - COUNT ( * ) + - 57 * + 71
----
-3952

query I rowsort
SELECT DISTINCT + 1 * - 36 AS col0
----
-36

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-905
SELECT MIN( ALL - 60 ) + 92 - 57 DIV - NULLIF ( SUM( 98 ), 83 + ( - COUNT( * ) + - COUNT( * ) ) DIV COUNT( * ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-905
SELECT MIN ( ALL - 60 ) + 92 - 57 / - NULLIF ( SUM ( 98 ), 83 + ( - COUNT ( * ) + - COUNT ( * ) ) / COUNT ( * ) ) AS col0
----
32

query I rowsort
SELECT 18 * - 46 * + - 66
----
54648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-907
SELECT 92 + 44 + - COUNT( * ) DIV 55 AS col1
----
136

skipif mysql # not compatible
query I rowsort label-907
SELECT 92 + 44 + - COUNT ( * ) / 55 AS col1
----
136

query I rowsort
SELECT 27 - 37
----
-10

query II rowsort
SELECT 85, 72 AS col1
----
85
72

query I rowsort
SELECT ( ( 15 ) ) + 55 AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT ( - + NULLIF ( + 26, 50 ) ) DIV 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-911
SELECT ( - + NULLIF ( + 26, 50 ) ) / 69 AS col1
----
0

query I rowsort
SELECT - ( + 60 ) + + 37 - 10
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-913
SELECT ALL + NULLIF ( + ( - - 17 ), + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) )
----
17

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

query II rowsort
SELECT ALL 43 AS col0, - 75
----
43
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-915
SELECT ALL + + 46 DIV 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-915
SELECT ALL + + 46 / 85 AS col1
----
0

query I rowsort
SELECT - ( 55 ) * - 52 + 24 * 96 AS col2
----
5164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-917
SELECT ALL + MAX( - 28 ) DIV - 38 * 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL + MAX ( - 28 ) / - 38 * 84 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT ALL - + NULLIF ( + COUNT( * ), + 50 * 79 ) + 56
----
55

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL - + NULLIF ( + COUNT ( * ), + 50 * 79 ) + 56
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-920
SELECT + 5 AS col1, + ( + + ( + CAST( NULLIF ( 4, + COUNT( * ) ) AS SIGNED ) ) )
----
5
4

skipif mysql # not compatible
query II rowsort label-920
SELECT + 5 AS col1, + ( + + ( + CAST ( NULLIF ( 4, + COUNT ( * ) ) AS INTEGER ) ) )
----
5
4

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT ALL - 50 + - 46 + - 11 * COUNT( * )
----
-107

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL - 50 + - 46 + - 11 * COUNT ( * )
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT CASE - 93 WHEN + - COUNT( * ) THEN NULL ELSE + 10 * - 90 END * - 76
----
68400

skipif mysql # not compatible
query I rowsort label-922
SELECT CASE - 93 WHEN + - COUNT ( * ) THEN NULL ELSE + 10 * - 90 END * - 76
----
68400

query I rowsort
SELECT ( + 67 ) * + - 65 AS col1
----
-4355

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-925
SELECT ALL + - CASE - + 25 WHEN + CAST( COUNT( * ) AS DECIMAL ) + - 96 * 12 THEN NULL WHEN 63 THEN 99 END + + 91 / 41
----
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL + - CASE - + 25 WHEN + CAST ( COUNT ( * ) AS REAL ) + - 96 * 12 THEN NULL WHEN 63 THEN 99 END + + 91 / 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-926
SELECT ALL + 67 + 64 + - - CAST( - 58 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL + 67 + 64 + - - CAST ( - 58 AS INTEGER )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT ALL - SUM( DISTINCT - ( - 88 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL - SUM ( DISTINCT - ( - 88 ) )
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-928
SELECT ALL + NULLIF ( + - 32, - - ( + 65 ) ) + CASE - CAST( NULL AS DECIMAL ) WHEN 57 THEN + 53 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL + NULLIF ( + - 32, - - ( + 65 ) ) + CASE - CAST ( NULL AS REAL ) WHEN 57 THEN + 53 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-929
SELECT - 41 * + 62 * ( + 9 ) * - 56 + - 73 DIV + ( + 32 ) AS col1
----
1281166

skipif mysql # not compatible
query I rowsort label-929
SELECT - 41 * + 62 * ( + 9 ) * - 56 + - 73 / + ( + 32 ) AS col1
----
1281166

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT COALESCE ( + + MIN( DISTINCT - ( - ( 82 ) ) ), 33, 2 * ( 47 ) ) * + 22 - 60 AS col1
----
1744

skipif mysql # not compatible
query I rowsort label-930
SELECT COALESCE ( + + MIN ( DISTINCT - ( - ( 82 ) ) ), 33, 2 * ( 47 ) ) * + 22 - 60 AS col1
----
1744

query I rowsort
SELECT DISTINCT - 77 + - 27
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT 67 + - - ( + COUNT( * ) ) - + + 20 + - 19 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-932
SELECT 67 + - - ( + COUNT ( * ) ) - + + 20 + - 19 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-933
SELECT ALL + 14 - + + COUNT( * ) + - 7 - - CASE + 77 WHEN - CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 44 * 2 THEN NULL WHEN - CAST( NULL AS SIGNED ) + 33 THEN 70 END * - 99 - COUNT( * ) / 31 THEN NULL WHEN 54 THEN NULL WHEN 12 THEN - 24 END * - 31 * - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL + 14 - + + COUNT ( * ) + - 7 - - CASE + 77 WHEN - CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 44 * 2 THEN NULL WHEN - CAST ( NULL AS INTEGER ) + 33 THEN 70 END * - 99 - COUNT ( * ) / 31 THEN NULL WHEN 54 THEN NULL WHEN 12 THEN - 24 END * - 31 * - 62 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT COUNT( * ) + - 85 * - 73 AS col0
----
6206

skipif mysql # not compatible
query I rowsort label-935
SELECT COUNT ( * ) + - 85 * - 73 AS col0
----
6206

query I rowsort
SELECT 73 * - 22 * 97
----
-155782

query I rowsort
SELECT DISTINCT 88 * - 75 AS col2
----
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT NULLIF ( - 96, + 22 * + MAX( + 27 ) * 15 ) * + 39
----
-3744

skipif mysql # not compatible
query I rowsort label-938
SELECT NULLIF ( - 96, + 22 * + MAX ( + 27 ) * 15 ) * + 39
----
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT DISTINCT ( + 90 ) * + + 79 + + SUM( ALL + 11 ) AS col1
----
7121

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT ( + 90 ) * + + 79 + + SUM ( ALL + 11 ) AS col1
----
7121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-940
SELECT DISTINCT - CAST( + CASE 58 WHEN - 68 THEN 63 WHEN 42 THEN NULL ELSE - 98 END AS SIGNED ) * 3
----
294

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT - CAST ( + CASE 58 WHEN - 68 THEN 63 WHEN 42 THEN NULL ELSE - 98 END AS INTEGER ) * 3
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT DISTINCT + 45 DIV - 28 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT + 45 / - 28 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT 88 DIV - 35 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-942
SELECT 88 / - 35 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT DISTINCT - 12 + - 36 + - - MAX( ALL - 3 ) * + ( 32 ) * - ( 21 ) AS col1
----
1968

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT - 12 + - 36 + - - MAX ( ALL - 3 ) * + ( 32 ) * - ( 21 ) AS col1
----
1968

query I rowsort
SELECT ALL 53 + - 31
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT - NULLIF ( ( 96 ), 31 ) - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-945
SELECT - NULLIF ( ( 96 ), 31 ) - COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT - MAX( ALL 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-946
SELECT - MAX ( ALL 94 ) AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-947
SELECT - 15 / + 39 * - ( - 86 ) * + CASE - 78 WHEN 18 * - CAST( NULL AS SIGNED ) THEN COUNT( * ) * + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT - 15 / + 39 * - ( - 86 ) * + CASE - 78 WHEN 18 * - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) * + 9 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-948
SELECT DISTINCT - CASE + 41 WHEN - ( + 70 ) * 59 THEN NULL WHEN - 68 THEN NULL WHEN 92 + - CAST( 61 + - 23 / - 41 AS SIGNED ) THEN 25 / + 16 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT - CASE + 41 WHEN - ( + 70 ) * 59 THEN NULL WHEN - 68 THEN NULL WHEN 92 + - CAST ( 61 + - 23 / - 41 AS INTEGER ) THEN 25 / + 16 END AS col0
----
NULL

query I rowsort
SELECT ALL ( 89 ) * - - 62 * + + 55 + 58 AS col1
----
303548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-950
SELECT + CAST( COALESCE ( - 90, - CAST( - 32 AS SIGNED ) + + 84 ) AS SIGNED ) * - 50 + 5
----
4505

skipif mysql # not compatible
query I rowsort label-950
SELECT + CAST ( COALESCE ( - 90, - CAST ( - 32 AS INTEGER ) + + 84 ) AS INTEGER ) * - 50 + 5
----
4505

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-951
SELECT + 30 DIV + - 64 - NULLIF ( + - 53, - CAST( NULL AS SIGNED ) ) + + 95
----
148

skipif mysql # not compatible
query I rowsort label-951
SELECT + 30 / + - 64 - NULLIF ( + - 53, - CAST ( NULL AS INTEGER ) ) + + 95
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT ALL + - CASE - - CASE - 29 WHEN MIN( + 49 ) * + 30 THEN - 16 END WHEN 63 THEN - COUNT( * ) * - 21 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL + - CASE - - CASE - 29 WHEN MIN ( + 49 ) * + 30 THEN - 16 END WHEN 63 THEN - COUNT ( * ) * - 21 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-953
SELECT DISTINCT - SUM( ALL + - 1 ) DIV + + COUNT( DISTINCT - - 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT - SUM ( ALL + - 1 ) / + + COUNT ( DISTINCT - - 22 ) AS col1
----
1

query I rowsort
SELECT - NULLIF ( 47, ( 76 ) + + 4 ) AS col0
----
-47

query I rowsort
SELECT - + 50 + ( + + 67 )
----
17

query I rowsort
SELECT DISTINCT 6 * - - ( 37 ) * 68 - - 13
----
15109

query II rowsort
SELECT ALL + 32, 83 AS col2
----
32
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-958
SELECT + 23 AS col2, MIN( - 62 ) col2, + - 87 * + ( - COUNT( * ) ) * - CAST( NULL AS SIGNED )
----
23
-62
NULL

skipif mysql # not compatible
query III rowsort label-958
SELECT + 23 AS col2, MIN ( - 62 ) col2, + - 87 * + ( - COUNT ( * ) ) * - CAST ( NULL AS INTEGER )
----
23
-62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT 18 * - 36 + - COUNT( * ) + 75
----
-574

skipif mysql # not compatible
query I rowsort label-959
SELECT 18 * - 36 + - COUNT ( * ) + 75
----
-574

query I rowsort
SELECT ALL + ( - 39 ) AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT - ( + - 97 ) * - - ( NULLIF ( CASE 56 WHEN - 33 / - CAST( NULL AS SIGNED ) THEN + 49 * + 38 - + 62 ELSE NULL END, - 90 * - 56 ) ) * 31 + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT - ( + - 97 ) * - - ( NULLIF ( CASE 56 WHEN - 33 / - CAST ( NULL AS INTEGER ) THEN + 49 * + 38 - + 62 ELSE NULL END, - 90 * - 56 ) ) * 31 + 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT + 46 * - 61 * - CASE - 21 WHEN + COUNT( * ) * COUNT( * ) THEN NULL WHEN 60 THEN - 72 / + 99 WHEN - 88 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT + 46 * - 61 * - CASE - 21 WHEN + COUNT ( * ) * COUNT ( * ) THEN NULL WHEN 60 THEN - 72 / + 99 WHEN - 88 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-963
SELECT COUNT( * ), 80 col2
----
1
80

skipif mysql # not compatible
query II rowsort label-963
SELECT COUNT ( * ), 80 col2
----
1
80

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT + COUNT( * ) * + 64 * + 25 + + - COUNT( * ) * - - 34 * 60 col0
----
-440

skipif mysql # not compatible
query I rowsort label-964
SELECT + COUNT ( * ) * + 64 * + 25 + + - COUNT ( * ) * - - 34 * 60 col0
----
-440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-965
SELECT ALL NULLIF ( + CAST( NULL AS SIGNED ), + - 25 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL NULLIF ( + CAST ( NULL AS INTEGER ), + - 25 ) AS col1
----
NULL

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

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

query I rowsort
SELECT - 17 * + 91
----
-1547

onlyif mysql # DIV for integer division: 
query I rowsort label-968
SELECT ALL - 83 DIV 61
----
-1

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL - 83 / 61
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ALL MAX( + CASE WHEN NOT - 1 >= ( 13 ) * - 46 - 11 THEN NULL WHEN NOT + 37 IS NOT NULL THEN CASE WHEN + 72 IN ( - 47 ) THEN 74 END ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL MAX ( + CASE WHEN NOT - 1 >= ( 13 ) * - 46 - 11 THEN NULL WHEN NOT + 37 IS NOT NULL THEN CASE WHEN + 72 IN ( - 47 ) THEN 74 END ELSE NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-970
SELECT - 81 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-970
SELECT - 81 / 85
----
0

query I rowsort
SELECT - 99 - + 56 col0
----
-155

query I rowsort
SELECT ALL - 84 * 4 AS col0
----
-336

query I rowsort
SELECT ALL ( - - 47 ) + + 95 AS col0
----
142

query I rowsort
SELECT - 75 - + - 27 col0
----
-48

query I rowsort
SELECT ALL - 66 * + 54 col0
----
-3564

query I rowsort
SELECT DISTINCT + 16 + - 3 col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-977
SELECT - + CASE + - 44 WHEN + 93 THEN NULL WHEN + ( 78 ) DIV 49 THEN NULL WHEN 12 + + 71 THEN NULL ELSE SUM( 95 ) DIV - COUNT( * ) END AS col1
----
95

skipif mysql # not compatible
query I rowsort label-977
SELECT - + CASE + - 44 WHEN + 93 THEN NULL WHEN + ( 78 ) / 49 THEN NULL WHEN 12 + + 71 THEN NULL ELSE SUM ( 95 ) / - COUNT ( * ) END AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-978
SELECT + ( CASE WHEN NULL <= NULL THEN + 74 END ) * MIN( DISTINCT + CAST( NULL AS SIGNED ) ) - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-978
SELECT + ( CASE WHEN NULL <= NULL THEN + 74 END ) * MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) - 90
----
NULL

query I rowsort
SELECT - - 77 + 15 + 18
----
110

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-981
SELECT - + 2 + - 2 + COUNT( * ) col2, - 6
----
-3
-6

skipif mysql # not compatible
query II rowsort label-981
SELECT - + 2 + - 2 + COUNT ( * ) col2, - 6
----
-3
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT + + CASE MIN( - 54 ) WHEN + + MIN( ALL 56 ) * + ( - COUNT( * ) * 55 ) THEN - 67 WHEN + 30 - 95 THEN NULL WHEN - 34 THEN CASE - ( + CAST( NULL AS SIGNED ) ) WHEN 39 * NULLIF ( + 6, 29 ) THEN - 1 * + 77 ELSE 42 END ELSE 56 * + 62 END - COALESCE ( - 95 + + 81 * COALESCE ( - 77 + 37 * - 60, 40, + ( - COUNT( ALL + 97 ) ) ), - 63 - 77 ) * 32
----
5960336

skipif mysql # not compatible
query I rowsort label-982
SELECT + + CASE MIN ( - 54 ) WHEN + + MIN ( ALL 56 ) * + ( - COUNT ( * ) * 55 ) THEN - 67 WHEN + 30 - 95 THEN NULL WHEN - 34 THEN CASE - ( + CAST ( NULL AS INTEGER ) ) WHEN 39 * NULLIF ( + 6, 29 ) THEN - 1 * + 77 ELSE 42 END ELSE 56 * + 62 END - COALESCE ( - 95 + + 81 * COALESCE ( - 77 + 37 * - 60, 40, + ( - COUNT ( ALL + 97 ) ) ), - 63 - 77 ) * 32
----
5960336

query I rowsort
SELECT DISTINCT + ( 32 ) col2
----
32

query I rowsort
SELECT + - 28 + 17
----
-11

query I rowsort
SELECT ALL + 22 + - ( - ( 8 ) ) * 89 AS col0
----
734

query I rowsort
SELECT + 57 + COALESCE ( - 55, + + 38 * + 72 ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-987
SELECT ALL 0 + COALESCE ( - 20, - COUNT( * ) * 97 * + 75 + 57 + COUNT( * ) * 84, + CAST( 13 AS SIGNED ) ) DIV - NULLIF ( 60, + 2 + - 16 * - 51 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL 0 + COALESCE ( - 20, - COUNT ( * ) * 97 * + 75 + 57 + COUNT ( * ) * 84, + CAST ( 13 AS INTEGER ) ) / - NULLIF ( 60, + 2 + - 16 * - 51 ) AS col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-989
SELECT ALL 7 DIV + ( - 32 ) - + + 25 + - NULLIF ( NULLIF ( + 10, ( - 38 ) ), - ( 29 ) ) + 21 - - 84 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL 7 / + ( - 32 ) - + + 25 + - NULLIF ( NULLIF ( + 10, ( - 38 ) ), - ( 29 ) ) + 21 - - 84 AS col1
----
70

query I rowsort
SELECT + + 1 * + - 78 + + 58 * - 97 * + ( + 76 ) AS col1
----
-427654

query I rowsort
SELECT + + 95 * - 73 col2
----
-6935

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT - - 21 + - + MAX( + 92 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-992
SELECT - - 21 + - + MAX ( + 92 ) AS col1
----
-71

query I rowsort
SELECT ALL + - NULLIF ( + + 18, + + 63 * - 86 ) AS col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-994
SELECT ALL - 25 DIV - 94 - - - 20 * + + COUNT( ALL 18 ) * - COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL - 25 / - 94 - - - 20 * + + COUNT ( ALL 18 ) * - COUNT ( * ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT + 95 * - - MAX( ALL - 86 )
----
-8170

skipif mysql # not compatible
query I rowsort label-995
SELECT + 95 * - - MAX ( ALL - 86 )
----
-8170

query II rowsort
SELECT ALL + 37 * - + 44 * + 97 - - + 38, 60 col0
----
-157878
60

query I rowsort
SELECT ( 56 ) col1
----
56

query II rowsort
SELECT ALL + 22 AS col1, - ( + + 31 )
----
22
-31

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

skipif mysql # not compatible
query I rowsort label-999
SELECT + CAST ( 60 AS INTEGER ) / - - 49 + - - COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1000
SELECT ( CASE - NULLIF ( + + MIN( 76 ), - 80 ) WHEN - CASE 94 WHEN ( - 76 ) THEN 40 ELSE - CAST( NULL AS SIGNED ) * COUNT( * ) END THEN ( - 50 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT ( CASE - NULLIF ( + + MIN ( 76 ), - 80 ) WHEN - CASE 94 WHEN ( - 76 ) THEN 40 ELSE - CAST ( NULL AS INTEGER ) * COUNT ( * ) END THEN ( - 50 ) ELSE NULL END )
----
NULL

query I rowsort
SELECT - 65 * + 62
----
-4030

query II rowsort
SELECT + 87, 27 AS col2
----
87
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1003
SELECT + NULLIF ( 66, - AVG ( ALL ( + 57 ) ) ) * - + CAST( - 78 AS SIGNED ) * COUNT( * ) + - 78 + + 96 AS col0
----
5166

skipif mysql # not compatible
query I rowsort label-1003
SELECT + NULLIF ( 66, - AVG ( ALL ( + 57 ) ) ) * - + CAST ( - 78 AS INTEGER ) * COUNT ( * ) + - 78 + + 96 AS col0
----
5166

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

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

query I rowsort
SELECT 87 * - ( - CASE ( + 47 ) WHEN - 69 THEN + 21 * - 31 + 33 WHEN 58 THEN + 81 * 74 ELSE NULL END ) - - 83 * + 29 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1006
SELECT COALESCE ( CAST( NULL AS SIGNED ), 65, + 88, - + COALESCE ( + + COUNT( * ), 79 * + 65 + - 30 ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1006
SELECT COALESCE ( CAST ( NULL AS INTEGER ), 65, + 88, - + COALESCE ( + + COUNT ( * ), 79 * + 65 + - 30 ) ) AS col0
----
65

query I rowsort
SELECT ALL + 97 * 41
----
3977

query I rowsort
SELECT + 5 + - 5 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1009
SELECT ALL 25 * CAST( - 81 AS SIGNED ) + + + 62 * + COALESCE ( + 18, NULLIF ( CAST( NULL AS SIGNED ), + 83 * + COUNT( * ) ) * COUNT( * ) )
----
-909

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL 25 * CAST ( - 81 AS INTEGER ) + + + 62 * + COALESCE ( + 18, NULLIF ( CAST ( NULL AS INTEGER ), + 83 * + COUNT ( * ) ) * COUNT ( * ) )
----
-909

query II rowsort
SELECT DISTINCT + 40 col0, 44 * + 22
----
40
968

query I rowsort
SELECT - 99 + 16 * - 98 AS col0
----
-1667

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1013
SELECT ALL 64 * - + 68 DIV + + COUNT( * )
----
-4352

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL 64 * - + 68 / + + COUNT ( * )
----
-4352

query I rowsort
SELECT 25 * - 19 + 12 - + 98
----
-561

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1015
SELECT ALL CAST( NULL AS DECIMAL ) col1, 46
----
NULL
46

skipif mysql # not compatible
query II rowsort label-1015
SELECT ALL CAST ( NULL AS REAL ) col1, 46
----
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT - 52 + 65 * + ( - - SUM( + - NULLIF ( - - 2, - 95 ) ) )
----
-182

skipif mysql # not compatible
query I rowsort label-1016
SELECT - 52 + 65 * + ( - - SUM ( + - NULLIF ( - - 2, - 95 ) ) )
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1017
SELECT ALL + 0 * + 26 + - CAST( NULL AS SIGNED ) + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + 0 * + 26 + - CAST ( NULL AS INTEGER ) + + 58
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1018
SELECT - 28 + - 49 + MAX( ALL + 79 ) DIV - - 23
----
-74

skipif mysql # not compatible
query I rowsort label-1018
SELECT - 28 + - 49 + MAX ( ALL + 79 ) / - - 23
----
-74

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1020
SELECT - 90 AS col1, 87 * + CAST( - 62 AS SIGNED ) col1
----
-90
-5394

skipif mysql # not compatible
query II rowsort label-1020
SELECT - 90 AS col1, 87 * + CAST ( - 62 AS INTEGER ) col1
----
-90
-5394

query II rowsort
SELECT - 74 + + 54 AS col0, 39
----
-20
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1022
SELECT ALL - + NULLIF ( CAST( 72 AS SIGNED ), + - 98 * - - 34 * - 12 ) + 92 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL - + NULLIF ( CAST ( 72 AS INTEGER ), + - 98 * - - 34 * - 12 ) + 92 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL + MIN( 22 ) + 6 + - + ( + ( 26 ) ) * 72 * 99
----
-185300

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL + MIN ( 22 ) + 6 + - + ( + ( 26 ) ) * 72 * 99
----
-185300

query I rowsort
SELECT ALL - + 68 * + - 18 AS col0
----
1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1025
SELECT + COUNT( DISTINCT + 18 ) DIV + - 76
----
0

skipif mysql # not compatible
query I rowsort label-1025
SELECT + COUNT ( DISTINCT + 18 ) / + - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT DISTINCT - 69 * + 60 + COUNT( * ) + + 42 + + + COUNT( * ) * - 19
----
-4116

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT - 69 * + 60 + COUNT ( * ) + + 42 + + + COUNT ( * ) * - 19
----
-4116

query I rowsort
SELECT - - ( 25 ) AS col0
----
25

query II rowsort
SELECT + 80, 10 - 73 AS col1
----
80
-63

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1030
SELECT - 53 AS col1, 95 + - 64 + MIN( ALL - - 13 ) AS col1
----
-53
44

skipif mysql # not compatible
query II rowsort label-1030
SELECT - 53 AS col1, 95 + - 64 + MIN ( ALL - - 13 ) AS col1
----
-53
44

onlyif mysql # aggregate syntax: 
query II rowsort label-1031
SELECT - COUNT( * ) AS col1, 52 + + - 24 col2
----
-1
28

skipif mysql # not compatible
query II rowsort label-1031
SELECT - COUNT ( * ) AS col1, 52 + + - 24 col2
----
-1
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1032
SELECT ALL - COUNT( * ), 81 * + - COALESCE ( - + 91, ( - + 0 ) + + 2 ) AS col2
----
-1
7371

skipif mysql # not compatible
query II rowsort label-1032
SELECT ALL - COUNT ( * ), 81 * + - COALESCE ( - + 91, ( - + 0 ) + + 2 ) AS col2
----
-1
7371

query I rowsort
SELECT + 70 * + NULLIF ( - 65, 62 ) + + + 50 AS col2
----
-4500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1034
SELECT + 60 / - CASE - CAST( + - COUNT( * ) AS SIGNED ) WHEN - COUNT( * ) - - - 43 THEN 13 WHEN - 18 THEN COUNT( * ) * + 81 END * 68 - + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT + 60 / - CASE - CAST ( + - COUNT ( * ) AS INTEGER ) WHEN - COUNT ( * ) - - - 43 THEN 13 WHEN - 18 THEN COUNT ( * ) * + 81 END * 68 - + 15 AS col2
----
NULL

query I rowsort
SELECT ALL 30 * ( + 66 )
----
1980

onlyif mysql # DIV for integer division: 
query II rowsort label-1036
SELECT 76 DIV 20 col0, + 36 + + 10
----
3
46

skipif mysql # not compatible
query II rowsort label-1036
SELECT 76 / 20 col0, + 36 + + 10
----
3
46

query I rowsort
SELECT 12 * 63
----
756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1038
SELECT + 97 * - + MIN( DISTINCT - 80 ) + - CAST( NULL AS SIGNED ) + NULLIF ( 96, - ( + COALESCE ( - 15, - 65 ) ) * AVG ( DISTINCT 52 * 56 ) + 49 * 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT + 97 * - + MIN ( DISTINCT - 80 ) + - CAST ( NULL AS INTEGER ) + NULLIF ( 96, - ( + COALESCE ( - 15, - 65 ) ) * AVG ( DISTINCT 52 * 56 ) + 49 * 55 )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1040
SELECT 2 DIV - 48 * + CAST( - - 73 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1040
SELECT 2 / - 48 * + CAST ( - - 73 AS INTEGER ) AS col1
----
0

query II rowsort
SELECT DISTINCT 29 * + 57 AS col2, ( - - 76 ) col1
----
1653
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1042
SELECT DISTINCT CASE - + COUNT( * ) WHEN - 69 + + - ( - 26 ) * 42 + - + CAST( + 84 AS SIGNED ) + 47 THEN NULL WHEN - ( - 74 ) THEN NULL WHEN 52 THEN COUNT( * ) END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT CASE - + COUNT ( * ) WHEN - 69 + + - ( - 26 ) * 42 + - + CAST ( + 84 AS INTEGER ) + 47 THEN NULL WHEN - ( - 74 ) THEN NULL WHEN 52 THEN COUNT ( * ) END + - COUNT ( * ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT 23 + - 12 + + COUNT ( * ) AS col2
----
12

query I rowsort
SELECT ALL 58 + - + 90 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT 8 - + COUNT( - 90 ) * 57 * - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-1045
SELECT 8 - + COUNT ( - 90 ) * 57 * - COUNT ( * )
----
65

query II rowsort
SELECT 52 * 61 AS col0, - 80
----
3172
-80

query I rowsort
SELECT - ( 33 ) * + + 96
----
-3168

query I rowsort
SELECT DISTINCT - 33 * - 61 * - 86 AS col1
----
-173118

onlyif mysql # DIV for integer division: 
query II rowsort label-1049
SELECT + 25 - + 53 DIV - 61 AS col1, - 13 DIV 68 AS col1
----
25
0

skipif mysql # not compatible
query II rowsort label-1049
SELECT + 25 - + 53 / - 61 AS col1, - 13 / 68 AS col1
----
25
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1050
SELECT DISTINCT 4 * + + 43 col1, CASE - 98 WHEN CASE - COUNT( 28 ) WHEN - CASE 99 WHEN 41 * + 88 THEN 48 * 13 END + 45 THEN + 21 / COALESCE ( NULLIF ( 72, + 57 ), + 91 ) + - CAST( + CASE + 97 WHEN - 40 THEN ( + 98 ) WHEN + 25 THEN NULL END AS SIGNED ) WHEN 59 + 11 THEN NULL ELSE 80 * 61 END + - 77 / 90 THEN + 51 END
----
172
NULL

skipif mysql # not compatible
query II rowsort label-1050
SELECT DISTINCT 4 * + + 43 col1, CASE - 98 WHEN CASE - COUNT ( 28 ) WHEN - CASE 99 WHEN 41 * + 88 THEN 48 * 13 END + 45 THEN + 21 / COALESCE ( NULLIF ( 72, + 57 ), + 91 ) + - CAST ( + CASE + 97 WHEN - 40 THEN ( + 98 ) WHEN + 25 THEN NULL END AS INTEGER ) WHEN 59 + 11 THEN NULL ELSE 80 * 61 END + - 77 / 90 THEN + 51 END
----
172
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1051
SELECT - ( - CAST( - + ( ( 19 ) ) AS SIGNED ) ) AS col1, MIN( ALL - - 62 ) + + 82
----
-19
144

skipif mysql # not compatible
query II rowsort label-1051
SELECT - ( - CAST ( - + ( ( 19 ) ) AS INTEGER ) ) AS col1, MIN ( ALL - - 62 ) + + 82
----
-19
144

onlyif mysql # aggregate syntax: 
query II rowsort label-1052
SELECT 91 + 15, COUNT( * ) + - + 94 * - 28 - - 0 AS col1
----
106
2633

skipif mysql # not compatible
query II rowsort label-1052
SELECT 91 + 15, COUNT ( * ) + - + 94 * - 28 - - 0 AS col1
----
106
2633

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT - MAX( DISTINCT 44 ) col1
----
-44

skipif mysql # not compatible
query I rowsort label-1053
SELECT - MAX ( DISTINCT 44 ) col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT ALL SUM( - 36 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL SUM ( - 36 ) AS col2
----
-36

query I rowsort
SELECT - 19 + - + 0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT 81 - 10 DIV - + 13 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1056
SELECT 81 - 10 / - + 13 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1057
SELECT ALL - ( - COUNT( * ) ), + CAST( NULL AS SIGNED ) + SUM( - + 43 ) + + - 4 + - - 47 / COUNT( * ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1057
SELECT ALL - ( - COUNT ( * ) ), + CAST ( NULL AS INTEGER ) + SUM ( - + 43 ) + + - 4 + - - 47 / COUNT ( * ) AS col2
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1058
SELECT ALL COALESCE ( + 37, CAST( NULL AS SIGNED ) * + - 17, + 69 + - 23 )
----
37

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL COALESCE ( + 37, CAST ( NULL AS INTEGER ) * + - 17, + 69 + - 23 )
----
37

query II rowsort
SELECT ALL + - 15 * + 16 AS col2, 42 AS col0
----
-240
42

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

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

query I rowsort
SELECT DISTINCT + 96 * + + 49 + + 64
----
4768

query I rowsort
SELECT 67 * + 82 AS col2
----
5494

query I rowsort
SELECT ALL + 69 * 88
----
6072

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1064
SELECT + 55 DIV + COUNT( * ) + + 68 col0, 21 col2
----
123
21

skipif mysql # not compatible
query II rowsort label-1064
SELECT + 55 / + COUNT ( * ) + + 68 col0, 21 col2
----
123
21

query II rowsort
SELECT COALESCE ( - ( 44 ), - 22 + - + 33 ) + 53 AS col2, - 72 * - 95 + - 46
----
9
6794

query I rowsort
SELECT DISTINCT - 15 * + 74 AS col0
----
-1110

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT ALL - 39 * + 8 + 17 DIV - 75 AS col0
----
-312

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL - 39 * + 8 + 17 / - 75 AS col0
----
-312

query I rowsort
SELECT COALESCE ( 32, - 18 ) + - - 71
----
103

query I rowsort
SELECT ALL + NULLIF ( + 7, + 50 ) + + 12 AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1070
SELECT COUNT( * ) DIV + + 79 col2
----
0

skipif mysql # not compatible
query I rowsort label-1070
SELECT COUNT ( * ) / + + 79 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT - 48 * - 71 + - + 1 - COUNT( * ) AS col2
----
3406

skipif mysql # not compatible
query I rowsort label-1071
SELECT - 48 * - 71 + - + 1 - COUNT ( * ) AS col2
----
3406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1072
SELECT 53 - + CAST( - 91 AS SIGNED )
----
144

skipif mysql # not compatible
query I rowsort label-1072
SELECT 53 - + CAST ( - 91 AS INTEGER )
----
144

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

skipif mysql # not compatible
query I rowsort label-1073
SELECT + MIN ( + 5 )
----
5

query I rowsort
SELECT ALL NULLIF ( - 41, 22 + - 89 ) * 90 - + 59 * - 37
----
-1507

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT COUNT( * ) + - - 76 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-1075
SELECT COUNT ( * ) + - - 76 AS col2
----
77

query I rowsort
SELECT + 73 * - 85 * + + 79 - ( + 81 ) * + + 91 * - + 69 AS col2
----
18404

query I rowsort
SELECT DISTINCT + 53 * + 7 * - - 0 AS col2
----
0

query I rowsort
SELECT ALL 93 - 28
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT + COUNT( ALL 55 ) * + + 86 col1
----
86

skipif mysql # not compatible
query I rowsort label-1080
SELECT + COUNT ( ALL 55 ) * + + 86 col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1081
SELECT + 36 + 40 + + ( - 98 ) * + - 74 * + 46 AS col0, MAX( + 45 ) - - 60
----
333668
105

skipif mysql # not compatible
query II rowsort label-1081
SELECT + 36 + 40 + + ( - 98 ) * + - 74 * + 46 AS col0, MAX ( + 45 ) - - 60
----
333668
105

onlyif mysql # DIV for integer division: 
query I rowsort label-1082
SELECT + 76 DIV + + 38 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1082
SELECT + 76 / + + 38 AS col0
----
2

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

skipif mysql # not compatible
query II rowsort label-1083
SELECT + + 58 / + + ( 51 ) * - COUNT ( * ) AS col2, 73
----
-1
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1084
SELECT - COALESCE ( + 57, 72 * - + 12 - - 71, + 31 DIV + + 37 - + + 87 + 70 )
----
-57

skipif mysql # not compatible
query I rowsort label-1084
SELECT - COALESCE ( + 57, 72 * - + 12 - - 71, + 31 / + + 37 - + + 87 + 70 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT - - 83 + CASE COUNT( * ) WHEN + - 93 * + ( + 24 ) * + COUNT( * ) + 47 + 46 THEN NULL WHEN SUM( 99 ) THEN NULL WHEN + 6 THEN - 52 + 94 * ( 6 + - 62 * 85 ) END * ( + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1085
SELECT - - 83 + CASE COUNT ( * ) WHEN + - 93 * + ( + 24 ) * + COUNT ( * ) + 47 + 46 THEN NULL WHEN SUM ( 99 ) THEN NULL WHEN + 6 THEN - 52 + 94 * ( 6 + - 62 * 85 ) END * ( + 44 )
----
NULL

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

query I rowsort
SELECT ALL + - 88 * 37
----
-3256

query II rowsort
SELECT - - 29, 42 + + 82 AS col0
----
29
124

query I rowsort
SELECT ALL 22 * + 49 * - 8
----
-8624

query I rowsort
SELECT - + 56 + 54 * - 61 * + 26 - 5 AS col2
----
-85705

query I rowsort
SELECT ALL - 28 + + + 58 - - 95 * - 12
----
-1110

onlyif mysql # aggregate syntax: 
query II rowsort label-1092
SELECT + ( SUM( 94 ) ) - + + 70 AS col2, 12
----
24
12

skipif mysql # not compatible
query II rowsort label-1092
SELECT + ( SUM ( 94 ) ) - + + 70 AS col2, 12
----
24
12

query I rowsort
SELECT + ( 75 ) * 4 AS col0
----
300

query I rowsort
SELECT + 89 - 67 * - 60 * + 97
----
390029

query II rowsort
SELECT ALL 7 * + - 87 * 26 + + 71, 95 AS col2
----
-15763
95

query I rowsort
SELECT ALL - ( - 71 ) * - 22 * + + 67 + ( - 96 ) * 10 * + 34 col2
----
-137294

query I rowsort
SELECT ALL + 38 * - 34 * 91
----
-117572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1098
SELECT ( CASE - COALESCE ( - 93, + - 61 * - - 64 + ( - 44 ) ) WHEN + + 12 THEN + 4 * + CAST( NULL AS SIGNED ) WHEN - 37 + 60 THEN NULL WHEN - 97 * + 51 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1098
SELECT ( CASE - COALESCE ( - 93, + - 61 * - - 64 + ( - 44 ) ) WHEN + + 12 THEN + 4 * + CAST ( NULL AS INTEGER ) WHEN - 37 + 60 THEN NULL WHEN - 97 * + 51 THEN NULL END ) AS col0
----
NULL

query I rowsort
SELECT - 40 * - 96
----
3840

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT 75 DIV - + 77 + - 21
----
-21

skipif mysql # not compatible
query I rowsort label-1100
SELECT 75 / - + 77 + - 21
----
-21

query I rowsort
SELECT - 5 * 48 AS col0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT DISTINCT + CASE - + 17 WHEN 50 THEN NULL WHEN - + 41 / 87 * 1 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT + CASE - + 17 WHEN 50 THEN NULL WHEN - + 41 / 87 * 1 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT - 2 * + COALESCE ( - 49, - ( - + 57 ) * - 17 - + - 14 ) - + COALESCE ( 57, 46 + 96 ) + 13 * 82
----
1107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1104
SELECT COALESCE ( 31, - 65 * 6 DIV - + 83 * + 68 + COALESCE ( - COUNT( * ), + + 61 ) + - COALESCE ( - 47 - COUNT( * ) * - COUNT( * ), 54 ) )
----
31

skipif mysql # not compatible
query I rowsort label-1104
SELECT COALESCE ( 31, - 65 * 6 / - + 83 * + 68 + COALESCE ( - COUNT ( * ), + + 61 ) + - COALESCE ( - 47 - COUNT ( * ) * - COUNT ( * ), 54 ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT - 98 * + NULLIF ( ( - 90 ), + 0 * COUNT( * ) ) AS col2
----
8820

skipif mysql # not compatible
query I rowsort label-1105
SELECT - 98 * + NULLIF ( ( - 90 ), + 0 * COUNT ( * ) ) AS col2
----
8820

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT ALL 38 * - SUM( DISTINCT 68 )
----
-2584

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL 38 * - SUM ( DISTINCT 68 )
----
-2584

query I rowsort
SELECT - + 67 * 48 - - 47 AS col0
----
-3169

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT - CASE + COUNT( * ) WHEN - 91 THEN 54 * + 95 END * - MIN( DISTINCT - 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT - CASE + COUNT ( * ) WHEN - 91 THEN 54 * + 95 END * - MIN ( DISTINCT - 97 ) AS col0
----
NULL

query I rowsort
SELECT + + 28 * + + 43
----
1204

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ( + + ( - 33 ) ) * - 21 + + MAX( - 71 ) AS col1
----
622

skipif mysql # not compatible
query I rowsort label-1110
SELECT ( + + ( - 33 ) ) * - 21 + + MAX ( - 71 ) AS col1
----
622

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1112
SELECT + + 68 * + CASE + + 94 WHEN + - 59 * + CASE 39 WHEN - 47 * ( - + CAST( NULL AS SIGNED ) ) - COUNT( * ) / - 63 THEN NULLIF ( + COALESCE ( 14, - 15 + + 89 / COUNT( 87 ) ), 33 * NULLIF ( + 97 * - 33, - 94 ) ) WHEN + 34 THEN + 77 * - 76 + 60 / 94 END + - SUM( + 33 ) THEN + COUNT( * ) * + NULLIF ( 89, 65 + - 27 * + 39 ) ELSE NULL END + COUNT( * ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1112
SELECT + + 68 * + CASE + + 94 WHEN + - 59 * + CASE 39 WHEN - 47 * ( - + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) / - 63 THEN NULLIF ( + COALESCE ( 14, - 15 + + 89 / COUNT ( 87 ) ), 33 * NULLIF ( + 97 * - 33, - 94 ) ) WHEN + 34 THEN + 77 * - 76 + 60 / 94 END + - SUM ( + 33 ) THEN + COUNT ( * ) * + NULLIF ( 89, 65 + - 27 * + 39 ) ELSE NULL END + COUNT ( * ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 67 + 90
----
157

query I rowsort
SELECT + 37 - - + 58 AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1115
SELECT + + MAX( - 19 ) DIV 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1115
SELECT + + MAX ( - 19 ) / 27 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1116
SELECT + ( + + 18 ) + - 58 + 4 + 94 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1116
SELECT + ( + + 18 ) + - 58 + 4 + 94 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + ( - + 60 ) + 27
----
-33

query I rowsort
SELECT ALL - 5 + 21 col2
----
16

query I rowsort
SELECT ALL - 47 + - 28
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1120
SELECT + - 41 + - 45 + + 47 + - ( - COUNT( * ) ) + + + 95 + + + COUNT( * ) DIV - + 85 * - - 46 * + 57 + COUNT( * ) * ( 47 * + COUNT( * ) + 76 )
----
180

skipif mysql # not compatible
query I rowsort label-1120
SELECT + - 41 + - 45 + + 47 + - ( - COUNT ( * ) ) + + + 95 + + + COUNT ( * ) / - + 85 * - - 46 * + 57 + COUNT ( * ) * ( 47 * + COUNT ( * ) + 76 )
----
180

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1122
SELECT - 95 - - COALESCE ( + COUNT( * ), + 63 DIV + - 50 - - - COUNT( * ) * - 8, - NULLIF ( - 68, + 35 ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1122
SELECT - 95 - - COALESCE ( + COUNT ( * ), + 63 / + - 50 - - - COUNT ( * ) * - 8, - NULLIF ( - 68, + 35 ) ) AS col2
----
-94

query I rowsort
SELECT ALL COALESCE ( - - ( - - 56 ), - 33 ) * - 8 + + - 22 col2
----
-470

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT ALL 12 + - - ( - 41 ) * + COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL 12 + - - ( - 41 ) * + COUNT ( * ) AS col2
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1125
SELECT DISTINCT 6 + COALESCE ( + 87, - 53 DIV + NULLIF ( - 63, - 79 - - COUNT( * ) DIV + - 42 ) + + - 64 + ( + COUNT( DISTINCT 48 ) ) DIV + ( 9 ) + + 89, 8, + 74 * 50 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT 6 + COALESCE ( + 87, - 53 / + NULLIF ( - 63, - 79 - - COUNT ( * ) / + - 42 ) + + - 64 + ( + COUNT ( DISTINCT 48 ) ) / + ( 9 ) + + 89, 8, + 74 * 50 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT ALL - MAX( DISTINCT - 10 ) + - 6
----
4

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL - MAX ( DISTINCT - 10 ) + - 6
----
4

query I rowsort
SELECT + 35 + - 74
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1128
SELECT ALL COUNT( * ) AS col1, + NULLIF ( + 71, + + ( - + MIN( ALL - ( CAST( NULL AS SIGNED ) ) ) ) ) - + + CASE + - COUNT( - + 38 ) WHEN 22 * 59 + + 76 THEN NULL ELSE 29 END AS col0
----
1
42

skipif mysql # not compatible
query II rowsort label-1128
SELECT ALL COUNT ( * ) AS col1, + NULLIF ( + 71, + + ( - + MIN ( ALL - ( CAST ( NULL AS INTEGER ) ) ) ) ) - + + CASE + - COUNT ( - + 38 ) WHEN 22 * 59 + + 76 THEN NULL ELSE 29 END AS col0
----
1
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1129
SELECT - 47 DIV 61 + - - SUM( + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-1129
SELECT - 47 / 61 + - - SUM ( + 29 )
----
29

query I rowsort
SELECT + 23 * 81 AS col1
----
1863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1131
SELECT ALL + CASE - + 42 WHEN - 30 * - NULLIF ( + 98, + + 38 ) + 4 THEN NULL WHEN + 7 THEN CAST( + 30 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL + CASE - + 42 WHEN - 30 * - NULLIF ( + 98, + + 38 ) + 4 THEN NULL WHEN + 7 THEN CAST ( + 30 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 62 - 83
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT 36 * + MAX( ALL 85 ) * 13 * 59
----
2347020

skipif mysql # not compatible
query I rowsort label-1133
SELECT 36 * + MAX ( ALL 85 ) * 13 * 59
----
2347020

query I rowsort
SELECT DISTINCT - 89 * - + 37 AS col2
----
3293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1135
SELECT ALL - COALESCE ( + + 72, + + 66 DIV + CAST( + - MAX( DISTINCT + 2 ) AS SIGNED ) + - + 63 - + 46 * - 74 * COUNT( * ), - 83 * 69 - + 92 )
----
-72

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL - COALESCE ( + + 72, + + 66 / + CAST ( + - MAX ( DISTINCT + 2 ) AS INTEGER ) + - + 63 - + 46 * - 74 * COUNT ( * ), - 83 * 69 - + 92 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1136
SELECT DISTINCT CASE + 15 WHEN - 65 THEN + 77 / + COUNT( * ) WHEN 93 - 51 + - - COALESCE ( + 11, - + 5, CASE - 27 WHEN 61 THEN NULL WHEN 61 THEN - 43 ELSE - 63 + 5 / 38 END ) THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN CAST( + 6 AS SIGNED ) * 51 END - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT CASE + 15 WHEN - 65 THEN + 77 / + COUNT ( * ) WHEN 93 - 51 + - - COALESCE ( + 11, - + 5, CASE - 27 WHEN 61 THEN NULL WHEN 61 THEN - 43 ELSE - 63 + 5 / 38 END ) THEN NULL WHEN CAST ( NULL AS REAL ) THEN CAST ( + 6 AS INTEGER ) * 51 END - - 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1137
SELECT ALL 51 DIV 42 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL 51 / 42 AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT DISTINCT - + ( + 13 ) * + COUNT( * ) col0
----
-13

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT - + ( + 13 ) * + COUNT ( * ) col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1140
SELECT - - 34 * - + 44 - + 83 * 56 + 44 AS col2, + 7 - + + COALESCE ( - 3, - 2 * - + 70 * 2, 13, 9 + 71 ) + - 34 * COUNT( * ) DIV 64 AS col0
----
-6100
10

skipif mysql # not compatible
query II rowsort label-1140
SELECT - - 34 * - + 44 - + 83 * 56 + 44 AS col2, + 7 - + + COALESCE ( - 3, - 2 * - + 70 * 2, 13, 9 + 71 ) + - 34 * COUNT ( * ) / 64 AS col0
----
-6100
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1141
SELECT 66 DIV MAX( ALL 88 )
----
0

skipif mysql # not compatible
query I rowsort label-1141
SELECT 66 / MAX ( ALL 88 )
----
0

query I rowsort
SELECT NULLIF ( + 64, + ( 47 ) ) * - 44 + + 29
----
-2787

query I rowsort
SELECT - 92 * + 33 - - 66 AS col0
----
-2970

query I rowsort
SELECT DISTINCT + 50 * + + ( - - 44 ) AS col2
----
2200

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1145
SELECT ALL - - COALESCE ( + 69, - ( 25 ) + 9 ) + - - 2 + - + 56 * + + ( + + 49 ) + + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL - - COALESCE ( + 69, - ( 25 ) + 9 ) + - - 2 + - + 56 * + + ( + + 49 ) + + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 54 * - 26
----
1404

query I rowsort
SELECT 35 * - 78 AS col0
----
-2730

query I rowsort
SELECT ALL + 11 + + - 87
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-1149
SELECT 15 * + - COUNT( * ) + - - ( - - ( + ( 5 ) ) ) AS col1, - 40 AS col1
----
-10
-40

skipif mysql # not compatible
query II rowsort label-1149
SELECT 15 * + - COUNT ( * ) + - - ( - - ( + ( 5 ) ) ) AS col1, - 40 AS col1
----
-10
-40

query I rowsort
SELECT 58 + 74 AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT ALL + - 41 + + CASE 79 WHEN + 67 + 43 THEN - - ( - 55 ) + 69 WHEN - 65 THEN NULL WHEN + - 21 THEN NULL ELSE NULL END + + SUM( - 64 ) * ( - CASE 63 WHEN 18 THEN + 40 / 0 END * ( 98 ) - - 98 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL + - 41 + + CASE 79 WHEN + 67 + 43 THEN - - ( - 55 ) + 69 WHEN - 65 THEN NULL WHEN + - 21 THEN NULL ELSE NULL END + + SUM ( - 64 ) * ( - CASE 63 WHEN 18 THEN + 40 / 0 END * ( 98 ) - - 98 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1152
SELECT - 1 col0, 2 DIV + 39 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-1152
SELECT - 1 col0, 2 / + 39 AS col2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT 35 + + ( + 9 ) + + - 54 * + MAX( ALL + + 47 ) * + - 7 AS col0
----
17810

skipif mysql # not compatible
query I rowsort label-1153
SELECT 35 + + ( + 9 ) + + - 54 * + MAX ( ALL + + 47 ) * + - 7 AS col0
----
17810

query I rowsort
SELECT ALL 40 * - 13 AS col2
----
-520

query II rowsort
SELECT DISTINCT 67 col0, + 40 AS col1
----
67
40

query II rowsort
SELECT - 68, + 70 col2
----
-68
70

query I rowsort
SELECT DISTINCT - 56 + 10 + - 23 AS col2
----
-69

query I rowsort
SELECT ALL 54 + - 24 AS col0
----
30

query I rowsort
SELECT 21 * + 23
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT 27 + - 9 * - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-1160
SELECT 27 + - 9 * - COUNT ( * )
----
36

query II rowsort
SELECT 37 AS col1, 23
----
37
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1162
SELECT ALL 83 AS col0, CASE COALESCE ( - COALESCE ( - + 7, ( + COUNT( * ) ) + + + MAX( ALL - 41 ) ), - + 37 * + + CAST( NULL AS SIGNED ) + - 78 * - 98, + 20 + - CAST( NULL AS SIGNED ) ) WHEN 65 DIV - 35 THEN NULL ELSE + 62 END DIV 28 AS col2
----
83
2

skipif mysql # not compatible
query II rowsort label-1162
SELECT ALL 83 AS col0, CASE COALESCE ( - COALESCE ( - + 7, ( + COUNT ( * ) ) + + + MAX ( ALL - 41 ) ), - + 37 * + + CAST ( NULL AS INTEGER ) + - 78 * - 98, + 20 + - CAST ( NULL AS INTEGER ) ) WHEN 65 / - 35 THEN NULL ELSE + 62 END / 28 AS col2
----
83
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1164
SELECT ALL 87 * - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL 87 * - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1165
SELECT DISTINCT - 78, COUNT( * ) col1
----
-78
1

skipif mysql # not compatible
query II rowsort label-1165
SELECT DISTINCT - 78, COUNT ( * ) col1
----
-78
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1166
SELECT DISTINCT 10 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT 10 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 65 - + + 95 AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1168
SELECT 36 * CASE - 47 WHEN - - 82 THEN NULL WHEN - 99 + + - 63 THEN COUNT( * ) + COALESCE ( CASE + - 57 WHEN + + 18 THEN CAST( NULL AS DECIMAL ) WHEN ( CASE - 11 WHEN + 97 THEN NULL WHEN 44 THEN + COUNT( * ) * 91 ELSE + COALESCE ( - 26, + 53 + + 7 ) * 43 END ) THEN NULL END, + 53, 2 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1168
SELECT 36 * CASE - 47 WHEN - - 82 THEN NULL WHEN - 99 + + - 63 THEN COUNT ( * ) + COALESCE ( CASE + - 57 WHEN + + 18 THEN CAST ( NULL AS REAL ) WHEN ( CASE - 11 WHEN + 97 THEN NULL WHEN 44 THEN + COUNT ( * ) * 91 ELSE + COALESCE ( - 26, + 53 + + 7 ) * 43 END ) THEN NULL END, + 53, 2 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 71 * + ( 12 )
----
852

query I rowsort
SELECT ALL 45 * 48 * + - 96 AS col0
----
-207360

query II rowsort
SELECT - 77 AS col2, 20
----
-77
20

query I rowsort
SELECT 12 * - 73 + + 53
----
-823

query I rowsort
SELECT DISTINCT - 73 + + 22 AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1174
SELECT DISTINCT 43 + - + COUNT( * ) + - - MAX( DISTINCT + - 92 ) + - - CASE - CAST( 71 AS SIGNED ) WHEN - 10 THEN - 31 ELSE - 34 END AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT 43 + - + COUNT ( * ) + - - MAX ( DISTINCT + - 92 ) + - - CASE - CAST ( 71 AS INTEGER ) WHEN - 10 THEN - 31 ELSE - 34 END AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT DISTINCT - NULLIF ( + + COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT - NULLIF ( + + COUNT ( * ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - + 81 + + - 71 AS col2
----
-152

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1178
SELECT ALL CAST( + 55 AS SIGNED ) DIV 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL CAST ( + 55 AS INTEGER ) / 69 AS col0
----
0

query I rowsort
SELECT DISTINCT 70 + + 27
----
97

query I rowsort
SELECT ALL - + ( 82 ) + + - 50
----
-132

query II rowsort
SELECT + 18 AS col2, - 66
----
18
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT 60 + + 54 DIV - 43
----
59

skipif mysql # not compatible
query I rowsort label-1182
SELECT 60 + + 54 / - 43
----
59

query II rowsort
SELECT 46 AS col2, - 0 + 48 AS col0
----
46
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT + 5 * + 44 * 67 + - 80 + - ( COUNT( * ) ) * + 93 + 71
----
14638

skipif mysql # not compatible
query I rowsort label-1184
SELECT + 5 * + 44 * 67 + - 80 + - ( COUNT ( * ) ) * + 93 + 71
----
14638

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1185
SELECT + 94 * CASE - + 22 WHEN + 52 * 63 / + - 42 * + MIN( ALL 50 ) THEN NULL ELSE + 96 END + + - COUNT( DISTINCT - CAST( 23 AS DECIMAL ) ) + - 31
----
8992

skipif mysql # not compatible
query I rowsort label-1185
SELECT + 94 * CASE - + 22 WHEN + 52 * 63 / + - 42 * + MIN ( ALL 50 ) THEN NULL ELSE + 96 END + + - COUNT ( DISTINCT - CAST ( 23 AS REAL ) ) + - 31
----
8992

onlyif mysql # aggregate syntax: 
query II rowsort label-1186
SELECT DISTINCT 63, - NULLIF ( + COUNT( * ), + 77 ) AS col0
----
63
-1

skipif mysql # not compatible
query II rowsort label-1186
SELECT DISTINCT 63, - NULLIF ( + COUNT ( * ), + 77 ) AS col0
----
63
-1

query I rowsort
SELECT DISTINCT + - ( + 32 ) + + ( - 36 ) * 7 * 31 + + 90
----
-7754

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL - 28 * + + ( COUNT( * ) ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL - 28 * + + ( COUNT ( * ) ) AS col2
----
-28

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

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT SUM ( DISTINCT - 65 )
----
-65

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

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

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

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL SUM ( - 10 )
----
-10

query I rowsort
SELECT 11 + 29
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT ALL - 7 * - - MIN( ALL 12 )
----
-84

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL - 7 * - - MIN ( ALL 12 )
----
-84

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

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

query II rowsort
SELECT - 76 + - 38, + 58 * + + ( ( 66 ) ) + + 19 * 71 + + + 48 AS col1
----
-114
5225

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT ALL SUM( DISTINCT 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL SUM ( DISTINCT 11 ) AS col1
----
11

query I rowsort
SELECT DISTINCT 47 * - 90 * 90 AS col1
----
-380700

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

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

query I rowsort
SELECT ALL - ( - - 26 ) * - 61 * - 56
----
-88816

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT ALL COALESCE ( COUNT( * ), 94 )
----
1

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL COALESCE ( COUNT ( * ), 94 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1201
SELECT DISTINCT CASE + CAST( - 49 AS SIGNED ) WHEN + CASE CAST( AVG ( DISTINCT 0 ) AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN - + AVG ( DISTINCT - 95 ) + - 77 THEN 43 * - MAX( DISTINCT - 52 ) END + - 32 THEN - 34 * 93 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT CASE + CAST ( - 49 AS INTEGER ) WHEN + CASE CAST ( AVG ( DISTINCT 0 ) AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN - + AVG ( DISTINCT - 95 ) + - 77 THEN 43 * - MAX ( DISTINCT - 52 ) END + - 32 THEN - 34 * 93 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 86, + 93 + + - 33 ) col0
----
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1203
SELECT - 34 DIV - CAST( - 69 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1203
SELECT - 34 / - CAST ( - 69 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1204
SELECT + COUNT( * ) * - 53, + 63 AS col2
----
-53
63

skipif mysql # not compatible
query II rowsort label-1204
SELECT + COUNT ( * ) * - 53, + 63 AS col2
----
-53
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT NULLIF ( + COUNT( * ), + 23 * + + 8 + - CASE + + COUNT( * ) WHEN - 80 * - - 79 THEN + 0 * - 41 / - 58 END ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1205
SELECT NULLIF ( + COUNT ( * ), + 23 * + + 8 + - CASE + + COUNT ( * ) WHEN - 80 * - - 79 THEN + 0 * - 41 / - 58 END ) AS col1
----
1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1207
SELECT ALL + 36 DIV 16 + 57 AS col1, - 25
----
59
-25

skipif mysql # not compatible
query II rowsort label-1207
SELECT ALL + 36 / 16 + 57 AS col1, - 25
----
59
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1208
SELECT ALL - 53 * NULLIF ( 86, - 79 ) / + 72 + - 27 * + CAST( NULL AS SIGNED ) + NULLIF ( - + AVG ( DISTINCT + 2 ), + 58 ) / 19 / - COUNT( * ) + COALESCE ( 95, + 10 * - 10 + AVG ( 29 ), 90 / + 8, + 33 ) * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL - 53 * NULLIF ( 86, - 79 ) / + 72 + - 27 * + CAST ( NULL AS INTEGER ) + NULLIF ( - + AVG ( DISTINCT + 2 ), + 58 ) / 19 / - COUNT ( * ) + COALESCE ( 95, + 10 * - 10 + AVG ( 29 ), 90 / + 8, + 33 ) * 33
----
NULL

query II rowsort
SELECT + + 55 * - 44 AS col1, NULLIF ( - + 52, - + 17 - - + 85 ) - - - 26 * + 28 AS col1
----
-2420
-780

query I rowsort
SELECT ALL 50 * - 52 + + 57
----
-2543

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT DISTINCT + SUM( ALL + 79 ) * 87 + 56 AS col2
----
6929

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT + SUM ( ALL + 79 ) * 87 + 56 AS col2
----
6929

query I rowsort
SELECT ALL 49 * - 72 + + 38 AS col2
----
-3490

query I rowsort
SELECT + - 95 * - - NULLIF ( 87, + - 24 ) + + 92 col1
----
-8173

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1216
SELECT 23 * - 41 + + CAST( NULL AS SIGNED ) + CASE + - 10 WHEN + AVG ( + 18 ) - - NULLIF ( - 52, - - 63 ) THEN + 5 END * - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1216
SELECT 23 * - 41 + + CAST ( NULL AS INTEGER ) + CASE + - 10 WHEN + AVG ( + 18 ) - - NULLIF ( - 52, - - 63 ) THEN + 5 END * - 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1217
SELECT + SUM( DISTINCT 37 ), - 53 * + 72 AS col0
----
37
-3816

skipif mysql # not compatible
query II rowsort label-1217
SELECT + SUM ( DISTINCT 37 ), - 53 * + 72 AS col0
----
37
-3816

query I rowsort
SELECT ALL 57 * + 7 + - 16 + - - 92 AS col2
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT ALL + SUM( ALL - + 57 ) * - COUNT( * ) - - 79 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL + SUM ( ALL - + 57 ) * - COUNT ( * ) - - 79 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT - 36 + + MAX( - 86 ) col0
----
-122

skipif mysql # not compatible
query I rowsort label-1220
SELECT - 36 + + MAX ( - 86 ) col0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT ALL NULLIF ( - - COUNT( * ), + 52 ) - + - 5 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL NULLIF ( - - COUNT ( * ), + 52 ) - + - 5 AS col1
----
6

query I rowsort
SELECT + 48 * - + 7 AS col2
----
-336

query I rowsort
SELECT - 54 * + 72
----
-3888

query I rowsort
SELECT + 24 * - 36 * - 99 * - 95 AS col0
----
-8125920

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT - MAX( + 90 ) * + 16
----
-1440

skipif mysql # not compatible
query I rowsort label-1225
SELECT - MAX ( + 90 ) * + 16
----
-1440

onlyif mysql # aggregate syntax: 
query II rowsort label-1226
SELECT 91 AS col1, + COUNT( * ) + - + 90 - + NULLIF ( - 14, 45 * + 26 ) AS col0
----
91
-75

skipif mysql # not compatible
query II rowsort label-1226
SELECT 91 AS col1, + COUNT ( * ) + - + 90 - + NULLIF ( - 14, 45 * + 26 ) AS col0
----
91
-75

query I rowsort
SELECT ALL CASE 25 WHEN - 26 THEN NULL WHEN - - 24 THEN NULL ELSE + + 75 END AS col0
----
75

query I rowsort
SELECT + 18 * - 90 * + 41
----
-66420

query I rowsort
SELECT DISTINCT NULLIF ( - 56, 24 ) * + - ( 34 ) col0
----
1904

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT ALL 82 * + COUNT( + + 71 ) col1
----
82

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL 82 * + COUNT ( + + 71 ) col1
----
82

query I rowsort
SELECT DISTINCT ( - + 70 ) * + 72 col1
----
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT - MAX( DISTINCT - 24 ) * - COUNT( * ) + - 31 col2
----
-55

skipif mysql # not compatible
query I rowsort label-1232
SELECT - MAX ( DISTINCT - 24 ) * - COUNT ( * ) + - 31 col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL COUNT( DISTINCT - + 66 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL COUNT ( DISTINCT - + 66 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT + COUNT( * ) + + - 8 + + 32 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1234
SELECT + COUNT ( * ) + + - 8 + + 32 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT - MAX( - 29 ) * + 36 AS col1
----
1044

skipif mysql # not compatible
query I rowsort label-1235
SELECT - MAX ( - 29 ) * + 36 AS col1
----
1044

onlyif mysql # DIV for integer division: 
query II rowsort label-1236
SELECT 42 AS col0, - 17 + 0 + 37 DIV + 6 AS col1
----
42
-11

skipif mysql # not compatible
query II rowsort label-1236
SELECT 42 AS col0, - 17 + 0 + 37 / + 6 AS col1
----
42
-11

query I rowsort
SELECT DISTINCT + 58 + + ( 50 ) * + 21 * - + 3 AS col0
----
-3092

onlyif mysql # aggregate syntax: 
query II rowsort label-1238
SELECT - MAX( DISTINCT 64 ) + 26, 45 AS col0
----
-38
45

skipif mysql # not compatible
query II rowsort label-1238
SELECT - MAX ( DISTINCT 64 ) + 26, 45 AS col0
----
-38
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1239
SELECT + 11 AS col0, ( - + COUNT( * ) ) * + - 49 col0
----
11
49

skipif mysql # not compatible
query II rowsort label-1239
SELECT + 11 AS col0, ( - + COUNT ( * ) ) * + - 49 col0
----
11
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1240
SELECT DISTINCT 47 DIV - 20 + + + 82 + 64 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-1240
SELECT DISTINCT 47 / - 20 + + + 82 + 64 AS col1
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT + + 34 DIV + - 83 + + 49 + - 89 + + + 84 * + 39 - 3
----
3233

skipif mysql # not compatible
query I rowsort label-1241
SELECT + + 34 / + - 83 + + 49 + - 89 + + + 84 * + 39 - 3
----
3233

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT ALL + - ( - COALESCE ( + 50, 75, - COUNT( * ) ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL + - ( - COALESCE ( + 50, 75, - COUNT ( * ) ) ) AS col2
----
50

query I rowsort
SELECT - - 74 * - 16
----
-1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1244
SELECT + COUNT( * ) DIV - - 79 * - - CASE + - 55 WHEN + COALESCE ( 36, - 8 ) + + CASE - CAST( NULL AS SIGNED ) WHEN + + NULLIF ( + 11, 33 ) THEN - - 77 ELSE 79 END THEN COUNT( * ) + 46 DIV 84 WHEN + COUNT( * ) THEN NULL WHEN - 54 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE 69 END
----
0

skipif mysql # not compatible
query I rowsort label-1244
SELECT + COUNT ( * ) / - - 79 * - - CASE + - 55 WHEN + COALESCE ( 36, - 8 ) + + CASE - CAST ( NULL AS INTEGER ) WHEN + + NULLIF ( + 11, 33 ) THEN - - 77 ELSE 79 END THEN COUNT ( * ) + 46 / 84 WHEN + COUNT ( * ) THEN NULL WHEN - 54 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE 69 END
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1246
SELECT DISTINCT - 30 DIV - - 93 + 54 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT - 30 / - - 93 + 54 AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1247
SELECT DISTINCT 55 DIV 6 - + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT 55 / 6 - + COUNT ( * )
----
8

query I rowsort
SELECT DISTINCT + - 32 col2
----
-32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1250
SELECT DISTINCT + + CASE WHEN NOT NULL IN ( + 12, - 22 * - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ), 18 * - NULLIF ( COUNT( * ), 85 ) + - 5 + - 13 ) THEN NULL ELSE - CAST( 47 AS SIGNED ) END
----
-47

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT + + CASE WHEN NOT NULL IN ( + 12, - 22 * - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), 18 * - NULLIF ( COUNT ( * ), 85 ) + - 5 + - 13 ) THEN NULL ELSE - CAST ( 47 AS INTEGER ) END
----
-47

query I rowsort
SELECT - ( - + 48 ) + + ( - ( 1 ) )
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT CASE - 25 WHEN 62 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1253
SELECT CASE - 25 WHEN 62 THEN - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT 21 + - + ( - 32 ) + - 56 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1255
SELECT ( + - 67 ) * + 2 * - - 3 * - + 64 * CASE + + 44 WHEN - 53 + + 3 * CAST( + 23 AS SIGNED ) * COUNT( * ) THEN NULL ELSE 15 END * + ( - 37 ) + - 34 AS col0
----
-14279074

skipif mysql # not compatible
query I rowsort label-1255
SELECT ( + - 67 ) * + 2 * - - 3 * - + 64 * CASE + + 44 WHEN - 53 + + 3 * CAST ( + 23 AS INTEGER ) * COUNT ( * ) THEN NULL ELSE 15 END * + ( - 37 ) + - 34 AS col0
----
-14279074

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT 40 + + - 54 * + 16 * + COUNT( * ) * - + MIN( + 73 ) + 7 AS col0
----
63119

skipif mysql # not compatible
query I rowsort label-1256
SELECT 40 + + - 54 * + 16 * + COUNT ( * ) * - + MIN ( + 73 ) + 7 AS col0
----
63119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1257
SELECT DISTINCT 87 * - 76, 86 * + COALESCE ( - - 56, + 30 + - CAST( NULL AS SIGNED ) ) + + 83 AS col1
----
-6612
4899

skipif mysql # not compatible
query II rowsort label-1257
SELECT DISTINCT 87 * - 76, 86 * + COALESCE ( - - 56, + 30 + - CAST ( NULL AS INTEGER ) ) + + 83 AS col1
----
-6612
4899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1258
SELECT 75 + - - 21 - - 69 DIV + + MIN( 1 ) AS col2
----
165

skipif mysql # not compatible
query I rowsort label-1258
SELECT 75 + - - 21 - - 69 / + + MIN ( 1 ) AS col2
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1259
SELECT CAST( NULL AS SIGNED ) + 56 - - + 83 * + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1259
SELECT CAST ( NULL AS INTEGER ) + 56 - - + 83 * + 43 AS col2
----
NULL

query II rowsort
SELECT ALL 22 * + 81, 26 col0
----
1782
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1261
SELECT 52 DIV 49 * + 4
----
4

skipif mysql # not compatible
query I rowsort label-1261
SELECT 52 / 49 * + 4
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT CASE + 59 WHEN + COUNT( DISTINCT 93 ) + - 69 - 94 - + 34 * - 8 THEN NULL WHEN - + 86 THEN + 16 END + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1262
SELECT CASE + 59 WHEN + COUNT ( DISTINCT 93 ) + - 69 - 94 - + 34 * - 8 THEN NULL WHEN - + 86 THEN + 16 END + + 97
----
NULL

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

query I rowsort
SELECT DISTINCT - 27 + - + 51
----
-78

query I rowsort
SELECT ALL 69 + 50 + + 39
----
158

query I rowsort
SELECT DISTINCT 28 * + 13 * - 38 AS col2
----
-13832

query I rowsort
SELECT ALL 86 * 82
----
7052

onlyif mysql # aggregate syntax: 
query II rowsort label-1268
SELECT DISTINCT COUNT( * ) + - 49, - 99 * 98 col1
----
-48
-9702

skipif mysql # not compatible
query II rowsort label-1268
SELECT DISTINCT COUNT ( * ) + - 49, - 99 * 98 col1
----
-48
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT DISTINCT + 17 + - - ( + - ( - + MAX( + + 71 ) ) )
----
88

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT + 17 + - - ( + - ( - + MAX ( + + 71 ) ) )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1270
SELECT ALL - 42 + - + 19 - - COUNT( * ) * + - 48, 88 AS col1, + 70 DIV 92 * 96 - + + 69 AS col0
----
-109
88
-69

skipif mysql # not compatible
query III rowsort label-1270
SELECT ALL - 42 + - + 19 - - COUNT ( * ) * + - 48, 88 AS col1, + 70 / 92 * 96 - + + 69 AS col0
----
-109
88
-69

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

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

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

query I rowsort
SELECT + 99 * 17 * 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT + 86 * - + ( - 58 ) + - 35 + COUNT( * ) - + - 43 * + + COALESCE ( ( - COUNT( * ) ), + 3, SUM( 68 ) ) * + 0 * + MAX( - 39 ) - - 13 AS col1
----
4967

skipif mysql # not compatible
query I rowsort label-1274
SELECT + 86 * - + ( - 58 ) + - 35 + COUNT ( * ) - + - 43 * + + COALESCE ( ( - COUNT ( * ) ), + 3, SUM ( 68 ) ) * + 0 * + MAX ( - 39 ) - - 13 AS col1
----
4967

query I rowsort
SELECT ALL + + 70 - 77 AS col1
----
-7

query I rowsort
SELECT DISTINCT + 90 * - + ( - 49 ) AS col1
----
4410

query I rowsort
SELECT ALL + - 3 * - NULLIF ( - 47, + ( + - 38 ) / - + 17 )
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT ALL - COUNT( * ) - + 4 + - 54 * 70 + - + 99 * SUM( ALL ( - 63 ) ) - - 3 AS col2
----
2455

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL - COUNT ( * ) - + 4 + - 54 * 70 + - + 99 * SUM ( ALL ( - 63 ) ) - - 3 AS col2
----
2455

query II rowsort
SELECT ALL - ( 80 ), 20 col2
----
-80
20

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1281
SELECT 58 DIV 39 - COALESCE ( 66, - 59 )
----
-65

skipif mysql # not compatible
query I rowsort label-1281
SELECT 58 / 39 - COALESCE ( 66, - 59 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1282
SELECT + + CASE - - 5 WHEN 40 * MAX( ALL - - 64 ) THEN 37 WHEN + + 73 * - + CAST( - 8 AS SIGNED ) + - - 62 THEN 25 + - COUNT( * ) * + ( - ( 53 ) ) / + 26 + MIN( - CASE + 54 WHEN 35 THEN CAST( NULL AS SIGNED ) END ) * 92 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT + + CASE - - 5 WHEN 40 * MAX ( ALL - - 64 ) THEN 37 WHEN + + 73 * - + CAST ( - 8 AS INTEGER ) + - - 62 THEN 25 + - COUNT ( * ) * + ( - ( 53 ) ) / + 26 + MIN ( - CASE + 54 WHEN 35 THEN CAST ( NULL AS INTEGER ) END ) * 92 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 30 * - 97 AS col0
----
-2910

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

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT - 75 / + 63
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT ALL + NULLIF ( + 81, - COUNT( * ) ) + 18
----
99

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL + NULLIF ( + 81, - COUNT ( * ) ) + 18
----
99

query I rowsort
SELECT DISTINCT 24 * + 12 AS col1
----
288

query I rowsort
SELECT DISTINCT 82 * + - 79
----
-6478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1288
SELECT DISTINCT + CAST( NULL AS SIGNED ) + CAST( 93 AS SIGNED ) * + 71 + - - 48 AS col2, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1288
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + CAST ( 93 AS INTEGER ) * + 71 + - - 48 AS col2, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT 30 * 6 AS col0
----
180

query I rowsort
SELECT ( - + 5 ) * - 18
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT ALL 29 + + 29 DIV 57 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL 29 + + 29 / 57 AS col1
----
29

query I rowsort
SELECT DISTINCT 46 + + 2 - - 10 + + 39
----
97

query I rowsort
SELECT ALL 81 + + NULLIF ( - - 54, - 79 )
----
135

query I rowsort
SELECT CASE ( - 69 ) WHEN + 3 + + 31 THEN + 54 END * - 55 - 30 / 73
----
NULL

query II rowsort
SELECT - 0 AS col1, 47
----
0
47

query I rowsort
SELECT DISTINCT 16 + + + 83 col2
----
99

query I rowsort
SELECT 80 * + - 39 AS col2
----
-3120

query I rowsort
SELECT ALL ( - - 50 ) col0
----
50

query I rowsort
SELECT - NULLIF ( - 6, - 85 - - COALESCE ( 32, - - 64 ) + 36 - - + 5 + - - 69 * + 88 )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1300
SELECT + NULLIF ( 59, 58 DIV + COUNT( * ) ) DIV + - 79, ( - SUM( - 33 ) ) col1
----
0
33

skipif mysql # not compatible
query II rowsort label-1300
SELECT + NULLIF ( 59, 58 / + COUNT ( * ) ) / + - 79, ( - SUM ( - 33 ) ) col1
----
0
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT + CASE - - 80 WHEN + 71 * - 23 + MAX( 23 ) - - SUM( - 31 ) - 90 THEN COALESCE ( + 68, + 33 + + 91, + 84 - + ( - 13 ) ) * - COUNT( * ) END * MIN( - 78 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT + CASE - - 80 WHEN + 71 * - 23 + MAX ( 23 ) - - SUM ( - 31 ) - 90 THEN COALESCE ( + 68, + 33 + + 91, + 84 - + ( - 13 ) ) * - COUNT ( * ) END * MIN ( - 78 ) AS col0
----
NULL

query I rowsort
SELECT 4 - + + 80 - - 33
----
-43

query II rowsort
SELECT ALL 69 AS col1, - 49 * 40 * - 25 + - 60
----
69
48940

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

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT + 63 * - - SUM ( DISTINCT - 4 ) AS col2
----
-252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1305
SELECT - COALESCE ( - NULLIF ( + - 60, + + CAST( NULL AS SIGNED ) ), - 3 * - 44 * + COUNT( * ) ) + + ( + + 43 ) + - + 94 * - - 89 * 48
----
-401585

skipif mysql # not compatible
query I rowsort label-1305
SELECT - COALESCE ( - NULLIF ( + - 60, + + CAST ( NULL AS INTEGER ) ), - 3 * - 44 * + COUNT ( * ) ) + + ( + + 43 ) + - + 94 * - - 89 * 48
----
-401585

query I rowsort
SELECT DISTINCT ( - - 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT DISTINCT + 19 * 68 * ( - ( + NULLIF ( + 72, + ( + - COUNT( * ) ) ) ) )
----
-93024

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT + 19 * 68 * ( - ( + NULLIF ( + 72, + ( + - COUNT ( * ) ) ) ) )
----
-93024

query I rowsort
SELECT DISTINCT 10 * ( + 57 ) * + - 61 + + + 41 + + 13
----
-34716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1309
SELECT 73 DIV 93 * - COUNT( 68 ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1309
SELECT 73 / 93 * - COUNT ( 68 ) + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1310
SELECT ALL - + CAST( + + 23 AS SIGNED ) / - - CAST( NULL AS SIGNED ) * + - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL - + CAST ( + + 23 AS INTEGER ) / - - CAST ( NULL AS INTEGER ) * + - 89 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT - 84 DIV + 76 - - 9 + 11 col1
----
19

skipif mysql # not compatible
query I rowsort label-1311
SELECT - 84 / + 76 - - 9 + 11 col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1312
SELECT ALL - CAST( + CASE - 52 WHEN + - CASE - - AVG ( ALL - 27 ) WHEN + 30 THEN + + COUNT( * ) WHEN + 38 + - + 71 THEN NULL END + + - 66 THEN NULL WHEN - - 57 * 51 THEN NULL ELSE - 98 / - 43 + 54 END AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL - CAST ( + CASE - 52 WHEN + - CASE - - AVG ( ALL - 27 ) WHEN + 30 THEN + + COUNT ( * ) WHEN + 38 + - + 71 THEN NULL END + + - 66 THEN NULL WHEN - - 57 * 51 THEN NULL ELSE - 98 / - 43 + 54 END AS INTEGER )
----
-56

query II rowsort
SELECT 98 AS col0, - 56 AS col2
----
98
-56

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

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

query I rowsort
SELECT - 99 * + + 56 AS col1
----
-5544

query I rowsort
SELECT ALL - - 50 * + + 28 AS col0
----
1400

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT ALL + ( 4 ) * 8 * - 89 + + 59 + - - 23 + 97 * 36 DIV 62 - + 39
----
-2749

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL + ( 4 ) * 8 * - 89 + + 59 + - - 23 + 97 * 36 / 62 - + 39
----
-2749

query I rowsort
SELECT ALL + 33 * - 58 + + ( 81 ) + + 49 AS col2
----
-1784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1320
SELECT + CASE + - COUNT( * ) WHEN + 33 / 69 + + 89 * + 94 + - - CASE 72 WHEN - + 76 * + - NULLIF ( ( + - 6 ), + ( - - 13 ) + NULLIF ( ( 89 ), 87 ) ) + + CASE 23 + + ( 30 ) / 68 WHEN 94 * - 81 THEN - COALESCE ( 40, AVG ( 99 ) * 15 ) END THEN + ( 92 ) + COUNT( * ) WHEN 87 * 96 - ( - 86 ) / CAST( NULL AS SIGNED ) THEN NULL ELSE - 48 + - 42 * - 39 END * + 92 THEN NULL WHEN ( + COUNT( * ) ) THEN - 77 WHEN COALESCE ( + 53, 2 ) * - 86 THEN - 29 / + COUNT( * ) + NULLIF ( 24 + 65, - 42 * 68 + - AVG ( ALL 9 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1320
SELECT + CASE + - COUNT ( * ) WHEN + 33 / 69 + + 89 * + 94 + - - CASE 72 WHEN - + 76 * + - NULLIF ( ( + - 6 ), + ( - - 13 ) + NULLIF ( ( 89 ), 87 ) ) + + CASE 23 + + ( 30 ) / 68 WHEN 94 * - 81 THEN - COALESCE ( 40, AVG ( 99 ) * 15 ) END THEN + ( 92 ) + COUNT ( * ) WHEN 87 * 96 - ( - 86 ) / CAST ( NULL AS INTEGER ) THEN NULL ELSE - 48 + - 42 * - 39 END * + 92 THEN NULL WHEN ( + COUNT ( * ) ) THEN - 77 WHEN COALESCE ( + 53, 2 ) * - 86 THEN - 29 / + COUNT ( * ) + NULLIF ( 24 + 65, - 42 * 68 + - AVG ( ALL 9 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT - 18 + - NULLIF ( + COUNT( * ), 43 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1321
SELECT - 18 + - NULLIF ( + COUNT ( * ), 43 ) AS col1
----
-19

query I rowsort
SELECT - 23 * - + ( - 66 )
----
-1518

query I rowsort
SELECT - 35 + - - 93
----
58

query I rowsort
SELECT ALL + 90 + + 19 + - 19
----
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT MAX( DISTINCT - 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-1326
SELECT MAX ( DISTINCT - 84 ) AS col0
----
-84

query I rowsort
SELECT ALL - 26 + + 81
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT ALL - 17 DIV - 64 * + 34
----
0

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL - 17 / - 64 * + 34
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1330
SELECT DISTINCT 34 * - 47 AS col0, COALESCE ( COALESCE ( + + 58, - - COUNT( 5 ) ), + 17 ) AS col1
----
-1598
58

skipif mysql # not compatible
query II rowsort label-1330
SELECT DISTINCT 34 * - 47 AS col0, COALESCE ( COALESCE ( + + 58, - - COUNT ( 5 ) ), + 17 ) AS col1
----
-1598
58

query I rowsort
SELECT ALL + 27 + + - 75
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT DISTINCT - 72 + + - MAX( + + 21 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT - 72 + + - MAX ( + + 21 ) AS col1
----
-93

query I rowsort
SELECT ALL 69 * - 23 * + 5 AS col0
----
-7935

query I rowsort
SELECT ALL 28 * 52 AS col2
----
1456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1335
SELECT + 34 + COUNT( * ) DIV - 27 + - + ( - - 70 ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-1335
SELECT + 34 + COUNT ( * ) / - 27 + - + ( - - 70 ) col1
----
-36

query I rowsort
SELECT ALL NULLIF ( - + 41, - 88 * + 46 + + 80 + + + 43 + + 51 * - 44 )
----
-41

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

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

query I rowsort
SELECT + ( 23 ) + + + 52
----
75

query I rowsort
SELECT ALL 14 * - 40 * + + 34 AS col2
----
-19040

query I rowsort
SELECT - 84 + 90
----
6

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

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

query I rowsort
SELECT - 98 + - 8 AS col1
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1343
SELECT ALL + NULLIF ( ( 7 ), 83 + - 26 + - CAST( NULL AS SIGNED ) * 71 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL + NULLIF ( ( 7 ), 83 + - 26 + - CAST ( NULL AS INTEGER ) * 71 ) AS col1
----
7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1345
SELECT + - 95 * 5 * COALESCE ( - 46, - 60 * 20 + 78 * + + 29 DIV 64 * - CASE - - 74 WHEN 57 THEN 97 WHEN - + 49 * + 64 THEN + + 50 ELSE NULL END ) + 5
----
21855

skipif mysql # not compatible
query I rowsort label-1345
SELECT + - 95 * 5 * COALESCE ( - 46, - 60 * 20 + 78 * + + 29 / 64 * - CASE - - 74 WHEN 57 THEN 97 WHEN - + 49 * + 64 THEN + + 50 ELSE NULL END ) + 5
----
21855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1346
SELECT ALL - COALESCE ( + 37, - COUNT( * ) * - CAST( + 2 AS SIGNED ) DIV CAST( 23 AS SIGNED ) * - COALESCE ( - 82, - + 88 * 89, COUNT( * ) DIV + + 7 * + CASE - 72 WHEN 23 * + 99 THEN - 17 * 84 END * 30 ) * MIN( DISTINCT - 42 * 79 ) + + CAST( - 6 + ( ( 62 ) ) AS SIGNED ) - - 84 * CASE 44 * + 9 WHEN 68 THEN - 59 END + + 55 )
----
-37

skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL - COALESCE ( + 37, - COUNT ( * ) * - CAST ( + 2 AS INTEGER ) / CAST ( 23 AS INTEGER ) * - COALESCE ( - 82, - + 88 * 89, COUNT ( * ) / + + 7 * + CASE - 72 WHEN 23 * + 99 THEN - 17 * 84 END * 30 ) * MIN ( DISTINCT - 42 * 79 ) + + CAST ( - 6 + ( ( 62 ) ) AS INTEGER ) - - 84 * CASE 44 * + 9 WHEN 68 THEN - 59 END + + 55 )
----
-37

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

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL MIN ( ALL - 61 )
----
-61

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

skipif mysql # not compatible
query I rowsort label-1348
SELECT COUNT ( - 92 )
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1350
SELECT + 56 * - CASE + 72 WHEN + + 28 * 32 THEN - 39 / + NULLIF ( + ( - 18 ), - - 49 ) + 35 WHEN MIN( ALL - ( - NULLIF ( - - COALESCE ( - + 80, 98, - 68 * + CAST( NULL AS SIGNED ) + - 13 ), 49 ) ) ) - CAST( - MIN( 91 ) AS SIGNED ) THEN NULL WHEN 34 THEN 35 * 28 END * COALESCE ( + 98 + - COUNT( * ), 46 * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT + 56 * - CASE + 72 WHEN + + 28 * 32 THEN - 39 / + NULLIF ( + ( - 18 ), - - 49 ) + 35 WHEN MIN ( ALL - ( - NULLIF ( - - COALESCE ( - + 80, 98, - 68 * + CAST ( NULL AS INTEGER ) + - 13 ), 49 ) ) ) - CAST ( - MIN ( 91 ) AS INTEGER ) THEN NULL WHEN 34 THEN 35 * 28 END * COALESCE ( + 98 + - COUNT ( * ), 46 * COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT DISTINCT - COUNT( * ) * - 2
----
2

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT - COUNT ( * ) * - 2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1352
SELECT - - 49 / 7 * + - 20 + - 59 * - + 83 * + 44 - 53 * + CAST( NULL AS SIGNED ) + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT - - 49 / 7 * + - 20 + - 59 * - + 83 * + 44 - 53 * + CAST ( NULL AS INTEGER ) + 35
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1353
SELECT + 83 DIV - - 35 + + + 53 * - ( 19 )
----
-1005

skipif mysql # not compatible
query I rowsort label-1353
SELECT + 83 / - - 35 + + + 53 * - ( 19 )
----
-1005

onlyif mysql # aggregate syntax: 
query II rowsort label-1354
SELECT 94 * - COUNT( DISTINCT - ( 30 ) ) + - ( + 39 ), - 60 + - - COUNT( * ) AS col1
----
-133
-59

skipif mysql # not compatible
query II rowsort label-1354
SELECT 94 * - COUNT ( DISTINCT - ( 30 ) ) + - ( + 39 ), - 60 + - - COUNT ( * ) AS col1
----
-133
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1355
SELECT + + COALESCE ( + 6, - 32 + - MAX( DISTINCT - 38 ) + MIN( + 77 ) ) DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-1355
SELECT + + COALESCE ( + 6, - 32 + - MAX ( DISTINCT - 38 ) + MIN ( + 77 ) ) / 59
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1356
SELECT ALL + 70 DIV - COALESCE ( 67, COUNT( * ), - COUNT( * ) * + - 24 + - 70, CASE - 32 WHEN - 7 * + COUNT( * ) + + - 16 THEN - 28 WHEN + + 33 * - - MIN( ALL 94 ) THEN NULL ELSE NULL END DIV + 53 - 59 ) + + CASE 23 WHEN + 43 THEN 8 DIV COUNT( * ) + 48 ELSE 52 END AS col1
----
51

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL + 70 / - COALESCE ( 67, COUNT ( * ), - COUNT ( * ) * + - 24 + - 70, CASE - 32 WHEN - 7 * + COUNT ( * ) + + - 16 THEN - 28 WHEN + + 33 * - - MIN ( ALL 94 ) THEN NULL ELSE NULL END / + 53 - 59 ) + + CASE 23 WHEN + 43 THEN 8 / COUNT ( * ) + 48 ELSE 52 END AS col1
----
51

query I rowsort
SELECT DISTINCT - 22 * - 55 + + 36
----
1246

onlyif mysql # aggregate syntax: 
query II rowsort label-1358
SELECT + 48 + + SUM( DISTINCT 25 ) AS col2, - ( + - ( - - 5 ) ) * - - 79
----
73
395

skipif mysql # not compatible
query II rowsort label-1358
SELECT + 48 + + SUM ( DISTINCT 25 ) AS col2, - ( + - ( - - 5 ) ) * - - 79
----
73
395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1359
SELECT ALL + AVG ( + CAST( NULL AS SIGNED ) ) * - NULLIF ( + - CASE + + 10 WHEN - COUNT( * ) + + NULLIF ( - - NULLIF ( 87, - 82 ), - ( CASE 66 WHEN + COUNT( * ) + COUNT( * ) THEN + COUNT( * ) * + 70 + 61 + - 70 * COUNT( * ) WHEN COUNT( * ) THEN - COUNT( * ) + 29 END ) * 69 ) THEN NULL WHEN 85 * - 26 THEN CAST( + COUNT( * ) AS SIGNED ) * COUNT( * ) WHEN + COUNT( * ) * + COUNT( * ) THEN COALESCE ( + 12, 21 / - COUNT( ALL + 51 ) + 15 * + 61, 98 * - 59 ) + + COUNT( * ) END, - CAST( - 25 AS DECIMAL ) ) + 96 / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL + AVG ( + CAST ( NULL AS INTEGER ) ) * - NULLIF ( + - CASE + + 10 WHEN - COUNT ( * ) + + NULLIF ( - - NULLIF ( 87, - 82 ), - ( CASE 66 WHEN + COUNT ( * ) + COUNT ( * ) THEN + COUNT ( * ) * + 70 + 61 + - 70 * COUNT ( * ) WHEN COUNT ( * ) THEN - COUNT ( * ) + 29 END ) * 69 ) THEN NULL WHEN 85 * - 26 THEN CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( * ) WHEN + COUNT ( * ) * + COUNT ( * ) THEN COALESCE ( + 12, 21 / - COUNT ( ALL + 51 ) + 15 * + 61, 98 * - 59 ) + + COUNT ( * ) END, - CAST ( - 25 AS REAL ) ) + 96 / 59
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1360
SELECT DISTINCT + NULLIF ( 67, + 26 - - 68 ) * + CAST( 4 AS SIGNED ) + + 13 + + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT + NULLIF ( 67, + 26 - - 68 ) * + CAST ( 4 AS INTEGER ) + + 13 + + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1361
SELECT 94 * 65 DIV - SUM( DISTINCT 69 ) * 16 + + MAX( ALL + 40 ) + CASE - + 13 WHEN + 37 THEN + NULLIF ( + 35, + + 55 + + SUM( DISTINCT + 3 ) ) END, SUM( - - 53 ) DIV - ( + 88 ) AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1361
SELECT 94 * 65 / - SUM ( DISTINCT 69 ) * 16 + + MAX ( ALL + 40 ) + CASE - + 13 WHEN + 37 THEN + NULLIF ( + 35, + + 55 + + SUM ( DISTINCT + 3 ) ) END, SUM ( - - 53 ) / - ( + 88 ) AS col2
----
NULL
0

query I rowsort
SELECT ALL 49 * - + 50 * + 60 + + 85 AS col1
----
-146915

query I rowsort
SELECT + 12 * - 82
----
-984

query I rowsort
SELECT 85 * - + 66 + 49 * - - 91
----
-1151

query I rowsort
SELECT ALL - 31 * + - 70
----
2170

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT - COUNT( - 60 ) * COALESCE ( - - 22, COUNT( * ) )
----
-22

skipif mysql # not compatible
query I rowsort label-1366
SELECT - COUNT ( - 60 ) * COALESCE ( - - 22, COUNT ( * ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT DISTINCT 61 * - ( - NULLIF ( + + ( 60 ), - 35 + - + COALESCE ( + 62, COUNT( * ), - 31 ) ) ) - - + NULLIF ( 59, - + 9 ) AS col2
----
3719

skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT 61 * - ( - NULLIF ( + + ( 60 ), - 35 + - + COALESCE ( + 62, COUNT ( * ), - 31 ) ) ) - - + NULLIF ( 59, - + 9 ) AS col2
----
3719

onlyif mysql # DIV for integer division: 
query I rowsort label-1368
SELECT - COALESCE ( - 62, 10 ) DIV + + 99
----
0

skipif mysql # not compatible
query I rowsort label-1368
SELECT - COALESCE ( - 62, 10 ) / + + 99
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1369
SELECT ALL 36 * + CASE - - 73 WHEN - - 36 THEN - COUNT( * ) WHEN + 25 / + 8 THEN - CASE + 52 WHEN - - SUM( DISTINCT - 98 ) * + 85 + ( + 60 ) + - CASE 44 WHEN - 92 THEN 50 END + 78 * - 43 * 59 THEN NULL ELSE + 74 END WHEN 37 + + ( CAST( NULL AS SIGNED ) ) * 49 THEN CAST( NULL AS SIGNED ) ELSE NULL END - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL 36 * + CASE - - 73 WHEN - - 36 THEN - COUNT ( * ) WHEN + 25 / + 8 THEN - CASE + 52 WHEN - - SUM ( DISTINCT - 98 ) * + 85 + ( + 60 ) + - CASE 44 WHEN - 92 THEN 50 END + 78 * - 43 * 59 THEN NULL ELSE + 74 END WHEN 37 + + ( CAST ( NULL AS INTEGER ) ) * 49 THEN CAST ( NULL AS INTEGER ) ELSE NULL END - 9
----
NULL

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

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

query II rowsort
SELECT - 4 * + 9, + 7 AS col1
----
-36
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT - + CASE - - COALESCE ( - + 55, - - 9 + + COALESCE ( 17, + 28 * 13 * + 66 ) ) WHEN + - 88 THEN + CASE - ( + AVG ( DISTINCT - + 95 ) ) WHEN - 5 / CASE + + 41 WHEN + COUNT( 75 ) * MIN( ALL + 33 ) THEN 0 - 44 * 70 END * + 69 THEN 46 WHEN - 51 + 21 THEN NULL END * + 51 ELSE NULL END * - NULLIF ( - SUM( - 82 ), COALESCE ( 1, - 85 ) + 90 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT - + CASE - - COALESCE ( - + 55, - - 9 + + COALESCE ( 17, + 28 * 13 * + 66 ) ) WHEN + - 88 THEN + CASE - ( + AVG ( DISTINCT - + 95 ) ) WHEN - 5 / CASE + + 41 WHEN + COUNT ( 75 ) * MIN ( ALL + 33 ) THEN 0 - 44 * 70 END * + 69 THEN 46 WHEN - 51 + 21 THEN NULL END * + 51 ELSE NULL END * - NULLIF ( - SUM ( - 82 ), COALESCE ( 1, - 85 ) + 90 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1373
SELECT DISTINCT + 63 DIV + 26 col1
----
2

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT + 63 / + 26 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT - ( - ( - 27 ) ) / - COUNT( * ) * + - CASE + MIN( COALESCE ( + 5, - 58 ) ) WHEN + 97 THEN NULL WHEN - + 99 + - 88 THEN - - 92 END * - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1374
SELECT - ( - ( - 27 ) ) / - COUNT ( * ) * + - CASE + MIN ( COALESCE ( + 5, - 58 ) ) WHEN + 97 THEN NULL WHEN - + 99 + - 88 THEN - - 92 END * - 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1375
SELECT DISTINCT + COUNT( * ) DIV 64 * 5 + + - 69 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT + COUNT ( * ) / 64 * 5 + + - 69 AS col2
----
-69

query I rowsort
SELECT - + 33 + + 50
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT ALL + 69 * - - 13 * + COUNT( * ) AS col2
----
897

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL + 69 * - - 13 * + COUNT ( * ) AS col2
----
897

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT COALESCE ( - + 22, - 0 * + 85 ) * 27 + + COUNT( * ) col2
----
-593

skipif mysql # not compatible
query I rowsort label-1378
SELECT COALESCE ( - + 22, - 0 * + 85 ) * 27 + + COUNT ( * ) col2
----
-593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1379
SELECT ALL + 20 + - CAST( - + 54 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL + 20 + - CAST ( - + 54 AS INTEGER )
----
74

query I rowsort
SELECT + 98 + + - 12 AS col2
----
86

query I rowsort
SELECT + COALESCE ( + NULLIF ( 30, - 90 ), 32 )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1382
SELECT ALL + CAST( - 99 AS SIGNED ), + 81 * - - 54 AS col1
----
-99
4374

skipif mysql # not compatible
query II rowsort label-1382
SELECT ALL + CAST ( - 99 AS INTEGER ), + 81 * - - 54 AS col1
----
-99
4374

query I rowsort
SELECT ALL - ( - ( - - 85 ) ) + + - 70
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT ALL MAX( DISTINCT 64 ) + 14 + - 95 * - 26 + - 63
----
2485

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL MAX ( DISTINCT 64 ) + 14 + - 95 * - 26 + - 63
----
2485

query I rowsort
SELECT + 57 * + - 25
----
-1425

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1386
SELECT + 17 AS col1, - CAST( + - 14 AS SIGNED ) AS col1
----
17
14

skipif mysql # not compatible
query II rowsort label-1386
SELECT + 17 AS col1, - CAST ( + - 14 AS INTEGER ) AS col1
----
17
14

query I rowsort
SELECT 36 - - - 16
----
20

query II rowsort
SELECT + 70, 16 AS col1
----
70
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1389
SELECT ALL 6 + + 62 + - - ( - 56 ) - + CASE 95 WHEN + ( - - 78 ) THEN - CAST( - + CAST( + MIN( ALL - 33 ) AS SIGNED ) AS SIGNED ) WHEN 66 + 80 + - 26 THEN NULL ELSE NULL END * 72 * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL 6 + + 62 + - - ( - 56 ) - + CASE 95 WHEN + ( - - 78 ) THEN - CAST ( - + CAST ( + MIN ( ALL - 33 ) AS INTEGER ) AS INTEGER ) WHEN 66 + 80 + - 26 THEN NULL ELSE NULL END * 72 * + 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT - 89 * - 69 - - - 59 - + 45 DIV 88
----
6082

skipif mysql # not compatible
query I rowsort label-1390
SELECT - 89 * - 69 - - - 59 - + 45 / 88
----
6082

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ( + 56 ) * - MIN( NULLIF ( - - 52, + 28 ) ) * + 44 AS col1
----
-128128

skipif mysql # not compatible
query I rowsort label-1391
SELECT ( + 56 ) * - MIN ( NULLIF ( - - 52, + 28 ) ) * + 44 AS col1
----
-128128

query I rowsort
SELECT ALL 0 + + 95 + - 21
----
74

query I rowsort
SELECT ALL 70 * 6
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT DISTINCT 29 - 10 + - 31 * + CASE COUNT( * ) WHEN - 25 * 3 THEN 75 + 19 / + - 63 * 81 / - 47 + + - COUNT( * ) + 7 * COUNT( * ) + - 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT 29 - 10 + - 31 * + CASE COUNT ( * ) WHEN - 25 * 3 THEN 75 + 19 / + - 63 * 81 / - 47 + + - COUNT ( * ) + 7 * COUNT ( * ) + - 99 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1395
SELECT DISTINCT 5 - - SUM( DISTINCT 99 ) AS col0, 57 * + 7 + - 41 + 92 * 49 * - 67 * - 0 * 87 * + NULLIF ( + COUNT( * ), + CASE + AVG ( - 42 ) WHEN + COUNT( * ) THEN NULL WHEN 15 * + 26 + - COUNT( * ) THEN ( + 55 ) * + 93 END ) + ( + CAST( NULL AS SIGNED ) ) * - 1
----
104
NULL

skipif mysql # not compatible
query II rowsort label-1395
SELECT DISTINCT 5 - - SUM ( DISTINCT 99 ) AS col0, 57 * + 7 + - 41 + 92 * 49 * - 67 * - 0 * 87 * + NULLIF ( + COUNT ( * ), + CASE + AVG ( - 42 ) WHEN + COUNT ( * ) THEN NULL WHEN 15 * + 26 + - COUNT ( * ) THEN ( + 55 ) * + 93 END ) + ( + CAST ( NULL AS INTEGER ) ) * - 1
----
104
NULL

query I rowsort
SELECT DISTINCT + 72 - - 32
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1397
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 5, - 55 - - ( + 70 ) + + COUNT( * ) AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-1397
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 5, - 55 - - ( + 70 ) + + COUNT ( * ) AS col1
----
NULL
16

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

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

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

skipif mysql # not compatible
query I rowsort label-1399
SELECT AVG ( - - 58 ) + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 6 * 85 AS col1
----
510

onlyif mysql # DIV for integer division: 
query II rowsort label-1401
SELECT ALL - 45 AS col0, 51 DIV 93 - + 80 AS col2
----
-45
-80

skipif mysql # not compatible
query II rowsort label-1401
SELECT ALL - 45 AS col0, 51 / 93 - + 80 AS col2
----
-45
-80

query I rowsort
SELECT 80 + - 68 AS col2
----
12

query I rowsort
SELECT ( + 4 ) * + 38 AS col1
----
152

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

query I rowsort
SELECT ALL - 73 * 6
----
-438

query I rowsort
SELECT - 16 + ( 55 ) AS col2
----
39

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1408
SELECT ALL + 24 * + + ( CAST( NULL AS SIGNED ) ) AS col1, 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-1408
SELECT ALL + 24 * + + ( CAST ( NULL AS INTEGER ) ) AS col1, 27
----
NULL
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT + 38 DIV + 8
----
4

skipif mysql # not compatible
query I rowsort label-1409
SELECT + 38 / + 8
----
4

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1411
SELECT CASE - 22 WHEN 29 * + ( - ( - 89 ) ) THEN + - 87 WHEN - CAST( - 8 AS SIGNED ) + - 13 + + 86 THEN 96 + - + ( + + COUNT( * ) ) ELSE 55 END AS col2
----
55

skipif mysql # not compatible
query I rowsort label-1411
SELECT CASE - 22 WHEN 29 * + ( - ( - 89 ) ) THEN + - 87 WHEN - CAST ( - 8 AS INTEGER ) + - 13 + + 86 THEN 96 + - + ( + + COUNT ( * ) ) ELSE 55 END AS col2
----
55

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

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

query I rowsort
SELECT DISTINCT 61 + + 56 AS col0
----
117

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

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

query I rowsort
SELECT DISTINCT + + 43 + 79 + - 19 * + 50 * - 87 AS col1
----
82772

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1416
SELECT DISTINCT COUNT( * ) AS col0, + ( 84 ) DIV + 87
----
1
0

skipif mysql # not compatible
query II rowsort label-1416
SELECT DISTINCT COUNT ( * ) AS col0, + ( 84 ) / + 87
----
1
0

query I rowsort
SELECT ALL + 66 + - 44
----
22

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

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

query I rowsort
SELECT DISTINCT + - 14 + - - 2 AS col2
----
-12

query I rowsort
SELECT DISTINCT - 64 * - 35 * + ( + 90 ) AS col0
----
201600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1421
SELECT ALL + + 64 + 54 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL + + 64 + 54 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1422
SELECT 58 DIV - 96 + 2 * - 12 AS col2, + 12 col1
----
-24
12

skipif mysql # not compatible
query II rowsort label-1422
SELECT 58 / - 96 + 2 * - 12 AS col2, + 12 col1
----
-24
12

onlyif mysql # aggregate syntax: 
query II rowsort label-1423
SELECT SUM( DISTINCT + 76 ) AS col2, COUNT( * ) + 41
----
76
42

skipif mysql # not compatible
query II rowsort label-1423
SELECT SUM ( DISTINCT + 76 ) AS col2, COUNT ( * ) + 41
----
76
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT ALL + 31 * + MAX( DISTINCT + + 6 ) AS col2
----
186

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL + 31 * + MAX ( DISTINCT + + 6 ) AS col2
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1425
SELECT 55 + COUNT( * ) DIV 91
----
55

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

query I rowsort
SELECT ALL + 74 * + 94 - 84 - - - 49 AS col2
----
6823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT ( + + 83 ) * 37 + NULLIF ( + + CAST( + 74 AS SIGNED ), + 55 )
----
3145

skipif mysql # not compatible
query I rowsort label-1427
SELECT ( + + 83 ) * 37 + NULLIF ( + + CAST ( + 74 AS INTEGER ), + 55 )
----
3145

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT MIN( ALL - ( + 61 ) ) * - - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-1428
SELECT MIN ( ALL - ( + 61 ) ) * - - COUNT ( * )
----
-61

query I rowsort
SELECT ( 36 ) + - + 69 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT ( + - MIN( 77 ) ) * + 60
----
-4620

skipif mysql # not compatible
query I rowsort label-1430
SELECT ( + - MIN ( 77 ) ) * + 60
----
-4620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1431
SELECT 68 * - - ( - 16 ) + - - ( - ( + + 1 ) ) DIV + - 31 * COUNT( * ) + NULLIF ( + - 35, + 4 - - 38 + + 49 ) AS col2
----
-1123

skipif mysql # not compatible
query I rowsort label-1431
SELECT 68 * - - ( - 16 ) + - - ( - ( + + 1 ) ) / + - 31 * COUNT ( * ) + NULLIF ( + - 35, + 4 - - 38 + + 49 ) AS col2
----
-1123

query II rowsort
SELECT 19 * - - 68 AS col1, 81 AS col2
----
1292
81

query I rowsort
SELECT ALL 69 * - 41 * 80 AS col0
----
-226320

query I rowsort
SELECT 90 * - - ( - + 13 ) col0
----
-1170

onlyif mysql # DIV for integer division: 
query I rowsort label-1435
SELECT ALL - 96 DIV 70 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL - 96 / 70 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1436
SELECT 96 DIV - + 5
----
-19

skipif mysql # not compatible
query I rowsort label-1436
SELECT 96 / - + 5
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL - ( + COALESCE ( + + 65, - + COUNT( - 52 ) + - 24 + ( - 19 ), - + 47 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL - ( + COALESCE ( + + 65, - + COUNT ( - 52 ) + - 24 + ( - 19 ), - + 47 ) )
----
-65

query I rowsort
SELECT DISTINCT 16 * - + 54
----
-864

onlyif mysql # DIV for integer division: 
query I rowsort label-1439
SELECT 17 DIV - 6 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1439
SELECT 17 / - 6 AS col2
----
-2

query II rowsort
SELECT 24 * 74, + 21 * 77 * - - 23 * - ( - 46 ) + - 3 AS col0
----
1776
1710783

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1442
SELECT - + 51 * 52 - + + 75 * 87 DIV 49 * + ( + MIN( + 17 ) ) AS col0
----
-4913

skipif mysql # not compatible
query I rowsort label-1442
SELECT - + 51 * 52 - + + 75 * 87 / 49 * + ( + MIN ( + 17 ) ) AS col0
----
-4913

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT + + 56 * SUM( 18 )
----
1008

skipif mysql # not compatible
query I rowsort label-1443
SELECT + + 56 * SUM ( 18 )
----
1008

query I rowsort
SELECT DISTINCT + 50 + - - 81 AS col2
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1445
SELECT CASE + + COUNT( * ) WHEN NULLIF ( CAST( NULL AS SIGNED ), + + 39 + 57 ) THEN 85 + 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT CASE + + COUNT ( * ) WHEN NULLIF ( CAST ( NULL AS INTEGER ), + + 39 + 57 ) THEN 85 + 89 END AS col0
----
NULL

query I rowsort
SELECT + 93 * - 68 AS col0
----
-6324

query I rowsort
SELECT ALL 63 + - + 51
----
12

query I rowsort
SELECT ALL + + 41 + 7
----
48

query II rowsort
SELECT ALL + COALESCE ( + 87, + 51 * 37 ), - 74 * + + 67 AS col1
----
87
-4958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1450
SELECT ALL - COALESCE ( 32, - - 84 ) + + CAST( + 11 AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL - COALESCE ( 32, - - 84 ) + + CAST ( + 11 AS INTEGER )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-1451
SELECT - - 32 - COUNT( * ) + - 82 + + 36 AS col0, + 7 * + 17 AS col2
----
-15
119

skipif mysql # not compatible
query II rowsort label-1451
SELECT - - 32 - COUNT ( * ) + - 82 + + 36 AS col0, + 7 * + 17 AS col2
----
-15
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1452
SELECT DISTINCT - 68 * + COUNT( * ) AS col1, - COUNT( * ) * COALESCE ( - + 46, + + CAST( NULL AS SIGNED ), NULLIF ( - - 16, - 74 / - + 50 + - SUM( ALL + - 13 ) + + COUNT( * ) * + COUNT( * ) + CASE - 29 WHEN - + 4 THEN + 11 + - - ( 73 ) - 67 * + 33 END + 84 ) ) - ( + 54 ) AS col2
----
-68
-8

skipif mysql # not compatible
query II rowsort label-1452
SELECT DISTINCT - 68 * + COUNT ( * ) AS col1, - COUNT ( * ) * COALESCE ( - + 46, + + CAST ( NULL AS INTEGER ), NULLIF ( - - 16, - 74 / - + 50 + - SUM ( ALL + - 13 ) + + COUNT ( * ) * + COUNT ( * ) + CASE - 29 WHEN - + 4 THEN + 11 + - - ( 73 ) - 67 * + 33 END + 84 ) ) - ( + 54 ) AS col2
----
-68
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT DISTINCT 95 + COALESCE ( 31, + - COUNT( * ) )
----
126

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT 95 + COALESCE ( 31, + - COUNT ( * ) )
----
126

query I rowsort
SELECT ALL 8 * - 61
----
-488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1455
SELECT ALL + 76 - + 78 * + MAX( ALL - CAST( 99 AS SIGNED ) )
----
7798

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL + 76 - + 78 * + MAX ( ALL - CAST ( 99 AS INTEGER ) )
----
7798

query I rowsort
SELECT + 71 + + - 89 - + 18
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1457
SELECT - 77 * + CASE - 37 WHEN + + 94 + + + COUNT( * ) + COUNT( * ) THEN NULL WHEN - 22 THEN - NULLIF ( + 80, - + 86 / + COUNT( * ) ) END AS col1, + 53 AS col0
----
NULL
53

skipif mysql # not compatible
query II rowsort label-1457
SELECT - 77 * + CASE - 37 WHEN + + 94 + + + COUNT ( * ) + COUNT ( * ) THEN NULL WHEN - 22 THEN - NULLIF ( + 80, - + 86 / + COUNT ( * ) ) END AS col1, + 53 AS col0
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT DISTINCT MAX( 24 ) col1
----
24

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT MAX ( 24 ) col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT ALL ( - + MAX( 35 ) ) - + + ( 17 ) + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL ( - + MAX ( 35 ) ) - + + ( 17 ) + COUNT ( * )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1460
SELECT DISTINCT - 81 DIV + 22
----
-3

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT - 81 / + 22
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT ALL - 72 DIV + NULLIF ( + COUNT( * ), + 76 )
----
-72

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL - 72 / + NULLIF ( + COUNT ( * ), + 76 )
----
-72

query I rowsort
SELECT - 41 * 63
----
-2583

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1464
SELECT - ( 21 ) * 1 + COUNT( * ) + + CASE - CAST( NULL AS SIGNED ) WHEN 22 + + - COALESCE ( + CASE 3 WHEN - - COUNT( * ) - 70 * - + 17 + + + ( - 35 ) THEN NULL ELSE + + 20 - 6 END, 37, - + CAST( - 62 AS SIGNED ) + 22, - 94 ) THEN NULL ELSE + CASE + COUNT( * ) WHEN - 15 THEN COALESCE ( - 30, + 26 * + 98 - 41 * CASE + NULLIF ( COALESCE ( 80, + 67 * COUNT( * ) ), ( + 46 ) * - MIN( 57 + 81 * 35 ) ) * 49 WHEN + 55 - 78 THEN + COALESCE ( 86, + 40 - 78, + ( 64 ) + + AVG ( 20 ) ) END, + COUNT( * ) ) + + 67 * 14 WHEN + NULLIF ( COUNT( * ), - 47 * 61 ) THEN NULL ELSE + MIN( 10 ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1464
SELECT - ( 21 ) * 1 + COUNT ( * ) + + CASE - CAST ( NULL AS INTEGER ) WHEN 22 + + - COALESCE ( + CASE 3 WHEN - - COUNT ( * ) - 70 * - + 17 + + + ( - 35 ) THEN NULL ELSE + + 20 - 6 END, 37, - + CAST ( - 62 AS INTEGER ) + 22, - 94 ) THEN NULL ELSE + CASE + COUNT ( * ) WHEN - 15 THEN COALESCE ( - 30, + 26 * + 98 - 41 * CASE + NULLIF ( COALESCE ( 80, + 67 * COUNT ( * ) ), ( + 46 ) * - MIN ( 57 + 81 * 35 ) ) * 49 WHEN + 55 - 78 THEN + COALESCE ( 86, + 40 - 78, + ( 64 ) + + AVG ( 20 ) ) END, + COUNT ( * ) ) + + 67 * 14 WHEN + NULLIF ( COUNT ( * ), - 47 * 61 ) THEN NULL ELSE + MIN ( 10 ) END END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + + 78, - 46 * 37 / - 81 + + 74 )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1466
SELECT + ( - ( + 49 ) ) AS col0, - 88 * CAST( NULL AS SIGNED ) + - + COUNT( * )
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-1466
SELECT + ( - ( + 49 ) ) AS col0, - 88 * CAST ( NULL AS INTEGER ) + - + COUNT ( * )
----
-49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL + NULLIF ( COALESCE ( + 26, - + 16 ), + COUNT( * ) * + 97 + + + ( 40 ) )
----
26

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL + NULLIF ( COALESCE ( + 26, - + 16 ), + COUNT ( * ) * + 97 + + + ( 40 ) )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1468
SELECT - 5 * MAX( + 57 ) DIV - 28 + 2, - 16 * + - COUNT( * ) AS col0
----
12
16

skipif mysql # not compatible
query II rowsort label-1468
SELECT - 5 * MAX ( + 57 ) / - 28 + 2, - 16 * + - COUNT ( * ) AS col0
----
12
16

query I rowsort
SELECT - 11 * + 39
----
-429

query I rowsort
SELECT ALL - 64 * + 33
----
-2112

query I rowsort
SELECT - 23 - - NULLIF ( 10, + 58 + - 33 * - 0 * - 0 ) AS col1
----
-13

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1473
SELECT - 87 * 88 * + SUM( DISTINCT 69 ) / + CASE - 38 WHEN - - COUNT( * ) THEN NULL WHEN - 47 + 17 THEN - CAST( NULL AS SIGNED ) END / + + 88 * CAST( NULL AS DECIMAL ) * - 51 * COUNT( 17 ) + 31 * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1473
SELECT - 87 * 88 * + SUM ( DISTINCT 69 ) / + CASE - 38 WHEN - - COUNT ( * ) THEN NULL WHEN - 47 + 17 THEN - CAST ( NULL AS INTEGER ) END / + + 88 * CAST ( NULL AS REAL ) * - 51 * COUNT ( 17 ) + 31 * 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT ( - - MAX( - - 57 ) )
----
57

skipif mysql # not compatible
query I rowsort label-1474
SELECT ( - - MAX ( - - 57 ) )
----
57

query I rowsort
SELECT DISTINCT + 91 * - 8 AS col2
----
-728

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

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

query II rowsort
SELECT + 46 AS col1, 43
----
46
43

query I rowsort
SELECT DISTINCT + 10 * 50 AS col1
----
500

query I rowsort
SELECT - 51 * 14 AS col0
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT - 45 - - + COUNT( DISTINCT + + ( - - 75 ) ) * + 32 + + + ( + - 11 )
----
-24

skipif mysql # not compatible
query I rowsort label-1480
SELECT - 45 - - + COUNT ( DISTINCT + + ( - - 75 ) ) * + 32 + + + ( + - 11 )
----
-24

query II rowsort
SELECT ALL + 54, 48 + + 53 AS col0
----
54
101

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT ALL - + CASE 46 WHEN + - 83 THEN 45 * 3 WHEN COUNT( * ) THEN - 55 END * + 12 + - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL - + CASE 46 WHEN + - 83 THEN 45 * 3 WHEN COUNT ( * ) THEN - 55 END * + 12 + - - 21
----
NULL

query II rowsort
SELECT + - 8 col0, ( - 51 ) AS col1
----
-8
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT DISTINCT + + CASE + CASE - - 1 WHEN - COUNT( * ) * - CASE + 34 WHEN - 98 + - 35 / 81 THEN NULL WHEN COUNT( * ) + - + 86 THEN - 46 WHEN - 62 * + + 17 THEN 25 END THEN NULL WHEN - 15 + 37 * 28 THEN + MIN( DISTINCT - - ( 15 ) ) END WHEN + 84 THEN 86 / 36 WHEN 20 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT + + CASE + CASE - - 1 WHEN - COUNT ( * ) * - CASE + 34 WHEN - 98 + - 35 / 81 THEN NULL WHEN COUNT ( * ) + - + 86 THEN - 46 WHEN - 62 * + + 17 THEN 25 END THEN NULL WHEN - 15 + 37 * 28 THEN + MIN ( DISTINCT - - ( 15 ) ) END WHEN + 84 THEN 86 / 36 WHEN 20 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + + 96 * - + 72 AS col1
----
-6912

query I rowsort
SELECT ALL - 91 * + 41 AS col0
----
-3731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1487
SELECT - + 89 * - - ( + ( + + 97 ) ) + - COUNT( * ) * 4 + + 6 + - - 55 + COUNT( * ) / + + 57 - 44 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT - + 89 * - - ( + ( + + 97 ) ) + - COUNT ( * ) * 4 + + 6 + - - 55 + COUNT ( * ) / + + 57 - 44 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 52 + - - 49 AS col1
----
101

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1489
SELECT ALL 1 * - 22 + 76 + 12 + ( ( - + CAST( NULL AS DECIMAL ) ) ) + + - COUNT( + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL 1 * - 22 + 76 + 12 + ( ( - + CAST ( NULL AS REAL ) ) ) + + - COUNT ( + 28 )
----
NULL

query I rowsort
SELECT ALL - 30 * + ( + 81 ) AS col1
----
-2430

query I rowsort
SELECT ALL NULLIF ( + 44, 55 )
----
44

query I rowsort
SELECT + + 61 + 90
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1493
SELECT DISTINCT - CAST( - 31 AS SIGNED ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT - CAST ( - 31 AS INTEGER ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT - ( - - CASE + 83 WHEN + 83 / + COUNT( + 7 ) - COUNT( * ) + 50 + - 81 THEN - + 26 / CASE + 93 WHEN 47 THEN 56 WHEN + MAX( ALL - - 41 ) + - 31 * + 36 + CASE - COUNT( DISTINCT ( 71 ) ) WHEN ( SUM( ALL 54 ) ) THEN NULL WHEN COUNT( * ) * MAX( + 97 ) THEN + 21 ELSE NULL END THEN + COUNT( - 8 ) + - 41 WHEN 87 THEN NULL ELSE NULL END + - CASE - 45 WHEN - CASE 79 WHEN - 34 THEN 27 + COUNT( * ) / 49 WHEN + 3 - + ( 37 ) / 39 THEN MIN( DISTINCT - 91 ) + + 82 ELSE 22 END - 56 * + 95 THEN NULL WHEN ( MIN( DISTINCT 15 ) ) * - ( 27 ) THEN 49 END WHEN + 31 THEN + 77 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1494
SELECT - ( - - CASE + 83 WHEN + 83 / + COUNT ( + 7 ) - COUNT ( * ) + 50 + - 81 THEN - + 26 / CASE + 93 WHEN 47 THEN 56 WHEN + MAX ( ALL - - 41 ) + - 31 * + 36 + CASE - COUNT ( DISTINCT ( 71 ) ) WHEN ( SUM ( ALL 54 ) ) THEN NULL WHEN COUNT ( * ) * MAX ( + 97 ) THEN + 21 ELSE NULL END THEN + COUNT ( - 8 ) + - 41 WHEN 87 THEN NULL ELSE NULL END + - CASE - 45 WHEN - CASE 79 WHEN - 34 THEN 27 + COUNT ( * ) / 49 WHEN + 3 - + ( 37 ) / 39 THEN MIN ( DISTINCT - 91 ) + + 82 ELSE 22 END - 56 * + 95 THEN NULL WHEN ( MIN ( DISTINCT 15 ) ) * - ( 27 ) THEN 49 END WHEN + 31 THEN + 77 END )
----
NULL

query I rowsort
SELECT ALL 83 - - 57 AS col2
----
140

query I rowsort
SELECT - 53 * - 55 AS col1
----
2915

query I rowsort
SELECT + 27 + - 55
----
-28

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1499
SELECT ALL 14 AS col2, + COUNT( + 12 ) AS col0
----
14
1

skipif mysql # not compatible
query II rowsort label-1499
SELECT ALL 14 AS col2, + COUNT ( + 12 ) AS col0
----
14
1

query II rowsort
SELECT + 75 AS col0, + 45 col1
----
75
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT - COUNT( DISTINCT + 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-1501
SELECT - COUNT ( DISTINCT + 81 )
----
-1

query I rowsort
SELECT ALL 54 - 87 AS col0
----
-33

query I rowsort
SELECT ALL 77 * - + 8 AS col2
----
-616

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1504
SELECT - CAST( - 10 AS SIGNED ) AS col1, - CAST( NULL AS SIGNED ) + - 4
----
10
NULL

skipif mysql # not compatible
query II rowsort label-1504
SELECT - CAST ( - 10 AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) + - 4
----
10
NULL

query I rowsort
SELECT + ( 93 ) + 54 - + - 44 + 43
----
234

query I rowsort
SELECT + 18 * - ( 61 )
----
-1098

query I rowsort
SELECT + 35 + - - 67 AS col1
----
102

query I rowsort
SELECT ALL 41 * - 81
----
-3321

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT ALL MAX( 84 )
----
84

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL MAX ( 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT + ( + - CASE - 95 WHEN 67 THEN + 38 - - - ( - COALESCE ( + - 2, - + ( - 79 ) / + - 61 - 92 * + - MIN( + 75 ) / + + MAX( - ( + + 14 ) ) + + 53 * 61 + + COUNT( * ) * 28 ) ) END ) + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT + ( + - CASE - 95 WHEN 67 THEN + 38 - - - ( - COALESCE ( + - 2, - + ( - 79 ) / + - 61 - 92 * + - MIN ( + 75 ) / + + MAX ( - ( + + 14 ) ) + + 53 * 61 + + COUNT ( * ) * 28 ) ) END ) + - 80
----
NULL

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

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

query II rowsort
SELECT ALL + 45 AS col2, + 17
----
45
17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1514
SELECT ALL + 5 / + + 10 + - CAST( NULL AS SIGNED ) * + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL + 5 / + + 10 + - CAST ( NULL AS INTEGER ) * + - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT 96 * 66 + - + COUNT( * ) - 69
----
6266

skipif mysql # not compatible
query I rowsort label-1515
SELECT 96 * 66 + - + COUNT ( * ) - 69
----
6266

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1516
SELECT DISTINCT CASE - 70 WHEN - - 2 + + + 6 * + - COUNT( * ) THEN NULL WHEN - 83 THEN NULL ELSE + 56 END DIV SUM( ALL - - 56 ) - - 17 + 67 + 54 * COUNT( DISTINCT - 39 ) + + - SUM( ALL 91 ) + + 29 + 99 + + 73, CASE + 2 WHEN 82 THEN + 38 ELSE NULL END * SUM( DISTINCT 55 ) - + COUNT( * ) AS col0
----
249
NULL

skipif mysql # not compatible
query II rowsort label-1516
SELECT DISTINCT CASE - 70 WHEN - - 2 + + + 6 * + - COUNT ( * ) THEN NULL WHEN - 83 THEN NULL ELSE + 56 END / SUM ( ALL - - 56 ) - - 17 + 67 + 54 * COUNT ( DISTINCT - 39 ) + + - SUM ( ALL 91 ) + + 29 + 99 + + 73, CASE + 2 WHEN 82 THEN + 38 ELSE NULL END * SUM ( DISTINCT 55 ) - + COUNT ( * ) AS col0
----
249
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1517
SELECT + NULLIF ( - - 2, - COUNT( * ) * NULLIF ( - ( + ( - 37 ) ), + - ( - 74 ) + + 27 - + 1 - CAST( NULL AS DECIMAL ) ) ) DIV - 48
----
0

skipif mysql # not compatible
query I rowsort label-1517
SELECT + NULLIF ( - - 2, - COUNT ( * ) * NULLIF ( - ( + ( - 37 ) ), + - ( - 74 ) + + 27 - + 1 - CAST ( NULL AS REAL ) ) ) / - 48
----
0

query I rowsort
SELECT - 21 + - NULLIF ( 80, - - AVG ( ALL 7 ) )
----
-101

query I rowsort
SELECT ALL + 33 + - 80 col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1520
SELECT + 58 * - 98 + + 29 + - 71 + + + CASE + 70 WHEN + + CAST( NULL AS SIGNED ) THEN MAX( DISTINCT + 28 ) END + + 80 + + 10 AS col2, 42
----
NULL
42

skipif mysql # not compatible
query II rowsort label-1520
SELECT + 58 * - 98 + + 29 + - 71 + + + CASE + 70 WHEN + + CAST ( NULL AS INTEGER ) THEN MAX ( DISTINCT + 28 ) END + + 80 + + 10 AS col2, 42
----
NULL
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1521
SELECT + 90 AS col1, 52 * - - ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-1521
SELECT + 90 AS col1, 52 * - - ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0
----
90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT DISTINCT - MAX( ( 57 ) ) * + + COUNT( * ) * + - 2 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT - MAX ( ( 57 ) ) * + + COUNT ( * ) * + - 2 AS col2
----
114

query I rowsort
SELECT ALL + COALESCE ( + ( + 65 ), + + ( + ( 84 ) ), + 63 ) + 76 - 30 AS col2
----
111

query I rowsort
SELECT ( - - NULLIF ( 82, ( + AVG ( ALL - 58 ) ) * - + 38 ) ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT ALL - COUNT( * ) + + - NULLIF ( + COUNT( * ), + + ( 13 ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL - COUNT ( * ) + + - NULLIF ( + COUNT ( * ), + + ( 13 ) ) AS col0
----
-2

query I rowsort
SELECT DISTINCT - 34 * - 71
----
2414

query I rowsort
SELECT ALL + + 62 + - + ( - 79 )
----
141

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1529
SELECT ALL - COUNT( * ) * + 26 - - + 79 * - CAST( 88 AS SIGNED )
----
-6978

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL - COUNT ( * ) * + 26 - - + 79 * - CAST ( 88 AS INTEGER )
----
-6978

query I rowsort
SELECT NULLIF ( 95, + + AVG ( DISTINCT + 64 ) )
----
95

query II rowsort
SELECT + 63 AS col2, - ( 73 )
----
63
-73

query I rowsort
SELECT + 51 - - 60 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1533
SELECT NULLIF ( - 34, - COUNT( * ) ) * - 15 AS col0
----
510

skipif mysql # not compatible
query I rowsort label-1533
SELECT NULLIF ( - 34, - COUNT ( * ) ) * - 15 AS col0
----
510

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT ALL - - 57 DIV + 30 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL - - 57 / + 30 AS col2
----
1

query I rowsort
SELECT DISTINCT - 85 * + 54
----
-4590

query II rowsort
SELECT ALL + 69 * + 41 col1, - 8 AS col2
----
2829
-8

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

skipif mysql # not compatible
query I rowsort label-1537
SELECT 82 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1538
SELECT ALL + - SUM( ALL + ( - 1 ) ) DIV - 50 AS col1, ( + 8 ) - 48 AS col1
----
0
-40

skipif mysql # not compatible
query II rowsort label-1538
SELECT ALL + - SUM ( ALL + ( - 1 ) ) / - 50 AS col1, ( + 8 ) - 48 AS col1
----
0
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1539
SELECT DISTINCT + 81 * + 48 AS col0, + COALESCE ( + 34, ( 60 ) * 86 + - COUNT( * ) ) - + 18 AS col1
----
3888
16

skipif mysql # not compatible
query II rowsort label-1539
SELECT DISTINCT + 81 * + 48 AS col0, + COALESCE ( + 34, ( 60 ) * 86 + - COUNT ( * ) ) - + 18 AS col1
----
3888
16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1540
SELECT ( + + CAST( + 86 AS SIGNED ) ) DIV + 59 - - - 11
----
-10

skipif mysql # not compatible
query I rowsort label-1540
SELECT ( + + CAST ( + 86 AS INTEGER ) ) / + 59 - - - 11
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1541
SELECT ALL MAX( ALL + - 56 ) DIV + 44 + 38 + + 75
----
112

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL MAX ( ALL + - 56 ) / + 44 + 38 + + 75
----
112

query I rowsort
SELECT DISTINCT 52 + + 61 * + 13 col0
----
845

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT ALL COUNT( * ) * + CASE + 54 WHEN 34 THEN NULL ELSE + COUNT( ALL 56 ) END * 23
----
23

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL COUNT ( * ) * + CASE + 54 WHEN 34 THEN NULL ELSE + COUNT ( ALL 56 ) END * 23
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT ALL - COUNT( * ) + MIN( 63 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL - COUNT ( * ) + MIN ( 63 ) AS col1
----
62

query I rowsort
SELECT ALL 28 + - 10
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT ALL MIN( 69 ) * + 71 * 98
----
480102

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL MIN ( 69 ) * + 71 * 98
----
480102

onlyif mysql # DIV for integer division: 
query II rowsort label-1547
SELECT 34 DIV + 31 AS col1, 72 AS col1
----
1
72

skipif mysql # not compatible
query II rowsort label-1547
SELECT 34 / + 31 AS col1, 72 AS col1
----
1
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1548
SELECT COUNT( * ) - - - 63 AS col2, + ( + - ( - 79 ) )
----
-62
79

skipif mysql # not compatible
query II rowsort label-1548
SELECT COUNT ( * ) - - - 63 AS col2, + ( + - ( - 79 ) )
----
-62
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1549
SELECT DISTINCT NULLIF ( + COUNT( * ), 42 + + - 17 ) * - 69, 3 * COUNT( * ) * + + 63 + - + 75 * - 20 AS col1
----
-69
1689

skipif mysql # not compatible
query II rowsort label-1549
SELECT DISTINCT NULLIF ( + COUNT ( * ), 42 + + - 17 ) * - 69, 3 * COUNT ( * ) * + + 63 + - + 75 * - 20 AS col1
----
-69
1689

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1550
SELECT + 14 * - - 50 DIV - + COUNT( ALL + 68 ) - + 17 - + COUNT( * ) AS col2
----
-718

skipif mysql # not compatible
query I rowsort label-1550
SELECT + 14 * - - 50 / - + COUNT ( ALL + 68 ) - + 17 - + COUNT ( * ) AS col2
----
-718

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1551
SELECT ALL + - COALESCE ( - CAST( + CASE WHEN ( 65 = - CASE - ( 78 ) WHEN + 55 THEN - 4 * + + 26 * + 56 * + 18 * - 66 + + COUNT( 80 ) END * + 74 * - 93 + 60 ) THEN 89 * - 1 ELSE NULL END AS SIGNED ), - 66 ) + - 6 * CASE 0 + 11 WHEN - 10 * 47 + ( 89 ) * 55 THEN - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL + - COALESCE ( - CAST ( + CASE WHEN ( 65 = - CASE - ( 78 ) WHEN + 55 THEN - 4 * + + 26 * + 56 * + 18 * - 66 + + COUNT ( 80 ) END * + 74 * - 93 + 60 ) THEN 89 * - 1 ELSE NULL END AS INTEGER ), - 66 ) + - 6 * CASE 0 + 11 WHEN - 10 * 47 + ( 89 ) * 55 THEN - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1552
SELECT 2 - - 67 * NULLIF ( 30, - CASE - CAST( NULL AS SIGNED ) WHEN + - 62 + - + CASE + + CAST( + - 11 AS SIGNED ) WHEN - + 98 * + MIN( DISTINCT CAST( NULL AS SIGNED ) ) THEN - ( 24 ) * + - MAX( DISTINCT + 65 ) END * + 49 THEN ( + 71 ) ELSE NULL END ) col0
----
2012

skipif mysql # not compatible
query I rowsort label-1552
SELECT 2 - - 67 * NULLIF ( 30, - CASE - CAST ( NULL AS INTEGER ) WHEN + - 62 + - + CASE + + CAST ( + - 11 AS INTEGER ) WHEN - + 98 * + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN - ( 24 ) * + - MAX ( DISTINCT + 65 ) END * + 49 THEN ( + 71 ) ELSE NULL END ) col0
----
2012

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1553
SELECT 17 * - 3 * + 68 * + 53 * + 92 + + + 18 + - + MIN( + CAST( - ( ( - 92 ) ) AS SIGNED ) ) + - 10 DIV - 84 * 64 DIV + ( - + COUNT( + - ( + 9 ) ) )
----
-16910042

skipif mysql # not compatible
query I rowsort label-1553
SELECT 17 * - 3 * + 68 * + 53 * + 92 + + + 18 + - + MIN ( + CAST ( - ( ( - 92 ) ) AS INTEGER ) ) + - 10 / - 84 * 64 / + ( - + COUNT ( + - ( + 9 ) ) )
----
-16910042

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT ALL + COUNT( * ) DIV - 31 * 7
----
0

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL + COUNT ( * ) / - 31 * 7
----
0

query I rowsort
SELECT + 8 * + ( - 24 ) AS col0
----
-192

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1557
SELECT MAX( DISTINCT 2 ) * + - CAST( - - 69 AS SIGNED ) AS col1
----
-138

skipif mysql # not compatible
query I rowsort label-1557
SELECT MAX ( DISTINCT 2 ) * + - CAST ( - - 69 AS INTEGER ) AS col1
----
-138

query I rowsort
SELECT 27 + 95 + - + 8
----
114

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1559
SELECT 71 / CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1559
SELECT 71 / CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 47 * + 72 AS col1
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT + COUNT( * ) + + + 42 * - - NULLIF ( - 25, + COUNT( * ) * 18 ) AS col1
----
-1049

skipif mysql # not compatible
query I rowsort label-1561
SELECT + COUNT ( * ) + + + 42 * - - NULLIF ( - 25, + COUNT ( * ) * 18 ) AS col1
----
-1049

query I rowsort
SELECT ALL 18 - + 63 AS col0
----
-45

query I rowsort
SELECT 58 * + + 4 AS col1
----
232

onlyif mysql # aggregate syntax: 
query II rowsort label-1564
SELECT 93 + + - ( - + 79 ), - COUNT( * ) + + + MIN( + 46 ) * - 32 + - 73 * - + 7 AS col1
----
172
-962

skipif mysql # not compatible
query II rowsort label-1564
SELECT 93 + + - ( - + 79 ), - COUNT ( * ) + + + MIN ( + 46 ) * - 32 + - 73 * - + 7 AS col1
----
172
-962

query I rowsort
SELECT ALL + 68 + + 30 AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1566
SELECT - 21, + 8 * ( + 61 ) * + 20 - - 31 * COUNT( * ) + - CASE 15 WHEN - 47 * + 4 * - 82 * - 22 - ( - + 78 ) * - ( + - COUNT( * ) ) THEN NULL ELSE ( + 50 ) * + 52 - NULLIF ( + CAST( + - 91 AS SIGNED ), - ( 22 ) + - 79 ) END * ( - 4 ) AS col0
----
-21
20555

skipif mysql # not compatible
query II rowsort label-1566
SELECT - 21, + 8 * ( + 61 ) * + 20 - - 31 * COUNT ( * ) + - CASE 15 WHEN - 47 * + 4 * - 82 * - 22 - ( - + 78 ) * - ( + - COUNT ( * ) ) THEN NULL ELSE ( + 50 ) * + 52 - NULLIF ( + CAST ( + - 91 AS INTEGER ), - ( 22 ) + - 79 ) END * ( - 4 ) AS col0
----
-21
20555

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL - COUNT( * ) + - 5
----
-6

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL - COUNT ( * ) + - 5
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT 80 + - 66 + 89 - + COUNT( * ) + 65 * + 9
----
687

skipif mysql # not compatible
query I rowsort label-1568
SELECT 80 + - 66 + 89 - + COUNT ( * ) + 65 * + 9
----
687

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT DISTINCT - 23 + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-1569
SELECT DISTINCT - 23 + COUNT ( * )
----
-22

query II rowsort
SELECT - 32 AS col1, 90 + - - 20
----
-32
110

query I rowsort
SELECT ALL - 5 + + - 1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT DISTINCT + 51 + MIN( - 57 ) + + + 65
----
59

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT + 51 + MIN ( - 57 ) + + + 65
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT ALL - 78 * - + 21 * + COUNT( * )
----
1638

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL - 78 * - + 21 * + COUNT ( * )
----
1638

query I rowsort
SELECT + 22 + + 13
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1575
SELECT - 97 col2, - CAST( 89 AS SIGNED ) * + - 98 AS col1
----
-97
8722

skipif mysql # not compatible
query II rowsort label-1575
SELECT - 97 col2, - CAST ( 89 AS INTEGER ) * + - 98 AS col1
----
-97
8722

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1577
SELECT ALL ( CASE NULLIF ( - COALESCE ( + - 67, - 33 * + 47 + + + 52 + + 4 * COUNT( * ) * - + SUM( - + COALESCE ( - 38, + 5 * + - 59 ) ) ), - 27 * - 3 + + 77 * + - ( - + 69 ) * - 69 + + 14 + + 55 ) WHEN 13 / + CAST( NULL AS SIGNED ) THEN - 62 * + COUNT( * ) END ) + 12 * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL ( CASE NULLIF ( - COALESCE ( + - 67, - 33 * + 47 + + + 52 + + 4 * COUNT ( * ) * - + SUM ( - + COALESCE ( - 38, + 5 * + - 59 ) ) ), - 27 * - 3 + + 77 * + - ( - + 69 ) * - 69 + + 14 + + 55 ) WHEN 13 / + CAST ( NULL AS INTEGER ) THEN - 62 * + COUNT ( * ) END ) + 12 * 94
----
NULL

query I rowsort
SELECT - 10 + 96 AS col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1579
SELECT - 86 + - ( - SUM( DISTINCT 22 ) ) AS col0, + 92 * - MAX( + 11 ) / + + CASE - ( + 42 ) WHEN - SUM( - 95 ) THEN - + CASE + 26 WHEN - 46 + + 96 * - 91 THEN NULL ELSE - 11 END * - 31 END AS col0
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-1579
SELECT - 86 + - ( - SUM ( DISTINCT 22 ) ) AS col0, + 92 * - MAX ( + 11 ) / + + CASE - ( + 42 ) WHEN - SUM ( - 95 ) THEN - + CASE + 26 WHEN - 46 + + 96 * - 91 THEN NULL ELSE - 11 END * - 31 END AS col0
----
-64
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1580
SELECT + ( + + SUM( ALL + 10 ) ) / COUNT( * ) - + + CAST( NULL AS DECIMAL ) + + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1580
SELECT + ( + + SUM ( ALL + 10 ) ) / COUNT ( * ) - + + CAST ( NULL AS REAL ) + + 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT DISTINCT - 27 * - - NULLIF ( + + 75, - 9 - + + 7 ) + 51 - 6 * - 50 - + COUNT( 66 )
----
-1675

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT - 27 * - - NULLIF ( + + 75, - 9 - + + 7 ) + 51 - 6 * - 50 - + COUNT ( 66 )
----
-1675

onlyif mysql # DIV for integer division: 
query II rowsort label-1582
SELECT 48 DIV - 86 + + 49 AS col0, 60 * 53 + 98
----
49
3278

skipif mysql # not compatible
query II rowsort label-1582
SELECT 48 / - 86 + + 49 AS col0, 60 * 53 + 98
----
49
3278

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT ALL - COUNT( DISTINCT + 5 ) * - COUNT( - 98 ) - - + 77 - 81 + + + 12 * - + 1 * - ( + 73 ) * + 62 * + 32
----
1737981

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL - COUNT ( DISTINCT + 5 ) * - COUNT ( - 98 ) - - + 77 - 81 + + + 12 * - + 1 * - ( + 73 ) * + 62 * + 32
----
1737981

query I rowsort
SELECT ALL + 84 * 74
----
6216

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

skipif mysql # not compatible
query I rowsort label-1585
SELECT + ( - MIN ( + - 88 ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT + + COUNT( - - 12 ) + + 69 - + - ( ( - + 82 ) ) * - - NULLIF ( + - COUNT( * ), - + 40 ) * - COUNT( * ) * 63 + - - 34 * - 43
----
-6558

skipif mysql # not compatible
query I rowsort label-1586
SELECT + + COUNT ( - - 12 ) + + 69 - + - ( ( - + 82 ) ) * - - NULLIF ( + - COUNT ( * ), - + 40 ) * - COUNT ( * ) * 63 + - - 34 * - 43
----
-6558

query I rowsort
SELECT + 6 * + 48
----
288

query I rowsort
SELECT DISTINCT 45 * + 84 AS col1
----
3780

query II rowsort
SELECT ALL + 52 AS col2, 22
----
52
22

onlyif mysql # aggregate syntax: 
query II rowsort label-1590
SELECT - 70, COUNT( * ) * 44 - + 12 AS col0
----
-70
32

skipif mysql # not compatible
query II rowsort label-1590
SELECT - 70, COUNT ( * ) * 44 - + 12 AS col0
----
-70
32

query I rowsort
SELECT - + NULLIF ( 57, 82 ) * + 22
----
-1254

onlyif mysql # aggregate syntax: 
query II rowsort label-1592
SELECT ALL + - 72, + 7 * + + COUNT( * ) AS col1
----
-72
7

skipif mysql # not compatible
query II rowsort label-1592
SELECT ALL + - 72, + 7 * + + COUNT ( * ) AS col1
----
-72
7

query I rowsort
SELECT DISTINCT + 91 * + 1 AS col1
----
91

query I rowsort
SELECT + CASE + 17 WHEN - 27 THEN + 91 * - + 57 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1595
SELECT ALL - + 90 DIV CASE - 3 WHEN + CAST( NULL AS SIGNED ) THEN 71 * - 2 + - 85 DIV - MIN( DISTINCT - - 44 ) ELSE + 43 END
----
-2

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL - + 90 / CASE - 3 WHEN + CAST ( NULL AS INTEGER ) THEN 71 * - 2 + - 85 / - MIN ( DISTINCT - - 44 ) ELSE + 43 END
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-1596
SELECT - 12 DIV - 53 AS col0, - ( + 7 ) AS col2
----
0
-7

skipif mysql # not compatible
query II rowsort label-1596
SELECT - 12 / - 53 AS col0, - ( + 7 ) AS col2
----
0
-7

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

skipif mysql # not compatible
query I rowsort label-1597
SELECT + COUNT ( * ) * - 2 - - 33 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1598
SELECT + NULLIF ( 71, + 24 ) * + 0 * - 38 + + 70 + + 98 + 41 - + COALESCE ( + - MIN( ALL - + 89 ), + 74 ) * - 22 * - + 91 * - ( 39 ) + + CAST( NULL AS SIGNED ) - - - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT + NULLIF ( 71, + 24 ) * + 0 * - 38 + + 70 + + 98 + 41 - + COALESCE ( + - MIN ( ALL - + 89 ), + 74 ) * - 22 * - + 91 * - ( 39 ) + + CAST ( NULL AS INTEGER ) - - - 16 AS col2
----
NULL

query I rowsort
SELECT + 59 - - 55
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL COALESCE ( COUNT( * ), 57 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL COALESCE ( COUNT ( * ), 57 ) AS col0
----
1

query I rowsort
SELECT ALL 82 + ( 2 )
----
84

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1604
SELECT ALL + COALESCE ( + + 56, - COUNT( * ) * - + 88 + + 22 + + 98 * 84 + + + COUNT( * ) * + - 62 DIV - ( + 57 ) * - 50, + 25 ) + 64 * + + COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL + COALESCE ( + + 56, - COUNT ( * ) * - + 88 + + 22 + + 98 * 84 + + + COUNT ( * ) * + - 62 / - ( + 57 ) * - 50, + 25 ) + 64 * + + COUNT ( * )
----
120

query I rowsort
SELECT - 46 + 56 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1606
SELECT - 5 - 1 + + 25 - - COALESCE ( 51, - 73, - 75 ) * 75 * + + COUNT( * ), - NULLIF ( - 29, 54 + - - 67 / + 49 + - + 20 ) * - - 39 AS col2
----
3844
1131

skipif mysql # not compatible
query II rowsort label-1606
SELECT - 5 - 1 + + 25 - - COALESCE ( 51, - 73, - 75 ) * 75 * + + COUNT ( * ), - NULLIF ( - 29, 54 + - - 67 / + 49 + - + 20 ) * - - 39 AS col2
----
3844
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT ALL CASE - ( - 40 ) WHEN - + 61 THEN - - 20 ELSE COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL CASE - ( - 40 ) WHEN - + 61 THEN - - 20 ELSE COUNT ( * ) END AS col2
----
1

query I rowsort
SELECT DISTINCT COALESCE ( - + COALESCE ( - 7, - + 64, + 57 + 19 ), 77 ) AS col0
----
7

query I rowsort
SELECT - 81 - - 66
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1610
SELECT DISTINCT COALESCE ( + - 30, + - 28, SUM( DISTINCT - 29 ) * - + 39 * - CAST( + NULLIF ( + 68, - - ( 71 ) - - + 15 * + 52 * - 50 ) AS SIGNED ) * 34 + - + COUNT( * ) + - - 93 )
----
-30

skipif mysql # not compatible
query I rowsort label-1610
SELECT DISTINCT COALESCE ( + - 30, + - 28, SUM ( DISTINCT - 29 ) * - + 39 * - CAST ( + NULLIF ( + 68, - - ( 71 ) - - + 15 * + 52 * - 50 ) AS INTEGER ) * 34 + - + COUNT ( * ) + - - 93 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1611
SELECT ALL - MIN( DISTINCT - - 8 ) * - - 33 * - CAST( - 14 AS SIGNED ) * COUNT( * ) + + 44 * + + ( - + 6 ) AS col0
----
-3960

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL - MIN ( DISTINCT - - 8 ) * - - 33 * - CAST ( - 14 AS INTEGER ) * COUNT ( * ) + + 44 * + + ( - + 6 ) AS col0
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT - 39 * + MIN( + - 58 ) AS col0
----
2262

skipif mysql # not compatible
query I rowsort label-1612
SELECT - 39 * + MIN ( + - 58 ) AS col0
----
2262

onlyif mysql # DIV for integer division: 
query I rowsort label-1613
SELECT - 24 DIV - 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1613
SELECT - 24 / - 77 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT - + NULLIF ( + 33, + 7 * - + 1 / - - COUNT( * ) ) * + COUNT( * ) col1
----
-33

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT - + NULLIF ( + 33, + 7 * - + 1 / - - COUNT ( * ) ) * + COUNT ( * ) col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1615
SELECT + - 19 / + + NULLIF ( 98, + ( - - SUM( ALL - 68 ) ) ) + + CASE + + 42 WHEN + SUM( + + 96 ) THEN NULL WHEN + 0 + + 55 THEN - + CASE SUM( DISTINCT - 52 ) WHEN - COUNT( * ) * 98 + - NULLIF ( 92, + - COALESCE ( CAST( - 43 AS DECIMAL ), + 73, - + 8 ) ) * 87 THEN NULL WHEN CAST( - 79 AS SIGNED ) THEN - CAST( NULL AS SIGNED ) * ( - 78 * 39 ) + ( + 63 ) END WHEN 8 * - ( AVG ( 54 ) / 61 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT + - 19 / + + NULLIF ( 98, + ( - - SUM ( ALL - 68 ) ) ) + + CASE + + 42 WHEN + SUM ( + + 96 ) THEN NULL WHEN + 0 + + 55 THEN - + CASE SUM ( DISTINCT - 52 ) WHEN - COUNT ( * ) * 98 + - NULLIF ( 92, + - COALESCE ( CAST ( - 43 AS REAL ), + 73, - + 8 ) ) * 87 THEN NULL WHEN CAST ( - 79 AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) * ( - 78 * 39 ) + ( + 63 ) END WHEN 8 * - ( AVG ( 54 ) / 61 ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 13 * + 0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT - 4 - - ( + COUNT( * ) ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1618
SELECT - 4 - - ( + COUNT ( * ) ) AS col1
----
-3

query I rowsort
SELECT + - 11 * 51 * - 91
----
51051

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT - 67 * - - MIN( + 35 ) + + + 56 AS col1
----
-2289

skipif mysql # not compatible
query I rowsort label-1620
SELECT - 67 * - - MIN ( + 35 ) + + + 56 AS col1
----
-2289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1621
SELECT ALL + CAST( + + 25 AS SIGNED ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL + CAST ( + + 25 AS INTEGER ) AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1622
SELECT ALL 87 * NULLIF ( + 62, 62 - COALESCE ( - SUM( DISTINCT 62 ), CAST( - - 92 AS SIGNED ) + + 5 + - CAST( NULL AS SIGNED ) * - + 9 * COUNT( * ) ) + 83 + + + ( - - 1 ) * COALESCE ( + - 53, + - 15 ) * + 47 ) + 35 / + + CAST( NULL AS SIGNED ) * ( 42 ) + 31 / + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL 87 * NULLIF ( + 62, 62 - COALESCE ( - SUM ( DISTINCT 62 ), CAST ( - - 92 AS INTEGER ) + + 5 + - CAST ( NULL AS INTEGER ) * - + 9 * COUNT ( * ) ) + 83 + + + ( - - 1 ) * COALESCE ( + - 53, + - 15 ) * + 47 ) + 35 / + + CAST ( NULL AS INTEGER ) * ( 42 ) + 31 / + 21 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + ( 64 ) col0, - 44
----
64
-44

query I rowsort
SELECT - + 32 + + 15
----
-17

query II rowsort
SELECT ALL + 54 col1, - 63
----
54
-63

query I rowsort
SELECT DISTINCT 97 * + 57 * 70 + - - ( + 77 ) col1
----
387107

query I rowsort
SELECT ALL 66 * + - 20 + 91
----
-1229

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

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

query I rowsort
SELECT DISTINCT + 29 * - 64 + 59 - + - 96 AS col1
----
-1701

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1630
SELECT CASE + + 49 WHEN - - 14 THEN + CASE + + 59 WHEN + 44 THEN CASE - - 16 WHEN + AVG ( DISTINCT + 5 ) + - 50 THEN - CASE - CAST( NULL AS SIGNED ) WHEN + 26 + 31 * 2 THEN - - 23 ELSE NULL END * - 48 * + 49 WHEN + 77 THEN NULL WHEN - + 0 + + 99 THEN NULL END ELSE NULL END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT CASE + + 49 WHEN - - 14 THEN + CASE + + 59 WHEN + 44 THEN CASE - - 16 WHEN + AVG ( DISTINCT + 5 ) + - 50 THEN - CASE - CAST ( NULL AS INTEGER ) WHEN + 26 + 31 * 2 THEN - - 23 ELSE NULL END * - 48 * + 49 WHEN + 77 THEN NULL WHEN - + 0 + + 99 THEN NULL END ELSE NULL END ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1631
SELECT 83 DIV + 41
----
2

skipif mysql # not compatible
query I rowsort label-1631
SELECT 83 / + 41
----
2

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

query I rowsort
SELECT DISTINCT 28 + - + 35
----
-7

onlyif mysql # aggregate syntax: 
query III rowsort label-1634
SELECT - 85, - COUNT( * ) * - + 37 AS col1, - - 9 AS col2
----
-85
37
9

skipif mysql # not compatible
query III rowsort label-1634
SELECT - 85, - COUNT ( * ) * - + 37 AS col1, - - 9 AS col2
----
-85
37
9

query I rowsort
SELECT ALL 63 - - 22
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1636
SELECT COUNT( * ) DIV + - 23 * + - 27
----
0

skipif mysql # not compatible
query I rowsort label-1636
SELECT COUNT ( * ) / + - 23 * + - 27
----
0

query I rowsort
SELECT 44 * - - 95
----
4180

onlyif mysql # aggregate syntax: 
query II rowsort label-1638
SELECT COUNT( * ) + + 88 + - - 54 * - 9 * + - MAX( DISTINCT + 32 ) AS col1, 9 col0
----
15641
9

skipif mysql # not compatible
query II rowsort label-1638
SELECT COUNT ( * ) + + 88 + - - 54 * - 9 * + - MAX ( DISTINCT + 32 ) AS col1, 9 col0
----
15641
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1640
SELECT ALL + COALESCE ( + + COALESCE ( + + 53, + COUNT( * ), + - COUNT( * ) + 25 ), + 19, SUM( + + 42 ) ) * - CAST( NULL AS SIGNED ), CAST( - 85 AS SIGNED ) AS col2
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-1640
SELECT ALL + COALESCE ( + + COALESCE ( + + 53, + COUNT ( * ), + - COUNT ( * ) + 25 ), + 19, SUM ( + + 42 ) ) * - CAST ( NULL AS INTEGER ), CAST ( - 85 AS INTEGER ) AS col2
----
NULL
-85

query II rowsort
SELECT DISTINCT 1, 98 AS col1
----
1
98

query I rowsort
SELECT ALL - 88 - - + 9
----
-79

query I rowsort
SELECT 43 * 4 AS col2
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT ALL 21 * 48 * - + COUNT( * )
----
-1008

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL 21 * 48 * - + COUNT ( * )
----
-1008

query I rowsort
SELECT 54 + + 68 col2
----
122

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

query II rowsort
SELECT - 87 AS col0, 71
----
-87
71

query I rowsort
SELECT 87 + 9
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1649
SELECT - 79 * - 58 * + 22 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT - 79 * - 58 * + 22 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 46 + - 29
----
17

query I rowsort
SELECT COALESCE ( - 86, + - 12 + + 49, 64 * - - 45 + - 10 * - 41 ) + 84
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1652
SELECT ( 86 ) - - NULLIF ( + 28, - CAST( NULL AS SIGNED ) ) * - + ( - 7 ) + - 79
----
203

skipif mysql # not compatible
query I rowsort label-1652
SELECT ( 86 ) - - NULLIF ( + 28, - CAST ( NULL AS INTEGER ) ) * - + ( - 7 ) + - 79
----
203

query I rowsort
SELECT DISTINCT ( - 71 )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT ALL - + 48 * 59 DIV 12 col1
----
-236

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL - + 48 * 59 / 12 col1
----
-236

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

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

query I rowsort
SELECT DISTINCT - ( + NULLIF ( 69, 24 ) )
----
-69

query I rowsort
SELECT + COALESCE ( + 43, + 49 * - + 95 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT ALL + COUNT( * ) + ( - 72 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL + COUNT ( * ) + ( - 72 ) AS col2
----
-71

query I rowsort
SELECT ALL - + 56 + - 39
----
-95

query I rowsort
SELECT 5 * - 64 AS col1
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT DISTINCT - - 6 + + 78 + - + 30 * - - 96 + - ( - 26 ) * 1 * - - COUNT( * ) * CASE + COALESCE ( - 46, + 64 * - 93, 42 ) WHEN - 77 THEN + - 56 ELSE - 40 END
----
-3836

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT - - 6 + + 78 + - + 30 * - - 96 + - ( - 26 ) * 1 * - - COUNT ( * ) * CASE + COALESCE ( - 46, + 64 * - 93, 42 ) WHEN - 77 THEN + - 56 ELSE - 40 END
----
-3836

query I rowsort
SELECT ALL + - 43 + - - 44 + + + 44 * - 90 AS col1
----
-3959

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1664
SELECT - 78 DIV + 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1664
SELECT - 78 / + 41 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1665
SELECT + 18 * - + 27 + + MIN( - 83 ) + + ( 86 ) col1, NULLIF ( + - CASE + 31 WHEN 54 - + + 77 THEN - MAX( ALL + 23 ) END, - ( - 85 ) * 12 * + + 18 )
----
-483
NULL

skipif mysql # not compatible
query II rowsort label-1665
SELECT + 18 * - + 27 + + MIN ( - 83 ) + + ( 86 ) col1, NULLIF ( + - CASE + 31 WHEN 54 - + + 77 THEN - MAX ( ALL + 23 ) END, - ( - 85 ) * 12 * + + 18 )
----
-483
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1666
SELECT COUNT( ALL + 76 ) * + CASE 1 WHEN + + COUNT( * ) * 47 * + 56 THEN + 55 END / 2 * + 11 * - - 36 - + 47 * + COUNT( * ), 85 * 85 AS col2
----
NULL
7225

skipif mysql # not compatible
query II rowsort label-1666
SELECT COUNT ( ALL + 76 ) * + CASE 1 WHEN + + COUNT ( * ) * 47 * + 56 THEN + 55 END / 2 * + 11 * - - 36 - + 47 * + COUNT ( * ), 85 * 85 AS col2
----
NULL
7225

query II rowsort
SELECT ALL - 61 AS col1, - 70 * + + 85 + + - 36
----
-61
-5986

onlyif mysql # DIV for integer division: 
query I rowsort label-1668
SELECT 93 DIV 59 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1668
SELECT 93 / 59 AS col0
----
1

query II rowsort
SELECT DISTINCT - 32, 64 col2
----
-32
64

query II rowsort
SELECT DISTINCT - 70 AS col2, 34
----
-70
34

query I rowsort
SELECT ALL 23 + - 85 + - 80 AS col1
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT 9 * - CASE - 83 WHEN 71 THEN 87 * COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1672
SELECT 9 * - CASE - 83 WHEN 71 THEN 87 * COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT 83 + + 94 + - - 45
----
222

query II rowsort
SELECT 35 AS col1, + 18 col1
----
35
18

query II rowsort
SELECT DISTINCT - 60, 22 AS col1
----
-60
22

query I rowsort
SELECT ALL 88 - 47 AS col1
----
41

query II rowsort
SELECT 78, + 7 AS col0
----
78
7

query II rowsort
SELECT ALL 39 AS col2, 47 col2
----
39
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1679
SELECT DISTINCT 42 col1, 70 * - MIN( - + 30 ) AS col2
----
42
2100

skipif mysql # not compatible
query II rowsort label-1679
SELECT DISTINCT 42 col1, 70 * - MIN ( - + 30 ) AS col2
----
42
2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1680
SELECT ALL 50 AS col1, - COUNT( * ) * 41 * - - 82 - - CAST( 51 AS SIGNED ) * + CAST( NULL AS SIGNED )
----
50
NULL

skipif mysql # not compatible
query II rowsort label-1680
SELECT ALL 50 AS col1, - COUNT ( * ) * 41 * - - 82 - - CAST ( 51 AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
50
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1681
SELECT 14 * - CASE NULLIF ( - 7, + COUNT( * ) ) WHEN + MAX( 21 ) * + 62 / + 17 - + MAX( 79 ) + + NULLIF ( - 24, - 21 + - 96 * 73 * - - 24 / - 50 * COUNT( * ) ) * - 41 THEN + + CAST( AVG ( - 77 ) AS SIGNED ) WHEN - + COALESCE ( 5, - 82 + COUNT( * ) ) * - 66 THEN - CASE - 46 WHEN + ( + COUNT( * ) ) + 8 THEN - 10 + + 84 WHEN 90 THEN - ( + MAX( + 33 ) ) END * + 72 ELSE NULL END / 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT 14 * - CASE NULLIF ( - 7, + COUNT ( * ) ) WHEN + MAX ( 21 ) * + 62 / + 17 - + MAX ( 79 ) + + NULLIF ( - 24, - 21 + - 96 * 73 * - - 24 / - 50 * COUNT ( * ) ) * - 41 THEN + + CAST ( AVG ( - 77 ) AS INTEGER ) WHEN - + COALESCE ( 5, - 82 + COUNT ( * ) ) * - 66 THEN - CASE - 46 WHEN + ( + COUNT ( * ) ) + 8 THEN - 10 + + 84 WHEN 90 THEN - ( + MAX ( + 33 ) ) END * + 72 ELSE NULL END / 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT - MIN( + 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-1682
SELECT - MIN ( + 21 ) AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1683
SELECT 53 - 37 * CAST( - 85 AS SIGNED ) AS col1
----
3198

skipif mysql # not compatible
query I rowsort label-1683
SELECT 53 - 37 * CAST ( - 85 AS INTEGER ) AS col1
----
3198

onlyif mysql # aggregate syntax: 
query II rowsort label-1684
SELECT - COUNT( * ) AS col2, COUNT( * ) * 25 + - COALESCE ( + 53, - COUNT( * ), + ( - ( 56 ) ) + - + 44 ) - + 83 + + - 10 * 9 AS col1
----
-1
-201

skipif mysql # not compatible
query II rowsort label-1684
SELECT - COUNT ( * ) AS col2, COUNT ( * ) * 25 + - COALESCE ( + 53, - COUNT ( * ), + ( - ( 56 ) ) + - + 44 ) - + 83 + + - 10 * 9 AS col1
----
-1
-201

query I rowsort
SELECT 2 * + - 36 + - 36 col1
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-1686
SELECT - + COUNT( * ) AS col0, - 62 * + 32
----
-1
-1984

skipif mysql # not compatible
query II rowsort label-1686
SELECT - + COUNT ( * ) AS col0, - 62 * + 32
----
-1
-1984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1687
SELECT CASE 2 WHEN + 32 / - 7 THEN + + 96 * + + 98 * - - CASE - - 50 WHEN - - CAST( NULL AS SIGNED ) + 1 / - + COUNT( * ) * - 87 THEN NULL WHEN + + 47 THEN - + CASE - - 20 WHEN - COALESCE ( 12, - + 55 / 70 ) THEN 13 * - 2 - - 19 - - 89 + + + COUNT( * ) * - 95 WHEN SUM( ( + 28 ) ) THEN NULL END * COUNT( * ) ELSE 87 END * + 28 + 98 END * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT CASE 2 WHEN + 32 / - 7 THEN + + 96 * + + 98 * - - CASE - - 50 WHEN - - CAST ( NULL AS INTEGER ) + 1 / - + COUNT ( * ) * - 87 THEN NULL WHEN + + 47 THEN - + CASE - - 20 WHEN - COALESCE ( 12, - + 55 / 70 ) THEN 13 * - 2 - - 19 - - 89 + + + COUNT ( * ) * - 95 WHEN SUM ( ( + 28 ) ) THEN NULL END * COUNT ( * ) ELSE 87 END * + 28 + 98 END * + 93
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1689
SELECT - - 48 AS col1, + COUNT( * ) + - 5
----
48
-4

skipif mysql # not compatible
query II rowsort label-1689
SELECT - - 48 AS col1, + COUNT ( * ) + - 5
----
48
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1690
SELECT ALL + + 83 + + COUNT( * ) + - - 65 + + COUNT( * ) * + - 34 - - + 26 + + + 94 DIV + 12
----
148

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL + + 83 + + COUNT ( * ) + - - 65 + + COUNT ( * ) * + - 34 - - + 26 + + + 94 / + 12
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1691
SELECT DISTINCT + 81 + - ( - - COUNT( ALL + - 77 ) ) col0, - SUM( 20 ) * - - 32 + CASE 33 WHEN + MIN( 20 ) * - AVG ( ALL ( + ( + 51 ) ) ) * - 36 + 70 + + - CAST( - 7 AS SIGNED ) + - 39 + 48 THEN 57 + COUNT( * ) ELSE 55 + + + 78 + + - 22 * 32 DIV COUNT( * ) END
----
80
-1211

skipif mysql # not compatible
query II rowsort label-1691
SELECT DISTINCT + 81 + - ( - - COUNT ( ALL + - 77 ) ) col0, - SUM ( 20 ) * - - 32 + CASE 33 WHEN + MIN ( 20 ) * - AVG ( ALL ( + ( + 51 ) ) ) * - 36 + 70 + + - CAST ( - 7 AS INTEGER ) + - 39 + 48 THEN 57 + COUNT ( * ) ELSE 55 + + + 78 + + - 22 * 32 / COUNT ( * ) END
----
80
-1211

query I rowsort
SELECT ALL 96 + - + 20 AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1693
SELECT - SUM( + 81 ) + ( + - 96 ) DIV 58 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-1693
SELECT - SUM ( + 81 ) + ( + - 96 ) / 58 AS col2
----
-82

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

skipif mysql # not compatible
query I rowsort label-1694
SELECT COUNT ( DISTINCT + - 89 ) - + 20 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT + - 20 * 57 + - - COUNT( * ) * + CASE - + 45 WHEN 59 THEN 41 + - - ( - 53 ) + - 77 + 10 WHEN + - 17 - - 11 - - 47 + + + 53 * 65 * 69 * + 14 * 19 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT + - 20 * 57 + - - COUNT ( * ) * + CASE - + 45 WHEN 59 THEN 41 + - - ( - 53 ) + - 77 + 10 WHEN + - 17 - - 11 - - 47 + + + 53 * 65 * 69 * + 14 * 19 THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT 9 AS col2, 56 * + - 74 AS col0
----
9
-4144

query II rowsort
SELECT DISTINCT - - 41 AS col2, + 50 AS col1
----
41
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT 89 + SUM( - + 16 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1698
SELECT 89 + SUM ( - + 16 ) AS col0
----
73

query II rowsort
SELECT - 30 - + - 44 AS col1, + 24 * - 89 + 62 AS col1
----
14
-2074

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT 87 * - COUNT( * ) - NULLIF ( 98, 61 )
----
-185

skipif mysql # not compatible
query I rowsort label-1700
SELECT 87 * - COUNT ( * ) - NULLIF ( 98, 61 )
----
-185

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

skipif mysql # not compatible
query I rowsort label-1701
SELECT - 64 * + - 93 + - + MIN ( ALL - + 61 ) / + COUNT ( * )
----
6013

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT + 58 + - - SUM( - + 66 ) * + - CASE - COUNT( * ) WHEN NULLIF ( - 8, + - 29 ) THEN NULL ELSE - 41 * + + 33 * - 76 + - 59 END
----
6782812

skipif mysql # not compatible
query I rowsort label-1702
SELECT + 58 + - - SUM ( - + 66 ) * + - CASE - COUNT ( * ) WHEN NULLIF ( - 8, + - 29 ) THEN NULL ELSE - 41 * + + 33 * - 76 + - 59 END
----
6782812

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1703
SELECT - 1 * - CASE 22 WHEN - 43 THEN - 63 WHEN 41 * + 69 THEN - 85 ELSE + 91 END * + - 30 DIV + ( - 1 ) + - + 18 DIV - CAST( + + 29 AS SIGNED ), 67 AS col1
----
2730
67

skipif mysql # not compatible
query II rowsort label-1703
SELECT - 1 * - CASE 22 WHEN - 43 THEN - 63 WHEN 41 * + 69 THEN - 85 ELSE + 91 END * + - 30 / + ( - 1 ) + - + 18 / - CAST ( + + 29 AS INTEGER ), 67 AS col1
----
2730
67

query I rowsort
SELECT ALL + 88 - - + 80 AS col1
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1705
SELECT - 22 + - 16 + 29 * - MAX( ALL - ( + 44 ) ) DIV - + 79 - ( + + COUNT( * ) ) * - 62 + - + CAST( NULL AS SIGNED ) + + + COALESCE ( + 85, COUNT( * ) * - + CAST( ( + COUNT( * ) ) AS SIGNED ) ) col0, 53 DIV + 53
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1705
SELECT - 22 + - 16 + 29 * - MAX ( ALL - ( + 44 ) ) / - + 79 - ( + + COUNT ( * ) ) * - 62 + - + CAST ( NULL AS INTEGER ) + + + COALESCE ( + 85, COUNT ( * ) * - + CAST ( ( + COUNT ( * ) ) AS INTEGER ) ) col0, 53 / + 53
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL COUNT( * ) - + - MIN( COALESCE ( - - 28, - + 87, - - 67 * 70, - 90 + 31 ) ) + 34
----
63

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL COUNT ( * ) - + - MIN ( COALESCE ( - - 28, - + 87, - - 67 * 70, - 90 + 31 ) ) + 34
----
63

query I rowsort
SELECT DISTINCT 69 * - - 64
----
4416

query II rowsort
SELECT - 28 + - 89, 69 AS col0
----
-117
69

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1710
SELECT + 68 + ( + COUNT( * ) ) * 83 DIV + 93 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-1710
SELECT + 68 + ( + COUNT ( * ) ) * 83 / + 93 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT DISTINCT 33 * - + COUNT( 17 ) * + COUNT( ALL 70 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT 33 * - + COUNT ( 17 ) * + COUNT ( ALL 70 ) AS col0
----
-33

query II rowsort
SELECT - 97 + + - 50 AS col2, 5 col2
----
-147
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1713
SELECT ALL 0 * - 69 DIV + ( - + 26 )
----
0

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL 0 * - 69 / + ( - + 26 )
----
0

query I rowsort
SELECT + 70 + + - 79
----
-9

query I rowsort
SELECT ALL + 24 + - + 31
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL - SUM( - 67 ) + 74 + + + 32 * + - 54 * + COUNT( * )
----
-1587

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL - SUM ( - 67 ) + 74 + + + 32 * + - 54 * + COUNT ( * )
----
-1587

query I rowsort
SELECT + + 63 + + 25 + + 33 * + - 77 AS col1
----
-2453

query I rowsort
SELECT DISTINCT 85 + - 14 col0
----
71

query I rowsort
SELECT ALL - 83 + 42
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1720
SELECT - + CASE - CASE 9 WHEN - 74 * - - 4 + - - 21 + - 46 THEN NULL ELSE - 28 END WHEN + AVG ( + + 69 ) * - 4 + 81 - - 76 + - ( + CASE WHEN NOT - 72 >= NULL THEN + 31 * 72 WHEN NOT - ( 73 ) - - + 69 * - + COUNT( * ) / 44 IS NOT NULL THEN NULL WHEN 95 * 33 - ( - 52 ) = NULL THEN NULL END ) THEN + 66 * CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT - + CASE - CASE 9 WHEN - 74 * - - 4 + - - 21 + - 46 THEN NULL ELSE - 28 END WHEN + AVG ( + + 69 ) * - 4 + 81 - - 76 + - ( + CASE WHEN NOT - 72 >= NULL THEN + 31 * 72 WHEN NOT - ( 73 ) - - + 69 * - + COUNT ( * ) / 44 IS NOT NULL THEN NULL WHEN 95 * 33 - ( - 52 ) = NULL THEN NULL END ) THEN + 66 * CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1721
SELECT + + 13 + - CAST( 73 AS SIGNED ) * MAX( ALL - + 89 ) * - + COUNT( * ) * + NULLIF ( + COUNT( * ), ( + ( - + COUNT( * ) ) ) * - 68 ) * + 81 * + 3 - + CAST( + COUNT( * ) AS SIGNED ) * - + 59 * - 41 * - 33 * - 60 + COUNT( * ) + 91 * + CASE - 14 WHEN 98 * + - 45 + + - COUNT( * ) THEN - 37 ELSE + 70 + CASE + COUNT( * ) + - 29 WHEN - 54 THEN ( + 47 ) * - 14 + 92 * - COUNT( * ) ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT + + 13 + - CAST ( 73 AS INTEGER ) * MAX ( ALL - + 89 ) * - + COUNT ( * ) * + NULLIF ( + COUNT ( * ), ( + ( - + COUNT ( * ) ) ) * - 68 ) * + 81 * + 3 - + CAST ( + COUNT ( * ) AS INTEGER ) * - + 59 * - 41 * - 33 * - 60 + COUNT ( * ) + 91 * + CASE - 14 WHEN 98 * + - 45 + + - COUNT ( * ) THEN - 37 ELSE + 70 + CASE + COUNT ( * ) + - 29 WHEN - 54 THEN ( + 47 ) * - 14 + 92 * - COUNT ( * ) ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1722
SELECT DISTINCT 12 DIV - - ( + COUNT( * ) ), 23 AS col1
----
12
23

skipif mysql # not compatible
query II rowsort label-1722
SELECT DISTINCT 12 / - - ( + COUNT ( * ) ), 23 AS col1
----
12
23

query II rowsort
SELECT - 56 + + 77 AS col2, + 6 AS col1
----
21
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1724
SELECT + 0 DIV + + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1724
SELECT + 0 / + + 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT DISTINCT - 25 * 26 * + 78 + COUNT( * )
----
-50699

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT - 25 * 26 * + 78 + COUNT ( * )
----
-50699

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT - 6 + 82 * - 40 * - COUNT( * ) col2
----
3274

skipif mysql # not compatible
query I rowsort label-1726
SELECT - 6 + 82 * - 40 * - COUNT ( * ) col2
----
3274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1727
SELECT + COALESCE ( + 65, + 63 DIV - SUM( 60 ), - 95 + + 11 ) * + 28 + + 23
----
1843

skipif mysql # not compatible
query I rowsort label-1727
SELECT + COALESCE ( + 65, + 63 / - SUM ( 60 ), - 95 + + 11 ) * + 28 + + 23
----
1843

onlyif mysql # DIV for integer division: 
query I rowsort label-1728
SELECT - 82 + - + 7 DIV + - 69 + - 33 AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-1728
SELECT - 82 + - + 7 / + - 69 + - 33 AS col0
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT + ( CASE WHEN NULL BETWEEN - 3 AND 66 + + 92 THEN COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT + ( CASE WHEN NULL BETWEEN - 3 AND 66 + + 92 THEN COUNT ( * ) END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1730
SELECT + CAST( - - 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-1730
SELECT + CAST ( - - 54 AS INTEGER )
----
54

query I rowsort
SELECT NULLIF ( 86, + 52 / + + 91 + + 65 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL + MIN( - 45 ) * + MAX( + 78 )
----
-3510

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + MIN ( - 45 ) * + MAX ( + 78 )
----
-3510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1733
SELECT - 40 DIV COUNT( * ) * - 86 * - 60 * - + 54 AS col0
----
11145600

skipif mysql # not compatible
query I rowsort label-1733
SELECT - 40 / COUNT ( * ) * - 86 * - 60 * - + 54 AS col0
----
11145600

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT ALL + MIN( DISTINCT - + 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL + MIN ( DISTINCT - + 59 ) AS col0
----
-59

query I rowsort
SELECT DISTINCT + 38 * + 54
----
2052

query I rowsort
SELECT + 87 + + 43 AS col0
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-1737
SELECT + 4 DIV 29
----
0

skipif mysql # not compatible
query I rowsort label-1737
SELECT + 4 / 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT + 21 * - NULLIF ( - + 26, - 41 * + COUNT( * ) ) + - 62
----
484

skipif mysql # not compatible
query I rowsort label-1738
SELECT + 21 * - NULLIF ( - + 26, - 41 * + COUNT ( * ) ) + - 62
----
484

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT NULLIF ( + ( - COUNT( * ) ), + - 3 * 17 - + + 15 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1739
SELECT NULLIF ( + ( - COUNT ( * ) ), + - 3 * 17 - + + 15 ) AS col1
----
-1

query II rowsort
SELECT + 47, 20 AS col0
----
47
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT - MAX( - 36 ) * - - NULLIF ( + - 32, + - AVG ( - 56 ) )
----
-1152

skipif mysql # not compatible
query I rowsort label-1741
SELECT - MAX ( - 36 ) * - - NULLIF ( + - 32, + - AVG ( - 56 ) )
----
-1152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1742
SELECT ALL CAST( NULL AS SIGNED ) * - + 66 + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL CAST ( NULL AS INTEGER ) * - + 66 + + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT - COALESCE ( - MAX( ALL - + 7 ), + + 30 )
----
-7

skipif mysql # not compatible
query I rowsort label-1743
SELECT - COALESCE ( - MAX ( ALL - + 7 ), + + 30 )
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT - COUNT( * ) - - 2 col1
----
1

skipif mysql # not compatible
query I rowsort label-1745
SELECT - COUNT ( * ) - - 2 col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1746
SELECT DISTINCT 4 * + 52 + 44 + + + 11 AS col1, + COUNT( * )
----
263
1

skipif mysql # not compatible
query II rowsort label-1746
SELECT DISTINCT 4 * + 52 + 44 + + + 11 AS col1, + COUNT ( * )
----
263
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT ALL + 14 DIV + 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL + 14 / + 74 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT - SUM( ALL - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-1748
SELECT - SUM ( ALL - 23 )
----
23

query I rowsort
SELECT DISTINCT + 45 + 67
----
112

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT + + 12 + 30 + + 9 * - NULLIF ( + + MIN( ALL - 18 ), AVG ( DISTINCT 54 ) ) * + 91
----
14784

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT + + 12 + 30 + + 9 * - NULLIF ( + + MIN ( ALL - 18 ), AVG ( DISTINCT 54 ) ) * + 91
----
14784

onlyif mysql # aggregate syntax: 
query II rowsort label-1752
SELECT + 12 AS col1, COALESCE ( ( - 53 ), 93 - - COUNT( * ) - 98 * + 64 * 10 ) AS col2
----
12
-53

skipif mysql # not compatible
query II rowsort label-1752
SELECT + 12 AS col1, COALESCE ( ( - 53 ), 93 - - COUNT ( * ) - 98 * + 64 * 10 ) AS col2
----
12
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-1753
SELECT - + 3 AS col2, 1 * + - MIN( + 73 ) + 88 * + NULLIF ( + - 79, - - 55 ) + - + COUNT( * )
----
-3
-7026

skipif mysql # not compatible
query II rowsort label-1753
SELECT - + 3 AS col2, 1 * + - MIN ( + 73 ) + 88 * + NULLIF ( + - 79, - - 55 ) + - + COUNT ( * )
----
-3
-7026

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

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

query I rowsort
SELECT - + 57 * ( + 36 ) * - 33 AS col2
----
67716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1756
SELECT + - MAX( ALL - - 63 ) * - - 50 * - CAST( + CASE WHEN NULL IS NOT NULL AND NOT ( NULL ) > - - 17 THEN + 7 END AS DECIMAL ) + + + 52, - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1756
SELECT + - MAX ( ALL - - 63 ) * - - 50 * - CAST ( + CASE WHEN NULL IS NOT NULL AND NOT ( NULL ) > - - 17 THEN + 7 END AS REAL ) + + + 52, - CAST ( NULL AS INTEGER )
----
NULL
NULL

query II rowsort
SELECT - - 80 AS col0, 41 + - ( 2 )
----
80
39

query I rowsort
SELECT ALL + 71 - 80 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT - MAX( ALL - ( - 67 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-1759
SELECT - MAX ( ALL - ( - 67 ) )
----
-67

query I rowsort
SELECT + 6 * - 90
----
-540

query I rowsort
SELECT DISTINCT + - ( - 56 ) * 49
----
2744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1762
SELECT CAST( NULL AS SIGNED ) * + + ( - 51 ) * 13 * 83 + + + 45 * + 63 - - 64 + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1762
SELECT CAST ( NULL AS INTEGER ) * + + ( - 51 ) * 13 * 83 + + + 45 * + 63 - - 64 + 60 AS col1
----
NULL

query I rowsort
SELECT - 64 + - 28 col0
----
-92

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1765
SELECT 2 * - - 33 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT 2 * - - 33 / + 87
----
0

query I rowsort
SELECT 38 * + + 6 AS col1
----
228

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1767
SELECT ALL 65 DIV - - 3, + 16 + + - COUNT( * ) + MIN( 0 ) AS col1
----
21
15

skipif mysql # not compatible
query II rowsort label-1767
SELECT ALL 65 / - - 3, + 16 + + - COUNT ( * ) + MIN ( 0 ) AS col1
----
21
15

query I rowsort
SELECT 24 * + 17 * + 91 + - ( - - 59 ) AS col1
----
37069

onlyif mysql # DIV for integer division: 
query I rowsort label-1769
SELECT DISTINCT 11 DIV - 38 * - 22 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT 11 / - 38 * - 22 AS col0
----
0

query I rowsort
SELECT 28 + + - 39 AS col2
----
-11

query I rowsort
SELECT ( + + 64 ) - - - 47 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT CASE + 50 WHEN ( + 41 ) - ( + - 74 ) THEN + + MAX( + 86 ) + - + 14 END * - + 95 + - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1772
SELECT CASE + 50 WHEN ( + 41 ) - ( + - 74 ) THEN + + MAX ( + 86 ) + - + 14 END * - + 95 + - 11 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1773
SELECT DISTINCT CAST( + 87 AS SIGNED ) * 13 AS col0
----
1131

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT CAST ( + 87 AS INTEGER ) * 13 AS col0
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT ( + 11 ) * - + ( 29 ) * + COUNT( * )
----
-319

skipif mysql # not compatible
query I rowsort label-1774
SELECT ( + 11 ) * - + ( 29 ) * + COUNT ( * )
----
-319

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1775
SELECT ALL 92 + + - 97 * COUNT( * ) + COUNT( ALL + - 20 ) DIV - + 47 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL 92 + + - 97 * COUNT ( * ) + COUNT ( ALL + - 20 ) / - + 47 AS col2
----
-5

query I rowsort
SELECT ALL 51 + - + 24 * 38
----
-861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1777
SELECT COUNT( * ) + - CASE - 85 WHEN - ( + MIN( + 5 ) ) THEN NULL ELSE - 1 + COUNT( * ) + COUNT( ALL - 92 ) + COUNT( * ) * - - 64 END * COALESCE ( MAX( 46 ), NULLIF ( + 13, + 44 * + 67 / - 86 / - CAST( NULL AS SIGNED ) + - - 72 + ( + 52 ) ), - 29 )
----
-2989

skipif mysql # not compatible
query I rowsort label-1777
SELECT COUNT ( * ) + - CASE - 85 WHEN - ( + MIN ( + 5 ) ) THEN NULL ELSE - 1 + COUNT ( * ) + COUNT ( ALL - 92 ) + COUNT ( * ) * - - 64 END * COALESCE ( MAX ( 46 ), NULLIF ( + 13, + 44 * + 67 / - 86 / - CAST ( NULL AS INTEGER ) + - - 72 + ( + 52 ) ), - 29 )
----
-2989

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT - 19 + - SUM( DISTINCT - - 28 ) * 47 AS col2
----
-1335

skipif mysql # not compatible
query I rowsort label-1779
SELECT - 19 + - SUM ( DISTINCT - - 28 ) * 47 AS col2
----
-1335

onlyif mysql # DIV for integer division: 
query I rowsort label-1780
SELECT - 88 DIV - 27 - - 59 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-1780
SELECT - 88 / - 27 - - 59 AS col2
----
62

query I rowsort
SELECT - 46 * - 46 AS col0
----
2116

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

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

query I rowsort
SELECT + 68 + + COALESCE ( 67, + 7 ) AS col2
----
135

query I rowsort
SELECT DISTINCT + 0 - + 84 AS col2
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1785
SELECT ALL COALESCE ( 20, + + 8, + - COALESCE ( - - CAST( NULL AS SIGNED ), 57 * COALESCE ( 55, 48 * + CASE + 79 WHEN + 91 THEN NULL ELSE - - 55 + - 72 + + COUNT( * ) + - - ( - ( + 88 ) ) * + 19 * + - 56 END * - COUNT( * ) DIV 0 ) * CAST( NULL AS SIGNED ) ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL COALESCE ( 20, + + 8, + - COALESCE ( - - CAST ( NULL AS INTEGER ), 57 * COALESCE ( 55, 48 * + CASE + 79 WHEN + 91 THEN NULL ELSE - - 55 + - 72 + + COUNT ( * ) + - - ( - ( + 88 ) ) * + 19 * + - 56 END * - COUNT ( * ) / 0 ) * CAST ( NULL AS INTEGER ) ) ) AS col1
----
20

query I rowsort
SELECT - 18 + - - 2 - - 11
----
-5

query I rowsort
SELECT - 62 * 36 AS col0
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT 64 + + MAX( ALL + + 6 )
----
70

skipif mysql # not compatible
query I rowsort label-1788
SELECT 64 + + MAX ( ALL + + 6 )
----
70

query I rowsort
SELECT + 45 + + 98 + + + 25
----
168

query II rowsort
SELECT ALL 56 AS col1, - 69 AS col0
----
56
-69

query II rowsort
SELECT - 57, 81 - - 23 * 98 * + + 65 * + 75 AS col0
----
-57
10988331

query I rowsort
SELECT ALL 59 * - 59 col2
----
-3481

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT DISTINCT - MAX( + 22 ) * 84 col1
----
-1848

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT - MAX ( + 22 ) * 84 col1
----
-1848

query I rowsort
SELECT 37 * - + 31 AS col1
----
-1147

query I rowsort
SELECT ALL 11 + - 98 + ( COALESCE ( 53, 45 ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT SUM( DISTINCT - CASE 73 WHEN + 53 THEN 63 ELSE - 72 + - 50 END )
----
122

skipif mysql # not compatible
query I rowsort label-1796
SELECT SUM ( DISTINCT - CASE 73 WHEN + 53 THEN 63 ELSE - 72 + - 50 END )
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1797
SELECT 27 DIV - COALESCE ( + - 83, + CASE - 23 WHEN + - COUNT( * ) * 3 * COUNT( * ) THEN - 37 * - 5 + - - 7 ELSE + - 19 END * - 28 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1797
SELECT 27 / - COALESCE ( + - 83, + CASE - 23 WHEN + - COUNT ( * ) * 3 * COUNT ( * ) THEN - 37 * - 5 + - - 7 ELSE + - 19 END * - 28 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT 63 * + COUNT( * ) * - COUNT( * ) * 98
----
-6174

skipif mysql # not compatible
query I rowsort label-1798
SELECT 63 * + COUNT ( * ) * - COUNT ( * ) * 98
----
-6174

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT + SUM( 2 )
----
2

skipif mysql # not compatible
query I rowsort label-1799
SELECT + SUM ( 2 )
----
2

query II rowsort
SELECT DISTINCT 10 + + - 83 + - 38 AS col2, 94 col1
----
-111
94

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1802
SELECT 53 DIV SUM( DISTINCT - - 13 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1802
SELECT 53 / SUM ( DISTINCT - - 13 ) AS col1
----
4

query I rowsort
SELECT ALL 45 * - NULLIF ( - 30, 36 * 71 ) AS col1
----
1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1804
SELECT MIN( DISTINCT - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1804
SELECT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL CASE - 27 WHEN + COALESCE ( 84, - 6 * + - 56, - - 38 ) * SUM( ALL - ( ( 51 ) ) ) + + + 90 - 60 + - - 90 + ( + + COUNT( * ) ) THEN MIN( - 26 ) - - + 36 END / - MIN( DISTINCT + - 18 ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL CASE - 27 WHEN + COALESCE ( 84, - 6 * + - 56, - - 38 ) * SUM ( ALL - ( ( 51 ) ) ) + + + 90 - 60 + - - 90 + ( + + COUNT ( * ) ) THEN MIN ( - 26 ) - - + 36 END / - MIN ( DISTINCT + - 18 ) + - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 39 * - 25
----
-975

query I rowsort
SELECT ALL 97 + + 14 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT - 77 * COUNT( * ) - + 48
----
-125

skipif mysql # not compatible
query I rowsort label-1808
SELECT - 77 * COUNT ( * ) - + 48
----
-125

query I rowsort
SELECT DISTINCT - - 51 AS col2
----
51

query II rowsort
SELECT + - NULLIF ( - 32, 11 - 63 * - 78 ) AS col0, + 41 AS col0
----
32
41

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

query I rowsort
SELECT DISTINCT CASE - 76 WHEN + + 12 THEN NULL WHEN + 86 THEN NULL ELSE - 12 END
----
-12

query I rowsort
SELECT ( - 40 ) + 83 AS col1
----
43

query II rowsort
SELECT ALL 97, - 78 AS col0
----
97
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1815
SELECT + 80 * + 45 - + - 85 + - + 77 DIV 37 * - - SUM( + 24 ) AS col2
----
3637

skipif mysql # not compatible
query I rowsort label-1815
SELECT + 80 * + 45 - + - 85 + - + 77 / 37 * - - SUM ( + 24 ) AS col2
----
3637

query I rowsort
SELECT ALL - + 69 * + - 83 + 92 AS col1
----
5819

query I rowsort
SELECT + 23 + 65
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1818
SELECT - + 55 AS col2, COUNT( ALL + 71 ) - 75 DIV + - 93 - + + COUNT( * ) - - ( - - 18 ) AS col0
----
-55
18

skipif mysql # not compatible
query II rowsort label-1818
SELECT - + 55 AS col2, COUNT ( ALL + 71 ) - 75 / + - 93 - + + COUNT ( * ) - - ( - - 18 ) AS col0
----
-55
18

query I rowsort
SELECT - NULLIF ( + + 46, + - AVG ( DISTINCT + - 45 ) )
----
-46

query I rowsort
SELECT - 7 - - - 26 + + 0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1821
SELECT + + COUNT( * ) * + - 34 DIV + 53 - - MAX( 7 ) AS col1, 1 * - - 27 AS col0
----
7
27

skipif mysql # not compatible
query II rowsort label-1821
SELECT + + COUNT ( * ) * + - 34 / + 53 - - MAX ( 7 ) AS col1, 1 * - - 27 AS col0
----
7
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT + - 13 - CASE + + 80 WHEN - ( 10 ) * 35 + 10 + + 77 + - + 85 - + - MAX( + + 6 ) * + 2 * 78 THEN NULL ELSE + 30 * - NULLIF ( + - 90, + NULLIF ( - 16, - - MIN( - 11 ) * - - COUNT( * ) ) * 68 ) END + 36 * - - 99
----
851

skipif mysql # not compatible
query I rowsort label-1822
SELECT + - 13 - CASE + + 80 WHEN - ( 10 ) * 35 + 10 + + 77 + - + 85 - + - MAX ( + + 6 ) * + 2 * 78 THEN NULL ELSE + 30 * - NULLIF ( + - 90, + NULLIF ( - 16, - - MIN ( - 11 ) * - - COUNT ( * ) ) * 68 ) END + 36 * - - 99
----
851

onlyif mysql # aggregate syntax: 
query II rowsort label-1823
SELECT - + 35 AS col1, ( + 68 ) + COUNT( * ) col0
----
-35
69

skipif mysql # not compatible
query II rowsort label-1823
SELECT - + 35 AS col1, ( + 68 ) + COUNT ( * ) col0
----
-35
69

query I rowsort
SELECT DISTINCT - 17 + 59 AS col2
----
42

query I rowsort
SELECT ALL COALESCE ( 33, + + 27 - + 10 + + 69 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1826
SELECT - 23 * - 45 * - MAX( - 22 ), 75 AS col2
----
22770
75

skipif mysql # not compatible
query II rowsort label-1826
SELECT - 23 * - 45 * - MAX ( - 22 ), 75 AS col2
----
22770
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT ALL 29 + - 71 + + + COALESCE ( - SUM( DISTINCT + 94 ), 20, + - 25 * - COUNT( * ) )
----
-136

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL 29 + - 71 + + + COALESCE ( - SUM ( DISTINCT + 94 ), 20, + - 25 * - COUNT ( * ) )
----
-136

onlyif mysql # aggregate syntax: 
query II rowsort label-1828
SELECT DISTINCT SUM( ALL - 84 ) AS col1, - 68
----
-84
-68

skipif mysql # not compatible
query II rowsort label-1828
SELECT DISTINCT SUM ( ALL - 84 ) AS col1, - 68
----
-84
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL + 97 + - MIN( 56 )
----
41

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL + 97 + - MIN ( 56 )
----
41

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

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

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

query I rowsort
SELECT - 93 * + 16
----
-1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1833
SELECT - 64 + + 75 * + + 74 * + 41 AS col0, CASE + - MAX( + + 59 ) WHEN + 97 + - + 33 + + 73 THEN - + 91 + - + 40 + + 97 + AVG ( - 49 ) * + COALESCE ( + + 33, - - 76 ) - + + COALESCE ( - CAST( NULL AS SIGNED ), + COUNT( 94 ) DIV - 25 ) + + 71 ELSE - 23 DIV - - CASE + - 57 WHEN 0 + 79 - - 3 + - - 69 * 17 THEN + 89 WHEN 6 * 8 + + NULLIF ( - 99, 64 ) * 64 THEN NULL ELSE 89 * 24 END + 4 END AS col2
----
227486
4

skipif mysql # not compatible
query II rowsort label-1833
SELECT - 64 + + 75 * + + 74 * + 41 AS col0, CASE + - MAX ( + + 59 ) WHEN + 97 + - + 33 + + 73 THEN - + 91 + - + 40 + + 97 + AVG ( - 49 ) * + COALESCE ( + + 33, - - 76 ) - + + COALESCE ( - CAST ( NULL AS INTEGER ), + COUNT ( 94 ) / - 25 ) + + 71 ELSE - 23 / - - CASE + - 57 WHEN 0 + 79 - - 3 + - - 69 * 17 THEN + 89 WHEN 6 * 8 + + NULLIF ( - 99, 64 ) * 64 THEN NULL ELSE 89 * 24 END + 4 END AS col2
----
227486
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1834
SELECT ALL + CAST( 72 AS SIGNED ) * 14 + + + 5 + - 44 DIV + 49 AS col0, 89 * - + 51 - 22 AS col1
----
1013
-4561

skipif mysql # not compatible
query II rowsort label-1834
SELECT ALL + CAST ( 72 AS INTEGER ) * 14 + + + 5 + - 44 / + 49 AS col0, 89 * - + 51 - 22 AS col1
----
1013
-4561

query I rowsort
SELECT - 81 + - - 22 * - 10 AS col1
----
-301

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

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL - 25 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT DISTINCT 4 * COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT 4 * COUNT ( * ) AS col2
----
4

query I rowsort
SELECT - 10 + 47 AS col2
----
37

query I rowsort
SELECT ALL - 35 * + - COALESCE ( - 44, - 22 ) * - + 70 + - 64
----
107736

onlyif mysql # DIV for integer division: 
query I rowsort label-1840
SELECT DISTINCT ( - - 17 ) * - 77 - 96 + + ( 22 ) + + 77 DIV - 20 AS col2
----
-1386

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT ( - - 17 ) * - 77 - 96 + + ( 22 ) + + 77 / - 20 AS col2
----
-1386

query II rowsort
SELECT + 98, 42 - 27 + - 84 AS col1
----
98
-69

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1843
SELECT ALL + 13, - 64 AS col0, + + 19 DIV 44 * - - CAST( + 55 AS SIGNED ) AS col1
----
13
-64
0

skipif mysql # not compatible
query III rowsort label-1843
SELECT ALL + 13, - 64 AS col0, + + 19 / 44 * - - CAST ( + 55 AS INTEGER ) AS col1
----
13
-64
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1844
SELECT COALESCE ( - COALESCE ( + CASE - 35 WHEN + - ( - 27 ) - - CAST( NULL AS SIGNED ) THEN - 66 WHEN - - 34 + - 53 + - + 71 * + 98 * - + 63 * 95 THEN NULL ELSE + CAST( NULL AS SIGNED ) END, + COUNT( * ) - COUNT( * ) ), - 60 + + 73 * COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-1844
SELECT COALESCE ( - COALESCE ( + CASE - 35 WHEN + - ( - 27 ) - - CAST ( NULL AS INTEGER ) THEN - 66 WHEN - - 34 + - 53 + - + 71 * + 98 * - + 63 * 95 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END, + COUNT ( * ) - COUNT ( * ) ), - 60 + + 73 * COUNT ( * ) )
----
0

query I rowsort
SELECT - + 35 * + 96 col0
----
-3360

onlyif mysql # aggregate syntax: 
query II rowsort label-1846
SELECT + - 6 AS col2, MAX( + CASE - COALESCE ( 7, 98 ) WHEN - ( 53 ) THEN + 98 * 12 END ) + - - 97
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-1846
SELECT + - 6 AS col2, MAX ( + CASE - COALESCE ( 7, 98 ) WHEN - ( 53 ) THEN + 98 * 12 END ) + - - 97
----
-6
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1847
SELECT - COALESCE ( - + 64, - 61, - 32 DIV COUNT( * ) + + 16 ) + ( + - 75 ) + + - 60 * 30
----
-1811

skipif mysql # not compatible
query I rowsort label-1847
SELECT - COALESCE ( - + 64, - 61, - 32 / COUNT ( * ) + + 16 ) + ( + - 75 ) + + - 60 * 30
----
-1811

query I rowsort
SELECT ALL 67 * - 30 * + - 15 AS col0
----
30150

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

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

query I rowsort
SELECT + - ( + 62 ) + + 3
----
-59

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

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

query II rowsort
SELECT - + 1, - 36 AS col2
----
-1
-36

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

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

skipif mysql # not compatible
query II rowsort label-1854
SELECT 94 AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
94
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT + COALESCE ( - 89, 4 + + 6 ) * + 99 + + 11 + 75 * 8 * MAX( ALL + + 52 )
----
22400

skipif mysql # not compatible
query I rowsort label-1855
SELECT + COALESCE ( - 89, 4 + + 6 ) * + 99 + + 11 + 75 * 8 * MAX ( ALL + + 52 )
----
22400

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT + ( + - COUNT( * ) ) + 79 + - MAX( ALL - - 25 ) * + + 55 + - + 14 + COUNT( * ) + + - ( + + 7 ) AS col0
----
-1317

skipif mysql # not compatible
query I rowsort label-1856
SELECT + ( + - COUNT ( * ) ) + 79 + - MAX ( ALL - - 25 ) * + + 55 + - + 14 + COUNT ( * ) + + - ( + + 7 ) AS col0
----
-1317

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT + 80 * - 19 * - CASE + 45 WHEN - - AVG ( DISTINCT + - 40 ) * + - 73 THEN - COUNT( * ) ELSE NULL END * - SUM( ALL 67 ) * 83 + 43 * + COUNT( * ) * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1857
SELECT + 80 * - 19 * - CASE + 45 WHEN - - AVG ( DISTINCT + - 40 ) * + - 73 THEN - COUNT ( * ) ELSE NULL END * - SUM ( ALL 67 ) * 83 + 43 * + COUNT ( * ) * - 81
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1858
SELECT ALL + COUNT( * ) + - 79 AS col2, 8 col0
----
-78
8

skipif mysql # not compatible
query II rowsort label-1858
SELECT ALL + COUNT ( * ) + - 79 AS col2, 8 col0
----
-78
8

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT - SUM( DISTINCT - 53 ) + + + 52
----
105

skipif mysql # not compatible
query I rowsort label-1861
SELECT - SUM ( DISTINCT - 53 ) + + + 52
----
105

query I rowsort
SELECT ALL 76 + + 82 + 37
----
195

query I rowsort
SELECT DISTINCT 5 + 30 * - 95 AS col2
----
-2845

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT DISTINCT ( + + 9 ) * COUNT( * ) * - - 28
----
252

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT ( + + 9 ) * COUNT ( * ) * - - 28
----
252

query II rowsort
SELECT ALL 40 + 82, - 81 AS col1
----
122
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT ALL 67 / - CAST( 28 AS SIGNED ) - + CASE 67 WHEN - - 53 THEN 18 END + 28 * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL 67 / - CAST ( 28 AS INTEGER ) - + CASE 67 WHEN - - 53 THEN 18 END + 28 * + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT - ( 92 ) * + - COUNT( * ) + 83 + - 95 + CASE + 61 WHEN + NULLIF ( + 30, 7 ) / + 52 * - + 95 THEN - 88 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT - ( 92 ) * + - COUNT ( * ) + 83 + - 95 + CASE + 61 WHEN + NULLIF ( + 30, 7 ) / + 52 * - + 95 THEN - 88 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT - COUNT( * ) * + + NULLIF ( - 16, - - 23 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1868
SELECT - COUNT ( * ) * + + NULLIF ( - 16, - - 23 ) AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1869
SELECT CAST( + CASE + 68 WHEN + 28 THEN NULL ELSE - + 57 END AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-1869
SELECT CAST ( + CASE + 68 WHEN + 28 THEN NULL ELSE - + 57 END AS INTEGER )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1870
SELECT + COALESCE ( + 96, - CAST( - ( - 5 ) AS SIGNED ) + COUNT( * ) + + 5, + 30 * + NULLIF ( + 59, - + 97 * - 82 ) + ( - 76 ) ) * + 43 + - 6 + + 5 + + - 24 - - - 3 - - + 86 * - MIN( ALL + 79 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT + COALESCE ( + 96, - CAST ( - ( - 5 ) AS INTEGER ) + COUNT ( * ) + + 5, + 30 * + NULLIF ( + 59, - + 97 * - 82 ) + ( - 76 ) ) * + 43 + - 6 + + 5 + + - 24 - - - 3 - - + 86 * - MIN ( ALL + 79 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query II rowsort
SELECT DISTINCT + + 61 * + - 8, 27 AS col1
----
-488
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1873
SELECT 49 + - 36 DIV - - 86, SUM( ALL - 71 ) + + - 35 + - - 23 DIV - - COALESCE ( 24, 56 * + + 99 * + - 97 + + - 84, + COUNT( * ) ) col2
----
49
-106

skipif mysql # not compatible
query II rowsort label-1873
SELECT 49 + - 36 / - - 86, SUM ( ALL - 71 ) + + - 35 + - - 23 / - - COALESCE ( 24, 56 * + + 99 * + - 97 + + - 84, + COUNT ( * ) ) col2
----
49
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1874
SELECT - + 66 * 98 - 49 + + 0 + 55 * - 77 + - 94 DIV - MAX( + + ( + 31 ) ) AS col0
----
-10749

skipif mysql # not compatible
query I rowsort label-1874
SELECT - + 66 * 98 - 49 + + 0 + 55 * - 77 + - 94 / - MAX ( + + ( + 31 ) ) AS col0
----
-10749

query I rowsort
SELECT 80 * 40
----
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - COUNT( + + 48 ) * - COUNT( * ) + 97 col2
----
98

skipif mysql # not compatible
query I rowsort label-1876
SELECT - COUNT ( + + 48 ) * - COUNT ( * ) + 97 col2
----
98

query I rowsort
SELECT DISTINCT - - COALESCE ( 2, + - 35 )
----
2

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

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

query I rowsort
SELECT ALL - 36 + + - 84
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL - 78 + - CASE + SUM( DISTINCT - - 74 ) WHEN - - 33 THEN NULL ELSE 51 END
----
-129

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL - 78 + - CASE + SUM ( DISTINCT - - 74 ) WHEN - - 33 THEN NULL ELSE 51 END
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT DISTINCT COALESCE ( - NULLIF ( NULLIF ( + MAX( ALL 88 ), + 76 * - ( + COUNT( * ) ) ), + 1 ), + 96 + - + 31 ) + + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT COALESCE ( - NULLIF ( NULLIF ( + MAX ( ALL 88 ), + 76 * - ( + COUNT ( * ) ) ), + 1 ), + 96 + - + 31 ) + + COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1882
SELECT ALL 0 + COUNT( * ) + + 3 DIV 69, COUNT( * ) * - + 13 AS col0
----
1
-13

skipif mysql # not compatible
query II rowsort label-1882
SELECT ALL 0 + COUNT ( * ) + + 3 / 69, COUNT ( * ) * - + 13 AS col0
----
1
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1883
SELECT COUNT( * ) - + 49 DIV + - 71 AS col1, 74
----
1
74

skipif mysql # not compatible
query II rowsort label-1883
SELECT COUNT ( * ) - + 49 / + - 71 AS col1, 74
----
1
74

query I rowsort
SELECT DISTINCT + 53 * - 92
----
-4876

query II rowsort
SELECT - 74 AS col1, 84
----
-74
84

query I rowsort
SELECT ALL ( - - 67 ) - + 96
----
-29

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

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

query I rowsort
SELECT 69 - 25
----
44

query I rowsort
SELECT ( 21 ) * 71
----
1491

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1890
SELECT COALESCE ( + AVG ( + - 60 ), - COUNT( * ) ) + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1890
SELECT COALESCE ( + AVG ( + - 60 ), - COUNT ( * ) ) + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT 52 + MIN( 9 ) + - - COUNT( DISTINCT + 25 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-1891
SELECT 52 + MIN ( 9 ) + - - COUNT ( DISTINCT + 25 ) col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1892
SELECT ( COUNT( * ) ) * - 69 DIV + CAST( + AVG ( - 94 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1892
SELECT ( COUNT ( * ) ) * - 69 / + CAST ( + AVG ( - 94 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1893
SELECT CAST( - 45 AS SIGNED ) + 12 AS col0, 48 AS col1
----
-33
48

skipif mysql # not compatible
query II rowsort label-1893
SELECT CAST ( - 45 AS INTEGER ) + 12 AS col0, 48 AS col1
----
-33
48

query I rowsort
SELECT DISTINCT 91 * - - 45 * - 71 * ( - - 74 )
----
-21515130

query II rowsort
SELECT ALL - 95, 28 col1
----
-95
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1896
SELECT 69 DIV + 43 - - + 92 + 46
----
139

skipif mysql # not compatible
query I rowsort label-1896
SELECT 69 / + 43 - - + 92 + 46
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1897
SELECT ALL + ( 14 ) * + 9 * + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
126

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL + ( 14 ) * + 9 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
126

query I rowsort
SELECT DISTINCT ( - 76 ) * 53 AS col0
----
-4028

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

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

query II rowsort
SELECT - 49, 35 * + 85 col0
----
-49
2975

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT - NULLIF ( 71, + - 69 / + COALESCE ( - COUNT( ALL - + NULLIF ( 75, + 74 - + ( + 15 ) ) ), ( - 9 ) * 36, + 33 ) ) + COUNT( * ) + - - 63 + + + 29 * - - COUNT( * ) + + 98 + - + 80 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1901
SELECT - NULLIF ( 71, + - 69 / + COALESCE ( - COUNT ( ALL - + NULLIF ( 75, + 74 - + ( + 15 ) ) ), ( - 9 ) * 36, + 33 ) ) + COUNT ( * ) + - - 63 + + + 29 * - - COUNT ( * ) + + 98 + - + 80 AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1902
SELECT COUNT( * ) DIV + 26 + ( + SUM( DISTINCT + 22 ) ) col1
----
22

skipif mysql # not compatible
query I rowsort label-1902
SELECT COUNT ( * ) / + 26 + ( + SUM ( DISTINCT + 22 ) ) col1
----
22

query II rowsort
SELECT ALL - - 29, 83 * + 67 - 24 AS col2
----
29
5537

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

skipif mysql # not compatible
query I rowsort label-1904
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 52
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1905
SELECT 53 + + COUNT( * ) * + + 67 * + 41 AS col0, COALESCE ( 20, - 51, + COALESCE ( 8, - 40, 74 ) ) + + - 47
----
2800
-27

skipif mysql # not compatible
query II rowsort label-1905
SELECT 53 + + COUNT ( * ) * + + 67 * + 41 AS col0, COALESCE ( 20, - 51, + COALESCE ( 8, - 40, 74 ) ) + + - 47
----
2800
-27

query II rowsort
SELECT DISTINCT - - 47 AS col2, + 25 + 52 + + 58
----
47
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL - 32 + - COALESCE ( + 97, - 39, 96 ) + + 17 * - COUNT( DISTINCT - 24 )
----
-146

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL - 32 + - COALESCE ( + 97, - 39, 96 ) + + 17 * - COUNT ( DISTINCT - 24 )
----
-146

query I rowsort
SELECT + 21 + 74
----
95

query I rowsort
SELECT DISTINCT - 20 + 9 AS col2
----
-11

query I rowsort
SELECT ALL - + 95 AS col1
----
-95

query I rowsort
SELECT ALL - 87 + - 23 AS col2
----
-110

query II rowsort
SELECT ALL + + 8 + - + ( - + 24 ) AS col0, 33 - + 24 - + - 11 col1
----
32
20

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1914
SELECT - ( 24 ) * + + CASE - - 66 WHEN - COUNT( * ) THEN NULL WHEN + - 72 THEN + + 51 END / 29 * - 30 + - COUNT( * ) - - + 35 - 84 - + NULLIF ( + COUNT( * ), - NULLIF ( - 72, COUNT( CAST( NULL AS SIGNED ) ) ) / + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT - ( 24 ) * + + CASE - - 66 WHEN - COUNT ( * ) THEN NULL WHEN + - 72 THEN + + 51 END / 29 * - 30 + - COUNT ( * ) - - + 35 - 84 - + NULLIF ( + COUNT ( * ), - NULLIF ( - 72, COUNT ( CAST ( NULL AS INTEGER ) ) ) / + 71 )
----
NULL

query II rowsort
SELECT 11, - 97 AS col0
----
11
-97

query I rowsort
SELECT ALL + 66 + - 95 + + + 44 * - 97 * + 47
----
-200625

query I rowsort
SELECT 34 + + 13 * - 65 AS col2
----
-811

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1918
SELECT 43 + + - ( + - CASE + 81 WHEN - - 41 - 68 THEN - - 1 ELSE - ( + - 23 ) + 91 - 0 END ) + ( - - 88 ) / + CAST( NULL AS DECIMAL ) * - 34 * + + COALESCE ( - - MAX( DISTINCT + ( + - 41 ) ), - + 97 * 72 ) * 25 + - 92 + CAST( NULL AS DECIMAL ) * 55 * - 34 * + - CASE WHEN NULL IS NOT NULL THEN - 77 END + + 21 + - 98 * - 69 * + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1918
SELECT 43 + + - ( + - CASE + 81 WHEN - - 41 - 68 THEN - - 1 ELSE - ( + - 23 ) + 91 - 0 END ) + ( - - 88 ) / + CAST ( NULL AS REAL ) * - 34 * + + COALESCE ( - - MAX ( DISTINCT + ( + - 41 ) ), - + 97 * 72 ) * 25 + - 92 + CAST ( NULL AS REAL ) * 55 * - 34 * + - CASE WHEN NULL IS NOT NULL THEN - 77 END + + 21 + - 98 * - 69 * + 32 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1920
SELECT ALL 46 - + COUNT( * ) AS col1, 41 * 84 * + 79
----
45
272076

skipif mysql # not compatible
query II rowsort label-1920
SELECT ALL 46 - + COUNT ( * ) AS col1, 41 * 84 * + 79
----
45
272076

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

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL COUNT ( - + 93 ) AS col0
----
1

query I rowsort
SELECT 72 * - 71
----
-5112

query I rowsort
SELECT ALL - 76 * 73
----
-5548

query I rowsort
SELECT ALL 86 * 28 AS col0
----
2408

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT COUNT( DISTINCT - 1 ) * + - 16
----
-16

skipif mysql # not compatible
query I rowsort label-1925
SELECT COUNT ( DISTINCT - 1 ) * + - 16
----
-16

query I rowsort
SELECT ALL + 4 * + - 85
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT DISTINCT NULLIF ( - MAX( DISTINCT - 55 ), + 20 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1927
SELECT DISTINCT NULLIF ( - MAX ( DISTINCT - 55 ), + 20 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT DISTINCT + + CASE COUNT( * ) WHEN - NULLIF ( + COUNT( * ), - 77 * + - 91 + ( - 97 ) ) THEN - ( - + 10 ) WHEN - 77 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT + + CASE COUNT ( * ) WHEN - NULLIF ( + COUNT ( * ), - 77 * + - 91 + ( - 97 ) ) THEN - ( - + 10 ) WHEN - 77 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 74 * + + 11 AS col2
----
814

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1931
SELECT ALL + 93 * - AVG ( + 48 ) * + 44 * + 93 - + - 92 + 81 - - COUNT( * ) * - 64 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL + 93 * - AVG ( + 48 ) * + 44 * + 93 - + - 92 + 81 - - COUNT ( * ) * - 64 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT ALL - 78 * - - 0 + - + ( - 94 ) DIV + 68 col0
----
1

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL - 78 * - - 0 + - + ( - 94 ) / + 68 col0
----
1

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

skipif mysql # not compatible
query I rowsort label-1933
SELECT + - 97 * - - COUNT ( + 9 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT DISTINCT + + 17 * - - 27 * + 98 * 84 * 2 + - COUNT( * )
----
7556975

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT + + 17 * - - 27 * + 98 * 84 * 2 + - COUNT ( * )
----
7556975

query I rowsort
SELECT ALL 2 * 29 * 52 + + ( 23 )
----
3039

onlyif mysql # aggregate syntax: 
query II rowsort label-1936
SELECT ALL + COUNT( * ) * + - 90 + + ( + 85 ) AS col0, + 6 * - COUNT( * )
----
-5
-6

skipif mysql # not compatible
query II rowsort label-1936
SELECT ALL + COUNT ( * ) * + - 90 + + ( + 85 ) AS col0, + 6 * - COUNT ( * )
----
-5
-6

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1938
SELECT + SUM( ALL + 66 ) AS col1, 48
----
66
48

skipif mysql # not compatible
query II rowsort label-1938
SELECT + SUM ( ALL + 66 ) AS col1, 48
----
66
48

query I rowsort
SELECT + ( + - 56 ) + 50
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1940
SELECT + + 56 * - 24 * + 59 + + + ( 20 ) + + 43 + + + 90 * + + 62 * - 24 AS col0, - ( + CAST( NULL AS SIGNED ) ) / - ( - 29 )
----
-213153
NULL

skipif mysql # not compatible
query II rowsort label-1940
SELECT + + 56 * - 24 * + 59 + + + ( 20 ) + + 43 + + + 90 * + + 62 * - 24 AS col0, - ( + CAST ( NULL AS INTEGER ) ) / - ( - 29 )
----
-213153
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT ALL + ( 66 ) * - 81 + + COUNT( * ) + - + 45 * - ( - - 84 ) - - + 6 - ( + 36 ) * 7 AS col0
----
-1811

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + ( 66 ) * - 81 + + COUNT ( * ) + - + 45 * - ( - - 84 ) - - + 6 - ( + 36 ) * 7 AS col0
----
-1811

query I rowsort
SELECT + 41 * + + 48 AS col2
----
1968

query II rowsort
SELECT ALL + 8 AS col1, + 65 AS col1
----
8
65

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

query I rowsort
SELECT DISTINCT 64 - + - COALESCE ( + 45, 56 + ( ( 14 ) ) + + + 20 + + ( 88 ) ) AS col1
----
109

query II rowsort
SELECT ALL 59 AS col2, - 74
----
59
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1947
SELECT - 61 AS col0, 74 DIV + + COUNT( + 20 ) AS col1
----
-61
74

skipif mysql # not compatible
query II rowsort label-1947
SELECT - 61 AS col0, 74 / + + COUNT ( + 20 ) AS col1
----
-61
74

query I rowsort
SELECT ALL - 80 * + 78 AS col2
----
-6240

query I rowsort
SELECT - 11 * 92 AS col0
----
-1012

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1951
SELECT - 70 col0, - 28 DIV 74 * + + 51 * + ( + 71 ) AS col1
----
-70
0

skipif mysql # not compatible
query II rowsort label-1951
SELECT - 70 col0, - 28 / 74 * + + 51 * + ( + 71 ) AS col1
----
-70
0

query I rowsort
SELECT - 75 * + ( + 34 ) AS col2
----
-2550

query II rowsort
SELECT - 93 - 54 * + 57 * - COALESCE ( - 16, - 56 ) AS col2, - 55 * 81 + - 42 AS col2
----
-49341
-4497

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT - ( + 61 ) - 88 - - 15 - 79 + + MAX( - - 16 ) - - COUNT( * ) + - 13 * + + 51 * - 14 * - 82 col2
----
-761320

skipif mysql # not compatible
query I rowsort label-1954
SELECT - ( + 61 ) - 88 - - 15 - 79 + + MAX ( - - 16 ) - - COUNT ( * ) + - 13 * + + 51 * - 14 * - 82 col2
----
-761320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1955
SELECT DISTINCT NULLIF ( 47, COUNT( ALL 38 ) + 25 * - + 50 * + 39 + + - CAST( NULL AS SIGNED ) - - 69 * - - 60 + MIN( DISTINCT + 45 ) - + 63 * + 89 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT NULLIF ( 47, COUNT ( ALL 38 ) + 25 * - + 50 * + 39 + + - CAST ( NULL AS INTEGER ) - - 69 * - - 60 + MIN ( DISTINCT + 45 ) - + 63 * + 89 ) AS col0
----
47

query I rowsort
SELECT ALL - 45 + + 13 AS col1
----
-32

query II rowsort
SELECT DISTINCT - 91 + + 25 + 86 AS col1, 15 AS col0
----
20
15

query I rowsort
SELECT - + 67 + 19
----
-48

query I rowsort
SELECT + + 61 - - 96 AS col0
----
157

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

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

query I rowsort
SELECT - - 92 + 2
----
94

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1963
SELECT + CAST( + COALESCE ( + AVG ( - + 34 ), - + 53 ) AS SIGNED ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1963
SELECT + CAST ( + COALESCE ( + AVG ( - + 34 ), - + 53 ) AS INTEGER ) AS col1
----
-34

query II rowsort
SELECT + - 75, 42 col2
----
-75
42

query I rowsort
SELECT ( + 54 ) * ( - 37 ) + 0 AS col0
----
-1998

query I rowsort
SELECT ALL - 95 * - 99
----
9405

query I rowsort
SELECT - 20 * + - 18 + ( 7 ) + + 38 AS col1
----
405

query I rowsort
SELECT DISTINCT - + COALESCE ( 9, - ( - 89 ) ) * + 27
----
-243

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT ALL - 45 DIV - ( 79 ) + 38
----
38

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL - 45 / - ( 79 ) + 38
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-1970
SELECT + 21 + - COUNT( * ) * 97 + + 92 + + 20 AS col0, + MIN( DISTINCT NULLIF ( - 99, + 84 ) )
----
36
-99

skipif mysql # not compatible
query II rowsort label-1970
SELECT + 21 + - COUNT ( * ) * 97 + + 92 + + 20 AS col0, + MIN ( DISTINCT NULLIF ( - 99, + 84 ) )
----
36
-99

query I rowsort
SELECT ALL + NULLIF ( 28, 5 + - NULLIF ( + 22, + 52 * + 58 * + 98 * - - 24 ) ) AS col2
----
28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT + 45 * + NULLIF ( 46, - 27 ) + - + COUNT( ALL ( + 39 ) ) col1
----
2069

skipif mysql # not compatible
query I rowsort label-1973
SELECT + 45 * + NULLIF ( 46, - 27 ) + - + COUNT ( ALL ( + 39 ) ) col1
----
2069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1974
SELECT DISTINCT - COUNT( * ) * + 18 - + + CAST( - 31 AS SIGNED ) + + - COALESCE ( - 12, + 96 + 59 - + - 76 + + + 22 + 49 + - - ( + ( 30 ) ) + 1 * 78 + 17 / 35 * + 25 * 94 / + + 46 ) / + + CASE + - 42 WHEN 19 THEN + - 97 END, 49 AS col0
----
NULL
49

skipif mysql # not compatible
query II rowsort label-1974
SELECT DISTINCT - COUNT ( * ) * + 18 - + + CAST ( - 31 AS INTEGER ) + + - COALESCE ( - 12, + 96 + 59 - + - 76 + + + 22 + 49 + - - ( + ( 30 ) ) + 1 * 78 + 17 / 35 * + 25 * 94 / + + 46 ) / + + CASE + - 42 WHEN 19 THEN + - 97 END, 49 AS col0
----
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + NULLIF ( - 21, - - COUNT( * ) / + 20 - + + 24 ) * + + ( - 85 )
----
1785

skipif mysql # not compatible
query I rowsort label-1975
SELECT + NULLIF ( - 21, - - COUNT ( * ) / + 20 - + + 24 ) * + + ( - 85 )
----
1785

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT + COUNT( * ) * - ( - 87 ) * 11
----
957

skipif mysql # not compatible
query I rowsort label-1977
SELECT + COUNT ( * ) * - ( - 87 ) * 11
----
957

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL ( 25 ) * + COALESCE ( - + MIN( 88 ), - 68 ) * - 47 * + 81 col1
----
8375400

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL ( 25 ) * + COALESCE ( - + MIN ( 88 ), - 68 ) * - 47 * + 81 col1
----
8375400

query I rowsort
SELECT DISTINCT 76 * + 27
----
2052

query I rowsort
SELECT + 88 * + 62 AS col2
----
5456

query I rowsort
SELECT + 99 + + 26 * 6 AS col1
----
255

query I rowsort
SELECT + 5 + + - 61 * - 12 col2
----
737

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

query I rowsort
SELECT + 52 * 97
----
5044

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT - 57 * + COUNT( * ) * + + ( - 30 ) col0
----
1710

skipif mysql # not compatible
query I rowsort label-1985
SELECT - 57 * + COUNT ( * ) * + + ( - 30 ) col0
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL NULLIF ( - - COUNT( * ), + - 24 * + 86 + + 77 * - SUM( ALL + 61 ) + - + 39 + + 50 + + 81 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL NULLIF ( - - COUNT ( * ), + - 24 * + 86 + + 77 * - SUM ( ALL + 61 ) + - + 39 + + 50 + + 81 ) AS col2
----
1

query I rowsort
SELECT NULLIF ( + 54, 0 ) * - 63 + + + 90 AS col0
----
-3312

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1989
SELECT CAST( CAST( - COUNT( DISTINCT 94 ) AS SIGNED ) AS SIGNED ) + + 89
----
88

skipif mysql # not compatible
query I rowsort label-1989
SELECT CAST ( CAST ( - COUNT ( DISTINCT 94 ) AS INTEGER ) AS INTEGER ) + + 89
----
88

query I rowsort
SELECT DISTINCT 69 + 10 AS col0
----
79

query I rowsort
SELECT ALL 27 + - 63 * - 5
----
342

query II rowsort
SELECT - 91 AS col1, + 10 AS col2
----
-91
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1993
SELECT COUNT( - 13 ) * + + 63 - - - 6 * + - CAST( + - 59 AS SIGNED ) + 61, 89 AS col2
----
-230
89

skipif mysql # not compatible
query II rowsort label-1993
SELECT COUNT ( - 13 ) * + + 63 - - - 6 * + - CAST ( + - 59 AS INTEGER ) + 61, 89 AS col2
----
-230
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1994
SELECT ALL - NULLIF ( - + 87, + 40 + - 60 + + - ( CAST( NULL AS SIGNED ) ) ) + + 55 col0
----
142

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL - NULLIF ( - + 87, + 40 + - 60 + + - ( CAST ( NULL AS INTEGER ) ) ) + + 55 col0
----
142

query I rowsort
SELECT 13 + - 23
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT - MAX( ALL + 36 ) * + 33 * + COUNT( * )
----
-1188

skipif mysql # not compatible
query I rowsort label-1997
SELECT - MAX ( ALL + 36 ) * + 33 * + COUNT ( * )
----
-1188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1998
SELECT ALL 96, - CAST( 17 AS SIGNED ) AS col2
----
96
-17

skipif mysql # not compatible
query II rowsort label-1998
SELECT ALL 96, - CAST ( 17 AS INTEGER ) AS col2
----
96
-17

query II rowsort
SELECT ALL 40 AS col1, 77
----
40
77

query II rowsort
SELECT DISTINCT 40 * + + 67 AS col2, + 53 AS col0
----
2680
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT + ( + CASE 68 WHEN - - 44 THEN NULL WHEN + - NULLIF ( + NULLIF ( + COUNT( * ), - - 1 ), + + 49 ) THEN + - COUNT( * ) * - COUNT( * ) + + + 8 ELSE - - 45 END )
----
45

skipif mysql # not compatible
query I rowsort label-2001
SELECT + ( + CASE 68 WHEN - - 44 THEN NULL WHEN + - NULLIF ( + NULLIF ( + COUNT ( * ), - - 1 ), + + 49 ) THEN + - COUNT ( * ) * - COUNT ( * ) + + + 8 ELSE - - 45 END )
----
45

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

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

skipif mysql # not compatible
query II rowsort label-2003
SELECT + 74, - COUNT ( * ) AS col1
----
74
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2004
SELECT 62 DIV + 13
----
4

skipif mysql # not compatible
query I rowsort label-2004
SELECT 62 / + 13
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT ALL + 9 * + + 55 + + ( + COUNT( * ) ) AS col2
----
496

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL + 9 * + + 55 + + ( + COUNT ( * ) ) AS col2
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT 49 * - + MAX( + + 89 ) AS col0
----
-4361

skipif mysql # not compatible
query I rowsort label-2006
SELECT 49 * - + MAX ( + + 89 ) AS col0
----
-4361

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2007
SELECT + - ( ( - - 19 ) ) DIV 37 + - 21 + + - MIN( - 63 ) + 8 DIV - + COALESCE ( - 98, 36 + - 64 + + 74 ) * - 44 + + 94 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-2007
SELECT + - ( ( - - 19 ) ) / 37 + - 21 + + - MIN ( - 63 ) + 8 / - + COALESCE ( - 98, 36 + - 64 + + 74 ) * - 44 + + 94 AS col2
----
136

query I rowsort
SELECT DISTINCT + 92 * + - 0 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2009
SELECT - CAST( 50 AS SIGNED ) * 54 AS col0
----
-2700

skipif mysql # not compatible
query I rowsort label-2009
SELECT - CAST ( 50 AS INTEGER ) * 54 AS col0
----
-2700

query II rowsort
SELECT ALL - - 25 AS col2, 94
----
25
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT ALL - - MIN( ALL 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL - - MIN ( ALL 71 ) AS col0
----
71

query I rowsort
SELECT DISTINCT - - ( 11 ) * - 74 AS col2
----
-814

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2013
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col2, + 39 AS col2
----
NULL
39

skipif mysql # not compatible
query II rowsort label-2013
SELECT ALL - + CAST ( NULL AS REAL ) AS col2, + 39 AS col2
----
NULL
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT ALL - CASE + 68 WHEN - - 68 THEN - + 79 * + MIN( 11 ) END * + SUM( - + 17 ) * - - 4 - + 41 + 64 * + 97
----
-52925

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL - CASE + 68 WHEN - - 68 THEN - + 79 * + MIN ( 11 ) END * + SUM ( - + 17 ) * - - 4 - + 41 + 64 * + 97
----
-52925

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

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

query I rowsort
SELECT ALL - COALESCE ( 86, - + 50 )
----
-86

query I rowsort
SELECT 36 + + - 10 * 64
----
-604

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2018
SELECT + 23 * 85 DIV COUNT( * ) + + - 67 * - COUNT( * ) AS col2, 33 AS col1
----
2022
33

skipif mysql # not compatible
query II rowsort label-2018
SELECT + 23 * 85 / COUNT ( * ) + + - 67 * - COUNT ( * ) AS col2, 33 AS col1
----
2022
33

query I rowsort
SELECT ( 40 ) * - 68
----
-2720

query I rowsort
SELECT ALL 64 + + - 95 col0
----
-31

query II rowsort
SELECT DISTINCT + 63 + + - 74 AS col2, + ( - 8 ) - + 85 AS col0
----
-11
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT CASE 3 WHEN + ( - 2 ) THEN + + COALESCE ( CAST( 49 AS SIGNED ), - - 76 * - 64 * + 29 + - 56 * - 50, 40 ) / + 40 * COUNT( * ) WHEN - + 53 * + + 60 + + 52 THEN - SUM( ALL + 34 ) END + + - MAX( DISTINCT - 10 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT CASE 3 WHEN + ( - 2 ) THEN + + COALESCE ( CAST ( 49 AS INTEGER ), - - 76 * - 64 * + 29 + - 56 * - 50, 40 ) / + 40 * COUNT ( * ) WHEN - + 53 * + + 60 + + 52 THEN - SUM ( ALL + 34 ) END + + - MAX ( DISTINCT - 10 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT ALL COUNT( * ) * 36 * - 90
----
-3240

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL COUNT ( * ) * 36 * - 90
----
-3240

query I rowsort
SELECT DISTINCT CASE - 79 WHEN - 64 THEN NULL WHEN + 74 THEN + 60 END + - 10
----
NULL

query I rowsort
SELECT ALL 10 + + 99
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT + ( + COUNT( * ) ) * - NULLIF ( + - 59, - + 74 ) + - 0 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2026
SELECT + ( + COUNT ( * ) ) * - NULLIF ( + - 59, - + 74 ) + - 0 AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT CAST( NULL AS SIGNED ) * NULLIF ( + - 61, + 31 * + + COUNT( * ) * - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT CAST ( NULL AS INTEGER ) * NULLIF ( + - 61, + 31 * + + COUNT ( * ) * - 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT COALESCE ( 49, 48 * - 80 * - 45 - - + 58, + 84, 73 ) * - COUNT( * ) + COUNT( + 26 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-2028
SELECT COALESCE ( 49, 48 * - 80 * - 45 - - + 58, + 84, 73 ) * - COUNT ( * ) + COUNT ( + 26 ) AS col1
----
-48

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

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

query I rowsort
SELECT ALL 80 + - 92 + - 85 + + 57
----
-40

query I rowsort
SELECT ALL + - 24 * ( - - 78 ) AS col2
----
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT DISTINCT + COUNT( * ) - - + 35 * + MAX( + 41 ) + COUNT( * ) * - 15 AS col2
----
1421

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT + COUNT ( * ) - - + 35 * + MAX ( + 41 ) + COUNT ( * ) * - 15 AS col2
----
1421

onlyif mysql # aggregate syntax: 
query II rowsort label-2033
SELECT ALL + - 49 - + - 1 AS col2, ( + 49 ) * COUNT( * ) + - + ( 44 )
----
-48
5

skipif mysql # not compatible
query II rowsort label-2033
SELECT ALL + - 49 - + - 1 AS col2, ( + 49 ) * COUNT ( * ) + - + ( 44 )
----
-48
5

query II rowsort
SELECT 84 - 82 AS col2, 93 * 84
----
2
7812

query I rowsort
SELECT ALL 69 * 35
----
2415

query I rowsort
SELECT 87 + - 33
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT - 12 - - + ( MAX( ALL - + 72 ) ) + - + 90 AS col2
----
-174

skipif mysql # not compatible
query I rowsort label-2037
SELECT - 12 - - + ( MAX ( ALL - + 72 ) ) + - + 90 AS col2
----
-174

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

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

query II rowsort
SELECT 76 + + - 78 AS col0, - 56 col2
----
-2
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT ALL + 63 * - SUM( DISTINCT - 94 ) AS col2
----
5922

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL + 63 * - SUM ( DISTINCT - 94 ) AS col2
----
5922

query I rowsort
SELECT 64 * + 79 AS col0
----
5056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2042
SELECT 7 * 2 DIV + 9 DIV + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2042
SELECT 7 * 2 / + 9 / + + COUNT ( * )
----
1

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

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( + - 72 ) AS col0
----
72

query II rowsort
SELECT DISTINCT 53 * 3 + 22, + 10 + 2 AS col0
----
181
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2046
SELECT - + 29 / - 31 * 10 + - CAST( NULL AS SIGNED ) + 0 + + CAST( NULL AS SIGNED ) + + 89 + + 11 * + 91 * - COUNT( * ) / COUNT( * ) + + + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2046
SELECT - + 29 / - 31 * 10 + - CAST ( NULL AS INTEGER ) + 0 + + CAST ( NULL AS INTEGER ) + + 89 + + 11 * + 91 * - COUNT ( * ) / COUNT ( * ) + + + 86 AS col2
----
NULL

query I rowsort
SELECT + 6 + 42 AS col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2048
SELECT COUNT( * ), - 66 + ( COUNT( + 1 ) ) * + + 74 * + + 88 * + MIN( ALL + 55 ) AS col1
----
1
358094

skipif mysql # not compatible
query II rowsort label-2048
SELECT COUNT ( * ), - 66 + ( COUNT ( + 1 ) ) * + + 74 * + + 88 * + MIN ( ALL + 55 ) AS col1
----
1
358094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2049
SELECT + 54, + 61 DIV 53 + + CAST( - 75 AS SIGNED ) - - COUNT( * ) AS col1
----
54
-73

skipif mysql # not compatible
query II rowsort label-2049
SELECT + 54, + 61 / 53 + + CAST ( - 75 AS INTEGER ) - - COUNT ( * ) AS col1
----
54
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT + 19 * COALESCE ( + + 94, - 66 ) * + CAST( 52 AS SIGNED ) * - 66 * - + 3 * + 94 + 76 * + 86 * COUNT( * ) AS col0
----
1728540200

skipif mysql # not compatible
query I rowsort label-2050
SELECT + 19 * COALESCE ( + + 94, - 66 ) * + CAST ( 52 AS INTEGER ) * - 66 * - + 3 * + 94 + 76 * + 86 * COUNT ( * ) AS col0
----
1728540200

query I rowsort
SELECT 52 * - + 58
----
-3016

onlyif mysql # DIV for integer division: 
query I rowsort label-2052
SELECT 97 DIV - + 29
----
-3

skipif mysql # not compatible
query I rowsort label-2052
SELECT 97 / - + 29
----
-3

query II rowsort
SELECT DISTINCT + 39 AS col1, + ( + 82 ) * - - 24
----
39
1968

query I rowsort
SELECT DISTINCT - 31 + + 64
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-2055
SELECT ALL + 52, 30 DIV - + 59 AS col0
----
52
0

skipif mysql # not compatible
query II rowsort label-2055
SELECT ALL + 52, 30 / - + 59 AS col0
----
52
0

query I rowsort
SELECT ALL + 59 + - 35 * - - 21 AS col1
----
-676

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT + 68 + - 7 + - CASE + - 60 WHEN 90 * - 46 + - 73 THEN - 8 / - COUNT( * ) WHEN + - 41 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2058
SELECT + 68 + - 7 + - CASE + - 60 WHEN 90 * - 46 + - 73 THEN - 8 / - COUNT ( * ) WHEN + - 41 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL CASE + 77 WHEN + + 2 THEN NULL WHEN 22 THEN + 41 END + + + COUNT( ALL - 72 ) * + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL CASE + 77 WHEN + + 2 THEN NULL WHEN 22 THEN + 41 END + + + COUNT ( ALL - 72 ) * + + 29
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT - NULLIF ( + + COUNT( ALL + 83 ), - CASE + 85 WHEN - - COUNT( * ) THEN - + 28 WHEN + 13 - + + COUNT( * ) THEN - 68 + + 32 END + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2061
SELECT - NULLIF ( + + COUNT ( ALL + 83 ), - CASE + 85 WHEN - - COUNT ( * ) THEN - + 28 WHEN + 13 - + + COUNT ( * ) THEN - 68 + + 32 END + COUNT ( * ) ) AS col2
----
-1

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

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

query I rowsort
SELECT ALL - 8 - - 18 * 50 + ( - 30 )
----
862

query I rowsort
SELECT DISTINCT - 75 - - 31 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT + MIN( + 76 ) + - 70 + + 59 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2065
SELECT + MIN ( + 76 ) + - 70 + + 59 AS col2
----
65

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2067
SELECT CAST( - - 36 AS SIGNED ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2067
SELECT CAST ( - - 36 AS INTEGER ) AS col2
----
36

query I rowsort
SELECT + 41 * + 28 * + - 67 col2
----
-76916

query I rowsort
SELECT + + 98 + + 28 col0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2070
SELECT + + 87 DIV 14 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2070
SELECT + + 87 / 14 AS col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2071
SELECT + + 81 DIV 33
----
2

skipif mysql # not compatible
query I rowsort label-2071
SELECT + + 81 / 33
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2072
SELECT - 15 AS col1, MAX( ALL - + 7 ) AS col2
----
-15
-7

skipif mysql # not compatible
query II rowsort label-2072
SELECT - 15 AS col1, MAX ( ALL - + 7 ) AS col2
----
-15
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT - COALESCE ( - + COALESCE ( - + 55, + 10, - 28 ), NULLIF ( - - COUNT( * ), - 8 * - 89 * - 17 - - 32 + + 13 * 59 / + 3 ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-2073
SELECT - COALESCE ( - + COALESCE ( - + 55, + 10, - 28 ), NULLIF ( - - COUNT ( * ), - 8 * - 89 * - 17 - - 32 + + 13 * 59 / + 3 ) ) AS col2
----
-55

query II rowsort
SELECT DISTINCT - 53, - 71 * - 63 AS col0
----
-53
4473

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT - - COUNT( ALL - - 64 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2075
SELECT - - COUNT ( ALL - - 64 ) AS col1
----
1

query I rowsort
SELECT + 43 - - ( - 1 )
----
42

query II rowsort
SELECT ALL + 91 AS col0, - 87 * + ( + 57 ) - + - ( 58 )
----
91
-4901

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT - + 38 * - + 29 * COUNT( * ) + + 14 + - COUNT( * ) * + - 50
----
1166

skipif mysql # not compatible
query I rowsort label-2078
SELECT - + 38 * - + 29 * COUNT ( * ) + + 14 + - COUNT ( * ) * + - 50
----
1166

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2080
SELECT 90 DIV + + SUM( DISTINCT - + 96 ) - - 81
----
81

skipif mysql # not compatible
query I rowsort label-2080
SELECT 90 / + + SUM ( DISTINCT - + 96 ) - - 81
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2081
SELECT - 46 DIV - 46 col1, - ( NULLIF ( - 6, - - COUNT( * ) ) )
----
1
6

skipif mysql # not compatible
query II rowsort label-2081
SELECT - 46 / - 46 col1, - ( NULLIF ( - 6, - - COUNT ( * ) ) )
----
1
6

query I rowsort
SELECT DISTINCT 33 * 91 + + 19 col1
----
3022

query I rowsort
SELECT ALL 2 * + + 84 * 60 + + 0
----
10080

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT DISTINCT - 1 * 53 + + - NULLIF ( - - 57, + + 49 * ( + - CASE - + SUM( 4 ) WHEN - ( + 52 ) - - CASE - CASE - 66 WHEN - 15 THEN - 1 * + 8 + - - 0 END WHEN 21 THEN NULL ELSE - + 71 + - COUNT( 4 ) END * + + 84 THEN ( - 25 ) WHEN MIN( - 83 ) * - COUNT( * ) + 22 THEN NULL END ) ) + - + 3 * COUNT( * ) + - 55
----
-168

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT - 1 * 53 + + - NULLIF ( - - 57, + + 49 * ( + - CASE - + SUM ( 4 ) WHEN - ( + 52 ) - - CASE - CASE - 66 WHEN - 15 THEN - 1 * + 8 + - - 0 END WHEN 21 THEN NULL ELSE - + 71 + - COUNT ( 4 ) END * + + 84 THEN ( - 25 ) WHEN MIN ( - 83 ) * - COUNT ( * ) + 22 THEN NULL END ) ) + - + 3 * COUNT ( * ) + - 55
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT NULLIF ( - - 72, + CAST( NULL AS SIGNED ) )
----
72

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT + 10 / + CAST( NULL AS SIGNED ) * 43 * - 78 * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT + 10 / + CAST ( NULL AS INTEGER ) * 43 * - 78 * 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT + CASE 0 WHEN 43 THEN + - COUNT( * ) - + - 19 ELSE NULL END + + 22 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2087
SELECT + CASE 0 WHEN 43 THEN + - COUNT ( * ) - + - 19 ELSE NULL END + + 22 col2
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + - 58, - 20 ) AS col0
----
-58

query I rowsort
SELECT - 92 * + 58 * - + 52
----
277472

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT NULLIF ( + + 40, + 7 * - SUM( + + ( + + 61 ) ) )
----
40

skipif mysql # not compatible
query I rowsort label-2090
SELECT NULLIF ( + + 40, + 7 * - SUM ( + + ( + + 61 ) ) )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2091
SELECT ALL + CAST( - 96 AS SIGNED ) * - 13 + - 7 + 46 / + 81 * CASE + MAX( 75 ) WHEN - 49 + - ( - - 41 ) / - 30 THEN - 68 END * + COUNT( * ) * + 23 * NULLIF ( - - 43, 59 * - + 20 - - 16 ) + + + 34 + + 8 + 87 * + MIN( DISTINCT - + 27 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL + CAST ( - 96 AS INTEGER ) * - 13 + - 7 + 46 / + 81 * CASE + MAX ( 75 ) WHEN - 49 + - ( - - 41 ) / - 30 THEN - 68 END * + COUNT ( * ) * + 23 * NULLIF ( - - 43, 59 * - + 20 - - 16 ) + + + 34 + + 8 + 87 * + MIN ( DISTINCT - + 27 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ALL - 91 * - 92 - 93 * + 15 + NULLIF ( + 48, - COUNT( * ) )
----
7025

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - 91 * - 92 - 93 * + 15 + NULLIF ( + 48, - COUNT ( * ) )
----
7025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT DISTINCT 3 * 73 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT 3 * 73 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 28 * + 27 * + + 20 + + 16
----
15136

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL + MAX( ALL 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + MAX ( ALL 87 ) AS col2
----
87

query I rowsort
SELECT ALL - 83 * + CASE 49 WHEN + 44 THEN - + 42 * + 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT ALL MAX( DISTINCT - - 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL MAX ( DISTINCT - - 7 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT DISTINCT - - 40 * - 60 + - COUNT( * ) + + 57 * + 91
----
2786

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT - - 40 * - 60 + - COUNT ( * ) + + 57 * + 91
----
2786

query I rowsort
SELECT ALL + NULLIF ( 22, - 77 )
----
22

query II rowsort
SELECT - 72 * + 71 AS col0, 31 * - - 33
----
-5112
1023

query I rowsort
SELECT - + 7 + + 99
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT CASE - + 1 WHEN + 78 THEN + 78 WHEN - 68 THEN - - COUNT( * ) + 67 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT CASE - + 1 WHEN + 78 THEN + 78 WHEN - 68 THEN - - COUNT ( * ) + 67 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2104
SELECT - + 57 * + COUNT( * ) - - + COUNT( * ) * - SUM( ALL + 99 ) DIV 20 * + 89
----
-413

skipif mysql # not compatible
query I rowsort label-2104
SELECT - + 57 * + COUNT ( * ) - - + COUNT ( * ) * - SUM ( ALL + 99 ) / 20 * + 89
----
-413

query II rowsort
SELECT + + 52 * - - 31 AS col1, + 12
----
1612
12

query II rowsort
SELECT DISTINCT 87 * + 64, - ( + + 28 ) AS col1
----
5568
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT - SUM( ALL 37 ) + + 40 * + - 77 AS col0, + 84 * - + 94 + 66 AS col1
----
-3117
-7830

skipif mysql # not compatible
query II rowsort label-2107
SELECT - SUM ( ALL 37 ) + + 40 * + - 77 AS col0, + 84 * - + 94 + 66 AS col1
----
-3117
-7830

query I rowsort
SELECT DISTINCT - + 23 * 66 col2
----
-1518

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT - COALESCE ( + 15, COUNT( * ) + - COUNT( * ) * - COUNT( ALL - 58 ), 2 * 14 )
----
-15

skipif mysql # not compatible
query I rowsort label-2109
SELECT - COALESCE ( + 15, COUNT ( * ) + - COUNT ( * ) * - COUNT ( ALL - 58 ), 2 * 14 )
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2110
SELECT ALL + - 11 + NULLIF ( - 32, 10 / 21 + - + CASE + ( - 14 ) WHEN 68 * + 63 + 21 THEN - 31 END + - CAST( - 75 AS DECIMAL ) * + 83 / - AVG ( 39 ) * - 54 ) + + 12 * - ( - 31 ) AS col2
----
329

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL + - 11 + NULLIF ( - 32, 10 / 21 + - + CASE + ( - 14 ) WHEN 68 * + 63 + 21 THEN - 31 END + - CAST ( - 75 AS REAL ) * + 83 / - AVG ( 39 ) * - 54 ) + + 12 * - ( - 31 ) AS col2
----
329

query I rowsort
SELECT + + 0 - - 7 + - 74 AS col0
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2112
SELECT - - 31 + COUNT( * ), 74 DIV + 99 col0
----
32
0

skipif mysql # not compatible
query II rowsort label-2112
SELECT - - 31 + COUNT ( * ), 74 / + 99 col0
----
32
0

query I rowsort
SELECT + - 25 - - ( 89 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT ALL + NULLIF ( 96, + 59 + - COALESCE ( SUM( ALL + 90 ), - + 15 * - - 49 ) ) + 16 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL + NULLIF ( 96, + 59 + - COALESCE ( SUM ( ALL + 90 ), - + 15 * - - 49 ) ) + 16 AS col2
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2115
SELECT DISTINCT 6 DIV 41 DIV + 36 * 45 * - 94, COUNT( * ) col1
----
0
1

skipif mysql # not compatible
query II rowsort label-2115
SELECT DISTINCT 6 / 41 / + 36 * 45 * - 94, COUNT ( * ) col1
----
0
1

query I rowsort
SELECT ALL + 31 + - - 87 AS col2
----
118

query I rowsort
SELECT DISTINCT - 76 + - + 74
----
-150

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

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL 41 / - + COUNT ( * )
----
-41

query I rowsort
SELECT ALL 99 + - 52 col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2120
SELECT ALL 11 + CAST( + 89 AS SIGNED )
----
100

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL 11 + CAST ( + 89 AS INTEGER )
----
100

query II rowsort
SELECT + 66 AS col1, 29
----
66
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT ( + 53 ) * + + COUNT( * ) + 94 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-2122
SELECT ( + 53 ) * + + COUNT ( * ) + 94 AS col0
----
147

query I rowsort
SELECT DISTINCT 98 - + 62 col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2124
SELECT DISTINCT - 35, - CASE - - 22 WHEN + 4 THEN NULL WHEN + 38 THEN - + 79 + + 12 WHEN - COUNT( * ) + + 67 THEN + 24 + + + 92 * + 4 END - + - 7 * COUNT( * ) + 88 AS col0
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-2124
SELECT DISTINCT - 35, - CASE - - 22 WHEN + 4 THEN NULL WHEN + 38 THEN - + 79 + + 12 WHEN - COUNT ( * ) + + 67 THEN + 24 + + + 92 * + 4 END - + - 7 * COUNT ( * ) + 88 AS col0
----
-35
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT DISTINCT + COUNT( * ) - - ( + COALESCE ( + + 67, 84 ) ) - - 86 * - 47 * - 35
----
141538

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT + COUNT ( * ) - - ( + COALESCE ( + + 67, 84 ) ) - - 86 * - 47 * - 35
----
141538

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT DISTINCT - MIN( + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT - MIN ( + 23 )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2128
SELECT ALL - 51 DIV - + 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL - 51 / - + 73 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2129
SELECT ALL - CASE COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN ( 79 ) - - CASE + - 15 WHEN - 35 THEN - 36 WHEN + + CASE 98 WHEN 80 - - CASE COALESCE ( 22, 39 ) WHEN 2 THEN - 69 + - - 82 + + COALESCE ( 24, + AVG ( - 11 ) - ( + COUNT( * ) ) + - COUNT( * ) ) / 63 / COUNT( * ) - COUNT( * ) WHEN - + 58 THEN NULL ELSE - 42 END + + COUNT( * ) THEN 6 WHEN 32 THEN 13 WHEN + + 65 THEN - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) END - - + ( 56 ) THEN + 4 ELSE + 33 END - 21 / COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL - CASE COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN ( 79 ) - - CASE + - 15 WHEN - 35 THEN - 36 WHEN + + CASE 98 WHEN 80 - - CASE COALESCE ( 22, 39 ) WHEN 2 THEN - 69 + - - 82 + + COALESCE ( 24, + AVG ( - 11 ) - ( + COUNT ( * ) ) + - COUNT ( * ) ) / 63 / COUNT ( * ) - COUNT ( * ) WHEN - + 58 THEN NULL ELSE - 42 END + + COUNT ( * ) THEN 6 WHEN 32 THEN 13 WHEN + + 65 THEN - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) END - - + ( 56 ) THEN + 4 ELSE + 33 END - 21 / COUNT ( * ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT 80 AS col2, 56 * 98
----
80
5488

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT + 22 * + 65 - + - SUM( 56 ) + 23 + + 44 * + 18 + + 50
----
2351

skipif mysql # not compatible
query I rowsort label-2131
SELECT + 22 * + 65 - + - SUM ( 56 ) + 23 + + 44 * + 18 + + 50
----
2351

query I rowsort
SELECT 93 * - 20
----
-1860

query I rowsort
SELECT - 65 + - 52 - 56
----
-173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2134
SELECT ALL CAST( - 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL CAST ( - 83 AS INTEGER )
----
-83

query I rowsort
SELECT 82 + - 97 * 16
----
-1470

query I rowsort
SELECT - ( + 56 ) + + + 76 col0
----
20

query I rowsort
SELECT - 32 + + - 76 + - 34
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL + 65 * - MAX( DISTINCT - COALESCE ( - NULLIF ( - 64, 12 ), 10 ) ) AS col2
----
4160

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL + 65 * - MAX ( DISTINCT - COALESCE ( - NULLIF ( - 64, 12 ), 10 ) ) AS col2
----
4160

query I rowsort
SELECT ALL - - 63 * 67 + - 47 AS col2
----
4174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2140
SELECT ALL - 90 * CAST( 32 AS SIGNED )
----
-2880

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL - 90 * CAST ( 32 AS INTEGER )
----
-2880

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

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

query I rowsort
SELECT ALL + + 50 + - + 87 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT - CASE + - COUNT( * ) WHEN - - MIN( DISTINCT - 76 ) THEN - + CASE - 66 WHEN + - 70 THEN 71 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT - CASE + - COUNT ( * ) WHEN - - MIN ( DISTINCT - 76 ) THEN - + CASE - 66 WHEN + - 70 THEN 71 END END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT + 72 * + 84 + - COUNT( * ) + - - 68
----
6115

skipif mysql # not compatible
query I rowsort label-2144
SELECT + 72 * + 84 + - COUNT ( * ) + - - 68
----
6115

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

skipif mysql # not compatible
query I rowsort label-2145
SELECT 41 * - NULLIF ( - ( - - 1 ), + CAST ( NULL AS INTEGER ) * - - 73 + - + ( + - COUNT ( * ) ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT + MAX( DISTINCT + 56 ) + + + 88 + - ( - + 14 ) * - COUNT( * )
----
130

skipif mysql # not compatible
query I rowsort label-2146
SELECT + MAX ( DISTINCT + 56 ) + + + 88 + - ( - + 14 ) * - COUNT ( * )
----
130

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

query I rowsort
SELECT 31 + 22 * + 36 AS col2
----
823

query II rowsort
SELECT - 8 + - 2 * + 33, + 3 + + 99 AS col0
----
-74
102

query I rowsort
SELECT DISTINCT - + NULLIF ( + 19, - 86 * - 69 + - 12 * + 55 ) * - 87
----
1653

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT ALL COALESCE ( + COUNT( * ), + - 19 * - 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL COALESCE ( + COUNT ( * ), + - 19 * - 91 ) AS col2
----
1

query I rowsort
SELECT ALL 0 * - + 7 AS col0
----
0

query I rowsort
SELECT DISTINCT 58 + - - 8
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL 17 * + - MIN( ALL - + 46 ) AS col0
----
782

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL 17 * + - MIN ( ALL - + 46 ) AS col0
----
782

query II rowsort
SELECT 47 AS col1, + 51 * - + 86 AS col0
----
47
-4386

query I rowsort
SELECT DISTINCT + 18 * - + 52 * 27
----
-25272

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL + 0 * + - COUNT( ALL - 68 )
----
0

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL + 0 * + - COUNT ( ALL - 68 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT 71 - - COUNT( * ) * 24 * + SUM( 91 ) * 78
----
170423

skipif mysql # not compatible
query I rowsort label-2158
SELECT 71 - - COUNT ( * ) * 24 * + SUM ( 91 ) * 78
----
170423

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT COUNT( * ) * - CASE + + 81 WHEN 71 + + 78 THEN 94 WHEN + 51 / MIN( ALL + + 94 ) - + - SUM( DISTINCT - 34 ) THEN - - 90 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT COUNT ( * ) * - CASE + + 81 WHEN 71 + + 78 THEN 94 WHEN + 51 / MIN ( ALL + + 94 ) - + - SUM ( DISTINCT - 34 ) THEN - - 90 END + + COUNT ( * )
----
NULL

query I rowsort
SELECT 6 - 61
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-2161
SELECT ALL CASE + 46 WHEN + 80 THEN - 51 * + + 35 END - COUNT( * ) col1, - SUM( DISTINCT - 38 )
----
NULL
38

skipif mysql # not compatible
query II rowsort label-2161
SELECT ALL CASE + 46 WHEN + 80 THEN - 51 * + + 35 END - COUNT ( * ) col1, - SUM ( DISTINCT - 38 )
----
NULL
38

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2163
SELECT ALL - 57, COALESCE ( - 42, + 40 DIV - 18, CAST( NULL AS SIGNED ) ) DIV - 52 AS col1
----
-57
0

skipif mysql # not compatible
query II rowsort label-2163
SELECT ALL - 57, COALESCE ( - 42, + 40 / - 18, CAST ( NULL AS INTEGER ) ) / - 52 AS col1
----
-57
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2164
SELECT ALL SUM( DISTINCT 13 ) - COALESCE ( COUNT( * ), - - 93 * 22, - 0 * CASE - + COUNT( * ) WHEN COUNT( * ) + CASE 75 WHEN - 34 THEN + 61 WHEN + - ( 95 ) * + CAST( - + CASE 71 WHEN ( - - 15 ) * + ( 26 ) THEN - COUNT( * ) + 95 ELSE + 15 + + + 52 * 56 * 37 END AS SIGNED ) THEN 25 + + 32 + + COUNT( * ) END THEN NULL WHEN + 0 THEN AVG ( ALL 76 ) END * + 89 + + 51 ) + - ( - + COUNT( + - 67 ) ) / 49 + - 95 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL SUM ( DISTINCT 13 ) - COALESCE ( COUNT ( * ), - - 93 * 22, - 0 * CASE - + COUNT ( * ) WHEN COUNT ( * ) + CASE 75 WHEN - 34 THEN + 61 WHEN + - ( 95 ) * + CAST ( - + CASE 71 WHEN ( - - 15 ) * + ( 26 ) THEN - COUNT ( * ) + 95 ELSE + 15 + + + 52 * 56 * 37 END AS INTEGER ) THEN 25 + + 32 + + COUNT ( * ) END THEN NULL WHEN + 0 THEN AVG ( ALL 76 ) END * + 89 + + 51 ) + - ( - + COUNT ( + - 67 ) ) / 49 + - 95 * - CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT 7 * + 37 AS col2
----
259

query I rowsort
SELECT - 63 * - 70
----
4410

query I rowsort
SELECT DISTINCT + 63 * - + 59 AS col0
----
-3717

query II rowsort
SELECT ALL + 5 + + + 23 + - ( 28 ) AS col2, - 79 AS col2
----
0
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-2171
SELECT ALL 90 * 81, CASE - 90 WHEN + ( - 58 ) * - - 85 * - 90 * - COALESCE ( + - 74, + MAX( DISTINCT - 38 ) * + - 97 * + - 26, - 6 ) * 86 * - 30 / - 62 THEN + COUNT( ALL COALESCE ( + 73, - 23, 37 ) ) - - 75 ELSE NULL END + - 70 AS col1
----
7290
NULL

skipif mysql # not compatible
query II rowsort label-2171
SELECT ALL 90 * 81, CASE - 90 WHEN + ( - 58 ) * - - 85 * - 90 * - COALESCE ( + - 74, + MAX ( DISTINCT - 38 ) * + - 97 * + - 26, - 6 ) * 86 * - 30 / - 62 THEN + COUNT ( ALL COALESCE ( + 73, - 23, 37 ) ) - - 75 ELSE NULL END + - 70 AS col1
----
7290
NULL

query I rowsort
SELECT + 29 * - 72
----
-2088

query I rowsort
SELECT ALL - 44 + + 31 - + - 1 * + 78 AS col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT ALL + ( - 11 ) DIV + - 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL + ( - 11 ) / + - 16 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2175
SELECT - + COALESCE ( - 3, - 27 + 7 * + - 63 * + - 4 + + 7 * + - COALESCE ( 83, + COUNT( * ) + - 70, - MAX( - 38 ), - 89 + + 34 ), - 52 DIV - + 54, ( - 98 ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2175
SELECT - + COALESCE ( - 3, - 27 + 7 * + - 63 * + - 4 + + 7 * + - COALESCE ( 83, + COUNT ( * ) + - 70, - MAX ( - 38 ), - 89 + + 34 ), - 52 / - + 54, ( - 98 ) ) AS col1
----
3

query I rowsort
SELECT ALL + 69 + + - 38 AS col1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT - 96 + + CAST( NULL AS SIGNED ) + + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT - 96 + + CAST ( NULL AS INTEGER ) + + + 59
----
NULL

query II rowsort
SELECT - 6 AS col1, - 67 AS col0
----
-6
-67

query II rowsort
SELECT 56 + + 91 + - ( - 72 ) AS col0, - 91 AS col2
----
219
-91

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2181
SELECT + - 98 - - COUNT( - 46 ) + + ( - 4 ) * - 67 + COUNT( - CAST( NULL AS SIGNED ) )
----
171

skipif mysql # not compatible
query I rowsort label-2181
SELECT + - 98 - - COUNT ( - 46 ) + + ( - 4 ) * - 67 + COUNT ( - CAST ( NULL AS INTEGER ) )
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT - - 92 * 95 * CAST( - 30 AS SIGNED )
----
-262200

skipif mysql # not compatible
query I rowsort label-2182
SELECT - - 92 * 95 * CAST ( - 30 AS INTEGER )
----
-262200

query I rowsort
SELECT DISTINCT + 87 * - 52 col2
----
-4524

query I rowsort
SELECT ALL - - 43 + - 24 AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT - + COUNT( * ) + + 53 + + ( ( - 89 ) ) + + 75 AS col0, + COALESCE ( + - 89, + 71 * - + 8 + + COALESCE ( + + 58, + 21 ) ) * + - 41 AS col2
----
38
3649

skipif mysql # not compatible
query II rowsort label-2185
SELECT - + COUNT ( * ) + + 53 + + ( ( - 89 ) ) + + 75 AS col0, + COALESCE ( + - 89, + 71 * - + 8 + + COALESCE ( + + 58, + 21 ) ) * + - 41 AS col2
----
38
3649

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

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL + 17 + 40 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ALL COUNT( * ) * + - 67 + - + 9
----
-76

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL COUNT ( * ) * + - 67 + - + 9
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL NULLIF ( - NULLIF ( - 18, - COALESCE ( - 95, + 0 / + COUNT( * ) + 37 ) ), - - 22 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL NULLIF ( - NULLIF ( - 18, - COALESCE ( - 95, + 0 / + COUNT ( * ) + 37 ) ), - - 22 ) AS col1
----
18

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

query I rowsort
SELECT ALL + 31 * + - 96 * + + 28 AS col0
----
-83328

query II rowsort
SELECT + 70 + - 65, 0 AS col0
----
5
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2192
SELECT - COALESCE ( - - 93, 95 - - 28 + - CAST( NULL AS SIGNED ) DIV - MIN( ALL - 19 ) * CASE - 60 WHEN 69 THEN - 41 WHEN 56 THEN NULL ELSE - - 29 END + - SUM( 4 ) * - COALESCE ( + 80, + COUNT( * ) + + ( - 35 ) ) ) + - + 46
----
-139

skipif mysql # not compatible
query I rowsort label-2192
SELECT - COALESCE ( - - 93, 95 - - 28 + - CAST ( NULL AS INTEGER ) / - MIN ( ALL - 19 ) * CASE - 60 WHEN 69 THEN - 41 WHEN 56 THEN NULL ELSE - - 29 END + - SUM ( 4 ) * - COALESCE ( + 80, + COUNT ( * ) + + ( - 35 ) ) ) + - + 46
----
-139

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

skipif mysql # not compatible
query I rowsort label-2193
SELECT - 52 + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL + MAX( + - 13 ) - - + 63 + 80 + - - COUNT( * )
----
131

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL + MAX ( + - 13 ) - - + 63 + 80 + - - COUNT ( * )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT - CASE + COUNT( * ) WHEN - + 23 THEN 16 * - - 49 END * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT - CASE + COUNT ( * ) WHEN - + 23 THEN 16 * - - 49 END * + 45
----
NULL

query I rowsort
SELECT - 64 * + 24 + - 40
----
-1576

query I rowsort
SELECT ALL + NULLIF ( 58, + + 88 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT - 33 * MIN( ALL - 94 ) col2
----
3102

skipif mysql # not compatible
query I rowsort label-2198
SELECT - 33 * MIN ( ALL - 94 ) col2
----
3102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2199
SELECT DISTINCT + MIN( DISTINCT - 52 ) DIV + NULLIF ( + + 49, + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT + MIN ( DISTINCT - 52 ) / + NULLIF ( + + 49, + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2200
SELECT DISTINCT CAST( 29 AS SIGNED ) * + ( + - CAST( - - 44 AS SIGNED ) ), - 38 AS col0
----
-1276
-38

skipif mysql # not compatible
query II rowsort label-2200
SELECT DISTINCT CAST ( 29 AS INTEGER ) * + ( + - CAST ( - - 44 AS INTEGER ) ), - 38 AS col0
----
-1276
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2201
SELECT - 86 DIV - + 65
----
1

skipif mysql # not compatible
query I rowsort label-2201
SELECT - 86 / - + 65
----
1

query I rowsort
SELECT - 97 + + 75 + - 7
----
-29

query I rowsort
SELECT DISTINCT + 51 * + 85
----
4335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2204
SELECT CASE - 59 WHEN 91 THEN - 2 WHEN + 4 * + - CASE 33 WHEN - ( + COUNT( * ) ) THEN + + 93 + - 99 + 11 END + 82 / 60 * 13 - + 88 / MIN( 20 ) * NULLIF ( - COUNT( * ), 51 * - 44 ) THEN - ( + - NULLIF ( 92, + - 95 - CAST( NULL AS SIGNED ) - + 89 * + 12 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT CASE - 59 WHEN 91 THEN - 2 WHEN + 4 * + - CASE 33 WHEN - ( + COUNT ( * ) ) THEN + + 93 + - 99 + 11 END + 82 / 60 * 13 - + 88 / MIN ( 20 ) * NULLIF ( - COUNT ( * ), 51 * - 44 ) THEN - ( + - NULLIF ( 92, + - 95 - CAST ( NULL AS INTEGER ) - + 89 * + 12 ) ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2205
SELECT - 50 DIV + - MAX( - 84 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2205
SELECT - 50 / + - MAX ( - 84 ) AS col0
----
0

query I rowsort
SELECT ALL + 99 * - 43 + + 90
----
-4167

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2208
SELECT DISTINCT - - 94 * - 5 * + 98 + - + 76 + - MAX( ALL + 89 ) + + + 53 + - CASE 6 WHEN 77 * + + COUNT( * ) THEN 99 WHEN 26 + 69 THEN - 2 * 62 * - 66 - COUNT( * ) ELSE NULL END * - ( + + 97 ) / - 60 * - 71 * - ( - 70 ) + - 2 + CAST( - 8 AS SIGNED ) * + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT - - 94 * - 5 * + 98 + - + 76 + - MAX ( ALL + 89 ) + + + 53 + - CASE 6 WHEN 77 * + + COUNT ( * ) THEN 99 WHEN 26 + 69 THEN - 2 * 62 * - 66 - COUNT ( * ) ELSE NULL END * - ( + + 97 ) / - 60 * - 71 * - ( - 70 ) + - 2 + CAST ( - 8 AS INTEGER ) * + - 76
----
NULL

query II rowsort
SELECT DISTINCT + 44 * - COALESCE ( + 37, 5 ) + 91 AS col0, + 22 + COALESCE ( NULLIF ( 16, - 44 ), - 72 ) AS col0
----
-1537
38

query I rowsort
SELECT ALL + COALESCE ( + 84, + 77, 18 ) AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2211
SELECT ALL - + CAST( - AVG ( 38 ) AS SIGNED ) * - 2 + - + 76 DIV 65 * 80
----
-156

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL - + CAST ( - AVG ( 38 ) AS INTEGER ) * - 2 + - + 76 / 65 * 80
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT ALL ( - - MIN( - - 90 ) ) * - + 72 col1
----
-6480

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL ( - - MIN ( - - 90 ) ) * - + 72 col1
----
-6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2213
SELECT + + COALESCE ( - + CAST( + 25 AS SIGNED ), - 64 + + MIN( + CAST( NULL AS SIGNED ) ) ) + - 62 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-2213
SELECT + + COALESCE ( - + CAST ( + 25 AS INTEGER ), - 64 + + MIN ( + CAST ( NULL AS INTEGER ) ) ) + - 62 AS col2
----
-87

query I rowsort
SELECT DISTINCT 42 * + 78 AS col0
----
3276

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2215
SELECT + - 52 * - 9 + + 70 * 16 * - - CAST( NULL AS SIGNED ) * - 58 * CAST( 5 AS SIGNED ) * 33 * 2, + 58 DIV 94 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2215
SELECT + - 52 * - 9 + + 70 * 16 * - - CAST ( NULL AS INTEGER ) * - 58 * CAST ( 5 AS INTEGER ) * 33 * 2, + 58 / 94 AS col1
----
NULL
0

query I rowsort
SELECT ALL 99 - 66 * + 15 * - - 70 * - 67 * 47
----
218225799

query II rowsort
SELECT DISTINCT 8 * - 80 AS col2, + 99
----
-640
99

query I rowsort
SELECT ALL - + CASE 53 WHEN + 28 + 15 + - - 4 THEN + 50 ELSE + 48 END - + 10 * + 6
----
-108

query I rowsort
SELECT - 76 + 78 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL MIN( ALL + + 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL MIN ( ALL + + 15 ) AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT ALL 41 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL 41 / - 40
----
-1

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

skipif mysql # not compatible
query I rowsort label-2222
SELECT - 52 + + - 91 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2223
SELECT + 64 DIV 7
----
9

skipif mysql # not compatible
query I rowsort label-2223
SELECT + 64 / 7
----
9

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2226
SELECT DISTINCT + CASE + COALESCE ( - 27, 87 ) WHEN - CAST( + - 29 AS SIGNED ) + + - 59 THEN - 13 * + 70 + - COUNT( * ) END * - - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT + CASE + COALESCE ( - 27, 87 ) WHEN - CAST ( + - 29 AS INTEGER ) + + - 59 THEN - 13 * + 70 + - COUNT ( * ) END * - - 9 AS col2
----
NULL

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

query I rowsort
SELECT - 34 * - - 65 * - 50
----
110500

onlyif mysql # aggregate syntax: 
query II rowsort label-2229
SELECT DISTINCT 40 * - + ( - NULLIF ( COUNT( DISTINCT + 69 ), - 64 ) ) col1, - 84 + + 87
----
40
3

skipif mysql # not compatible
query II rowsort label-2229
SELECT DISTINCT 40 * - + ( - NULLIF ( COUNT ( DISTINCT + 69 ), - 64 ) ) col1, - 84 + + 87
----
40
3

query I rowsort
SELECT ALL ( + 80 ) AS col0
----
80

query I rowsort
SELECT - 10 * - 24 AS col0
----
240

query I rowsort
SELECT ALL COALESCE ( - 90, + ( + + 63 ), - - 67 - + + 4 ) * 80 AS col1
----
-7200

query I rowsort
SELECT DISTINCT ( - + 61 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT DISTINCT + 83 * - + ( - - COUNT( * ) ) * - 16 + 40
----
1368

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT + 83 * - + ( - - COUNT ( * ) ) * - 16 + 40
----
1368

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2235
SELECT + CAST( NULL AS SIGNED ) AS col1, 30 + - + 77
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-2235
SELECT + CAST ( NULL AS INTEGER ) AS col1, 30 + - + 77
----
NULL
-47

query I rowsort
SELECT + 57 + + 85
----
142

query II rowsort
SELECT + 74 * + 87 * 56, + 65 AS col2
----
360528
65

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2239
SELECT ALL + 55 DIV 41 + - - 98 + + + 21
----
120

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL + 55 / 41 + - - 98 + + + 21
----
120

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

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

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

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

query II rowsort
SELECT DISTINCT + 85, - 11 AS col0
----
85
-11

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT - 69 + - CAST( - - 37 AS SIGNED ) * - + 39
----
1374

skipif mysql # not compatible
query I rowsort label-2244
SELECT - 69 + - CAST ( - - 37 AS INTEGER ) * - + 39
----
1374

query I rowsort
SELECT - 39 * + 81 AS col2
----
-3159

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ALL - 53 * - CASE + - MIN( 78 ) WHEN - ( + 82 ) THEN - 92 WHEN - 19 THEN 19 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL - 53 * - CASE + - MIN ( 78 ) WHEN - ( + 82 ) THEN - 92 WHEN - 19 THEN 19 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT MIN( DISTINCT - COALESCE ( + 13, 38 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-2247
SELECT MIN ( DISTINCT - COALESCE ( + 13, 38 ) )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-2248
SELECT + 24 AS col1, + MIN( - 60 ) AS col2
----
24
-60

skipif mysql # not compatible
query II rowsort label-2248
SELECT + 24 AS col1, + MIN ( - 60 ) AS col2
----
24
-60

query I rowsort
SELECT DISTINCT + 50 * + 5 AS col1
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT ALL - - ( - MAX( DISTINCT - ( 84 ) ) ) * 81 AS col1
----
6804

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL - - ( - MAX ( DISTINCT - ( 84 ) ) ) * 81 AS col1
----
6804

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2252
SELECT ALL - 19 AS col0, + ( CASE + ( + 58 ) WHEN 29 * 53 THEN + 9 WHEN + COUNT( * ) * - COUNT( * ) THEN 54 END )
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-2252
SELECT ALL - 19 AS col0, + ( CASE + ( + 58 ) WHEN 29 * 53 THEN + 9 WHEN + COUNT ( * ) * - COUNT ( * ) THEN 54 END )
----
-19
NULL

query II rowsort
SELECT + 25 AS col2, + ( - ( + 96 ) ) + - + 89
----
25
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT 8 * COUNT( * ) * SUM( + + ( - + 51 ) ) AS col0
----
-408

skipif mysql # not compatible
query I rowsort label-2254
SELECT 8 * COUNT ( * ) * SUM ( + + ( - + 51 ) ) AS col0
----
-408

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2256
SELECT ALL + CAST( NULL AS SIGNED ) * + CAST( + - 83 AS DECIMAL ) AS col2, 83
----
NULL
83

skipif mysql # not compatible
query II rowsort label-2256
SELECT ALL + CAST ( NULL AS INTEGER ) * + CAST ( + - 83 AS REAL ) AS col2, 83
----
NULL
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2257
SELECT 75 col1, + 74 * - 17 + + CASE 61 WHEN ( + 86 ) THEN + CAST( 99 AS SIGNED ) * + - 15 WHEN 77 THEN NULL END * - 66 * - 56 AS col1
----
75
NULL

skipif mysql # not compatible
query II rowsort label-2257
SELECT 75 col1, + 74 * - 17 + + CASE 61 WHEN ( + 86 ) THEN + CAST ( 99 AS INTEGER ) * + - 15 WHEN 77 THEN NULL END * - 66 * - 56 AS col1
----
75
NULL

query I rowsort
SELECT ALL + ( 50 ) col0
----
50

query I rowsort
SELECT 90 * 30 AS col2
----
2700

query I rowsort
SELECT ALL 35 * - 77 * 41
----
-110495

query I rowsort
SELECT ALL - 96 * - 30 AS col1
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT COUNT( * ) + + MAX( + 95 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2262
SELECT COUNT ( * ) + + MAX ( + 95 ) AS col0
----
96

query II rowsort
SELECT ALL 99 * - + 0 AS col0, - 12
----
0
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2264
SELECT 22 DIV - NULLIF ( - - 68, + 24 * 93 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2264
SELECT 22 / - NULLIF ( - - 68, + 24 * 93 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT COUNT( DISTINCT 4 ) + 33 + - MIN( DISTINCT + - 15 ) + - - 47
----
96

skipif mysql # not compatible
query I rowsort label-2265
SELECT COUNT ( DISTINCT 4 ) + 33 + - MIN ( DISTINCT + - 15 ) + - - 47
----
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT 41 + + 52 * SUM( ALL - 66 ) * 48 * 40 AS col1
----
-6589399

skipif mysql # not compatible
query I rowsort label-2267
SELECT 41 + + 52 * SUM ( ALL - 66 ) * 48 * 40 AS col1
----
-6589399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2268
SELECT DISTINCT 86 + + + CASE WHEN + 28 <> - 59 - + - SUM( + 16 ) OR NOT - 58 BETWEEN 42 + - - 80 AND + + 54 THEN 2 END AS col2, ( + NULLIF ( - 5, - + COALESCE ( + 62, - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) * - - 2 + + + 73, - - ( - - 9 ) ) * + + 70 ) ) AS col2
----
88
-5

skipif mysql # not compatible
query II rowsort label-2268
SELECT DISTINCT 86 + + + CASE WHEN + 28 <> - 59 - + - SUM ( + 16 ) OR NOT - 58 BETWEEN 42 + - - 80 AND + + 54 THEN 2 END AS col2, ( + NULLIF ( - 5, - + COALESCE ( + 62, - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) * - - 2 + + + 73, - - ( - - 9 ) ) * + + 70 ) ) AS col2
----
88
-5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2270
SELECT ALL 33 DIV - COALESCE ( 16, - MIN( ALL + 86 ) ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL 33 / - COALESCE ( 16, - MIN ( ALL + 86 ) ) col1
----
-2

query I rowsort
SELECT - 17 * - + 98 + 16 AS col0
----
1682

query I rowsort
SELECT ALL + 34 * 91
----
3094

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2273
SELECT DISTINCT - 79 + + 11 AS col0, + 67 * + 77 + - CAST( NULL AS DECIMAL ) AS col2
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-2273
SELECT DISTINCT - 79 + + 11 AS col0, + 67 * + 77 + - CAST ( NULL AS REAL ) AS col2
----
-68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + - CASE 48 WHEN - 18 * - 31 THEN - + COUNT( * ) + + CASE WHEN - COUNT( * ) <= + + 32 THEN + 3 * 57 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT + - CASE 48 WHEN - 18 * - 31 THEN - + COUNT ( * ) + + CASE WHEN - COUNT ( * ) <= + + 32 THEN + 3 * 57 ELSE NULL END END
----
NULL

query I rowsort
SELECT DISTINCT + + 91 + + 39
----
130

query I rowsort
SELECT + NULLIF ( - - 11, 38 ) col1
----
11

query I rowsort
SELECT ALL - ( - 3 ) * - - 21 AS col2
----
63

query I rowsort
SELECT + 49 + + 95 AS col2
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2279
SELECT + - COUNT( * ) * + 80 + - 76 DIV + + 30
----
-82

skipif mysql # not compatible
query I rowsort label-2279
SELECT + - COUNT ( * ) * + 80 + - 76 / + + 30
----
-82

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT - CAST( NULL AS SIGNED ) * 98 * - 85 + + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT - CAST ( NULL AS INTEGER ) * 98 * - 85 + + 16 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 24 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT - 98 + - SUM( 59 ) AS col2
----
-157

skipif mysql # not compatible
query I rowsort label-2283
SELECT - 98 + - SUM ( 59 ) AS col2
----
-157

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

skipif mysql # not compatible
query I rowsort label-2284
SELECT 0 * - 42 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 36 * - 90 + + 96 AS col2
----
3336

query I rowsort
SELECT NULLIF ( + + 50, 87 / ( + 89 ) + + - 20 ) + 49 AS col0
----
99

query I rowsort
SELECT ALL - + ( - + 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT DISTINCT - COUNT( * ) * - 69 * SUM( + 58 )
----
4002

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT - COUNT ( * ) * - 69 * SUM ( + 58 )
----
4002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2289
SELECT + CAST( + + 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2289
SELECT + CAST ( + + 1 AS INTEGER )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2290
SELECT + 15 * - CAST( NULL AS SIGNED ) + + - NULLIF ( + + 6, - 89 - - 82 ) + 61, 20 * CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2290
SELECT + 15 * - CAST ( NULL AS INTEGER ) + + - NULLIF ( + + 6, - 89 - - 82 ) + 61, 20 * CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2291
SELECT 69 * + CASE - 41 WHEN - 3 THEN + 61 ELSE CAST( + 44 AS SIGNED ) END + - - 79 + + + 56 + - - COUNT( * ) + 75 * - 37 * - 25 AS col0
----
72547

skipif mysql # not compatible
query I rowsort label-2291
SELECT 69 * + CASE - 41 WHEN - 3 THEN + 61 ELSE CAST ( + 44 AS INTEGER ) END + - - 79 + + + 56 + - - COUNT ( * ) + 75 * - 37 * - 25 AS col0
----
72547

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT - - 94 * MAX( DISTINCT - 49 ) * 80 AS col1
----
-368480

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT - - 94 * MAX ( DISTINCT - 49 ) * 80 AS col1
----
-368480

query I rowsort
SELECT 2 * + 9 * - 85 AS col2
----
-1530

query I rowsort
SELECT 26 + - 30 AS col1
----
-4

query I rowsort
SELECT 0 * - + ( + - ( + 37 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ALL - 9 * - 88 * - + CASE 56 WHEN - 53 THEN COUNT( * ) ELSE + - 97 END * SUM( + 92 )
----
7067808

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL - 9 * - 88 * - + CASE 56 WHEN - 53 THEN COUNT ( * ) ELSE + - 97 END * SUM ( + 92 )
----
7067808

onlyif mysql # aggregate syntax: 
query II rowsort label-2297
SELECT DISTINCT COUNT( * ) AS col1, ( - 58 ) - + + 74 + + + NULLIF ( - ( 32 ), + - 49 + - COUNT( * ) - + ( - 34 ) + - 63 + + + 58 / - 93 ) * ( - + 74 ) * + - 27 + - - 62 AS col1
----
1
-64006

skipif mysql # not compatible
query II rowsort label-2297
SELECT DISTINCT COUNT ( * ) AS col1, ( - 58 ) - + + 74 + + + NULLIF ( - ( 32 ), + - 49 + - COUNT ( * ) - + ( - 34 ) + - 63 + + + 58 / - 93 ) * ( - + 74 ) * + - 27 + - - 62 AS col1
----
1
-64006

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT 25 * - + COUNT( * ) * - 12
----
300

skipif mysql # not compatible
query I rowsort label-2298
SELECT 25 * - + COUNT ( * ) * - 12
----
300

onlyif mysql # DIV for integer division: 
query II rowsort label-2299
SELECT 21, 39 DIV + - 55 AS col0
----
21
0

skipif mysql # not compatible
query II rowsort label-2299
SELECT 21, 39 / + - 55 AS col0
----
21
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2300
SELECT ALL + COUNT( * ) + + 20 * CASE + COUNT( * ) WHEN + - COUNT( * ) + - 95 * - + CASE 65 WHEN COUNT( * ) THEN + COUNT( * ) * + + COALESCE ( + 76, + ( AVG ( DISTINCT + + 95 ) ) * + 42 + + - ( - - 22 ), - CASE 70 WHEN COUNT( * ) THEN 73 END, + + MIN( DISTINCT 49 ) ) + - COUNT( * ) + ( + 99 ) * 67 * - 62 WHEN + ( + 31 ) THEN NULL ELSE NULL END THEN NULL WHEN + 65 * - 22 / + 45 THEN - ( CAST( SUM( 3 ) AS SIGNED ) ) ELSE 83 END * ( - 22 ) + + 18 - - NULLIF ( - NULLIF ( 59, 48 ), - 93 * ( + 30 ) + + ( 42 + - 43 ) * 39 ) * - 64
----
-32725

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL + COUNT ( * ) + + 20 * CASE + COUNT ( * ) WHEN + - COUNT ( * ) + - 95 * - + CASE 65 WHEN COUNT ( * ) THEN + COUNT ( * ) * + + COALESCE ( + 76, + ( AVG ( DISTINCT + + 95 ) ) * + 42 + + - ( - - 22 ), - CASE 70 WHEN COUNT ( * ) THEN 73 END, + + MIN ( DISTINCT 49 ) ) + - COUNT ( * ) + ( + 99 ) * 67 * - 62 WHEN + ( + 31 ) THEN NULL ELSE NULL END THEN NULL WHEN + 65 * - 22 / + 45 THEN - ( CAST ( SUM ( 3 ) AS INTEGER ) ) ELSE 83 END * ( - 22 ) + + 18 - - NULLIF ( - NULLIF ( 59, 48 ), - 93 * ( + 30 ) + + ( 42 + - 43 ) * 39 ) * - 64
----
-32725

onlyif mysql # aggregate syntax: 
query II rowsort label-2301
SELECT 29 AS col2, + 76 - + + 83 + + ( - COUNT( * ) ) * + 61 * - + 54
----
29
3287

skipif mysql # not compatible
query II rowsort label-2301
SELECT 29 AS col2, + 76 - + + 83 + + ( - COUNT ( * ) ) * + 61 * - + 54
----
29
3287

query I rowsort
SELECT 15 * 54
----
810

query I rowsort
SELECT 51 * - ( 14 )
----
-714

query I rowsort
SELECT ALL 45 + 36
----
81

query I rowsort
SELECT ALL - ( + 4 ) * + 30 AS col2
----
-120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT 31 + - - 24 - 83 * + - 50 * + MAX( ALL + - 61 ) AS col1
----
-253095

skipif mysql # not compatible
query I rowsort label-2307
SELECT 31 + - - 24 - 83 * + - 50 * + MAX ( ALL + - 61 ) AS col1
----
-253095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT CAST( + 35 AS SIGNED ) * + 49 + - + 77 + + 88 AS col1
----
1726

skipif mysql # not compatible
query I rowsort label-2308
SELECT CAST ( + 35 AS INTEGER ) * + 49 + - + 77 + + 88 AS col1
----
1726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT + 68 / - 98 + + + 51 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT + 68 / - 98 + + + 51 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2310
SELECT - 30 * - CAST( NULL AS DECIMAL ) * + 64 * - NULLIF ( - - CAST( NULL AS DECIMAL ), + 16 - - + ( - 75 ) / - 92 * - - 96 ) - COUNT( * ) + - COUNT( * ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT - 30 * - CAST ( NULL AS REAL ) * + 64 * - NULLIF ( - - CAST ( NULL AS REAL ), + 16 - - + ( - 75 ) / - 92 * - - 96 ) - COUNT ( * ) + - COUNT ( * ) * - COUNT ( * )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2312
SELECT DISTINCT + CAST( - - COUNT( ALL 57 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT + CAST ( - - COUNT ( ALL 57 ) AS INTEGER )
----
1

query I rowsort
SELECT ALL + 70 * - + 16 * - - 80 * 58
----
-5196800

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT ALL + SUM( 41 ) col2
----
41

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL + SUM ( 41 ) col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT DISTINCT ( - 57 ) * 39 - + 8 * - COUNT( * ) AS col2
----
-2215

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT ( - 57 ) * 39 - + 8 * - COUNT ( * ) AS col2
----
-2215

query I rowsort
SELECT + - 20 + 96 col1
----
76

query I rowsort
SELECT + 76 * 71 AS col1
----
5396

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2318
SELECT + + 38 - + - 25 * + CAST( NULL AS SIGNED ) AS col1, - 60 + + 60 * - 54 * + + 19 * 78 col2
----
NULL
-4801740

skipif mysql # not compatible
query II rowsort label-2318
SELECT + + 38 - + - 25 * + CAST ( NULL AS INTEGER ) AS col1, - 60 + + 60 * - 54 * + + 19 * 78 col2
----
NULL
-4801740

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT ALL - 33 * + 12 + - 70 + + + 51 DIV + - 53
----
-466

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL - 33 * + 12 + - 70 + + + 51 / + - 53
----
-466

query I rowsort
SELECT ALL - 69 + + - ( ( - + ( - - 97 ) ) ) col1
----
28

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

skipif mysql # not compatible
query II rowsort label-2321
SELECT DISTINCT COUNT ( * ) AS col0, + 41 col0
----
1
41

query I rowsort
SELECT DISTINCT + ( - NULLIF ( 93, ( - 59 ) + 76 ) ) * - - 44 + - 59
----
-4151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2323
SELECT 42 * 99 + + 28 + + 45 - - 51 DIV COUNT( * )
----
4282

skipif mysql # not compatible
query I rowsort label-2323
SELECT 42 * 99 + + 28 + + 45 - - 51 / COUNT ( * )
----
4282

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT - 34 + - - MIN( ALL + 53 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2324
SELECT - 34 + - - MIN ( ALL + 53 ) AS col1
----
19

query I rowsort
SELECT - 51 * + 6 AS col0
----
-306

query I rowsort
SELECT - 27 + + 1 col0
----
-26

query I rowsort
SELECT ALL ( + 2 ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2328
SELECT ALL ( + CASE + 72 WHEN - COALESCE ( - CAST( COUNT( * ) AS SIGNED ), - + 92, + 36 ) THEN - COUNT( * ) END ), - 20 + - 21 col0
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-2328
SELECT ALL ( + CASE + 72 WHEN - COALESCE ( - CAST ( COUNT ( * ) AS INTEGER ), - + 92, + 36 ) THEN - COUNT ( * ) END ), - 20 + - 21 col0
----
NULL
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2329
SELECT - COUNT( * ) + 27 AS col2, CAST( - COUNT( * ) AS SIGNED ) - - - 99 col2
----
26
-100

skipif mysql # not compatible
query II rowsort label-2329
SELECT - COUNT ( * ) + 27 AS col2, CAST ( - COUNT ( * ) AS INTEGER ) - - - 99 col2
----
26
-100

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT ALL COALESCE ( - 3, + 32 - + 89 DIV + + 88, - + CASE 60 WHEN - ( - 81 ) * + 59 THEN NULL ELSE 61 END * + 65 + + - 41 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL COALESCE ( - 3, + 32 - + 89 / + + 88, - + CASE 60 WHEN - ( - 81 ) * + 59 THEN NULL ELSE 61 END * + 65 + + - 41 ) AS col0
----
-3

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

skipif mysql # not compatible
query I rowsort label-2332
SELECT - 68 / COUNT ( * ) AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT ALL + 71 DIV ( - 46 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL + 71 / ( - 46 ) AS col2
----
-1

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

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

query II rowsort
SELECT - 25, 76 AS col0
----
-25
76

query I rowsort
SELECT ALL 75 - + 59 + + 53 * 64 * 90 + - 83
----
305213

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT - CASE - 87 WHEN - 81 THEN - + NULLIF ( + 88, - + COUNT( COALESCE ( + 89, - 26 ) ) ) * + 38 / - - 26 + - + 52 + - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT - CASE - 87 WHEN - 81 THEN - + NULLIF ( + 88, - + COUNT ( COALESCE ( + 89, - 26 ) ) ) * + 38 / - - 26 + - + 52 + - 38 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL - CAST ( + 53 AS INTEGER ) * + + COUNT ( * ) / 81 + 10
----
10

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

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

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

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

query I rowsort
SELECT - 33 + - 3 AS col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT 33 * + 30 + + + ( + + 57 ) + + 24 DIV 97
----
1047

skipif mysql # not compatible
query I rowsort label-2342
SELECT 33 * + 30 + + + ( + + 57 ) + + 24 / 97
----
1047

query II rowsort
SELECT + 32 AS col2, 4 col0
----
32
4

query I rowsort
SELECT + + ( - + 16 ) * - 32 * + - 21 * + 77 AS col0
----
-827904

query I rowsort
SELECT + + 53 * - + 54
----
-2862

query II rowsort
SELECT ALL + - 4 AS col1, 93 + 59 AS col2
----
-4
152

query I rowsort
SELECT DISTINCT - 75 * + 85 + + 59 AS col1
----
-6316

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2349
SELECT ALL - CAST( NULL AS SIGNED ) * 54 / - + 92 * - - 49 + + - 68 * + MAX( DISTINCT + ( - + 43 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL - CAST ( NULL AS INTEGER ) * 54 / - + 92 * - - 49 + + - 68 * + MAX ( DISTINCT + ( - + 43 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2350
SELECT + 96 + CASE + 82 WHEN + CAST( NULL AS SIGNED ) THEN + - 63 * 77 WHEN 93 THEN NULL END * + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT + 96 + CASE + 82 WHEN + CAST ( NULL AS INTEGER ) THEN + - 63 * 77 WHEN 93 THEN NULL END * + 87 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2351
SELECT 37 * - COUNT ( * ) + 45 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT CASE 60 WHEN - 85 * + + COUNT( - 19 ) * + 65 THEN + 95 WHEN - 9 THEN NULL ELSE + 12 END
----
12

skipif mysql # not compatible
query I rowsort label-2352
SELECT CASE 60 WHEN - 85 * + + COUNT ( - 19 ) * + 65 THEN + 95 WHEN - 9 THEN NULL ELSE + 12 END
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2353
SELECT ALL MIN( 30 ) * + NULLIF ( - 58, + 81 ) + COUNT( * ) - + - MAX( - + CAST( NULL AS DECIMAL ) ) + + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL MIN ( 30 ) * + NULLIF ( - 58, + 81 ) + COUNT ( * ) - + - MAX ( - + CAST ( NULL AS REAL ) ) + + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT - 64 + - 88 + - + NULLIF ( + + 76, + 85 ) - + 71 * + - COUNT( * ) * 79 AS col2
----
5381

skipif mysql # not compatible
query I rowsort label-2354
SELECT - 64 + - 88 + - + NULLIF ( + + 76, + 85 ) - + 71 * + - COUNT ( * ) * 79 AS col2
----
5381

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ALL - 68 * + - COUNT( * ) - + + 1
----
67

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL - 68 * + - COUNT ( * ) - + + 1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT DISTINCT SUM( ALL 48 )
----
48

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT SUM ( ALL 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT ALL ( - - 62 ) * 57 + - - 4 - + 27 * COUNT( - 89 )
----
3511

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL ( - - 62 ) * 57 + - - 4 - + 27 * COUNT ( - 89 )
----
3511

query I rowsort
SELECT ALL COALESCE ( - ( - 23 ), 55, 67 * - 14 ) AS col1
----
23

query I rowsort
SELECT DISTINCT + COALESCE ( - 77, + + 38 ) * + 24
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT ALL - 25 * SUM( DISTINCT + 2 ) col0
----
-50

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL - 25 * SUM ( DISTINCT + 2 ) col0
----
-50

query I rowsort
SELECT ( 48 ) - - 19 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT + NULLIF ( + 53, + COUNT( * ) + + COALESCE ( 40, - - 0, + COUNT( * ) ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2363
SELECT + NULLIF ( + 53, + COUNT ( * ) + + COALESCE ( 40, - - 0, + COUNT ( * ) ) ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2364
SELECT DISTINCT + MAX( DISTINCT + 96 ) AS col1, 19 * + 99 AS col0
----
96
1881

skipif mysql # not compatible
query II rowsort label-2364
SELECT DISTINCT + MAX ( DISTINCT + 96 ) AS col1, 19 * + 99 AS col0
----
96
1881

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT - SUM( 26 ) * - 90 + ( - 17 ) * + 13 AS col0
----
2119

skipif mysql # not compatible
query I rowsort label-2365
SELECT - SUM ( 26 ) * - 90 + ( - 17 ) * + 13 AS col0
----
2119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2366
SELECT ALL - - 30 DIV - 51 * - 42 * - 15 - + 39 + + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL - - 30 / - 51 * - 42 * - 15 - + 39 + + COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2367
SELECT 85 + - COALESCE ( 27, - 73 * - NULLIF ( - 87, - 7 DIV - - 21 + + 53 ) - 73, + 15 * - 36 DIV + + 32 + - 52 * 71 + - COUNT( * ) + MAX( ALL + 99 ) * - COUNT( DISTINCT 32 ) )
----
58

skipif mysql # not compatible
query I rowsort label-2367
SELECT 85 + - COALESCE ( 27, - 73 * - NULLIF ( - 87, - 7 / - - 21 + + 53 ) - 73, + 15 * - 36 / + + 32 + - 52 * 71 + - COUNT ( * ) + MAX ( ALL + 99 ) * - COUNT ( DISTINCT 32 ) )
----
58

query I rowsort
SELECT - - NULLIF ( 68, + ( - 84 ) )
----
68

query I rowsort
SELECT - 55 * + 30 - + - 58 + - - 28 * - ( - 0 ) col1
----
-1592

onlyif mysql # DIV for integer division: 
query I rowsort label-2370
SELECT ALL - 93 DIV - 63 + - 54
----
-53

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL - 93 / - 63 + - 54
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-2371
SELECT 82 DIV 46 + + - 76 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-2371
SELECT 82 / 46 + + - 76 AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2372
SELECT DISTINCT - - ( 5 ) AS col1, - CAST( + 81 AS SIGNED )
----
5
-81

skipif mysql # not compatible
query II rowsort label-2372
SELECT DISTINCT - - ( 5 ) AS col1, - CAST ( + 81 AS INTEGER )
----
5
-81

query I rowsort
SELECT ALL + + 25 + 41 AS col2
----
66

query I rowsort
SELECT ALL 11 + - - 47
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT DISTINCT + 68 + NULLIF ( - 71, + 64 + SUM( CASE + - 71 WHEN + 76 * + + 12 THEN NULL WHEN - 92 THEN NULL ELSE - 82 * + 52 * + 94 END ) ) * + - 77 * - + 29 AS col1
----
-158475

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT + 68 + NULLIF ( - 71, + 64 + SUM ( CASE + - 71 WHEN + 76 * + + 12 THEN NULL WHEN - 92 THEN NULL ELSE - 82 * + 52 * + 94 END ) ) * + - 77 * - + 29 AS col1
----
-158475

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT + 85 + - 71 + - 60 * + - COUNT( * ) * + 59 AS col0
----
3554

skipif mysql # not compatible
query I rowsort label-2376
SELECT + 85 + - 71 + - 60 * + - COUNT ( * ) * + 59 AS col0
----
3554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2377
SELECT ALL + - MIN( + - 34 ) * CASE + + 33 WHEN + 31 * - 45 + + 56 + CAST( - 44 AS SIGNED ) * - + 51 THEN NULL ELSE + 98 END
----
3332

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL + - MIN ( + - 34 ) * CASE + + 33 WHEN + 31 * - 45 + + 56 + CAST ( - 44 AS INTEGER ) * - + 51 THEN NULL ELSE + 98 END
----
3332

query I rowsort
SELECT - 94 * ( 50 ) AS col1
----
-4700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2379
SELECT ALL - 35 + + 59 + - + CAST( + 88 AS SIGNED ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL - 35 + + 59 + - + CAST ( + 88 AS INTEGER ) AS col2
----
-64

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

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

query II rowsort
SELECT + 0, + 8 * - 34 AS col2
----
0
-272

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

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

query I rowsort
SELECT ALL 70 + + + 68 AS col0
----
138

query II rowsort
SELECT 45 AS col0, - 68
----
45
-68

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2386
SELECT ALL 22 DIV - + CAST( + 98 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL 22 / - + CAST ( + 98 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT 31 - 66
----
-35

query I rowsort
SELECT ALL - 6 - + 39
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2389
SELECT DISTINCT 57 - 83 * - SUM( ALL + CASE - 69 WHEN 69 * - + 90 THEN + CAST( 41 AS SIGNED ) ELSE - 20 END ) AS col1
----
-1603

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT 57 - 83 * - SUM ( ALL + CASE - 69 WHEN 69 * - + 90 THEN + CAST ( 41 AS INTEGER ) ELSE - 20 END ) AS col1
----
-1603

query I rowsort
SELECT 57 * - - 76 AS col2
----
4332

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2391
SELECT 69 * - CAST( - 86 AS SIGNED ), + 62 AS col2
----
5934
62

skipif mysql # not compatible
query II rowsort label-2391
SELECT 69 * - CAST ( - 86 AS INTEGER ), + 62 AS col2
----
5934
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2392
SELECT 16 * + + 18 + + + 64 DIV + 37 col0
----
289

skipif mysql # not compatible
query I rowsort label-2392
SELECT 16 * + + 18 + + + 64 / + 37 col0
----
289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2393
SELECT MIN( DISTINCT - 48 ) - + 42 + + - 77 + + 47 / - COUNT( * ) + ( CASE + 77 WHEN MIN( DISTINCT ( - 78 ) ) THEN - ( - 37 ) ELSE NULL END ) + + + NULLIF ( - - CAST( NULL AS SIGNED ), 5 + - COALESCE ( - ( - + 2 ), - ( - 43 ), + + CASE - - 95 WHEN COUNT( DISTINCT 46 ) THEN + COUNT( 86 ) END * - - 82 ) ) / - + MIN( DISTINCT + 4 ) * + COUNT( * ) + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2393
SELECT MIN ( DISTINCT - 48 ) - + 42 + + - 77 + + 47 / - COUNT ( * ) + ( CASE + 77 WHEN MIN ( DISTINCT ( - 78 ) ) THEN - ( - 37 ) ELSE NULL END ) + + + NULLIF ( - - CAST ( NULL AS INTEGER ), 5 + - COALESCE ( - ( - + 2 ), - ( - 43 ), + + CASE - - 95 WHEN COUNT ( DISTINCT 46 ) THEN + COUNT ( 86 ) END * - - 82 ) ) / - + MIN ( DISTINCT + 4 ) * + COUNT ( * ) + - 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2394
SELECT ALL 56 - 54 + - CAST( NULL AS SIGNED ) * + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL 56 - 54 + - CAST ( NULL AS INTEGER ) * + 14 AS col0
----
NULL

query I rowsort
SELECT ( - 72 ) + + 49 * - 97
----
-4825

query II rowsort
SELECT - 87 AS col2, 88 * + 37 AS col1
----
-87
3256

query II rowsort
SELECT - 40 col2, - 82
----
-40
-82

query I rowsort
SELECT 75 + + 7 AS col2
----
82

query I rowsort
SELECT DISTINCT NULLIF ( - 12, + 16 ) AS col2
----
-12

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

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

query I rowsort
SELECT ALL + 13 + - 20 AS col0
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT CASE COALESCE ( - COUNT( * ), - ( + - 39 ), - ( + 35 ) ) WHEN - + 20 THEN NULL WHEN - COUNT( * ) - NULLIF ( + 6, + + COUNT( * ) ) * 31 THEN - COUNT( * ) WHEN - COUNT( + - 95 ) * + - 68 THEN - NULLIF ( 60, - 77 ) * - 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2403
SELECT CASE COALESCE ( - COUNT ( * ), - ( + - 39 ), - ( + 35 ) ) WHEN - + 20 THEN NULL WHEN - COUNT ( * ) - NULLIF ( + 6, + + COUNT ( * ) ) * 31 THEN - COUNT ( * ) WHEN - COUNT ( + - 95 ) * + - 68 THEN - NULLIF ( 60, - 77 ) * - 14 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2404
SELECT 85 * + 48 DIV + 12 * + COUNT( * ) - 88
----
252

skipif mysql # not compatible
query I rowsort label-2404
SELECT 85 * + 48 / + 12 * + COUNT ( * ) - 88
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT COALESCE ( 65, - 15 ) + ( + - 99 ) - MIN( DISTINCT 77 ) + - 50 * + ( - 35 ) * 92 - - + 15
----
160904

skipif mysql # not compatible
query I rowsort label-2405
SELECT COALESCE ( 65, - 15 ) + ( + - 99 ) - MIN ( DISTINCT 77 ) + - 50 * + ( - 35 ) * 92 - - + 15
----
160904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2406
SELECT ALL CAST( - SUM( DISTINCT + 4 ) AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL CAST ( - SUM ( DISTINCT + 4 ) AS INTEGER ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-2407
SELECT DISTINCT - - COUNT( * ) * - + 40 * + 26 AS col2, + ( + 19 )
----
-1040
19

skipif mysql # not compatible
query II rowsort label-2407
SELECT DISTINCT - - COUNT ( * ) * - + 40 * + 26 AS col2, + ( + 19 )
----
-1040
19

query I rowsort
SELECT + 3 + + - 47 AS col0
----
-44

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

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

query I rowsort
SELECT ALL - + 85 + - ( + 2 )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-2411
SELECT ALL 89 AS col0, COUNT( * ) * + 29
----
89
29

skipif mysql # not compatible
query II rowsort label-2411
SELECT ALL 89 AS col0, COUNT ( * ) * + 29
----
89
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT - 69 * - ( + + 73 ) * 96 + + 47 + + 66 + COUNT( + + ( - - 47 ) ) AS col2
----
483666

skipif mysql # not compatible
query I rowsort label-2412
SELECT - 69 * - ( + + 73 ) * 96 + + 47 + + 66 + COUNT ( + + ( - - 47 ) ) AS col2
----
483666

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2414
SELECT ALL - ( 7 ) * + + COUNT( * ) + - - 53 + - + COALESCE ( 21, - 62 / - COUNT( * ) ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL - ( 7 ) * + + COUNT ( * ) + - - 53 + - + COALESCE ( 21, - 62 / - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + + 46 AS col2, 75 AS col2
----
46
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT DISTINCT - - SUM( - 14 ) * + 52 + 70 + - COUNT( * ) * - + 88 AS col2
----
-570

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT - - SUM ( - 14 ) * + 52 + 70 + - COUNT ( * ) * - + 88 AS col2
----
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT DISTINCT + + COUNT( * ) * - CASE + COUNT( * ) WHEN - 68 THEN 83 WHEN - COALESCE ( - 11, + SUM( + 85 ) + + + 77 ) THEN NULL ELSE NULL END + + + COUNT( * ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT + + COUNT ( * ) * - CASE + COUNT ( * ) WHEN - 68 THEN 83 WHEN - COALESCE ( - 11, + SUM ( + 85 ) + + + 77 ) THEN NULL ELSE NULL END + + + COUNT ( * ) + - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT 41 + 2 AS col2, + 65
----
43
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT ALL - CAST( - 1 AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL - CAST ( - 1 AS INTEGER ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT - ( + COALESCE ( CAST ( + + NULLIF ( - + COUNT ( * ), COUNT ( * ) ) AS INTEGER ), + COUNT ( * ) ) ) * + 71
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT 31 + NULLIF ( + - 73, + - NULLIF ( 82, - 77 * - SUM( ALL 43 ) * 36 ) * - 35 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2421
SELECT 31 + NULLIF ( + - 73, + - NULLIF ( 82, - 77 * - SUM ( ALL 43 ) * 36 ) * - 35 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT DISTINCT - NULLIF ( 12, - COUNT( DISTINCT - 86 ) ) * 70 * - 45 + CASE - + AVG ( ALL 3 ) WHEN NULLIF ( COUNT( * ), + 49 * - NULLIF ( 37, + - AVG ( ALL - + 86 ) ) * + ( + COUNT( * ) ) - ( + 48 ) ) * - 9 THEN 3 * - 52 ELSE NULL END + + AVG ( DISTINCT - 4 ) + + - 16 + - + 13 + + - 48 * 71 / + + 59 - SUM( - 87 ) * + 88 - + - SUM( ALL 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT - NULLIF ( 12, - COUNT ( DISTINCT - 86 ) ) * 70 * - 45 + CASE - + AVG ( ALL 3 ) WHEN NULLIF ( COUNT ( * ), + 49 * - NULLIF ( 37, + - AVG ( ALL - + 86 ) ) * + ( + COUNT ( * ) ) - ( + 48 ) ) * - 9 THEN 3 * - 52 ELSE NULL END + + AVG ( DISTINCT - 4 ) + + - 16 + - + 13 + + - 48 * 71 / + + 59 - SUM ( - 87 ) * + 88 - + - SUM ( ALL 74 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 16 - + 68 * + ( + 75 ) * + 29 AS col2
----
-147884

query I rowsort
SELECT DISTINCT - 2 * - 60 * + 18 AS col1
----
2160

query I rowsort
SELECT 60 * - 0 AS col1
----
0

query II rowsort
SELECT + ( - 72 ) + - 75 * + - 31 AS col2, 40
----
2253
40

query I rowsort
SELECT - 21 * + 99
----
-2079

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2428
SELECT DISTINCT 50 DIV 26, CASE + + 45 WHEN MIN( - ( 42 ) ) THEN COALESCE ( SUM( DISTINCT 14 ), + SUM( + 32 ) ) WHEN + 93 DIV - - 94 - CASE WHEN NOT ( NULL ) NOT BETWEEN - 80 AND NULL THEN + 61 END THEN - - COUNT( * ) DIV + ( 87 ) ELSE - - COUNT( * ) END AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-2428
SELECT DISTINCT 50 / 26, CASE + + 45 WHEN MIN ( - ( 42 ) ) THEN COALESCE ( SUM ( DISTINCT 14 ), + SUM ( + 32 ) ) WHEN + 93 / - - 94 - CASE WHEN NOT ( NULL ) NOT BETWEEN - 80 AND NULL THEN + 61 END THEN - - COUNT ( * ) / + ( 87 ) ELSE - - COUNT ( * ) END AS col2
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2429
SELECT DISTINCT 67 * CASE + + 88 WHEN + COUNT( + 69 ) THEN CAST( NULL AS SIGNED ) - + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT 67 * CASE + + 88 WHEN + COUNT ( + 69 ) THEN CAST ( NULL AS INTEGER ) - + 66 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT + COUNT( ALL - + 5 ) * 52 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2430
SELECT + COUNT ( ALL - + 5 ) * 52 AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2431
SELECT ALL 2 * - 44, 34 + COUNT( DISTINCT + CAST( - 80 AS SIGNED ) ) AS col2
----
-88
35

skipif mysql # not compatible
query II rowsort label-2431
SELECT ALL 2 * - 44, 34 + COUNT ( DISTINCT + CAST ( - 80 AS INTEGER ) ) AS col2
----
-88
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2432
SELECT + + 81 DIV + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2432
SELECT + + 81 / + 85 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2433
SELECT DISTINCT 3 DIV - - 13 * 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT 3 / - - 13 * 39 AS col2
----
0

query I rowsort
SELECT ALL + 17 + - - 10 * + 8 AS col1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2435
SELECT + - 48 DIV - 59 col1
----
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT + - 48 / - 59 col1
----
0

query I rowsort
SELECT ALL 30 * + 12 * + 70 + - ( - 62 )
----
25262

onlyif mysql # DIV for integer division: 
query I rowsort label-2437
SELECT + 18 DIV + - 24 * + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT + 18 / + - 24 * + 72 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2438
SELECT + COUNT( ALL + 88 ) DIV - - MIN( DISTINCT - 27 ) * 31 + COUNT( ALL 70 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2438
SELECT + COUNT ( ALL + 88 ) / - - MIN ( DISTINCT - 27 ) * 31 + COUNT ( ALL 70 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2439
SELECT ALL - 60 + 55 - - + 27 * - 72 + 34 DIV - - COUNT( * )
----
-1915

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL - 60 + 55 - - + 27 * - 72 + 34 / - - COUNT ( * )
----
-1915

query I rowsort
SELECT ALL 70 + - - 45 AS col2
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2441
SELECT + COUNT( * ) - - 81 DIV - 1 + + 13 + - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-2441
SELECT + COUNT ( * ) - - 81 / - 1 + + 13 + - COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL - 90 * - MAX( DISTINCT 68 )
----
6120

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - 90 * - MAX ( DISTINCT 68 )
----
6120

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

query I rowsort
SELECT DISTINCT - - ( + 49 ) + - NULLIF ( - 37, ( - - ( + 68 ) ) ) - + 33 AS col0
----
53

query I rowsort
SELECT + - ( 55 ) * - 73
----
4015

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT ALL - 41 + - SUM( - 52 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL - 41 + - SUM ( - 52 ) AS col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2447
SELECT - 3 - + - COALESCE ( - + MAX( + 70 ), - - 35 DIV - - 49 DIV - 12 ) DIV + + 87 * + COUNT( * ) - ( 55 ) * - 6
----
327

skipif mysql # not compatible
query I rowsort label-2447
SELECT - 3 - + - COALESCE ( - + MAX ( + 70 ), - - 35 / - - 49 / - 12 ) / + + 87 * + COUNT ( * ) - ( 55 ) * - 6
----
327

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2449
SELECT ALL - ( + - 0 ) * + - CAST( NULL AS SIGNED ) * + - 92, 60 AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-2449
SELECT ALL - ( + - 0 ) * + - CAST ( NULL AS INTEGER ) * + - 92, 60 AS col0
----
NULL
60

query I rowsort
SELECT DISTINCT 58 * 7 AS col2
----
406

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2452
SELECT - 44 DIV + - ( + SUM( - - 99 ) ) + + ( - 67 ) + - - COALESCE ( 1, + ( + ( NULLIF ( + - 82, - 14 ) ) ), - - 74 - 51 * - 65 )
----
-66

skipif mysql # not compatible
query I rowsort label-2452
SELECT - 44 / + - ( + SUM ( - - 99 ) ) + + ( - 67 ) + - - COALESCE ( 1, + ( + ( NULLIF ( + - 82, - 14 ) ) ), - - 74 - 51 * - 65 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL COUNT( ALL 45 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL COUNT ( ALL 45 ) * + COUNT ( * )
----
1

query I rowsort
SELECT - 63 + + 16 AS col1
----
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL + MIN( DISTINCT - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL + MIN ( DISTINCT - 11 ) AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-2457
SELECT + 51 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-2457
SELECT + 51 / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT - COUNT( ALL + 9 ) * 98 * - 20
----
1960

skipif mysql # not compatible
query I rowsort label-2458
SELECT - COUNT ( ALL + 9 ) * 98 * - 20
----
1960

onlyif mysql # DIV for integer division: 
query I rowsort label-2459
SELECT DISTINCT + 43 DIV + 80 col1
----
0

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT + 43 / + 80 col1
----
0

query I rowsort
SELECT NULLIF ( 23, - 39 ) AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2461
SELECT - COUNT( * ) DIV - ( - 66 ) DIV ( COUNT( * ) ) * - + 41
----
0

skipif mysql # not compatible
query I rowsort label-2461
SELECT - COUNT ( * ) / - ( - 66 ) / ( COUNT ( * ) ) * - + 41
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2462
SELECT ALL + 16 * + COUNT( * ) DIV 68 * 92 DIV + 4, SUM( DISTINCT - 55 ) * - 8 + - + 27 AS col2
----
0
413

skipif mysql # not compatible
query II rowsort label-2462
SELECT ALL + 16 * + COUNT ( * ) / 68 * 92 / + 4, SUM ( DISTINCT - 55 ) * - 8 + - + 27 AS col2
----
0
413

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

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

query I rowsort
SELECT ALL - 53 * - 35
----
1855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT 17 * - + COALESCE ( + 90, - + 80 / - 19 ) - 98 - - + 7 * - CAST( NULL AS SIGNED ) + 45 + - ( 56 ) + + 31 * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT 17 * - + COALESCE ( + 90, - + 80 / - 19 ) - 98 - - + 7 * - CAST ( NULL AS INTEGER ) + 45 + - ( 56 ) + + 31 * 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2466
SELECT DISTINCT + ( + CASE NULLIF ( + + CAST( - CAST( + - 26 AS SIGNED ) AS SIGNED ), - 54 ) WHEN NULLIF ( - - 90, - 97 * + 44 + 49 - 49 / + 15 ) * + 13 THEN - 97 - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT + ( + CASE NULLIF ( + + CAST ( - CAST ( + - 26 AS INTEGER ) AS INTEGER ), - 54 ) WHEN NULLIF ( - - 90, - 97 * + 44 + 49 - 49 / + 15 ) * + 13 THEN - 97 - COUNT ( * ) END )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2467
SELECT + COUNT ( * ) * ( + 82 ) + 65 AS col0
----
147

query I rowsort
SELECT + 61 - 61
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2469
SELECT ALL CAST( - 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL CAST ( - 23 AS INTEGER )
----
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT + 37 - + COALESCE ( 39, - NULLIF ( + NULLIF ( COUNT( * ), - 49 ), + 41 + 44 ), - 12 * + 23, MIN( DISTINCT + 40 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-2471
SELECT + 37 - + COALESCE ( 39, - NULLIF ( + NULLIF ( COUNT ( * ), - 49 ), + 41 + 44 ), - 12 * + 23, MIN ( DISTINCT + 40 ) )
----
-2

query I rowsort
SELECT - 8 + 16
----
8

query I rowsort
SELECT - 1 + 44 * 48
----
2111

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL COALESCE ( 78, 67 * 10, MAX( - 27 ) ) * + 4 AS col1
----
312

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL COALESCE ( 78, 67 * 10, MAX ( - 27 ) ) * + 4 AS col1
----
312

query I rowsort
SELECT DISTINCT + 9 + 2
----
11

query I rowsort
SELECT - NULLIF ( 65, 12 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL + COUNT( 54 ) + - 90 col2
----
-89

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL + COUNT ( 54 ) + - 90 col2
----
-89

query I rowsort
SELECT + 71 * 83 AS col1
----
5893

query I rowsort
SELECT - 41 * - COALESCE ( 92 * + 51, 89 + + 62 )
----
192372

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL 53 * MIN( ALL + 63 ) AS col2
----
3339

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL 53 * MIN ( ALL + 63 ) AS col2
----
3339

query I rowsort
SELECT DISTINCT ( 58 ) * 59 AS col2
----
3422

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

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

query I rowsort
SELECT + 35 * 63
----
2205

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT + COALESCE ( CASE 73 WHEN - 95 THEN + MAX( DISTINCT 46 ) ELSE NULL END, - 40 + + 81, + ( - 61 ) * + COUNT( * ) + 50 ) * COALESCE ( 85, + ( 25 ) - + 97 * - 25 )
----
3485

skipif mysql # not compatible
query I rowsort label-2485
SELECT + COALESCE ( CASE 73 WHEN - 95 THEN + MAX ( DISTINCT 46 ) ELSE NULL END, - 40 + + 81, + ( - 61 ) * + COUNT ( * ) + 50 ) * COALESCE ( 85, + ( 25 ) - + 97 * - 25 )
----
3485

query I rowsort
SELECT + 0 + - 72
----
-72

query I rowsort
SELECT + 11 * + 40
----
440

query I rowsort
SELECT ALL - 20 * - 18
----
360

query I rowsort
SELECT + 81 * 32 AS col1
----
2592

query I rowsort
SELECT ALL + 47 * 16
----
752

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT 31 + - COUNT( * ) * 74
----
-43

skipif mysql # not compatible
query I rowsort label-2491
SELECT 31 + - COUNT ( * ) * 74
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT COALESCE ( - 74, + 24 ) DIV + 31 - + 45 * + ( + 8 ) AS col0
----
-362

skipif mysql # not compatible
query I rowsort label-2492
SELECT COALESCE ( - 74, + 24 ) / + 31 - + 45 * + ( + 8 ) AS col0
----
-362

query I rowsort
SELECT ( 80 ) * 35
----
2800

query I rowsort
SELECT NULLIF ( + 52, + NULLIF ( 28, 38 ) ) * + 84
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT 76 + - NULLIF ( COALESCE ( + 30, COALESCE ( ( - 50 ), - 57 ) + ( COUNT( * ) ) ), 2 * 92 ) * - 59 AS col1
----
1846

skipif mysql # not compatible
query I rowsort label-2495
SELECT 76 + - NULLIF ( COALESCE ( + 30, COALESCE ( ( - 50 ), - 57 ) + ( COUNT ( * ) ) ), 2 * 92 ) * - 59 AS col1
----
1846

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

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

query I rowsort
SELECT ( 63 ) + + 56
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT DISTINCT - NULLIF ( 72, + MAX( ALL 44 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT - NULLIF ( 72, + MAX ( ALL 44 ) )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2499
SELECT ALL - COUNT( 85 ) + + CAST( + 98 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - COUNT ( 85 ) + + CAST ( + 98 AS INTEGER )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT ALL 97 + - MIN( ALL ( + 28 ) + 36 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL 97 + - MIN ( ALL ( + 28 ) + 36 ) AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2501
SELECT ALL - ( - CAST( + 3 AS SIGNED ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL - ( - CAST ( + 3 AS INTEGER ) ) AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2502
SELECT 85 DIV + 26
----
3

skipif mysql # not compatible
query I rowsort label-2502
SELECT 85 / + 26
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT ( COUNT( ALL 62 ) ) * + ( + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-2503
SELECT ( COUNT ( ALL 62 ) ) * + ( + 41 )
----
41

query I rowsort
SELECT 86 * + 90 + + 28
----
7768

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

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + 26 / COUNT ( * )
----
26

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

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

query I rowsort
SELECT 49 + - CASE 29 WHEN 25 + + 27 THEN 1 WHEN 60 - 87 * 89 THEN - 53 ELSE NULL END
----
NULL

query I rowsort
SELECT + 82 * 44
----
3608

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2509
SELECT + ( + CAST( NULL AS DECIMAL ) ) + 5 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT + ( + CAST ( NULL AS REAL ) ) + 5 col1
----
NULL

query I rowsort
SELECT DISTINCT - 76 * 52 AS col1
----
-3952

query I rowsort
SELECT ALL + - NULLIF ( + 20, 26 ) * + 58
----
-1160

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT - + MIN( DISTINCT 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-2514
SELECT - + MIN ( DISTINCT 77 )
----
-77

query I rowsort
SELECT - 89 - - 10
----
-79

query I rowsort
SELECT 98 * - 17
----
-1666

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

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

query I rowsort
SELECT AVG ( - CASE + 92 WHEN 59 / - 25 THEN NULL WHEN + 4 THEN NULL WHEN + 21 THEN - 23 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT + 81 + COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2519
SELECT + 81 + COUNT ( * ) AS col1
----
82

query I rowsort
SELECT ALL NULLIF ( 89, ( - 54 ) ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT CASE COUNT( * ) WHEN 57 THEN + 2 WHEN - COUNT( * ) THEN NULL WHEN 25 THEN NULL ELSE NULL END * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT CASE COUNT ( * ) WHEN 57 THEN + 2 WHEN - COUNT ( * ) THEN NULL WHEN 25 THEN NULL ELSE NULL END * 32
----
NULL

query I rowsort
SELECT DISTINCT - 9 * 18
----
-162

query I rowsort
SELECT 24 + 24
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT 40 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-2524
SELECT 40 / 52
----
0

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

query I rowsort
SELECT 50 * 45
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT CASE + 53 WHEN 19 THEN - COUNT( * ) * + 60 END * + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT CASE + 53 WHEN 19 THEN - COUNT ( * ) * + 60 END * + 52 AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT ALL 97 + COALESCE ( 52, + 41 * + 64 ) + 82 * - 83 AS col1
----
-6657

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2531
SELECT DISTINCT COUNT( * ) + + + CAST( ( SUM( DISTINCT - 52 ) ) AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT COUNT ( * ) + + + CAST ( ( SUM ( DISTINCT - 52 ) ) AS INTEGER )
----
-51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2533
SELECT ALL 44 + + 51 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

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

query I rowsort
SELECT - 79 - - ( + 37 ) + - 71 AS col2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT + - ( MAX( + COALESCE ( + 72, - 19 * - 14 + 63 * 11, 96 ) ) )
----
-72

skipif mysql # not compatible
query I rowsort label-2535
SELECT + - ( MAX ( + COALESCE ( + 72, - 19 * - 14 + 63 * 11, 96 ) ) )
----
-72

query I rowsort
SELECT DISTINCT + 36 + 2
----
38

query I rowsort
SELECT - 68 * 0 + 14
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT MAX( + ( 75 ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2539
SELECT MAX ( + ( 75 ) ) AS col2
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT - AVG ( ALL 1 ) * + 28 + CASE - 68 WHEN - ( + 86 ) * COUNT( * ) THEN + 69 WHEN + 78 + 93 / - 16 THEN 80 + + 57 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2541
SELECT - AVG ( ALL 1 ) * + 28 + CASE - 68 WHEN - ( + 86 ) * COUNT ( * ) THEN + 69 WHEN + 78 + 93 / - 16 THEN 80 + + 57 END AS col1
----
NULL

query I rowsort
SELECT 54 * - 97 AS col0
----
-5238

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT + 86 + - 94 + COUNT( * ) * - 4
----
-12

skipif mysql # not compatible
query I rowsort label-2543
SELECT + 86 + - 94 + COUNT ( * ) * - 4
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT COUNT( * ) - 30 * 7 AS col1
----
-209

skipif mysql # not compatible
query I rowsort label-2544
SELECT COUNT ( * ) - 30 * 7 AS col1
----
-209

query I rowsort
SELECT ALL + 62 - + 38 * 60 AS col1
----
-2218

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT - 9 + + + 94 * - COUNT( * )
----
-103

skipif mysql # not compatible
query I rowsort label-2546
SELECT - 9 + + + 94 * - COUNT ( * )
----
-103

query I rowsort
SELECT ALL - 71 * + - 53 - 21
----
3742

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT + 68 * - SUM( + 42 )
----
-2856

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT + 68 * - SUM ( + 42 )
----
-2856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2549
SELECT - CASE CAST( ( SUM( ALL 28 ) ) AS SIGNED ) WHEN - AVG ( ALL 95 ) THEN - 62 * 11 ELSE COALESCE ( MAX( 95 ), + 16 * 39 ) DIV + 44 END + + 36 col1
----
34

skipif mysql # not compatible
query I rowsort label-2549
SELECT - CASE CAST ( ( SUM ( ALL 28 ) ) AS INTEGER ) WHEN - AVG ( ALL 95 ) THEN - 62 * 11 ELSE COALESCE ( MAX ( 95 ), + 16 * 39 ) / + 44 END + + 36 col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2550
SELECT 94 AS col0, + 67 + COUNT( - 94 ) + ( COUNT( * ) + + 3 )
----
94
72

skipif mysql # not compatible
query II rowsort label-2550
SELECT 94 AS col0, + 67 + COUNT ( - 94 ) + ( COUNT ( * ) + + 3 )
----
94
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2551
SELECT 29 AS col2, - COUNT( - + CASE + 12 WHEN - 87 THEN - 75 END ) + + COUNT( * ) AS col2
----
29
1

skipif mysql # not compatible
query II rowsort label-2551
SELECT 29 AS col2, - COUNT ( - + CASE + 12 WHEN - 87 THEN - 75 END ) + + COUNT ( * ) AS col2
----
29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT + MAX( 54 ) + - 74
----
-20

skipif mysql # not compatible
query I rowsort label-2552
SELECT + MAX ( 54 ) + - 74
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT - COUNT( * ) + - COUNT( * ) + - 94 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-2553
SELECT - COUNT ( * ) + - COUNT ( * ) + - 94 AS col1
----
-96

query I rowsort
SELECT - 46 + - - 17 AS col1
----
-29

query I rowsort
SELECT - 5 * - 10 AS col1
----
50

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

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

query I rowsort
SELECT ALL NULLIF ( + 14, - + NULLIF ( - 52, - 94 ) ) AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2558
SELECT DISTINCT NULLIF ( + CAST( + COUNT( * ) AS SIGNED ), - 41 - 34 * + 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT NULLIF ( + CAST ( + COUNT ( * ) AS INTEGER ), - 41 - 34 * + 92 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2559
SELECT ALL + 57 + + MIN( - + CAST( - 79 AS SIGNED ) ) + 93 * + 21 AS col1
----
2089

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL + 57 + + MIN ( - + CAST ( - 79 AS INTEGER ) ) + 93 * + 21 AS col1
----
2089

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

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

query I rowsort
SELECT - 92 + - 31 * + - 31
----
869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2562
SELECT DISTINCT - 12 DIV + MAX( ( 71 ) ) * 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT - 12 / + MAX ( ( 71 ) ) * 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT - MAX( ALL 94 ) + ( COUNT( * ) ) + 64 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-2563
SELECT - MAX ( ALL 94 ) + ( COUNT ( * ) ) + 64 AS col0
----
-29

query I rowsort
SELECT - 39 * + 63 AS col0
----
-2457

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2566
SELECT 22 DIV 98 * - 35 + - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2566
SELECT 22 / 98 * - 35 + - COUNT ( * ) col2
----
-1

query I rowsort
SELECT + 38 + 68 AS col2
----
106

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2568
SELECT ALL 30 * - 51 + - NULLIF ( + NULLIF ( 3, 76 + 58 ), 36 + MIN( 82 ) * - SUM( ALL + 42 * + COALESCE ( - CAST( NULL AS DECIMAL ), 73, + 34 / + 58 ) ) ) col2
----
-1533

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL 30 * - 51 + - NULLIF ( + NULLIF ( 3, 76 + 58 ), 36 + MIN ( 82 ) * - SUM ( ALL + 42 * + COALESCE ( - CAST ( NULL AS REAL ), 73, + 34 / + 58 ) ) ) col2
----
-1533

query II rowsort
SELECT ALL + 49, 2 AS col0
----
49
2

query II rowsort
SELECT + 36 AS col0, 20
----
36
20

query I rowsort
SELECT ALL - 95 * 40 AS col1
----
-3800

onlyif mysql # DIV for integer division: 
query I rowsort label-2572
SELECT 22 DIV + 26 * + + 6 + - 79
----
-79

skipif mysql # not compatible
query I rowsort label-2572
SELECT 22 / + 26 * + + 6 + - 79
----
-79

query I rowsort
SELECT DISTINCT - + 70 * - + 61
----
4270

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT ALL 8 * + COUNT( * ) * ( 99 ) * 82 + - 19 - 28 AS col2
----
64897

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL 8 * + COUNT ( * ) * ( 99 ) * 82 + - 19 - 28 AS col2
----
64897

query I rowsort
SELECT ALL + 60 * - NULLIF ( + - 3, 50 ) * - 6 - 54 * + 86 AS col1
----
-5724

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT DISTINCT + - CASE - COUNT( * ) WHEN - COUNT( * ) THEN 19 + 41 WHEN 74 + + COUNT( - 89 ) * + 73 THEN NULL WHEN - COUNT( * ) * NULLIF ( - 88 * 75, + 34 ) + 37 THEN NULL END AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT + - CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN 19 + 41 WHEN 74 + + COUNT ( - 89 ) * + 73 THEN NULL WHEN - COUNT ( * ) * NULLIF ( - 88 * 75, + 34 ) + 37 THEN NULL END AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2577
SELECT + CASE 77 WHEN - 3 THEN AVG ( DISTINCT 45 ) + + ( 9 ) WHEN 41 THEN 86 + - CAST( + 49 + - 65 AS SIGNED ) * - 37 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2577
SELECT + CASE 77 WHEN - 3 THEN AVG ( DISTINCT 45 ) + + ( 9 ) WHEN 41 THEN 86 + - CAST ( + 49 + - 65 AS INTEGER ) * - 37 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 28 * + 72 + NULLIF ( 17, + 8 ) + + 10 + - 3
----
-1992

query I rowsort
SELECT ALL 10 * - + 92 * + - 44 AS col0
----
40480

query I rowsort
SELECT + 80 * - - 78
----
6240

query I rowsort
SELECT DISTINCT ( 17 ) col0
----
17

query I rowsort
SELECT ALL 37 * - 16 * 52
----
-30784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2583
SELECT ALL + CAST( - + NULLIF ( + - 84, + 71 ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL + CAST ( - + NULLIF ( + - 84, + 71 ) AS INTEGER )
----
84

query I rowsort
SELECT + - 87 * - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT + - MIN( 20 ) - + 67
----
-87

skipif mysql # not compatible
query I rowsort label-2585
SELECT + - MIN ( 20 ) - + 67
----
-87

query I rowsort
SELECT ALL + 6 + 19 * - - ( - 16 )
----
-298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2587
SELECT + + CAST( NULL AS SIGNED ) - - 96 + + 50 + - NULLIF ( 8, ( + 90 ) * 14 ) * CAST( NULL AS SIGNED ) * - CAST( CASE - MAX( ALL - 73 ) WHEN CAST( - 60 AS DECIMAL ) THEN + 51 WHEN - 75 + COUNT( * ) * 25 THEN NULL END * + ( COUNT( * ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT + + CAST ( NULL AS INTEGER ) - - 96 + + 50 + - NULLIF ( 8, ( + 90 ) * 14 ) * CAST ( NULL AS INTEGER ) * - CAST ( CASE - MAX ( ALL - 73 ) WHEN CAST ( - 60 AS REAL ) THEN + 51 WHEN - 75 + COUNT ( * ) * 25 THEN NULL END * + ( COUNT ( * ) ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT + COUNT( * ) * - SUM( + 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2588
SELECT + COUNT ( * ) * - SUM ( + 91 ) AS col1
----
-91

query I rowsort
SELECT + 5 * - - 61 AS col0
----
305

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2590
SELECT - COUNT( * ) * - CASE 85 WHEN - MIN( - CAST( NULL AS DECIMAL ) ) * - 13 THEN + 30 + 92 WHEN COUNT( * ) THEN NULLIF ( 20, + 38 ) * 68 ELSE NULL END * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT - COUNT ( * ) * - CASE 85 WHEN - MIN ( - CAST ( NULL AS REAL ) ) * - 13 THEN + 30 + 92 WHEN COUNT ( * ) THEN NULLIF ( 20, + 38 ) * 68 ELSE NULL END * + 24
----
NULL

query I rowsort
SELECT ALL - 98 + 87 AS col2
----
-11

query I rowsort
SELECT ALL 87 + 77
----
164

query I rowsort
SELECT ALL NULLIF ( - - 4, AVG ( DISTINCT - - 82 ) )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT - MAX( DISTINCT + + 13 ) - - - 59 + + + COUNT( * ) * - 12 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-2594
SELECT - MAX ( DISTINCT + + 13 ) - - - 59 + + + COUNT ( * ) * - 12 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT - 51 - + MAX( - + 81 ) * + - NULLIF ( COUNT( * ), 15 ) - 77
----
-209

skipif mysql # not compatible
query I rowsort label-2595
SELECT - 51 - + MAX ( - + 81 ) * + - NULLIF ( COUNT ( * ), 15 ) - 77
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL - COUNT( - - 16 ) * - 23
----
23

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL - COUNT ( - - 16 ) * - 23
----
23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2598
SELECT - CAST( - 58 AS SIGNED ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2598
SELECT - CAST ( - 58 AS INTEGER ) AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT - 62 + + 3 + 0 * 75 + + SUM( - CAST( NULL AS SIGNED ) + - ( ( 8 ) ) / - 58 ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT - 62 + + 3 + 0 * 75 + + SUM ( - CAST ( NULL AS INTEGER ) + - ( ( 8 ) ) / - 58 ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 54 + + 43 + - + 36
----
61

query I rowsort
SELECT - 97 - 53
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT ALL + ( + 46 ) AS col2, - COUNT( ALL - + 83 ) * - 82
----
46
82

skipif mysql # not compatible
query II rowsort label-2602
SELECT ALL + ( + 46 ) AS col2, - COUNT ( ALL - + 83 ) * - 82
----
46
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2603
SELECT DISTINCT 73 * - 20, COUNT( * ) + - - ( - 79 ) + - 64 * + 46 AS col0
----
-1460
-3022

skipif mysql # not compatible
query II rowsort label-2603
SELECT DISTINCT 73 * - 20, COUNT ( * ) + - - ( - 79 ) + - 64 * + 46 AS col0
----
-1460
-3022

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2604
SELECT - MAX( - 60 ) * 9 * 21 DIV - 70
----
-162

skipif mysql # not compatible
query I rowsort label-2604
SELECT - MAX ( - 60 ) * 9 * 21 / - 70
----
-162

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT ALL + COALESCE ( - 54, - - 62 * + COUNT( * ) * + 84 + - ( - 22 ) * + 91 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL + COALESCE ( - 54, - - 62 * + COUNT ( * ) * + 84 + - ( - 22 ) * + 91 ) AS col2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2607
SELECT ALL + COUNT( * ) DIV + 94 - + 74 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL + COUNT ( * ) / + 94 - + 74 AS col1
----
-74

query I rowsort
SELECT ALL - 98 * + 34 AS col0
----
-3332

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT 81 * + 21 + - COUNT( * ) + - 91 * - 93 AS col1
----
10163

skipif mysql # not compatible
query I rowsort label-2609
SELECT 81 * + 21 + - COUNT ( * ) + - 91 * - 93 AS col1
----
10163

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT + 97 DIV + 33 + - 66 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2610
SELECT + 97 / + 33 + - 66 AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2611
SELECT ALL + + ( - MAX( + 19 ) ) DIV - 84 + 80 DIV - 89 - - 48 col1
----
48

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL + + ( - MAX ( + 19 ) ) / - 84 + 80 / - 89 - - 48 col1
----
48

query I rowsort
SELECT - 55 + + + 13 AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT ALL + CASE + ( - ( - - 10 ) ) WHEN + 72 * CAST( + 50 / - 86 AS SIGNED ) THEN NULL WHEN 49 THEN 84 * 33 ELSE 4 END
----
4

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL + CASE + ( - ( - - 10 ) ) WHEN + 72 * CAST ( + 50 / - 86 AS INTEGER ) THEN NULL WHEN 49 THEN 84 * 33 ELSE 4 END
----
4

query I rowsort
SELECT DISTINCT + 93 * + 86
----
7998

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2615
SELECT - COUNT( 79 ) DIV ( + 22 ) + ( COALESCE ( - 72, 95 ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-2615
SELECT - COUNT ( 79 ) / ( + 22 ) + ( COALESCE ( - 72, 95 ) ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-2616
SELECT ALL + MAX( ALL + - 41 ) AS col0, - 19 AS col1
----
-41
-19

skipif mysql # not compatible
query II rowsort label-2616
SELECT ALL + MAX ( ALL + - 41 ) AS col0, - 19 AS col1
----
-41
-19

query I rowsort
SELECT - ( - + 93 ) * - + 3 + - 40
----
-319

query I rowsort
SELECT + - 90 + - - 63 col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT - MAX( - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-2619
SELECT - MAX ( - 57 )
----
57

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2621
SELECT - 57 + - + 41 + - 85 + CAST( - 44 AS SIGNED )
----
-227

skipif mysql # not compatible
query I rowsort label-2621
SELECT - 57 + - + 41 + - 85 + CAST ( - 44 AS INTEGER )
----
-227

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2623
SELECT COUNT( * ) * 54 * ( + + COUNT( * ) ) + + 24 DIV - 10
----
52

skipif mysql # not compatible
query I rowsort label-2623
SELECT COUNT ( * ) * 54 * ( + + COUNT ( * ) ) + + 24 / - 10
----
52

query I rowsort
SELECT DISTINCT 76 * + 3
----
228

query I rowsort
SELECT DISTINCT 34 + 41 * - 68
----
-2754

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT DISTINCT + CASE - - 98 WHEN 86 THEN + - MIN( ALL + 48 ) WHEN + COUNT( ALL 20 ) THEN - 41 + 74 ELSE + COUNT( * ) END + - 80
----
-79

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + CASE - - 98 WHEN 86 THEN + - MIN ( ALL + 48 ) WHEN + COUNT ( ALL 20 ) THEN - 41 + 74 ELSE + COUNT ( * ) END + - 80
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT ALL - 30 DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL - 30 / + 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL MAX( ALL 72 ) + - 29 col0
----
43

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL MAX ( ALL 72 ) + - 29 col0
----
43

query I rowsort
SELECT 69 + - - 95 col1
----
164

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2630
SELECT CASE + 39 WHEN - - 70 * - 46 THEN - AVG ( ALL - CAST( 56 AS DECIMAL ) ) / COUNT( * ) WHEN + 21 THEN 57 ELSE NULL END + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2630
SELECT CASE + 39 WHEN - - 70 * - 46 THEN - AVG ( ALL - CAST ( 56 AS REAL ) ) / COUNT ( * ) WHEN + 21 THEN 57 ELSE NULL END + 72 AS col1
----
NULL

query I rowsort
SELECT ALL 75 * - 51
----
-3825

query I rowsort
SELECT ALL 33 + - 1 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT 65 + - 22 * + MIN( + 66 ) AS col0
----
-1387

skipif mysql # not compatible
query I rowsort label-2633
SELECT 65 + - 22 * + MIN ( + 66 ) AS col0
----
-1387

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2634
SELECT 4 + + CAST( - 34 AS SIGNED ), 10 AS col1
----
-30
10

skipif mysql # not compatible
query II rowsort label-2634
SELECT 4 + + CAST ( - 34 AS INTEGER ), 10 AS col1
----
-30
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2635
SELECT DISTINCT MIN( - - COALESCE ( + 15, 22 ) ) DIV 18 + - 79
----
-79

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT MIN ( - - COALESCE ( + 15, 22 ) ) / 18 + - 79
----
-79

query II rowsort
SELECT DISTINCT 75, - 49 * + CASE - - 34 WHEN + 77 THEN + AVG ( - 76 ) / + 57 END - 43 AS col2
----
75
NULL

query I rowsort
SELECT DISTINCT 32 - 24
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT ALL 91 DIV + + 19 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL 91 / + + 19 AS col0
----
4

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2640
SELECT DISTINCT COUNT( * ) DIV + COALESCE ( - 94, 18 DIV - 99 * + 50 )
----
0

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT COUNT ( * ) / + COALESCE ( - 94, 18 / - 99 * + 50 )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL - SUM( - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL - SUM ( - 84 )
----
84

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

skipif mysql # not compatible
query I rowsort label-2643
SELECT - CAST ( NULL AS INTEGER ) + - 39 - + - 94 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2644
SELECT + MAX( - 90 ) + + 15 + 26 + + 76 DIV COUNT( * ) * + MIN( DISTINCT ( 97 ) ) AS col0
----
7323

skipif mysql # not compatible
query I rowsort label-2644
SELECT + MAX ( - 90 ) + + 15 + 26 + + 76 / COUNT ( * ) * + MIN ( DISTINCT ( 97 ) ) AS col0
----
7323

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT - - 40 * - COUNT( * ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT - - 40 * - COUNT ( * ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT + SUM( + - 51 ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-2646
SELECT + SUM ( + - 51 ) col1
----
-51

query I rowsort
SELECT 19 + + 3
----
22

query I rowsort
SELECT 21 * + - 88 AS col2
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT DISTINCT - MAX( + 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT - MAX ( + 39 ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2650
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 94 + - - CAST( + - 87 AS SIGNED ) + + CAST( + 2 AS DECIMAL ) - COUNT( * ) * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 94 + - - CAST ( + - 87 AS INTEGER ) + + CAST ( + 2 AS REAL ) - COUNT ( * ) * + 10
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2651
SELECT 98 + + - 2 + 87 + - COALESCE ( + + 52, - 8 ) DIV + 30 AS col1
----
182

skipif mysql # not compatible
query I rowsort label-2651
SELECT 98 + + - 2 + 87 + - COALESCE ( + + 52, - 8 ) / + 30 AS col1
----
182

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

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

query I rowsort
SELECT + 55 * + 9
----
495

query I rowsort
SELECT 67 + + - 74
----
-7

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

skipif mysql # not compatible
query I rowsort label-2655
SELECT MAX ( DISTINCT 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT SUM( ALL + 54 ) * - - 55 + + - 37 + 42 AS col0
----
2975

skipif mysql # not compatible
query I rowsort label-2656
SELECT SUM ( ALL + 54 ) * - - 55 + + - 37 + 42 AS col0
----
2975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2657
SELECT ALL + 98 + - + COUNT( - + 15 ) + - - COUNT( * ) DIV - 22
----
97

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL + 98 + - + COUNT ( - + 15 ) + - - COUNT ( * ) / - 22
----
97

query I rowsort
SELECT 47 * + 71
----
3337

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2659
SELECT ALL + 98 * 46 * COUNT( * ) DIV 30
----
150

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL + 98 * 46 * COUNT ( * ) / 30
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ALL - ( 82 ) * + + COUNT( * ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL - ( 82 ) * + + COUNT ( * ) AS col2
----
-82

query I rowsort
SELECT 69 * + 41 AS col0
----
2829

query I rowsort
SELECT 59 - 98
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT MIN( 31 ) * - - 36
----
1116

skipif mysql # not compatible
query I rowsort label-2663
SELECT MIN ( 31 ) * - - 36
----
1116

query I rowsort
SELECT 69 + + - 57 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ALL COUNT( * ) * - - 56 * - 4 col2
----
-224

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL COUNT ( * ) * - - 56 * - 4 col2
----
-224

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

skipif mysql # not compatible
query II rowsort label-2666
SELECT ALL 20 AS col2, COUNT ( * ) AS col0
----
20
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT 94 - - COALESCE ( - MAX( ALL - 72 ), + + 29 ) * 72 * 57 - 44 * - NULLIF ( + COUNT( * ) * + COUNT( 76 * - 97 ), - 55 * 68 + 15 ) col1
----
295626

skipif mysql # not compatible
query I rowsort label-2667
SELECT 94 - - COALESCE ( - MAX ( ALL - 72 ), + + 29 ) * 72 * 57 - 44 * - NULLIF ( + COUNT ( * ) * + COUNT ( 76 * - 97 ), - 55 * 68 + 15 ) col1
----
295626

query I rowsort
SELECT DISTINCT + 82 * - - 15 AS col0
----
1230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2669
SELECT COALESCE ( - 98, + + COUNT( * ) ) - + - CAST( 13 AS SIGNED ) - + 55 col2
----
-140

skipif mysql # not compatible
query I rowsort label-2669
SELECT COALESCE ( - 98, + + COUNT ( * ) ) - + - CAST ( 13 AS INTEGER ) - + 55 col2
----
-140

query II rowsort
SELECT ALL 77 AS col0, 37 * + + 66 AS col2
----
77
2442

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2671
SELECT COALESCE ( - ( 37 ), 99, + - 35 ) * + 50 * 92 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2671
SELECT COALESCE ( - ( 37 ), 99, + - 35 ) * + 50 * 92 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL SUM( DISTINCT + + 61 ) * 6 + 2 col0
----
368

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL SUM ( DISTINCT + + 61 ) * 6 + 2 col0
----
368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2673
SELECT CASE CASE 52 WHEN + 41 THEN - MAX( - 17 ) * + ( 12 * 80 ) + 16 END WHEN - ( + 32 ) THEN 93 + SUM( + 35 ) DIV + 98 WHEN CAST( 77 AS SIGNED ) THEN 98 DIV + 99 ELSE ( + 81 ) END + - 24
----
57

skipif mysql # not compatible
query I rowsort label-2673
SELECT CASE CASE 52 WHEN + 41 THEN - MAX ( - 17 ) * + ( 12 * 80 ) + 16 END WHEN - ( + 32 ) THEN 93 + SUM ( + 35 ) / + 98 WHEN CAST ( 77 AS INTEGER ) THEN 98 / + 99 ELSE ( + 81 ) END + - 24
----
57

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

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

query I rowsort
SELECT NULLIF ( - 54, + + 6 ) * + 82
----
-4428

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT 13 + - + 6 + ( + MAX( 99 ) ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-2676
SELECT 13 + - + 6 + ( + MAX ( 99 ) ) AS col1
----
106

query I rowsort
SELECT 56 - - 68 + 92 AS col2
----
216

query I rowsort
SELECT ALL NULLIF ( - 22, - + 81 ) AS col0
----
-22

query II rowsort
SELECT COALESCE ( - + 69, + 24 ) - - 88 col0, - 64 AS col2
----
19
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-2680
SELECT ALL - - 22 * - 34 + + 58 + + 65 AS col0, - 7 * + MIN( 65 ) AS col2
----
-625
-455

skipif mysql # not compatible
query II rowsort label-2680
SELECT ALL - - 22 * - 34 + + 58 + + 65 AS col0, - 7 * + MIN ( 65 ) AS col2
----
-625
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT - 46 * - MAX( + 46 ) AS col2
----
2116

skipif mysql # not compatible
query I rowsort label-2681
SELECT - 46 * - MAX ( + 46 ) AS col2
----
2116

query I rowsort
SELECT ALL - - NULLIF ( - - 8, + CASE - 78 WHEN - 73 * ( 31 ) THEN 32 END )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2683
SELECT DISTINCT - ( + 33 ) * - CAST( + + COUNT( * ) AS SIGNED ) + 79
----
112

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT - ( + 33 ) * - CAST ( + + COUNT ( * ) AS INTEGER ) + 79
----
112

query I rowsort
SELECT ALL - 54 * - - 4
----
-216

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2685
SELECT + 73 DIV 94 + - CAST( + + 49 AS SIGNED ) + 53 * - - 77
----
4032

skipif mysql # not compatible
query I rowsort label-2685
SELECT + 73 / 94 + - CAST ( + + 49 AS INTEGER ) + 53 * - - 77
----
4032

query I rowsort
SELECT ALL + 25 * + 29 + - 97 AS col1
----
628

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT - MIN( DISTINCT + - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-2687
SELECT - MIN ( DISTINCT + - 27 )
----
27

query I rowsort
SELECT DISTINCT - 52 * - 97 * + - ( + 59 ) + - - 14 col1
----
-297582

query I rowsort
SELECT ALL + + 71 * 64
----
4544

query I rowsort
SELECT + - 13 + - 5 AS col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT - - 8 * + 62 - - ( - - CAST( 87 AS SIGNED ) ) + - 77 col1
----
506

skipif mysql # not compatible
query I rowsort label-2691
SELECT - - 8 * + 62 - - ( - - CAST ( 87 AS INTEGER ) ) + - 77 col1
----
506

query I rowsort
SELECT DISTINCT 32 * - + 33 * + 50 AS col2
----
-52800

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2693
SELECT ALL - 24 * + - CAST( NULL AS DECIMAL ) + + 43 * + 94 + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - 24 * + - CAST ( NULL AS REAL ) + + 43 * + 94 + 92
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT + + SUM( - 33 ) * - 27 + - 37 + - - 88 AS col1
----
942

skipif mysql # not compatible
query I rowsort label-2695
SELECT + + SUM ( - 33 ) * - 27 + - 37 + - - 88 AS col1
----
942

query I rowsort
SELECT DISTINCT + COALESCE ( 87, + - 62, - - 74 ) col1
----
87

query I rowsort
SELECT ALL 52 * 31 * - 5 * - ( + + 72 ) - 44 * + 3 AS col1
----
580188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2698
SELECT + 64 + - CASE - - CAST( NULL AS SIGNED ) WHEN 5 THEN - 15 * COALESCE ( - SUM( 63 ), 44 ) * 65 + + 44 END + - 66 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT + 64 + - CASE - - CAST ( NULL AS INTEGER ) WHEN 5 THEN - 15 * COALESCE ( - SUM ( 63 ), 44 ) * 65 + + 44 END + - 66 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2699
SELECT + 71 * - 7 + - + 48 + COUNT( + CAST( NULL AS SIGNED ) ) * 25 * - 48 + SUM( ALL 84 )
----
-461

skipif mysql # not compatible
query I rowsort label-2699
SELECT + 71 * - 7 + - + 48 + COUNT ( + CAST ( NULL AS INTEGER ) ) * 25 * - 48 + SUM ( ALL 84 )
----
-461

onlyif mysql # DIV for integer division: 
query I rowsort label-2700
SELECT ALL - 67 DIV + 88 * - 9
----
0

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL - 67 / + 88 * - 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT + 77 * COUNT( * ) + - MIN( DISTINCT - 73 )
----
150

skipif mysql # not compatible
query I rowsort label-2701
SELECT + 77 * COUNT ( * ) + - MIN ( DISTINCT - 73 )
----
150

query I rowsort
SELECT - 22 - 2 * - 7
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2703
SELECT DISTINCT - COUNT( * ) * + + 12 AS col2, - NULLIF ( COUNT( DISTINCT - 22 ), + 8 ) * - COUNT( * )
----
-12
1

skipif mysql # not compatible
query II rowsort label-2703
SELECT DISTINCT - COUNT ( * ) * + + 12 AS col2, - NULLIF ( COUNT ( DISTINCT - 22 ), + 8 ) * - COUNT ( * )
----
-12
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT DISTINCT CASE - - 86 WHEN + COUNT( * ) + + 64 * + 56 THEN 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT CASE - - 86 WHEN + COUNT ( * ) + + 64 * + 56 THEN 15 END
----
NULL

query I rowsort
SELECT - ( + NULLIF ( 45, - 83 ) ) + + + 45 * 65 col1
----
2880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT - 50 * NULLIF ( + NULLIF ( + + 28, - - 55 ), COUNT( * ) + - + COUNT( * ) + 86 / 25 ) * 74
----
-103600

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT - 50 * NULLIF ( + NULLIF ( + + 28, - - 55 ), COUNT ( * ) + - + COUNT ( * ) + 86 / 25 ) * 74
----
-103600

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT DISTINCT + 95 * + CASE 6 WHEN - 11 * + 23 THEN - COUNT( * ) WHEN 35 THEN + 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT + 95 * + CASE 6 WHEN - 11 * + 23 THEN - COUNT ( * ) WHEN 35 THEN + 73 END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - - ( - + 23 ), 24 ) AS col1
----
-23

query I rowsort
SELECT ALL CASE + + 79 WHEN 79 / + COALESCE ( + 40, 5 * 23 ) - - 17 THEN 59 END
----
NULL

query I rowsort
SELECT - 56 * + NULLIF ( + + 58, - 29 / + 40 + 19 + + - ( 33 ) + 42 ) AS col0
----
-3248

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT DISTINCT ( SUM( + 62 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT ( SUM ( + 62 ) ) AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2713
SELECT + COUNT( * ) + - COUNT( * ) DIV + 42 * - MAX( - + 22 ) + 55
----
56

skipif mysql # not compatible
query I rowsort label-2713
SELECT + COUNT ( * ) + - COUNT ( * ) / + 42 * - MAX ( - + 22 ) + 55
----
56

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

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

query I rowsort
SELECT ALL 47 + 30 + - 20
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT DISTINCT COALESCE ( + - 58, + MIN( + 59 ), + - 62 )
----
-58

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT COALESCE ( + - 58, + MIN ( + 59 ), + - 62 )
----
-58

query I rowsort
SELECT DISTINCT - 5 + - - 1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL - + 81 + COUNT( * ) + - 61 * 57
----
-3557

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL - + 81 + COUNT ( * ) + - 61 * 57
----
-3557

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT + + CASE 42 WHEN - - 50 - 19 THEN - 27 END + + COUNT( * ) * 6 + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT + + CASE 42 WHEN - - 50 - 19 THEN - 27 END + + COUNT ( * ) * 6 + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2720
SELECT ALL + 72 + 51 DIV - 89 * + 18 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL + 72 + 51 / - 89 * + 18 AS col1
----
72

query I rowsort
SELECT - - 69 col0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2722
SELECT MAX( ALL + 73 ) AS col2, MIN( DISTINCT + 44 ) + + 81 + + - 20 * + 37 * + 31 + ( 95 + 4 DIV - 32 )
----
73
-22720

skipif mysql # not compatible
query II rowsort label-2722
SELECT MAX ( ALL + 73 ) AS col2, MIN ( DISTINCT + 44 ) + + 81 + + - 20 * + 37 * + 31 + ( 95 + 4 / - 32 )
----
73
-22720

query II rowsort
SELECT - ( 46 ) AS col0, 79 AS col2
----
-46
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT + - 53 * 72 * 73 DIV 42 AS col1
----
-6632

skipif mysql # not compatible
query I rowsort label-2724
SELECT + - 53 * 72 * 73 / 42 AS col1
----
-6632

onlyif mysql # aggregate syntax: 
query II rowsort label-2725
SELECT + COUNT( * ) * 27, 28 AS col0
----
27
28

skipif mysql # not compatible
query II rowsort label-2725
SELECT + COUNT ( * ) * 27, 28 AS col0
----
27
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT DISTINCT + NULLIF ( 75, - 34 ) * - 82 - 82 + COUNT( * ) + 60
----
-6171

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT + NULLIF ( 75, - 34 ) * - 82 - 82 + COUNT ( * ) + 60
----
-6171

query I rowsort
SELECT + ( 52 ) * - 31 + + 33 AS col1
----
-1579

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

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

query II rowsort
SELECT ALL + 7 * + ( - 14 ) * + 28 + - 22, 30 AS col1
----
-2766
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL + COALESCE ( + 35, + - 51, - 69 + + + COUNT( ALL NULLIF ( - 97, 28 ) ) * - 57 )
----
35

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL + COALESCE ( + 35, + - 51, - 69 + + + COUNT ( ALL NULLIF ( - 97, 28 ) ) * - 57 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2732
SELECT + + 90 * + 43 + + - 35 + CAST( NULL AS SIGNED ) + 32 col1, 75 * 90 + 21
----
NULL
6771

skipif mysql # not compatible
query II rowsort label-2732
SELECT + + 90 * + 43 + + - 35 + CAST ( NULL AS INTEGER ) + 32 col1, 75 * 90 + 21
----
NULL
6771

query I rowsort
SELECT + 96 * - - 0
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2735
SELECT ALL + 30 AS col1, - 64 DIV ( + COUNT( * ) ) AS col2
----
30
-64

skipif mysql # not compatible
query II rowsort label-2735
SELECT ALL + 30 AS col1, - 64 / ( + COUNT ( * ) ) AS col2
----
30
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL COUNT( * ) * + + COALESCE ( + 19, - + 82 ) * + 77
----
1463

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL COUNT ( * ) * + + COALESCE ( + 19, - + 82 ) * + 77
----
1463

query I rowsort
SELECT - 22 + + - 65
----
-87

query I rowsort
SELECT DISTINCT 45 * + 96 AS col2
----
4320

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

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

query I rowsort
SELECT ALL 75 * - - 14 * + ( + 56 )
----
58800

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT COALESCE ( COUNT( * ), 30 + - + 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2741
SELECT COALESCE ( COUNT ( * ), 30 + - + 46 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT DISTINCT - 18 DIV + 1 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT - 18 / + 1 AS col0
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL NULLIF ( - + 60, + MIN( ALL 25 ) * 21 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL NULLIF ( - + 60, + MIN ( ALL 25 ) * 21 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT COALESCE ( - 36, - - 48, + 84 * COUNT( * ) + + - COUNT( + 82 ) ) * + 59 * + 94 + + ( + 58 ) - - 35
----
-199563

skipif mysql # not compatible
query I rowsort label-2745
SELECT COALESCE ( - 36, - - 48, + 84 * COUNT ( * ) + + - COUNT ( + 82 ) ) * + 59 * + 94 + + ( + 58 ) - - 35
----
-199563

onlyif mysql # DIV for integer division: 
query I rowsort label-2746
SELECT - 56 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-2746
SELECT - 56 / - 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2747
SELECT + ( - - CAST( - 61 AS SIGNED ) ) + + 71 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2747
SELECT + ( - - CAST ( - 61 AS INTEGER ) ) + + 71 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - 26 + - + ( SUM( 87 ) )
----
-113

skipif mysql # not compatible
query I rowsort label-2748
SELECT - 26 + - + ( SUM ( 87 ) )
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2749
SELECT DISTINCT - 1 + CASE - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + - 68 THEN - 92 ELSE + 57 - 83 * 55 END * SUM( ALL 6 )
----
-27049

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT - 1 + CASE - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + - 68 THEN - 92 ELSE + 57 - 83 * 55 END * SUM ( ALL 6 )
----
-27049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2750
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( ALL + - 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( ALL + - 70 )
----
NULL

query I rowsort
SELECT ALL CASE + 99 WHEN + + 81 THEN NULL WHEN - - 23 THEN + - 63 ELSE - + 10 END
----
-10

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

query I rowsort
SELECT ALL + 18 * + 18 AS col1
----
324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2754
SELECT CAST( + NULLIF ( 43, + 64 * + 85 - + 22 ) AS SIGNED ) * - 37 * + COUNT( * ) * 61
----
-97051

skipif mysql # not compatible
query I rowsort label-2754
SELECT CAST ( + NULLIF ( 43, + 64 * + 85 - + 22 ) AS INTEGER ) * - 37 * + COUNT ( * ) * 61
----
-97051

query II rowsort
SELECT - 95 AS col2, 72 * + ( - 94 ) AS col2
----
-95
-6768

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT + SUM( ALL - - 39 ) + + 17 * + 39
----
702

skipif mysql # not compatible
query I rowsort label-2756
SELECT + SUM ( ALL - - 39 ) + + 17 * + 39
----
702

query II rowsort
SELECT - 46, - 25 AS col0
----
-46
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT SUM( - 66 ) * + 77 * - 46 + - + 95 AS col1
----
233677

skipif mysql # not compatible
query I rowsort label-2758
SELECT SUM ( - 66 ) * + 77 * - 46 + - + 95 AS col1
----
233677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2759
SELECT DISTINCT 83 * + CASE - 85 WHEN 68 THEN + 20 ELSE NULL END * + 99 * + ( - CAST( + 90 AS SIGNED ) ) + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT 83 * + CASE - 85 WHEN 68 THEN + 20 ELSE NULL END * + 99 * + ( - CAST ( + 90 AS INTEGER ) ) + - 49
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2761
SELECT ALL + - 74 - - 73 DIV SUM( DISTINCT - 11 ) + + - 2
----
-82

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL + - 74 - - 73 / SUM ( DISTINCT - 11 ) + + - 2
----
-82

query II rowsort
SELECT DISTINCT - 9 * - - 64 + - 12 + + + 63, 88 * + + 68 AS col1
----
-525
5984

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT - 98 * - - CASE - 43 WHEN + + 62 THEN NULL ELSE 10 * 65 DIV - 13 END AS col0
----
4900

skipif mysql # not compatible
query I rowsort label-2764
SELECT - 98 * - - CASE - 43 WHEN + + 62 THEN NULL ELSE 10 * 65 / - 13 END AS col0
----
4900

query I rowsort
SELECT 69 + 37 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL - COALESCE ( + ( 53 ), + 32 + - - CASE 91 WHEN 52 + + 59 THEN - 90 WHEN ( + COUNT( * ) ) THEN NULL END )
----
-53

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL - COALESCE ( + ( 53 ), + 32 + - - CASE 91 WHEN 52 + + 59 THEN - 90 WHEN ( + COUNT ( * ) ) THEN NULL END )
----
-53

query II rowsort
SELECT + ( - 72 ) * 37 + + 73 - + 90 + - - 70 + + 83 col2, - 18 + - 94
----
-2528
-112

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2769
SELECT DISTINCT 27 DIV - 20 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT 27 / - 20 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT NULLIF ( - - COUNT( * ), + SUM( DISTINCT 65 ) * 32 * 84 - - 82 ) + COUNT( * ) + - ( + 68 ) * 9
----
-610

skipif mysql # not compatible
query I rowsort label-2770
SELECT NULLIF ( - - COUNT ( * ), + SUM ( DISTINCT 65 ) * 32 * 84 - - 82 ) + COUNT ( * ) + - ( + 68 ) * 9
----
-610

query II rowsort
SELECT ALL 21 + + 30 AS col1, - 51 AS col1
----
51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT 14 * ( - NULLIF ( + + 71, + + COUNT( * ) ) ) * + + 34 * + 30 + - 13 + 38 AS col0
----
-1013855

skipif mysql # not compatible
query I rowsort label-2772
SELECT 14 * ( - NULLIF ( + + 71, + + COUNT ( * ) ) ) * + + 34 * + 30 + - 13 + 38 AS col0
----
-1013855

query I rowsort
SELECT 29 + 61 AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2774
SELECT ALL CASE + 52 WHEN CAST( NULL AS SIGNED ) THEN COUNT( * ) + 87 * + + 97 + COUNT( ALL - 46 ) * + 0 WHEN 15 THEN CAST( - 37 AS SIGNED ) * ( 46 - COALESCE ( - 11, 22 ) ) WHEN 84 * 44 THEN NULL WHEN 66 + ( - 65 + 88 ) THEN NULL END + 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL CASE + 52 WHEN CAST ( NULL AS INTEGER ) THEN COUNT ( * ) + 87 * + + 97 + COUNT ( ALL - 46 ) * + 0 WHEN 15 THEN CAST ( - 37 AS INTEGER ) * ( 46 - COALESCE ( - 11, 22 ) ) WHEN 84 * 44 THEN NULL WHEN 66 + ( - 65 + 88 ) THEN NULL END + 44 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 56 + + - 50 AS col2, + 93
----
6
93

query I rowsort
SELECT 13 * + - 36 * + + 81 AS col2
----
-37908

query I rowsort
SELECT ALL 2 * - 71 AS col2
----
-142

query II rowsort
SELECT ALL + 47 + + 61 col1, 60 * + 35 AS col2
----
108
2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2779
SELECT DISTINCT MIN( DISTINCT + - CAST( + 14 AS SIGNED ) )
----
-14

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT MIN ( DISTINCT + - CAST ( + 14 AS INTEGER ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT + 30 + 62 - 77 * + COUNT( * ) * + - COUNT( * ) + - - 80 + + - 86 * 22
----
-1643

skipif mysql # not compatible
query I rowsort label-2780
SELECT + 30 + 62 - 77 * + COUNT ( * ) * + - COUNT ( * ) + - - 80 + + - 86 * 22
----
-1643

onlyif mysql # aggregate syntax: 
query II rowsort label-2781
SELECT SUM( ALL + 67 ) + - 69 * - 14 * + + 52 + ( + 63 ) AS col1, 6 AS col0
----
50362
6

skipif mysql # not compatible
query II rowsort label-2781
SELECT SUM ( ALL + 67 ) + - 69 * - 14 * + + 52 + ( + 63 ) AS col1, 6 AS col0
----
50362
6

query I rowsort
SELECT - ( - 61 ) * - 47 AS col0
----
-2867

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT 11 * + + MAX( DISTINCT + 29 )
----
319

skipif mysql # not compatible
query I rowsort label-2783
SELECT 11 * + + MAX ( DISTINCT + 29 )
----
319

onlyif mysql # DIV for integer division: 
query I rowsort label-2784
SELECT 98 + + 1 DIV + + 92 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2784
SELECT 98 + + 1 / + + 92 AS col2
----
98

query I rowsort
SELECT ALL + 31 - + - 51
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2786
SELECT ALL - COUNT( * ) DIV + 77 AS col0, 71
----
0
71

skipif mysql # not compatible
query II rowsort label-2786
SELECT ALL - COUNT ( * ) / + 77 AS col0, 71
----
0
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2787
SELECT DISTINCT CASE - + 71 WHEN - - 53 THEN + 86 - - - 14 - - - CAST( - 74 AS SIGNED ) WHEN - + 5 + 63 * 52 THEN COUNT( * ) ELSE COUNT( * ) - + COUNT( * ) END - - 15 * 17 AS col2
----
255

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT CASE - + 71 WHEN - - 53 THEN + 86 - - - 14 - - - CAST ( - 74 AS INTEGER ) WHEN - + 5 + 63 * 52 THEN COUNT ( * ) ELSE COUNT ( * ) - + COUNT ( * ) END - - 15 * 17 AS col2
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT ALL + 71 * - - COUNT( * ) * - 77
----
-5467

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL + 71 * - - COUNT ( * ) * - 77
----
-5467

query I rowsort
SELECT DISTINCT - - 9 * + 4 + + + 72 AS col0
----
108

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2790
SELECT - 99 * + CASE + CAST( NULL AS DECIMAL ) WHEN + + 58 + - CAST( - 52 AS SIGNED ) THEN + 34 WHEN 5 + + 6 + - 63 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT - 99 * + CASE + CAST ( NULL AS REAL ) WHEN + + 58 + - CAST ( - 52 AS INTEGER ) THEN + 34 WHEN 5 + + 6 + - 63 THEN NULL ELSE NULL END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2792
SELECT ALL - ( CAST( - ( - 15 ) AS SIGNED ) )
----
-15

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL - ( CAST ( - ( - 15 ) AS INTEGER ) )
----
-15

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2794
SELECT ALL + 55 * + 77 + 65 + + - COUNT( ALL - + 11 ), 80 col1
----
4299
80

skipif mysql # not compatible
query II rowsort label-2794
SELECT ALL + 55 * + 77 + 65 + + - COUNT ( ALL - + 11 ), 80 col1
----
4299
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2795
SELECT 4 * + + 28 * COUNT( * ) col1, - 72
----
112
-72

skipif mysql # not compatible
query II rowsort label-2795
SELECT 4 * + + 28 * COUNT ( * ) col1, - 72
----
112
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT ALL + 45 * - CAST( + 72 AS SIGNED ) AS col0
----
-3240

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + 45 * - CAST ( + 72 AS INTEGER ) AS col0
----
-3240

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

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT + COUNT ( * ) + 30 AS col1
----
31

query II rowsort
SELECT DISTINCT - 55 col1, + 40 AS col0
----
-55
40

query I rowsort
SELECT ALL + 18 + + 48 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT + MAX( + 41 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-2800
SELECT + MAX ( + 41 ) col0
----
41

query I rowsort
SELECT DISTINCT CASE - 14 WHEN - 80 THEN + 29 + - 50 END + - + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL 15 + - 21 * + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL 15 + - 21 * + COUNT ( * )
----
-6

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

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

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

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL + COUNT ( * ) + - 19 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT COUNT( * ) * - - 41 * 37
----
1517

skipif mysql # not compatible
query I rowsort label-2805
SELECT COUNT ( * ) * - - 41 * 37
----
1517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2806
SELECT DISTINCT ( MIN( DISTINCT + 62 ) ) DIV - ( + - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT ( MIN ( DISTINCT + 62 ) ) / - ( + - 98 )
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-2808
SELECT + COUNT ( * ) / - 90 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2809
SELECT ALL ( + 50 ) + + - NULLIF ( - 88, - 41 ) col0, 25 * - 88 * + COUNT( * ) AS col2
----
138
-2200

skipif mysql # not compatible
query II rowsort label-2809
SELECT ALL ( + 50 ) + + - NULLIF ( - 88, - 41 ) col0, 25 * - 88 * + COUNT ( * ) AS col2
----
138
-2200

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT DISTINCT ( + 23 ) DIV + ( 57 )
----
0

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT ( + 23 ) / + ( 57 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2811
SELECT + NULLIF ( 7, + - ( + 31 ) ) * - - 25 - + CAST( NULL AS SIGNED ) + 71 - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2811
SELECT + NULLIF ( 7, + - ( + 31 ) ) * - - 25 - + CAST ( NULL AS INTEGER ) + 71 - - 75
----
NULL

query I rowsort
SELECT + - 21 + - 65 AS col2
----
-86

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

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

query II rowsort
SELECT + + ( + NULLIF ( - - 88, 78 ) ) + 42 col0, - 80 AS col0
----
130
-80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2816
SELECT ALL 41 AS col2, - CAST( 46 AS SIGNED ) * + + 82 AS col1
----
41
-3772

skipif mysql # not compatible
query II rowsort label-2816
SELECT ALL 41 AS col2, - CAST ( 46 AS INTEGER ) * + + 82 AS col1
----
41
-3772

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT ALL + CASE + NULLIF ( + - 0, + + NULLIF ( - 66, + MAX( - 8 ) ) * + + 65 * 4 ) WHEN 80 THEN - 2 * 86 ELSE 69 * 99 + 72 END
----
6903

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL + CASE + NULLIF ( + - 0, + + NULLIF ( - 66, + MAX ( - 8 ) ) * + + 65 * 4 ) WHEN 80 THEN - 2 * 86 ELSE 69 * 99 + 72 END
----
6903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2818
SELECT DISTINCT - 91 * CASE + + 57 WHEN - ( - 88 ) THEN + - 23 * - + 86 * - - COUNT( * ) / - 63 + + 36 + + COALESCE ( + CASE 66 WHEN 73 + + MIN( ALL 26 ) / - 10 THEN NULL ELSE - 15 END, CAST( 26 AS SIGNED ) ) * + 69 WHEN 20 * MIN( 94 ) THEN NULL WHEN - SUM( ALL + 49 ) + + 17 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT - 91 * CASE + + 57 WHEN - ( - 88 ) THEN + - 23 * - + 86 * - - COUNT ( * ) / - 63 + + 36 + + COALESCE ( + CASE 66 WHEN 73 + + MIN ( ALL 26 ) / - 10 THEN NULL ELSE - 15 END, CAST ( 26 AS INTEGER ) ) * + 69 WHEN 20 * MIN ( 94 ) THEN NULL WHEN - SUM ( ALL + 49 ) + + 17 THEN NULL END
----
NULL

query I rowsort
SELECT + 17 - 55 + + 83 AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2820
SELECT ALL 87 * - - COALESCE ( + 10, - - COUNT( DISTINCT + 78 ), + 62 * 91 * - - COALESCE ( + 26, - + 30 + ( - 51 ) ) + - ( - 56 ) - - 82 DIV 87 ) + 46
----
916

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL 87 * - - COALESCE ( + 10, - - COUNT ( DISTINCT + 78 ), + 62 * 91 * - - COALESCE ( + 26, - + 30 + ( - 51 ) ) + - ( - 56 ) - - 82 / 87 ) + 46
----
916

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2821
SELECT + COUNT( * ) + - ( 32 ) + - 87 + - 17 - + 14 DIV SUM( ALL - 60 )
----
-135

skipif mysql # not compatible
query I rowsort label-2821
SELECT + COUNT ( * ) + - ( 32 ) + - 87 + - 17 - + 14 / SUM ( ALL - 60 )
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT + - CASE 54 WHEN + 53 - NULLIF ( - + 9, - 84 ) THEN COUNT( * ) WHEN + - 1 THEN COUNT( * ) END - + 71 * 91 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2822
SELECT + - CASE 54 WHEN + 53 - NULLIF ( - + 9, - 84 ) THEN COUNT ( * ) WHEN + - 1 THEN COUNT ( * ) END - + 71 * 91 col2
----
NULL

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

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

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

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

query I rowsort
SELECT - + 64 - + - NULLIF ( - + 35, + 97 ) AS col0
----
-99

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2827
SELECT ALL + 60 * 78 + - - CASE COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN AVG ( ALL + CAST( + 12 AS DECIMAL ) ) THEN + + 84 ELSE NULL END col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2827
SELECT ALL + 60 * 78 + - - CASE COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN AVG ( ALL + CAST ( + 12 AS REAL ) ) THEN + + 84 ELSE NULL END col0, COUNT ( * )
----
NULL
1

query II rowsort
SELECT + 39 AS col1, 42 AS col1
----
39
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL MAX( + 19 ) * NULLIF ( - + COUNT( * ), ( - COALESCE ( 28, + + 50 ) ) )
----
-19

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL MAX ( + 19 ) * NULLIF ( - + COUNT ( * ), ( - COALESCE ( 28, + + 50 ) ) )
----
-19

query I rowsort
SELECT - 63 * - 31 * 34 AS col1
----
66402

query I rowsort
SELECT DISTINCT 92 * - + 46 + - 43 - + 28
----
-4303

query I rowsort
SELECT + ( - 35 ) col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT 50 * - + 37 + - NULLIF ( + MIN( - 11 ), - 13 + + + 13 ) + + + 18 - - 49 * + + MIN( ALL - 86 ) * COUNT( * ) * 96 AS col1
----
-406365

skipif mysql # not compatible
query I rowsort label-2833
SELECT 50 * - + 37 + - NULLIF ( + MIN ( - 11 ), - 13 + + + 13 ) + + + 18 - - 49 * + + MIN ( ALL - 86 ) * COUNT ( * ) * 96 AS col1
----
-406365

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

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

query II rowsort
SELECT + 57, ( - 23 ) - - 76 AS col0
----
57
53

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

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL CAST ( NULL AS INTEGER ) * 83 + - 65 + COUNT ( * ) + + 42 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2837
SELECT + 68, + 94 AS col2, - 21 * + 35 + - 62 + - + SUM( ALL - 2 ) + + + NULLIF ( 19, - - COALESCE ( 65, - 79 / + CASE - 76 WHEN AVG ( ALL - 71 ) THEN 62 END, 19 * 0 ) + - 44 ) + - 94 / + MAX( CAST( NULL AS SIGNED ) ) * - ( 92 ) / + 38 AS col0
----
68
94
NULL

skipif mysql # not compatible
query III rowsort label-2837
SELECT + 68, + 94 AS col2, - 21 * + 35 + - 62 + - + SUM ( ALL - 2 ) + + + NULLIF ( 19, - - COALESCE ( 65, - 79 / + CASE - 76 WHEN AVG ( ALL - 71 ) THEN 62 END, 19 * 0 ) + - 44 ) + - 94 / + MAX ( CAST ( NULL AS INTEGER ) ) * - ( 92 ) / + 38 AS col0
----
68
94
NULL

query I rowsort
SELECT ALL + 18 * + ( 74 ) + - 82 - 15
----
1235

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL + CASE - COUNT( * ) WHEN - 59 - + MAX( - 85 ) * + 93 THEN - + 42 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL + CASE - COUNT ( * ) WHEN - 59 - + MAX ( - 85 ) * + 93 THEN - + 42 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2840
SELECT 88 * + MIN( DISTINCT - 20 ) + - 68 * CAST( NULL AS SIGNED ) - - 83, - 40 col1
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-2840
SELECT 88 * + MIN ( DISTINCT - 20 ) + - 68 * CAST ( NULL AS INTEGER ) - - 83, - 40 col1
----
NULL
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT DISTINCT + 80 AS col0, - COUNT( * ) * - + 80 AS col2
----
80
80

skipif mysql # not compatible
query II rowsort label-2841
SELECT DISTINCT + 80 AS col0, - COUNT ( * ) * - + 80 AS col2
----
80
80

query I rowsort
SELECT ALL - NULLIF ( ( + - 58 ), - + 88 + 64 ) * - 70 - - 10
----
-4050

query I rowsort
SELECT - 37 * + + 24
----
-888

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT - NULLIF ( - 31, - COUNT( * ) ) * + 22 * - - 9 AS col2
----
6138

skipif mysql # not compatible
query I rowsort label-2844
SELECT - NULLIF ( - 31, - COUNT ( * ) ) * + 22 * - - 9 AS col2
----
6138

query II rowsort
SELECT 84 AS col2, 5
----
84
5

query I rowsort
SELECT - ( + ( - - ( + - 90 ) ) ) * + 23 AS col0
----
2070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2847
SELECT DISTINCT - - 65 * - NULLIF ( 99, - - ( 97 ) - 52 * CASE + ( CAST( COUNT( * ) AS SIGNED ) ) WHEN 71 THEN 62 END ) * CASE 28 WHEN + 71 THEN - NULLIF ( 3, - 92 * - COUNT( * ) ) WHEN + ( 6 ) THEN - 1 * - COUNT( * ) END - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT - - 65 * - NULLIF ( 99, - - ( 97 ) - 52 * CASE + ( CAST ( COUNT ( * ) AS INTEGER ) ) WHEN 71 THEN 62 END ) * CASE 28 WHEN + 71 THEN - NULLIF ( 3, - 92 * - COUNT ( * ) ) WHEN + ( 6 ) THEN - 1 * - COUNT ( * ) END - 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2848
SELECT ALL 32 DIV 80, + MIN( + 86 ) + - 65 * 6 + - - 53 AS col1, 19 * - ( - + ( COUNT( * ) ) ) + MAX( 96 + 58 ) col0
----
0
-251
173

skipif mysql # not compatible
query III rowsort label-2848
SELECT ALL 32 / 80, + MIN ( + 86 ) + - 65 * 6 + - - 53 AS col1, 19 * - ( - + ( COUNT ( * ) ) ) + MAX ( 96 + 58 ) col0
----
0
-251
173

query I rowsort
SELECT ALL + COALESCE ( - 40, - 62 )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2850
SELECT DISTINCT 15, - CASE 22 WHEN + 18 + CASE - + 32 WHEN - 35 THEN 91 END THEN - 25 + 84 WHEN - ( + COUNT( * ) ) / - 32 THEN CAST( 34 AS SIGNED ) * - MIN( - 29 * - 93 ) END * - 19 col2
----
15
NULL

skipif mysql # not compatible
query II rowsort label-2850
SELECT DISTINCT 15, - CASE 22 WHEN + 18 + CASE - + 32 WHEN - 35 THEN 91 END THEN - 25 + 84 WHEN - ( + COUNT ( * ) ) / - 32 THEN CAST ( 34 AS INTEGER ) * - MIN ( - 29 * - 93 ) END * - 19 col2
----
15
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT DISTINCT - CASE 70 WHEN + COUNT( * ) THEN - 13 WHEN + CAST( NULL AS SIGNED ) THEN NULL END * - NULLIF ( - + 68, + COUNT( * ) * ( - 74 ) * + CASE + 79 WHEN + 41 THEN NULL WHEN 1 + + CASE - COUNT( * ) WHEN + MAX( - ( - 73 ) ) THEN - 74 * CAST( NULL AS SIGNED ) + - AVG ( + 25 ) ELSE NULL END / COUNT( * ) THEN - 87 + 22 * - 90 ELSE 59 END + + 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT - CASE 70 WHEN + COUNT ( * ) THEN - 13 WHEN + CAST ( NULL AS INTEGER ) THEN NULL END * - NULLIF ( - + 68, + COUNT ( * ) * ( - 74 ) * + CASE + 79 WHEN + 41 THEN NULL WHEN 1 + + CASE - COUNT ( * ) WHEN + MAX ( - ( - 73 ) ) THEN - 74 * CAST ( NULL AS INTEGER ) + - AVG ( + 25 ) ELSE NULL END / COUNT ( * ) THEN - 87 + 22 * - 90 ELSE 59 END + + 29 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2852
SELECT ALL + 54 DIV 98 * + ( - + 83 ) * 21 + + - COUNT( * ) - 20 * - 97 + + 6 + + 98
----
2043

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL + 54 / 98 * + ( - + 83 ) * 21 + + - COUNT ( * ) - 20 * - 97 + + 6 + + 98
----
2043

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

skipif mysql # not compatible
query I rowsort label-2853
SELECT + - COUNT ( * ) / + + SUM ( DISTINCT + 61 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2854
SELECT - MAX( DISTINCT 21 ) + - 95 + - + CAST( NULL AS SIGNED ) + + COUNT( 9 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT - MAX ( DISTINCT 21 ) + - 95 + - + CAST ( NULL AS INTEGER ) + + COUNT ( 9 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2855
SELECT DISTINCT NULLIF ( 19, + CAST( NULL AS SIGNED ) * - ( 28 ) ) * - COUNT( * ) + - + 75
----
-94

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT NULLIF ( 19, + CAST ( NULL AS INTEGER ) * - ( 28 ) ) * - COUNT ( * ) + - + 75
----
-94

onlyif mysql # DIV for integer division: 
query II rowsort label-2856
SELECT + 90 + + - 97 + 72 DIV 80 * - 34 * + 47 AS col0, - 79
----
-7
-79

skipif mysql # not compatible
query II rowsort label-2856
SELECT + 90 + + - 97 + 72 / 80 * - 34 * + 47 AS col0, - 79
----
-7
-79

query I rowsort
SELECT DISTINCT + - 25 + + + 81 * + 3 * - 5 * - 86 AS col1
----
104465

query II rowsort
SELECT ALL - 97 + + 20 AS col0, - 71 * - 70 + + + 35 AS col2
----
-77
5005

query II rowsort
SELECT + - 91 + - 99 - 83 * + - 70, 22 * - COALESCE ( + 20, - - ( - - 20 ) ) + - 43 AS col1
----
5620
-483

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2861
SELECT DISTINCT - COALESCE ( - 94, - 87, - 79 / - - 9 ) + + ( + + ( NULLIF ( - - CAST( NULL AS SIGNED ), - COUNT( * ) * + - 35 / + ( 13 ) + + 86 * - 45 ) ) ) * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - COALESCE ( - 94, - 87, - 79 / - - 9 ) + + ( + + ( NULLIF ( - - CAST ( NULL AS INTEGER ), - COUNT ( * ) * + - 35 / + ( 13 ) + + 86 * - 45 ) ) ) * 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT + 40 + - + 65 * + SUM( 14 ) AS col2
----
-870

skipif mysql # not compatible
query I rowsort label-2862
SELECT + 40 + - + 65 * + SUM ( 14 ) AS col2
----
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-2863
SELECT DISTINCT + 6 DIV - - ( 73 ) + - 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT + 6 / - - ( 73 ) + - 19 AS col1
----
-19

query I rowsort
SELECT - 10 + + + 85 - + 68
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2865
SELECT + CAST( - 86 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-2865
SELECT + CAST ( - 86 AS INTEGER )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2866
SELECT ALL + 24 DIV + + 96 + + + COUNT( * ) * + - 45 * + + 47
----
-2115

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL + 24 / + + 96 + + + COUNT ( * ) * + - 45 * + + 47
----
-2115

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

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL 80 - 4 * - COUNT ( * ) AS col2
----
84

query I rowsort
SELECT ALL - COALESCE ( 90, - - 95 * - - 16, + 33, - 79 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2869
SELECT 12 * CAST( - 99 AS SIGNED ) DIV + COALESCE ( - + COALESCE ( - COALESCE ( - 38, - - 54 + 30, 64 DIV - 57 * MIN( + 37 ) + 60 ), 89 ), - COUNT( * ) + 91 )
----
31

skipif mysql # not compatible
query I rowsort label-2869
SELECT 12 * CAST ( - 99 AS INTEGER ) / + COALESCE ( - + COALESCE ( - COALESCE ( - 38, - - 54 + 30, 64 / - 57 * MIN ( + 37 ) + 60 ), 89 ), - COUNT ( * ) + 91 )
----
31

query II rowsort
SELECT ALL 32 * + COALESCE ( ( + + 61 ), 25 ) AS col0, - 62 AS col1
----
1952
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT 54 DIV - 51 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2871
SELECT 54 / - 51 AS col2
----
-1

query I rowsort
SELECT 64 * 43 AS col1
----
2752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2873
SELECT ALL - CASE - 32 WHEN + NULLIF ( - 85, + 2 + + 83 + - + 97 + 10 * + + 54 + + + 74 * - - CAST( NULL AS SIGNED ) + + COUNT( * ) / - SUM( 82 ) ) THEN NULL WHEN ( + 36 ) THEN + SUM( ALL NULLIF ( - 57, 37 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL - CASE - 32 WHEN + NULLIF ( - 85, + 2 + + 83 + - + 97 + 10 * + + 54 + + + 74 * - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) / - SUM ( 82 ) ) THEN NULL WHEN ( + 36 ) THEN + SUM ( ALL NULLIF ( - 57, 37 ) ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + 41, - 23 ) AS col1
----
-41

query I rowsort
SELECT ALL - - NULLIF ( + - 84, + - 83 * - 23 + + + 15 )
----
-84

query I rowsort
SELECT + 86 - + 83
----
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2878
SELECT + - CAST( MIN( ALL - 98 ) AS SIGNED ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2878
SELECT + - CAST ( MIN ( ALL - 98 ) AS INTEGER ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT - ( - CASE - 28 WHEN - 91 THEN - COUNT( * ) + COUNT( DISTINCT - 27 ) + - 46 * - 91 WHEN + - ( ( + 60 ) ) THEN NULL ELSE ( 30 ) END )
----
30

skipif mysql # not compatible
query I rowsort label-2879
SELECT - ( - CASE - 28 WHEN - 91 THEN - COUNT ( * ) + COUNT ( DISTINCT - 27 ) + - 46 * - 91 WHEN + - ( ( + 60 ) ) THEN NULL ELSE ( 30 ) END )
----
30

query I rowsort
SELECT 75 * ( - 4 ) AS col2
----
-300

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2882
SELECT ALL CAST( COALESCE ( 53, + + ( - COALESCE ( + 26, - ( - 45 ) ) ) * + 24 + + - 41 / - COUNT( * ) / + - 35 ) AS SIGNED ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL CAST ( COALESCE ( 53, + + ( - COALESCE ( + 26, - ( - 45 ) ) ) * + 24 + + - 41 / - COUNT ( * ) / + - 35 ) AS INTEGER ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2883
SELECT + SUM( - 81 ) * 87 - + 6 + + 79 - + - MIN( ALL + CAST( 36 AS SIGNED ) ) * 1 - - 57
----
-6881

skipif mysql # not compatible
query I rowsort label-2883
SELECT + SUM ( - 81 ) * 87 - + 6 + + 79 - + - MIN ( ALL + CAST ( 36 AS INTEGER ) ) * 1 - - 57
----
-6881

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT COUNT( * ) + - COUNT( * ) + - 94 + 24 * - 94
----
-2350

skipif mysql # not compatible
query I rowsort label-2884
SELECT COUNT ( * ) + - COUNT ( * ) + - 94 + 24 * - 94
----
-2350

query I rowsort
SELECT ALL - - 61 * + 10 * - - 49 AS col1
----
29890

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2886
SELECT CAST( NULL AS SIGNED ) * + 37 AS col1, + 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-2886
SELECT CAST ( NULL AS INTEGER ) * + 37 AS col1, + 8
----
NULL
8

query I rowsort
SELECT + 15 + - 88 * NULLIF ( + - 77, + 41 + + - 79 )
----
6791

query I rowsort
SELECT ALL + 40 + 44 AS col0
----
84

query I rowsort
SELECT 84 - + 43 AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2890
SELECT DISTINCT - MIN( + 52 ) DIV + 9 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT - MIN ( + 52 ) / + 9 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2891
SELECT ( + + 10 ) * - 8 + + + CASE - NULLIF ( - COUNT( * ), - 93 ) WHEN + 99 * + - 88 * 20 + NULLIF ( - 72, NULLIF ( 33, + 35 + 1 * 62 ) ) * CAST( 45 AS SIGNED ) THEN + NULLIF ( 72, - 59 * + 71 ) * + 42 ELSE - ( 50 ) END - MAX( - 41 ) * 56
----
2166

skipif mysql # not compatible
query I rowsort label-2891
SELECT ( + + 10 ) * - 8 + + + CASE - NULLIF ( - COUNT ( * ), - 93 ) WHEN + 99 * + - 88 * 20 + NULLIF ( - 72, NULLIF ( 33, + 35 + 1 * 62 ) ) * CAST ( 45 AS INTEGER ) THEN + NULLIF ( 72, - 59 * + 71 ) * + 42 ELSE - ( 50 ) END - MAX ( - 41 ) * 56
----
2166

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

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT ( COUNT ( * ) ) + + + 11 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL MIN( 88 ) * + 65 - + 89
----
5631

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL MIN ( 88 ) * + 65 - + 89
----
5631

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT DISTINCT ( COUNT( * ) ) * 2
----
2

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT ( COUNT ( * ) ) * 2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2895
SELECT 19 - - COALESCE ( - 23, 47 - + 51 - 55 + + 87 ) * + COUNT( * ) + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT 19 - - COALESCE ( - 23, 47 - + 51 - 55 + + 87 ) * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT - 14 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2897
SELECT - ( + 65 ) * - - COUNT( * ) - + 44 * + CASE - CASE + - 6 WHEN + + ( - + 42 ) * - - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + - 31 + - 46 + ( - 7 ) THEN ( 39 ) END WHEN + 14 + - 71 THEN + 71 + - COALESCE ( 10, + COUNT( * ) * 84, 87 ) * 52 ELSE NULL END - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT - ( + 65 ) * - - COUNT ( * ) - + 44 * + CASE - CASE + - 6 WHEN + + ( - + 42 ) * - - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 31 + - 46 + ( - 7 ) THEN ( 39 ) END WHEN + 14 + - 71 THEN + 71 + - COALESCE ( 10, + COUNT ( * ) * 84, 87 ) * 52 ELSE NULL END - 69
----
NULL

query I rowsort
SELECT ALL 39 * + 90 AS col1
----
3510

query II rowsort
SELECT DISTINCT - 90 AS col2, + 75 * + + 36 AS col2
----
-90
2700

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT 24 DIV - ( - + ( - - 87 ) ) + 84 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2900
SELECT 24 / - ( - + ( - - 87 ) ) + 84 AS col2
----
84

query I rowsort
SELECT 88 * + 20 - - 17
----
1777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT MIN( + - ( - - 93 ) ) * + + 87 + + 17 + - 77 + - 52 + + 64 * - CAST( 86 AS SIGNED ) AS col0
----
-13707

skipif mysql # not compatible
query I rowsort label-2902
SELECT MIN ( + - ( - - 93 ) ) * + + 87 + + 17 + - 77 + - 52 + + 64 * - CAST ( 86 AS INTEGER ) AS col0
----
-13707

query I rowsort
SELECT ALL 78 * 66
----
5148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2904
SELECT COUNT( DISTINCT + - 51 ) + 67 * - NULLIF ( + 64, + CAST( + 81 AS SIGNED ) + + - 12 + SUM( DISTINCT - 67 ) * - - 24 )
----
-4287

skipif mysql # not compatible
query I rowsort label-2904
SELECT COUNT ( DISTINCT + - 51 ) + 67 * - NULLIF ( + 64, + CAST ( + 81 AS INTEGER ) + + - 12 + SUM ( DISTINCT - 67 ) * - - 24 )
----
-4287

query II rowsort
SELECT ALL - + 31 AS col2, 94 + 51
----
-31
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2906
SELECT + COALESCE ( - 50, 65 * - + 56 * + 92 * + 49 + + + COUNT( * ) + - 24 ) * 55 + 12 DIV - 9 + 52 + - MIN( DISTINCT 44 ) + 6 DIV 2
----
-2740

skipif mysql # not compatible
query I rowsort label-2906
SELECT + COALESCE ( - 50, 65 * - + 56 * + 92 * + 49 + + + COUNT ( * ) + - 24 ) * 55 + 12 / - 9 + 52 + - MIN ( DISTINCT 44 ) + 6 / 2
----
-2740

onlyif mysql # aggregate syntax: 
query II rowsort label-2907
SELECT DISTINCT - COUNT( * ) * 31 + 93 + + + 89 - - 73 + 92 AS col1, + 83 * - 9 + - 85
----
316
-832

skipif mysql # not compatible
query II rowsort label-2907
SELECT DISTINCT - COUNT ( * ) * 31 + 93 + + + 89 - - 73 + 92 AS col1, + 83 * - 9 + - 85
----
316
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT COALESCE ( 71, + + 30, 34 * - COUNT( * ) - - + COUNT( * ) + - 84 * - + CASE - - 26 WHEN + 8 / 55 * - MIN( + - 41 ) - + 16 * 8 + 17 THEN NULL WHEN + 18 / + 13 THEN NULL ELSE - CASE - 13 WHEN 6 THEN - 9 ELSE 98 END * 75 END + - COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-2908
SELECT COALESCE ( 71, + + 30, 34 * - COUNT ( * ) - - + COUNT ( * ) + - 84 * - + CASE - - 26 WHEN + 8 / 55 * - MIN ( + - 41 ) - + 16 * 8 + 17 THEN NULL WHEN + 18 / + 13 THEN NULL ELSE - CASE - 13 WHEN 6 THEN - 9 ELSE 98 END * 75 END + - COUNT ( * ) )
----
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2909
SELECT - CAST( + 60 AS SIGNED ) DIV + - 39 + - ( - 92 ) + 45
----
138

skipif mysql # not compatible
query I rowsort label-2909
SELECT - CAST ( + 60 AS INTEGER ) / + - 39 + - ( - 92 ) + 45
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT - 97 + + ( + - 66 ) + - 87 - 55 * + + COUNT( * ) AS col0
----
-305

skipif mysql # not compatible
query I rowsort label-2910
SELECT - 97 + + ( + - 66 ) + - 87 - 55 * + + COUNT ( * ) AS col0
----
-305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2911
SELECT ALL 67 + - + ( COALESCE ( + - 92, 16, - COALESCE ( - - COUNT( * ), + COUNT( * ), - 52 DIV + 65 ) ) ) AS col2
----
159

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL 67 + - + ( COALESCE ( + - 92, 16, - COALESCE ( - - COUNT ( * ), + COUNT ( * ), - 52 / + 65 ) ) ) AS col2
----
159

query II rowsort
SELECT DISTINCT - 62 AS col1, + 96 AS col1
----
-62
96

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

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL - + COUNT ( - - 13 ) AS col0
----
-1

query I rowsort
SELECT - 50 * + 87 AS col0
----
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT ALL + - 38 + + 84 + + - 89 - 16 * - - SUM( DISTINCT - 49 ) * + + 52 * ( 92 ) - - + 26 AS col0
----
3750639

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL + - 38 + + 84 + + - 89 - 16 * - - SUM ( DISTINCT - 49 ) * + + 52 * ( 92 ) - - + 26 AS col0
----
3750639

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL - + COUNT( * ) * 95 + + 32 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL - + COUNT ( * ) * 95 + + 32 AS col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2917
SELECT ALL + CAST( NULL AS SIGNED ) + 22 + + 20 * CASE 14 WHEN + 25 THEN - 32 WHEN 82 THEN - 49 ELSE - CASE CAST( - 15 AS SIGNED ) WHEN 16 THEN 18 + - COUNT( * ) END END * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL + CAST ( NULL AS INTEGER ) + 22 + + 20 * CASE 14 WHEN + 25 THEN - 32 WHEN 82 THEN - 49 ELSE - CASE CAST ( - 15 AS INTEGER ) WHEN 16 THEN 18 + - COUNT ( * ) END END * 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT SUM( ALL + ( - 69 ) ) + 91
----
22

skipif mysql # not compatible
query I rowsort label-2918
SELECT SUM ( ALL + ( - 69 ) ) + 91
----
22

query I rowsort
SELECT ALL - 20 * 45 + - - 63 AS col0
----
-837

query I rowsort
SELECT + 75 + 79 + - 66 AS col1
----
88

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2922
SELECT ALL + 19 - + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) / + 99 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + 19 - + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / + 99 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ALL COALESCE ( 35, + 97, COUNT( * ) + + + 47 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL COALESCE ( 35, + 97, COUNT ( * ) + + + 47 ) AS col2
----
35

query II rowsort
SELECT - 98 + 79 AS col1, ( + 85 ) + - + 5
----
-19
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT DISTINCT - 83 * 53 * + COUNT( + 68 ) AS col1
----
-4399

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT - 83 * 53 * + COUNT ( + 68 ) AS col1
----
-4399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2926
SELECT DISTINCT COALESCE ( - 85, + 55 + - AVG ( - - 1 ) DIV - + ( - + MIN( ALL + 88 ) ) + + + 0 * 30 )
----
-85

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT COALESCE ( - 85, + 55 + - AVG ( - - 1 ) / - + ( - + MIN ( ALL + 88 ) ) + + + 0 * 30 )
----
-85

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

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

query I rowsort
SELECT - 33 - + 56 col1
----
-89

query I rowsort
SELECT - 51 + 50 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2930
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + MAX( ALL - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + MAX ( ALL - 71 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT ALL + 29 DIV - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL + 29 / - 50 AS col0
----
0

query I rowsort
SELECT + 79 * - 15 * - + 92 * + 23 AS col2
----
2507460

query I rowsort
SELECT DISTINCT 44 * 54 AS col0
----
2376

onlyif mysql # aggregate syntax: 
query II rowsort label-2934
SELECT - 8 * 77 AS col2, - ( + - COUNT( * ) ) AS col0
----
-616
1

skipif mysql # not compatible
query II rowsort label-2934
SELECT - 8 * 77 AS col2, - ( + - COUNT ( * ) ) AS col0
----
-616
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2935
SELECT - SUM( DISTINCT 16 ) DIV - 27 * - + 64, + 72 AS col2
----
0
72

skipif mysql # not compatible
query II rowsort label-2935
SELECT - SUM ( DISTINCT 16 ) / - 27 * - + 64, + 72 AS col2
----
0
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2936
SELECT + MIN( DISTINCT - 4 ) col2, + 40
----
-4
40

skipif mysql # not compatible
query II rowsort label-2936
SELECT + MIN ( DISTINCT - 4 ) col2, + 40
----
-4
40

query I rowsort
SELECT ALL - CASE 84 WHEN 56 THEN + - 1 * - COALESCE ( + 2, + - 67, + 98 ) * 56 ELSE - 11 + + 89 END * 80 AS col0
----
-6240

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

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

query I rowsort
SELECT DISTINCT 42 * - 63 AS col1
----
-2646

query I rowsort
SELECT - 12 * - + 48 + - ( 8 ) * - 56 AS col1
----
1024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2941
SELECT - + 36 - - + COUNT( ALL + 2 ) + - 0 * + - 6 * - - CAST( NULL AS SIGNED ) * CAST( + + 82 AS SIGNED ) + CAST( NULL AS SIGNED ) / + 44 + - ( - + 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT - + 36 - - + COUNT ( ALL + 2 ) + - 0 * + - 6 * - - CAST ( NULL AS INTEGER ) * CAST ( + + 82 AS INTEGER ) + CAST ( NULL AS INTEGER ) / + 44 + - ( - + 27 ) AS col2
----
NULL

query II rowsort
SELECT ALL + ( - 36 ) * + - 39 + - - 39 + NULLIF ( 74, + - 41 * - 40 + + - 80 ) + + 0, + 42 AS col2
----
1517
42

query I rowsort
SELECT - ( 14 ) col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2944
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 76 * 7 + - COUNT( * ) - - 39 - + 79 + 38 * - 19 + 72 * - 42 + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 76 * 7 + - COUNT ( * ) - - 39 - + 79 + 38 * - 19 + 72 * - 42 + - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT ALL + 33 * 46 + + COUNT( * ) + + 74
----
1593

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL + 33 * 46 + + COUNT ( * ) + + 74
----
1593

query I rowsort
SELECT - ( - 82 ) * + COALESCE ( 61, 36 ) - - 61 + + + 8 * - 49
----
4671

query I rowsort
SELECT ALL + - COALESCE ( + + 5, - + 30 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT DISTINCT ( COUNT( - 86 ) ) * 36 + + 78 + - 36 + - - 82 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT ( COUNT ( - 86 ) ) * 36 + + 78 + - 36 + - - 82 AS col2
----
160

query I rowsort
SELECT ALL + 4 * 42 + - + 10
----
158

query I rowsort
SELECT - CASE - 45 WHEN + 3 * 85 - + 86 THEN + 44 END
----
NULL

query I rowsort
SELECT + - 60 + 10
----
-50

query I rowsort
SELECT - - 54 * 40 col1
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL CASE - + COALESCE ( + 6, - + 91 / + MIN( ALL + - 12 ) / - 81 - + 18 + + + 81 - - - ( 86 ), + 52 / 47 + 67 + - MAX( ALL ( + 73 ) ) ) WHEN - COUNT( * ) THEN COUNT( * ) * 68 + + 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL CASE - + COALESCE ( + 6, - + 91 / + MIN ( ALL + - 12 ) / - 81 - + 18 + + + 81 - - - ( 86 ), + 52 / 47 + 67 + - MAX ( ALL ( + 73 ) ) ) WHEN - COUNT ( * ) THEN COUNT ( * ) * 68 + + 48 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2954
SELECT DISTINCT - COUNT( ALL + 8 ) AS col2, - ( - 93 ) * - + COUNT( * ) + - MIN( DISTINCT - 13 ) + 51 + 42 - + + 25
----
-1
-12

skipif mysql # not compatible
query II rowsort label-2954
SELECT DISTINCT - COUNT ( ALL + 8 ) AS col2, - ( - 93 ) * - + COUNT ( * ) + - MIN ( DISTINCT - 13 ) + 51 + 42 - + + 25
----
-1
-12

query I rowsort
SELECT + + 85 + - 49
----
36

query I rowsort
SELECT - + 79 - 78
----
-157

query I rowsort
SELECT - 42 + - 51 * - 13
----
621

onlyif mysql # DIV for integer division: 
query I rowsort label-2958
SELECT ALL + ( - - 51 ) DIV 48 col0
----
1

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + ( - - 51 ) / 48 col0
----
1

query I rowsort
SELECT + 57 * 82 AS col1
----
4674

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2960
SELECT ALL COALESCE ( 73, NULLIF ( + 80, + NULLIF ( COUNT( * ), 80 ) ) + 26 - - + 7 DIV + - 94 ), + CASE 67 WHEN + 30 * COUNT( 66 ) + - NULLIF ( + 50, 56 * 69 ) THEN - ( COUNT( * ) ) WHEN 51 - - 45 THEN NULL END - 27 AS col2
----
73
NULL

skipif mysql # not compatible
query II rowsort label-2960
SELECT ALL COALESCE ( 73, NULLIF ( + 80, + NULLIF ( COUNT ( * ), 80 ) ) + 26 - - + 7 / + - 94 ), + CASE 67 WHEN + 30 * COUNT ( 66 ) + - NULLIF ( + 50, 56 * 69 ) THEN - ( COUNT ( * ) ) WHEN 51 - - 45 THEN NULL END - 27 AS col2
----
73
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2961
SELECT DISTINCT + 42 * - 39 * + + 60 DIV 5 * - 7 AS col1, - COUNT( * )
----
137592
-1

skipif mysql # not compatible
query II rowsort label-2961
SELECT DISTINCT + 42 * - 39 * + + 60 / 5 * - 7 AS col1, - COUNT ( * )
----
137592
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2962
SELECT ALL COUNT( * ) - + 25 + - + AVG ( DISTINCT + 49 ) - + COUNT( 55 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL COUNT ( * ) - + 25 + - + AVG ( DISTINCT + 49 ) - + COUNT ( 55 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 21 * - 18 AS col1
----
-378

query I rowsort
SELECT + 39 - - 14
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2965
SELECT DISTINCT + CASE - 44 WHEN + 11 THEN 54 * 51 + + CAST( 89 AS SIGNED ) / + 29 + - - COUNT( * ) END * - SUM( - 75 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT + CASE - 44 WHEN + 11 THEN 54 * 51 + + CAST ( 89 AS INTEGER ) / + 29 + - - COUNT ( * ) END * - SUM ( - 75 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT ALL COALESCE ( - 58, - COUNT( * ) ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL COALESCE ( - 58, - COUNT ( * ) ) col2
----
-58

query II rowsort
SELECT + 15 + + + ( 89 ) * + 95 * 78, + ( 84 ) * - - 8 * + + 66 AS col0
----
659505
44352

query I rowsort
SELECT - 91 * + 28 AS col1
----
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT - SUM( DISTINCT 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2969
SELECT - SUM ( DISTINCT 64 ) AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT ALL + 25 * 20 * + CAST( - + 8 AS SIGNED ) AS col2
----
-4000

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL + 25 * 20 * + CAST ( - + 8 AS INTEGER ) AS col2
----
-4000

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

query I rowsort
SELECT - 85 - - 73
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2973
SELECT ALL COALESCE ( 4, - 24, + + 76 ) DIV - 10 + - - 15 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL COALESCE ( 4, - 24, + + 76 ) / - 10 + - - 15 AS col1
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-2974
SELECT ALL 61 DIV - - 22 + + + 18, 70 AS col2
----
20
70

skipif mysql # not compatible
query II rowsort label-2974
SELECT ALL 61 / - - 22 + + + 18, 70 AS col2
----
20
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT - - 76 DIV - 37 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2975
SELECT - - 76 / - 37 AS col0
----
-2

query I rowsort
SELECT + 38 * + 95 - + 24 + + - 20 AS col1
----
3566

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT ALL + - 21 DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL + - 21 / + 94 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT - CAST( NULL AS SIGNED ) * + COALESCE ( + 17, + 41 / - 39 + - - 30 / - 96 + MAX( ALL - 65 ) ) - COUNT( DISTINCT + 39 ) + + 46 - + 80 + - + ( - 92 ) * MAX( + 83 ) / 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT - CAST ( NULL AS INTEGER ) * + COALESCE ( + 17, + 41 / - 39 + - - 30 / - 96 + MAX ( ALL - 65 ) ) - COUNT ( DISTINCT + 39 ) + + 46 - + 80 + - + ( - 92 ) * MAX ( + 83 ) / 76 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2979
SELECT ALL 46 DIV + + 80 + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL 46 / + + 80 + + - COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT ALL - + 29 DIV - 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL - + 29 / - 29 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2981
SELECT ALL 66 / COUNT( * ) + + CAST( NULL AS SIGNED ) * - AVG ( DISTINCT NULLIF ( - 7, - + 66 ) ) + ( + - COUNT( * ) ) / - 52 * - - 21 / COUNT( + 3 ) - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL 66 / COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT NULLIF ( - 7, - + 66 ) ) + ( + - COUNT ( * ) ) / - 52 * - - 21 / COUNT ( + 3 ) - + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT - 55 + - 81 + 64 * 62 + COUNT( DISTINCT + 20 ) * - 93 AS col1
----
3739

skipif mysql # not compatible
query I rowsort label-2982
SELECT - 55 + - 81 + 64 * 62 + COUNT ( DISTINCT + 20 ) * - 93 AS col1
----
3739

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL - + CASE 86 WHEN + + 81 * 48 THEN NULL ELSE - CASE + + 78 WHEN COUNT( * ) * - - 56 THEN 11 WHEN - + ( - 18 ) THEN NULL END / + 81 END * + 18 + 97 * + COUNT( ALL - 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL - + CASE 86 WHEN + + 81 * 48 THEN NULL ELSE - CASE + + 78 WHEN COUNT ( * ) * - - 56 THEN 11 WHEN - + ( - 18 ) THEN NULL END / + 81 END * + 18 + 97 * + COUNT ( ALL - 96 )
----
NULL

query I rowsort
SELECT - - 64 * + 43 col2
----
2752

query I rowsort
SELECT - 44 + + 0
----
-44

query I rowsort
SELECT + + 9 + + 40 AS col2
----
49

query I rowsort
SELECT ALL 1 - - 48 + - 93 AS col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT ALL CAST( 87 AS SIGNED ) * - 14 + 83 AS col2
----
-1135

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL CAST ( 87 AS INTEGER ) * - 14 + 83 AS col2
----
-1135

query I rowsort
SELECT ( + 98 ) + 38
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-2990
SELECT DISTINCT ( - - 28 ) DIV + - 66 - - - 68 col1
----
-68

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT ( - - 28 ) / + - 66 - - - 68 col1
----
-68

query II rowsort
SELECT ALL 41 AS col1, + 56 AS col1
----
41
56

query II rowsort
SELECT 83 AS col2, - 58
----
83
-58

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2994
SELECT NULLIF ( + 57, + 22 - - ( 22 ) ) DIV + 45 AS col1, 0 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2994
SELECT NULLIF ( + 57, + 22 - - ( 22 ) ) / + 45 AS col1, 0 AS col0
----
1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT ALL CAST( NULL AS SIGNED ) * 8 * + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL CAST ( NULL AS INTEGER ) * 8 * + 58 AS col0
----
NULL

query I rowsort
SELECT 19 + - COALESCE ( + 41, + 32 ) + - 37 * + + 59 * + 56
----
-122270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2997
SELECT COUNT( * ) - - CASE + - CAST( + + 57 AS SIGNED ) WHEN CASE 73 WHEN - 6 - 17 THEN NULL ELSE 91 + + COUNT( * ) + + - 55 END + - + 53 THEN NULL ELSE + + 13 END * NULLIF ( + 91, - 15 + 50 * 24 ) AS col1
----
1184

skipif mysql # not compatible
query I rowsort label-2997
SELECT COUNT ( * ) - - CASE + - CAST ( + + 57 AS INTEGER ) WHEN CASE 73 WHEN - 6 - 17 THEN NULL ELSE 91 + + COUNT ( * ) + + - 55 END + - + 53 THEN NULL ELSE + + 13 END * NULLIF ( + 91, - 15 + 50 * 24 ) AS col1
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT COUNT( * ) + - NULLIF ( - 30, - 60 ) + + 16
----
47

skipif mysql # not compatible
query I rowsort label-2998
SELECT COUNT ( * ) + - NULLIF ( - 30, - 60 ) + + 16
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2999
SELECT ALL CASE + 71 WHEN COUNT( * ) * - COUNT( DISTINCT - - 15 ) * + 24 * - 64 THEN - 97 WHEN + - 79 + + 33 + + CAST( - COUNT( DISTINCT + 5 ) AS SIGNED ) THEN 76 - + + 51 + - + 66 * 86 END + 16 * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL CASE + 71 WHEN COUNT ( * ) * - COUNT ( DISTINCT - - 15 ) * + 24 * - 64 THEN - 97 WHEN + - 79 + + 33 + + CAST ( - COUNT ( DISTINCT + 5 ) AS INTEGER ) THEN 76 - + + 51 + - + 66 * 86 END + 16 * - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT DISTINCT 32 + + 71 - + - 53 + - SUM( DISTINCT + - 43 )
----
199

skipif mysql # not compatible
query I rowsort label-3000
SELECT DISTINCT 32 + + 71 - + - 53 + - SUM ( DISTINCT + - 43 )
----
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3001
SELECT ALL - 66 + + ( - 13 ) + 36 DIV COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL - 66 + + ( - 13 ) + 36 / COUNT ( * ) AS col0
----
-43

query I rowsort
SELECT 63 + + - 28 col2
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3003
SELECT ALL 67 + - 18 DIV 1 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL 67 + - 18 / 1 AS col1
----
49

query I rowsort
SELECT 73 + - - 81
----
154

query I rowsort
SELECT ALL 20 + - 37 * + 52
----
-1904

query II rowsort
SELECT 89 + - 68, - 4 AS col0
----
21
-4

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

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + COUNT ( * ) * + 37 / 7
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3008
SELECT - 3 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT - 3 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + - 94 + - 28 * + - ( 87 ) + 44 AS col0
----
2386

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

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - COUNT ( * ) + - - 12 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3011
SELECT DISTINCT - + CASE - CAST( - 91 AS SIGNED ) WHEN 6 THEN - CASE + 88 WHEN 32 + 55 * - 6 THEN + MAX( DISTINCT + 61 ) * - COALESCE ( + 58, - 97 ) - 82 / + 27 + + 69 * - 38 ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT - + CASE - CAST ( - 91 AS INTEGER ) WHEN 6 THEN - CASE + 88 WHEN 32 + 55 * - 6 THEN + MAX ( DISTINCT + 61 ) * - COALESCE ( + 58, - 97 ) - 82 / + 27 + + 69 * - 38 ELSE NULL END END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 31 + 2
----
-29

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

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

query II rowsort
SELECT + 74 AS col1, + 55 - + + 15 AS col1
----
74
40

query I rowsort
SELECT - 75 * - 83 + + 71 AS col1
----
6296

onlyif mysql # DIV for integer division: 
query II rowsort label-3016
SELECT DISTINCT - - 45 AS col1, 5 * 59 DIV - + 61 AS col0
----
45
-4

skipif mysql # not compatible
query II rowsort label-3016
SELECT DISTINCT - - 45 AS col1, 5 * 59 / - + 61 AS col0
----
45
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3017
SELECT - NULLIF ( + ( - + 8 ), - 5 ) - - - COALESCE ( - 85, + COUNT( * ) - CAST( NULL AS SIGNED ) - + - 74 ) - SUM( ALL + + CASE + + 95 WHEN 52 THEN NULL WHEN 0 THEN + CAST( NULL AS DECIMAL ) + - 42 * 75 END ) / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT - NULLIF ( + ( - + 8 ), - 5 ) - - - COALESCE ( - 85, + COUNT ( * ) - CAST ( NULL AS INTEGER ) - + - 74 ) - SUM ( ALL + + CASE + + 95 WHEN 52 THEN NULL WHEN 0 THEN + CAST ( NULL AS REAL ) + - 42 * 75 END ) / 90
----
NULL

query I rowsort
SELECT 37 - 66 AS col2
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-3019
SELECT - 2 DIV 24 * - 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3019
SELECT - 2 / 24 * - 29 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT ALL - 32 * COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL - 32 * COUNT ( * ) AS col2
----
-32

query I rowsort
SELECT - 41 * - 21 AS col2
----
861

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

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT - 21 / 40
----
0

query II rowsort
SELECT ALL + + NULLIF ( + 82, + 14 - + - 2 / + 8 ) - - 69, + 94 AS col1
----
151
94

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3026
SELECT ALL + 69 * + COUNT( * ) * + CAST( NULL AS SIGNED ) * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL + 69 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3027
SELECT DISTINCT - COUNT( - 47 ) AS col2, COALESCE ( 33, 34 ) DIV - 25
----
-1
-1

skipif mysql # not compatible
query II rowsort label-3027
SELECT DISTINCT - COUNT ( - 47 ) AS col2, COALESCE ( 33, 34 ) / - 25
----
-1
-1

query II rowsort
SELECT DISTINCT + ( + + 27 ) * - - 76, - 23 col1
----
2052
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-3029
SELECT ALL COUNT( ALL + - 16 ) AS col1, - 74
----
1
-74

skipif mysql # not compatible
query II rowsort label-3029
SELECT ALL COUNT ( ALL + - 16 ) AS col1, - 74
----
1
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT COUNT( * ) + - 61 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3030
SELECT COUNT ( * ) + - 61 AS col2
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3031
SELECT COUNT( * ) * - 76 AS col0, + 47 DIV 25 AS col2
----
-76
1

skipif mysql # not compatible
query II rowsort label-3031
SELECT COUNT ( * ) * - 76 AS col0, + 47 / 25 AS col2
----
-76
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3032
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) + - - 69 * + 77 + 75 * - 93
----
-1661

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) + - - 69 * + 77 + 75 * - 93
----
-1661

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT 54 * + COUNT( * ) * - 88 * - 66 * 43
----
13486176

skipif mysql # not compatible
query I rowsort label-3033
SELECT 54 * + COUNT ( * ) * - 88 * - 66 * 43
----
13486176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3034
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 62 * 34 - + CAST( - 88 AS SIGNED ) * - + NULLIF ( - 48, - - ( - 64 ) + - - COALESCE ( 72, COUNT( * ) * - 46 * - 30, - - 97 ) + 43 ) + 24 * - 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 62 * 34 - + CAST ( - 88 AS INTEGER ) * - + NULLIF ( - 48, - - ( - 64 ) + - - COALESCE ( 72, COUNT ( * ) * - 46 * - 30, - - 97 ) + 43 ) + 24 * - 95 AS col2
----
NULL

query II rowsort
SELECT ALL 56 + + 31 AS col0, 3 * - + 28
----
87
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT 14 + NULLIF ( - 55, SUM( + - ( + + 43 ) ) ) * + 95 + - 86 AS col0
----
-5297

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT 14 + NULLIF ( - 55, SUM ( + - ( + + 43 ) ) ) * + 95 + - 86 AS col0
----
-5297

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3038
SELECT 73 DIV 29, 51 AS col1
----
2
51

skipif mysql # not compatible
query II rowsort label-3038
SELECT 73 / 29, 51 AS col1
----
2
51

query I rowsort
SELECT 44 - 34
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3040
SELECT ALL 20 + - ( NULLIF ( - - CAST( + - 48 AS SIGNED ), - 21 - + + 80 + - 78 * + COUNT( * ) ) )
----
68

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL 20 + - ( NULLIF ( - - CAST ( + - 48 AS INTEGER ), - 21 - + + 80 + - 78 * + COUNT ( * ) ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT MAX( ALL - 94 ) + - 63
----
-157

skipif mysql # not compatible
query I rowsort label-3041
SELECT MAX ( ALL - 94 ) + - 63
----
-157

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

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

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

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL 13 + + CAST ( NULL AS INTEGER ) * - ( + 42 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3044
SELECT + ( 6 ) - + 67 + MIN( DISTINCT - - 83 ) - - 33 * + 99 + + - 40 * 0 * + ( ( 21 ) ) * MIN( - - 99 ) DIV 16 + 3 - + - 14 AS col0
----
3306

skipif mysql # not compatible
query I rowsort label-3044
SELECT + ( 6 ) - + 67 + MIN ( DISTINCT - - 83 ) - - 33 * + 99 + + - 40 * 0 * + ( ( 21 ) ) * MIN ( - - 99 ) / 16 + 3 - + - 14 AS col0
----
3306

query I rowsort
SELECT ALL - CASE WHEN NOT 80 IS NULL THEN ( + - 8 ) END + + + 31
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3046
SELECT + 23 - + 40 - + MAX( ALL + + 70 ) + + COUNT( * ) DIV 41 * + 18 AS col0, + 66
----
-87
66

skipif mysql # not compatible
query II rowsort label-3046
SELECT + 23 - + 40 - + MAX ( ALL + + 70 ) + + COUNT ( * ) / 41 * + 18 AS col0, + 66
----
-87
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3047
SELECT + - 6 DIV + ( CAST( + 47 AS SIGNED ) ) + - 68 col0
----
-68

skipif mysql # not compatible
query I rowsort label-3047
SELECT + - 6 / + ( CAST ( + 47 AS INTEGER ) ) + - 68 col0
----
-68

query I rowsort
SELECT ALL - - 76 col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT - 50 + - + NULLIF ( + CAST( NULL AS SIGNED ), 72 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT - 50 + - + NULLIF ( + CAST ( NULL AS INTEGER ), 72 ) AS col0
----
NULL

query I rowsort
SELECT + 78 * + 33 + + - 65 AS col0
----
2509

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

query I rowsort
SELECT 47 * + 45 - 43 + - 60
----
2012

query I rowsort
SELECT 3 - - 2 + 58
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3054
SELECT - ( - 3 ) * + COALESCE ( - SUM( ALL 58 ), - + 37 * + MAX( + 69 ) * 21 + 82 - - 28 + SUM( 85 ) DIV + 36, + 81 + + + 13 + - 82 + 92 ) + - ( SUM( + 85 ) ) - + 8 col2
----
-267

skipif mysql # not compatible
query I rowsort label-3054
SELECT - ( - 3 ) * + COALESCE ( - SUM ( ALL 58 ), - + 37 * + MAX ( + 69 ) * 21 + 82 - - 28 + SUM ( 85 ) / + 36, + 81 + + + 13 + - 82 + 92 ) + - ( SUM ( + 85 ) ) - + 8 col2
----
-267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3055
SELECT + CASE - - 28 WHEN + 25 THEN 99 ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT + CASE - - 28 WHEN + 25 THEN 99 ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3056
SELECT + - COUNT( ALL CAST( + 54 AS SIGNED ) ) * + 93 * + ( 23 )
----
-2139

skipif mysql # not compatible
query I rowsort label-3056
SELECT + - COUNT ( ALL CAST ( + 54 AS INTEGER ) ) * + 93 * + ( 23 )
----
-2139

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT - 3 * + - 35 + + 0 DIV + + 73 DIV - + 38 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-3057
SELECT - 3 * + - 35 + + 0 / + + 73 / - + 38 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3058
SELECT NULLIF ( MIN( + + 97 ), - 29 + NULLIF ( COUNT( * ), 45 ) ) * - 79 + + CAST( - 47 AS SIGNED ) + - COUNT( * ) * - 34 + + 42 + + COUNT( * ) + 50 - - - 16 * + 97 col0
----
-9135

skipif mysql # not compatible
query I rowsort label-3058
SELECT NULLIF ( MIN ( + + 97 ), - 29 + NULLIF ( COUNT ( * ), 45 ) ) * - 79 + + CAST ( - 47 AS INTEGER ) + - COUNT ( * ) * - 34 + + 42 + + COUNT ( * ) + 50 - - - 16 * + 97 col0
----
-9135

query I rowsort
SELECT - 75 * 87 AS col0
----
-6525

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

skipif mysql # not compatible
query I rowsort label-3060
SELECT - 80 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 39, 52 col0
----
39
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3062
SELECT - 16 + + COUNT( * ) + - - 1 * - + COALESCE ( 91, - 68, + 57 ) + - 13 * - CAST( NULL AS SIGNED ) + 41 + - 71 * - 11 * 74 col1, 34 * + 27 AS col1
----
NULL
918

skipif mysql # not compatible
query II rowsort label-3062
SELECT - 16 + + COUNT ( * ) + - - 1 * - + COALESCE ( 91, - 68, + 57 ) + - 13 * - CAST ( NULL AS INTEGER ) + 41 + - 71 * - 11 * 74 col1, 34 * + 27 AS col1
----
NULL
918

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3063
SELECT DISTINCT - 92 + + + 79 + COUNT( * ) AS col1, - 95 DIV COUNT( * ) AS col0
----
-12
-95

skipif mysql # not compatible
query II rowsort label-3063
SELECT DISTINCT - 92 + + + 79 + COUNT ( * ) AS col1, - 95 / COUNT ( * ) AS col0
----
-12
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3064
SELECT ALL CAST( - 57 AS SIGNED ) + - 99 + - 37 + COUNT( ALL + 39 ) - - 65 * - COUNT( * )
----
-257

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL CAST ( - 57 AS INTEGER ) + - 99 + - 37 + COUNT ( ALL + 39 ) - - 65 * - COUNT ( * )
----
-257

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL + 66 + - ( + COUNT( * ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL + 66 + - ( + COUNT ( * ) ) AS col2
----
65

query I rowsort
SELECT ALL - 11 + - 33
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-3068
SELECT ALL COUNT( * ) AS col0, + 24 * - 71
----
1
-1704

skipif mysql # not compatible
query II rowsort label-3068
SELECT ALL COUNT ( * ) AS col0, + 24 * - 71
----
1
-1704

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

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

query I rowsort
SELECT ALL + 66 + - 13 AS col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3071
SELECT - COUNT( * ) AS col1, 11 * - + NULLIF ( 57, 56 ) * 64 col2
----
-1
-40128

skipif mysql # not compatible
query II rowsort label-3071
SELECT - COUNT ( * ) AS col1, 11 * - + NULLIF ( 57, 56 ) * 64 col2
----
-1
-40128

query I rowsort
SELECT - 26 + + 77 * + 20 AS col0
----
1514

query I rowsort
SELECT - AVG ( CASE WHEN NOT + 7 NOT BETWEEN NULL AND - 39 THEN 99 * - - 7 * + 10 END ) - - NULLIF ( 74, - 2 * + + 64 )
----
NULL

query II rowsort
SELECT - 73 AS col2, 37
----
-73
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-3075
SELECT + CAST( NULL AS DECIMAL ) + - CAST( + - 20 AS SIGNED ) col1, 29 DIV - ( - CAST( - - 41 AS SIGNED ) ) + + COUNT( * ) + - 29
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-3075
SELECT + CAST ( NULL AS REAL ) + - CAST ( + - 20 AS INTEGER ) col1, 29 / - ( - CAST ( - - 41 AS INTEGER ) ) + + COUNT ( * ) + - 29
----
NULL
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT DISTINCT 14 + + MIN( DISTINCT - 23 )
----
-9

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT 14 + + MIN ( DISTINCT - 23 )
----
-9

query I rowsort
SELECT ALL NULLIF ( + 22, ( - - 23 ) + - 28 )
----
22

query II rowsort
SELECT DISTINCT + 49 - + - COALESCE ( + COALESCE ( + 88, - - 23 ), + 30 ), 34 AS col0
----
137
34

query I rowsort
SELECT DISTINCT + - 22 - + 68 AS col1
----
-90

query I rowsort
SELECT + 21 + - - 53
----
74

query I rowsort
SELECT DISTINCT 60 * 39 AS col2
----
2340

query I rowsort
SELECT DISTINCT + 15 * + 94 col0
----
1410

query I rowsort
SELECT - 78 * + + 9 + - - 11 AS col2
----
-691

query I rowsort
SELECT + 48 * + + 39 AS col2
----
1872

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

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

query I rowsort
SELECT ALL + 65 * - 55
----
-3575

query I rowsort
SELECT + - 96 + - 43
----
-139

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

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

query I rowsort
SELECT + + 27 * - 59
----
-1593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3090
SELECT ALL + + 68 * + - 72 + NULLIF ( + 95, 0 / + + CASE - + 54 WHEN 87 * 34 + - - 3 * 47 THEN + - 57 * + CAST( NULL AS SIGNED ) * 5 WHEN + - ( + COALESCE ( - + 63, 35 ) ) + - 56 THEN 19 + - 0 ELSE 44 END + - 56 )
----
-4801

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL + + 68 * + - 72 + NULLIF ( + 95, 0 / + + CASE - + 54 WHEN 87 * 34 + - - 3 * 47 THEN + - 57 * + CAST ( NULL AS INTEGER ) * 5 WHEN + - ( + COALESCE ( - + 63, 35 ) ) + - 56 THEN 19 + - 0 ELSE 44 END + - 56 )
----
-4801

query I rowsort
SELECT DISTINCT + ( - ( 84 ) ) * 65
----
-5460

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT DISTINCT 63 DIV - + 4
----
-15

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT 63 / - + 4
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3093
SELECT + SUM( ALL - + 41 ) * + COALESCE ( + 32, ( - 35 ), - COALESCE ( + 32, - COUNT( * ) + + + 4 - + - 88 + 53 DIV - 16 ), COUNT( * ) ) AS col0
----
-1312

skipif mysql # not compatible
query I rowsort label-3093
SELECT + SUM ( ALL - + 41 ) * + COALESCE ( + 32, ( - 35 ), - COALESCE ( + 32, - COUNT ( * ) + + + 4 - + - 88 + 53 / - 16 ), COUNT ( * ) ) AS col0
----
-1312

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3094
SELECT + 71 DIV + 89 - 73 + - 15 AS col1, 87 - + COUNT( * )
----
-88
86

skipif mysql # not compatible
query II rowsort label-3094
SELECT + 71 / + 89 - 73 + - 15 AS col1, 87 - + COUNT ( * )
----
-88
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT + CASE - + 77 WHEN + 97 THEN CAST( NULL AS SIGNED ) ELSE - 48 END AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-3095
SELECT + CASE - + 77 WHEN + 97 THEN CAST ( NULL AS INTEGER ) ELSE - 48 END AS col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3096
SELECT ALL + 50 * + CAST( NULL AS SIGNED ) + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL + 50 * + CAST ( NULL AS INTEGER ) + 19
----
NULL

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

query I rowsort
SELECT 79 * + + 29 + + 95
----
2386

onlyif mysql # aggregate syntax: 
query II rowsort label-3099
SELECT ALL 86 * - ( - 72 ) * + - 74 AS col1, 42 + 87 * + + MIN( ALL + NULLIF ( 60, + ( + + 59 ) ) ) AS col0
----
-458208
5262

skipif mysql # not compatible
query II rowsort label-3099
SELECT ALL 86 * - ( - 72 ) * + - 74 AS col1, 42 + 87 * + + MIN ( ALL + NULLIF ( 60, + ( + + 59 ) ) ) AS col0
----
-458208
5262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3100
SELECT CASE 9 WHEN + 7 THEN + COUNT( * ) WHEN 29 + + 43 THEN + ( - ( 27 ) ) + 24 + - 3 + - 40 + - 63 + + 15 - + 48 * + COUNT( * ) - + - ( 85 ) * ( 67 ) * + AVG ( ALL 96 - ( + CASE NULLIF ( CASE - 70 WHEN ( - 35 ) THEN 65 + 79 ELSE 35 END, 10 + + 96 ) WHEN 52 * CAST( NULL AS SIGNED ) THEN + NULLIF ( + 5, 30 * - 98 ) - + 72 END ) ) * ( - NULLIF ( COUNT( * ), - CAST( + 7 AS DECIMAL ) ) - 89 ) * + 14 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT CASE 9 WHEN + 7 THEN + COUNT ( * ) WHEN 29 + + 43 THEN + ( - ( 27 ) ) + 24 + - 3 + - 40 + - 63 + + 15 - + 48 * + COUNT ( * ) - + - ( 85 ) * ( 67 ) * + AVG ( ALL 96 - ( + CASE NULLIF ( CASE - 70 WHEN ( - 35 ) THEN 65 + 79 ELSE 35 END, 10 + + 96 ) WHEN 52 * CAST ( NULL AS INTEGER ) THEN + NULLIF ( + 5, 30 * - 98 ) - + 72 END ) ) * ( - NULLIF ( COUNT ( * ), - CAST ( + 7 AS REAL ) ) - 89 ) * + 14 END AS col2
----
NULL

query I rowsort
SELECT ALL + ( + 22 ) * + + 37 + 30
----
844

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT DISTINCT COUNT( * ) * - ( 73 ) col1
----
-73

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT COUNT ( * ) * - ( 73 ) col1
----
-73

query I rowsort
SELECT + 45 - + 93 + + 31 + - 87
----
-104

query I rowsort
SELECT ALL CASE 83 WHEN 90 THEN 52 WHEN 13 * - - 82 * + 86 * - 72 * - + 66 THEN + 85 END * - 76 AS col0
----
NULL

query I rowsort
SELECT - 21 - - + 16 - + 25 AS col0
----
-30

query I rowsort
SELECT + 9 * - 92
----
-828

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3109
SELECT - CASE - - 32 WHEN - + ( + 24 ) THEN 55 WHEN CAST( NULL AS SIGNED ) + 4 THEN + - 55 END + + - 41 * - 76 + 88 * + + 41 * + + COUNT( * ) / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3109
SELECT - CASE - - 32 WHEN - + ( + 24 ) THEN 55 WHEN CAST ( NULL AS INTEGER ) + 4 THEN + - 55 END + + - 41 * - 76 + 88 * + + 41 * + + COUNT ( * ) / + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3110
SELECT - 67 - - 6 * COUNT( * ) DIV 31 + + ( - - COUNT( * ) ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3110
SELECT - 67 - - 6 * COUNT ( * ) / 31 + + ( - - COUNT ( * ) ) AS col0
----
-66

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

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + 44 / - COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL - MAX( - + 78 ) * + 75 * - 43 - + 60
----
-251610

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL - MAX ( - + 78 ) * + 75 * - 43 - + 60
----
-251610

query I rowsort
SELECT DISTINCT + 17 - - 49 AS col0
----
66

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

skipif mysql # not compatible
query I rowsort label-3114
SELECT - CAST ( NULL AS INTEGER ) / + - 10 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT - + COUNT( ALL - ( - 23 ) ) + + SUM( ALL - 64 ) * 43
----
-2753

skipif mysql # not compatible
query I rowsort label-3116
SELECT - + COUNT ( ALL - ( - 23 ) ) + + SUM ( ALL - 64 ) * 43
----
-2753

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

skipif mysql # not compatible
query I rowsort label-3117
SELECT - + SUM ( + 68 )
----
-68

query I rowsort
SELECT - - ( + - ( - + 63 ) ) + + NULLIF ( 26, - - 47 * - 2 * + 80 )
----
89

query I rowsort
SELECT + - 42 * 98 + - 99 + - 65 AS col2
----
-4280

query I rowsort
SELECT ( + COALESCE ( - 78, 64 ) ) + + - 6
----
-84

query I rowsort
SELECT DISTINCT NULLIF ( + 8, - - 89 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT DISTINCT - SUM( + + ( - - 58 ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT - SUM ( + + ( - - 58 ) ) AS col0
----
-58

query I rowsort
SELECT ALL 51 * - 60 AS col1
----
-3060

onlyif mysql # aggregate syntax: 
query II rowsort label-3124
SELECT ALL + 9 + - - COUNT( * ) AS col1, - 78
----
10
-78

skipif mysql # not compatible
query II rowsort label-3124
SELECT ALL + 9 + - - COUNT ( * ) AS col1, - 78
----
10
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT + 44 * ( - MAX( DISTINCT + 45 ) ) + + COUNT( * )
----
-1979

skipif mysql # not compatible
query I rowsort label-3125
SELECT + 44 * ( - MAX ( DISTINCT + 45 ) ) + + COUNT ( * )
----
-1979

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT + MAX( - 27 ) - - 4
----
-23

skipif mysql # not compatible
query I rowsort label-3126
SELECT + MAX ( - 27 ) - - 4
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT + + 74 * + - 76 * ( COUNT( * ) ) - + 60
----
-5684

skipif mysql # not compatible
query I rowsort label-3127
SELECT + + 74 * + - 76 * ( COUNT ( * ) ) - + 60
----
-5684

query I rowsort
SELECT 41 * + + 22
----
902

query I rowsort
SELECT ALL 63 + + + ( - 27 ) + - 94 - - - 70
----
-128

query I rowsort
SELECT + 42 * + 38 + - 62 AS col0
----
1534

onlyif mysql # DIV for integer division: 
query II rowsort label-3131
SELECT ALL 57 DIV 39 * - 39 AS col1, 24 col2
----
-39
24

skipif mysql # not compatible
query II rowsort label-3131
SELECT ALL 57 / 39 * - 39 AS col1, 24 col2
----
-39
24

query I rowsort
SELECT ALL 3 - + 44
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT COUNT( - + 28 ) * + ( 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3133
SELECT COUNT ( - + 28 ) * + ( 99 ) AS col1
----
99

query I rowsort
SELECT ( 97 ) * ( - + 64 )
----
-6208

query I rowsort
SELECT ALL 97 * - + 54 AS col2
----
-5238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3136
SELECT 48 * - 10 + + - 43 + - - MIN( ALL - + 94 ) + CAST( NULL AS SIGNED ) + AVG ( DISTINCT - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3136
SELECT 48 * - 10 + + - 43 + - - MIN ( ALL - + 94 ) + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT - 99 )
----
NULL

query I rowsort
SELECT DISTINCT 32 * + 15
----
480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3138
SELECT ( + 99 ) * + - 99 * 96 + - 41 + COUNT( DISTINCT + 93 ) DIV - 68 AS col2
----
-940937

skipif mysql # not compatible
query I rowsort label-3138
SELECT ( + 99 ) * + - 99 * 96 + - 41 + COUNT ( DISTINCT + 93 ) / - 68 AS col2
----
-940937

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT ALL 61 * - + CASE + 75 WHEN + + 49 + + + 14 + NULLIF ( + - 74, 47 * 59 ) * - 42 * + MIN( + 11 ) * + + 98 - 8 * - - 49 * - + AVG ( ALL - - 1 ) THEN + COALESCE ( + 48, + COUNT( * ), + 4 / + 23 ) / 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL 61 * - + CASE + 75 WHEN + + 49 + + + 14 + NULLIF ( + - 74, 47 * 59 ) * - 42 * + MIN ( + 11 ) * + + 98 - 8 * - - 49 * - + AVG ( ALL - - 1 ) THEN + COALESCE ( + 48, + COUNT ( * ), + 4 / + 23 ) / 55 END
----
NULL

query I rowsort
SELECT ( + 82 ) + - - 25
----
107

query I rowsort
SELECT DISTINCT 96 * - 57 AS col1
----
-5472

query I rowsort
SELECT ( - 70 ) * - 71 * + 46
----
228620

query I rowsort
SELECT 7 + + ( 39 ) AS col0
----
46

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

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

query I rowsort
SELECT 9 + + + 6
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3146
SELECT + 30 DIV - ( MAX( + 54 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3146
SELECT + 30 / - ( MAX ( + 54 ) )
----
0

query I rowsort
SELECT - 69 * + 90 AS col2
----
-6210

query I rowsort
SELECT 55 + + + 89
----
144

query I rowsort
SELECT - - 57 col0
----
57

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

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

query I rowsort
SELECT 88 + - 32 * - 14 * + + 57
----
25624

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT - 96 DIV 54 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3152
SELECT - 96 / 54 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3153
SELECT ALL 66 DIV 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL 66 / 78 AS col0
----
0

query I rowsort
SELECT DISTINCT + - 30 * - 5 * - - 38 + - 78 AS col0
----
5622

onlyif mysql # DIV for integer division: 
query I rowsort label-3155
SELECT ALL + - 5 + + + 32 + - 33 DIV - 34 * - 32 - + 70 + - 7 * 12 * - 55 AS col2
----
4577

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL + - 5 + + + 32 + - 33 / - 34 * - 32 - + 70 + - 7 * 12 * - 55 AS col2
----
4577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3156
SELECT + 19 + CAST( - 20 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3156
SELECT + 19 + CAST ( - 20 AS INTEGER ) AS col0
----
-1

query III rowsort
SELECT 70, 4 * - 61 AS col2, 31 + - - 73 AS col2
----
70
-244
104

query I rowsort
SELECT DISTINCT + + 38 + 43
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT CAST( - - 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3159
SELECT CAST ( - - 0 AS INTEGER ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3160
SELECT + COALESCE ( + + 83, + 29 + + ( 92 ), 26 * - 88 * - - 37 - 23 + + 16 * - + 24 * CAST( NULL AS SIGNED ) + + MAX( ALL 34 ) DIV + - 61 + - + 76 + - 78 + 70, + 54 - - 16 * + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-3160
SELECT + COALESCE ( + + 83, + 29 + + ( 92 ), 26 * - 88 * - - 37 - 23 + + 16 * - + 24 * CAST ( NULL AS INTEGER ) + + MAX ( ALL 34 ) / + - 61 + - + 76 + - 78 + 70, + 54 - - 16 * + 83 )
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3161
SELECT - 85 * - + NULLIF ( 17, - CAST( NULL AS DECIMAL ) )
----
1445

skipif mysql # not compatible
query I rowsort label-3161
SELECT - 85 * - + NULLIF ( 17, - CAST ( NULL AS REAL ) )
----
1445

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT 3 + - 28 + - 53 * SUM( DISTINCT - 45 ) AS col1
----
2360

skipif mysql # not compatible
query I rowsort label-3162
SELECT 3 + - 28 + - 53 * SUM ( DISTINCT - 45 ) AS col1
----
2360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3163
SELECT + CAST( - 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-3163
SELECT + CAST ( - 64 AS INTEGER )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3164
SELECT DISTINCT + NULLIF ( - 19, - 50 ) * + 23 * + COALESCE ( - - NULLIF ( + - 18, + 49 ), + 50 * + + 61 * - CAST( + 31 AS SIGNED ), - - 84 * + COALESCE ( + - 66, - + 29 ) ) * - SUM( ALL - NULLIF ( + 37, 6 ) ) * - 52 + 88 AS col1
----
-15134096

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT + NULLIF ( - 19, - 50 ) * + 23 * + COALESCE ( - - NULLIF ( + - 18, + 49 ), + 50 * + + 61 * - CAST ( + 31 AS INTEGER ), - - 84 * + COALESCE ( + - 66, - + 29 ) ) * - SUM ( ALL - NULLIF ( + 37, 6 ) ) * - 52 + 88 AS col1
----
-15134096

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT ALL COALESCE ( 53, 42 DIV - - 99 ) * 60 + + 88
----
3268

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL COALESCE ( 53, 42 / - - 99 ) * 60 + + 88
----
3268

query I rowsort
SELECT 48 * - - ( - 21 )
----
-1008

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

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

query I rowsort
SELECT ALL 16 * + - 99 * 5 AS col0
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT 38 * COUNT( * ) * + COUNT( DISTINCT - + 65 )
----
38

skipif mysql # not compatible
query I rowsort label-3169
SELECT 38 * COUNT ( * ) * + COUNT ( DISTINCT - + 65 )
----
38

query I rowsort
SELECT ALL - NULLIF ( - 34, + + 44 ) AS col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT 92 * + - 0 DIV + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3171
SELECT 92 * + - 0 / + 90 AS col1
----
0

query I rowsort
SELECT ALL 97 * - 88
----
-8536

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT + COUNT( * ) * MIN( + 8 ) + + 30
----
38

skipif mysql # not compatible
query I rowsort label-3173
SELECT + COUNT ( * ) * MIN ( + 8 ) + + 30
----
38

query I rowsort
SELECT ALL + 17 - 53 AS col1
----
-36

query I rowsort
SELECT DISTINCT - 62 * + 95
----
-5890

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT ALL 50 - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL 50 - COUNT ( * )
----
49

query I rowsort
SELECT ALL - 44 * - 75
----
3300

query I rowsort
SELECT DISTINCT + 90 * + 71 AS col1
----
6390

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3180
SELECT DISTINCT 2 DIV + - 86
----
0

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT 2 / + - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT 1 - - - 50 + - 62 - - - SUM( ALL ( - 11 ) )
----
-100

skipif mysql # not compatible
query I rowsort label-3181
SELECT 1 - - - 50 + - 62 - - - SUM ( ALL ( - 11 ) )
----
-100

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

skipif mysql # not compatible
query I rowsort label-3182
SELECT 72 / 40
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3183
SELECT DISTINCT 29, 39 + NULLIF ( - - CAST( + 79 AS SIGNED ), 65 ) + - - COUNT( * ) AS col2
----
29
119

skipif mysql # not compatible
query II rowsort label-3183
SELECT DISTINCT 29, 39 + NULLIF ( - - CAST ( + 79 AS INTEGER ), 65 ) + - - COUNT ( * ) AS col2
----
29
119

onlyif mysql # aggregate syntax: 
query III rowsort label-3184
SELECT ALL + 36 col0, - COUNT( * ), + + 65 AS col1
----
36
-1
65

skipif mysql # not compatible
query III rowsort label-3184
SELECT ALL + 36 col0, - COUNT ( * ), + + 65 AS col1
----
36
-1
65

query II rowsort
SELECT + 77 AS col1, - 25
----
77
-25

query I rowsort
SELECT - - NULLIF ( - 17, + - 73 )
----
-17

query II rowsort
SELECT - 77 AS col2, 77 AS col1
----
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT DISTINCT 55 + - - 90 + - CASE 95 WHEN 31 THEN - - 17 * - 10 + - 42 END - + COUNT( * ) / - + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT 55 + - - 90 + - CASE 95 WHEN 31 THEN - - 17 * - 10 + - 42 END - + COUNT ( * ) / - + 65
----
NULL

query I rowsort
SELECT ALL - - 65 + + + 0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT + COUNT( * ) * COUNT( ALL + + 67 ) * - COUNT( * ) * - 37 + SUM( ALL + 0 ) + - - ( - + 67 ) + - ( - 13 ) + - + 72 - - COALESCE ( - + 52, - SUM( DISTINCT 47 ), - MIN( - 26 ) - + 95 ) + - + COUNT( NULLIF ( + 41, 90 ) ) * 87
----
-228

skipif mysql # not compatible
query I rowsort label-3190
SELECT + COUNT ( * ) * COUNT ( ALL + + 67 ) * - COUNT ( * ) * - 37 + SUM ( ALL + 0 ) + - - ( - + 67 ) + - ( - 13 ) + - + 72 - - COALESCE ( - + 52, - SUM ( DISTINCT 47 ), - MIN ( - 26 ) - + 95 ) + - + COUNT ( NULLIF ( + 41, 90 ) ) * 87
----
-228

query I rowsort
SELECT ALL ( - 97 ) + + 83 * + 36 * - 95
----
-283957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3192
SELECT ALL CASE SUM( ALL - ( + - 29 ) ) WHEN - - 68 / 72 * + + 1 * + - 79 - - 70 + 52 THEN NULL WHEN COUNT( * ) + + 43 - - + CAST( NULL AS SIGNED ) THEN - 7 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL CASE SUM ( ALL - ( + - 29 ) ) WHEN - - 68 / 72 * + + 1 * + - 79 - - 70 + 52 THEN NULL WHEN COUNT ( * ) + + 43 - - + CAST ( NULL AS INTEGER ) THEN - 7 END
----
NULL

query I rowsort
SELECT + 56 + + 94 AS col0
----
150

query II rowsort
SELECT - - 41, + 92 AS col1
----
41
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT + 70 + - 78 + + - NULLIF ( ( COUNT( ALL - + 47 ) ), + 54 ) * 99
----
-107

skipif mysql # not compatible
query I rowsort label-3195
SELECT + 70 + - 78 + + - NULLIF ( ( COUNT ( ALL - + 47 ) ), + 54 ) * 99
----
-107

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

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

query I rowsort
SELECT + 83 + 80 AS col2
----
163

query I rowsort
SELECT ALL + + 60 + 26 AS col2
----
86

query I rowsort
SELECT + - 21 + + + 29 - - 59 AS col0
----
67

query I rowsort
SELECT DISTINCT 84 - 64
----
20

query I rowsort
SELECT ALL + 75 * - 19
----
-1425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3202
SELECT ALL 15 * + CAST( + 30 AS SIGNED ) * - MIN( - 67 ) * 79 + 10 * + 78 - + COALESCE ( - + 93, CAST( NULL AS SIGNED ), 95 ) AS col0, CAST( - ( + 22 ) AS SIGNED ) - - 83
----
2382723
61

skipif mysql # not compatible
query II rowsort label-3202
SELECT ALL 15 * + CAST ( + 30 AS INTEGER ) * - MIN ( - 67 ) * 79 + 10 * + 78 - + COALESCE ( - + 93, CAST ( NULL AS INTEGER ), 95 ) AS col0, CAST ( - ( + 22 ) AS INTEGER ) - - 83
----
2382723
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT - 39 * - + ( - COUNT( - 1 ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-3203
SELECT - 39 * - + ( - COUNT ( - 1 ) ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3204
SELECT - CAST( NULL AS SIGNED ) * - MIN( ALL - - 41 ) * COUNT( * ) * 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3204
SELECT - CAST ( NULL AS INTEGER ) * - MIN ( ALL - - 41 ) * COUNT ( * ) * 50 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3205
SELECT - ( MIN( ALL + + 86 ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT - ( MIN ( ALL + + 86 ) ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3206
SELECT - 80 * 43, - CAST( NULL AS SIGNED ) * - + 50 + - ( - 29 ) + 73 col2
----
-3440
NULL

skipif mysql # not compatible
query II rowsort label-3206
SELECT - 80 * 43, - CAST ( NULL AS INTEGER ) * - + 50 + - ( - 29 ) + 73 col2
----
-3440
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT ALL + COALESCE ( - COUNT( * ), - 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL + COALESCE ( - COUNT ( * ), - 58 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3208
SELECT COALESCE ( 9, - 61 ), 40 DIV + - 91 * + - 55 AS col0
----
9
0

skipif mysql # not compatible
query II rowsort label-3208
SELECT COALESCE ( 9, - 61 ), 40 / + - 91 * + - 55 AS col0
----
9
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3209
SELECT COUNT( 1 ) * 99 * + - 70 * - ( + ( - COUNT( + 92 ) ) ) + 26 - + + CASE + 63 WHEN - COALESCE ( 84, - 89 ) THEN NULL WHEN + - ( - + 99 ) THEN NULL ELSE + 66 END AS col1, + 99 * + + 19
----
-6970
1881

skipif mysql # not compatible
query II rowsort label-3209
SELECT COUNT ( 1 ) * 99 * + - 70 * - ( + ( - COUNT ( + 92 ) ) ) + 26 - + + CASE + 63 WHEN - COALESCE ( 84, - 89 ) THEN NULL WHEN + - ( - + 99 ) THEN NULL ELSE + 66 END AS col1, + 99 * + + 19
----
-6970
1881

query I rowsort
SELECT - 49 * - - 11 AS col2
----
-539

onlyif mysql # DIV for integer division: 
query I rowsort label-3211
SELECT + 2 DIV 15 col1
----
0

skipif mysql # not compatible
query I rowsort label-3211
SELECT + 2 / 15 col1
----
0

query I rowsort
SELECT ALL - 13 * + - 69 AS col1
----
897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3213
SELECT - 13 + + ( - + 24 ) - 4 * + - 2 * ( - CASE CAST( + 1 AS SIGNED ) WHEN - + ( 93 ) * - + COUNT( * ) THEN + 53 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3213
SELECT - 13 + + ( - + 24 ) - 4 * + - 2 * ( - CASE CAST ( + 1 AS INTEGER ) WHEN - + ( 93 ) * - + COUNT ( * ) THEN + 53 ELSE NULL END )
----
NULL

query I rowsort
SELECT + 76 * + 22 + - 58 AS col0
----
1614

query I rowsort
SELECT CASE + 74 WHEN + 22 THEN - 46 * 5 * ( - COALESCE ( 46, + + 93 ) ) + - - 52 WHEN + 80 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT DISTINCT - - CAST( - 68 AS SIGNED ) * + - 20 + - 16 col0
----
1344

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT - - CAST ( - 68 AS INTEGER ) * + - 20 + - 16 col0
----
1344

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3219
SELECT ALL 9 * + COUNT( * ) + - 3 + 42 * 20 AS col2, 84 AS col0
----
846
84

skipif mysql # not compatible
query II rowsort label-3219
SELECT ALL 9 * + COUNT ( * ) + - 3 + 42 * 20 AS col2, 84 AS col0
----
846
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT DISTINCT + CASE - 88 WHEN 77 THEN - COALESCE ( - 94, 76, + COUNT( * ) ) * - 77 / 63 + + - COUNT( DISTINCT + + NULLIF ( - 1, + 61 ) ) - + COUNT( * ) END * 0 + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT + CASE - 88 WHEN 77 THEN - COALESCE ( - 94, 76, + COUNT ( * ) ) * - 77 / 63 + + - COUNT ( DISTINCT + + NULLIF ( - 1, + 61 ) ) - + COUNT ( * ) END * 0 + 65
----
NULL

query II rowsort
SELECT + 87 + 72 AS col0, + 32 * - 44 AS col0
----
159
-1408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3222
SELECT DISTINCT + ( + 95 ) DIV - SUM( 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT + ( + 95 ) / - SUM ( 93 )
----
-1

query I rowsort
SELECT - + 91 * 30 + - + 45 + 11 AS col1
----
-2764

query I rowsort
SELECT - 45 * 4 * + 56
----
-10080

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT ALL - 31 + COUNT( * ) + 74 * - - 3
----
192

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL - 31 + COUNT ( * ) + 74 * - - 3
----
192

query I rowsort
SELECT DISTINCT + 97 * - - 58 + + 19
----
5645

query I rowsort
SELECT ALL 34 * - 39 AS col2
----
-1326

query I rowsort
SELECT + 4 * - 58
----
-232

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

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

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

skipif mysql # not compatible
query I rowsort label-3230
SELECT + 10 / 96
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3233
SELECT 71 AS col1, COUNT( * ) * 74 * - 30 AS col2
----
71
-2220

skipif mysql # not compatible
query II rowsort label-3233
SELECT 71 AS col1, COUNT ( * ) * 74 * - 30 AS col2
----
71
-2220

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3236
SELECT ALL 74 DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL 74 / + 49
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT + CAST( - 8 AS SIGNED ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-3237
SELECT + CAST ( - 8 AS INTEGER ) col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL + 90 * - CASE + ( + - 8 ) WHEN 85 * - SUM( ALL + 47 ) + - 84 THEN + ( + 30 ) + - 96 * + COUNT( * ) * + 91 * 96 + - ( 1 ) + + 29 WHEN 1 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL + 90 * - CASE + ( + - 8 ) WHEN 85 * - SUM ( ALL + 47 ) + - 84 THEN + ( + 30 ) + - 96 * + COUNT ( * ) * + 91 * 96 + - ( 1 ) + + 29 WHEN 1 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3239
SELECT ALL 38 DIV + CASE - COALESCE ( 80, - 35 + - 87, - 55 ) WHEN - + 83 THEN NULL ELSE - + 77 * ( 49 ) + - + 76 DIV 60 * - - 99 + - COUNT( * ) - - COALESCE ( - + 32, - - 72 ) * - - 42 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL 38 / + CASE - COALESCE ( 80, - 35 + - 87, - 55 ) WHEN - + 83 THEN NULL ELSE - + 77 * ( 49 ) + - + 76 / 60 * - - 99 + - COUNT ( * ) - - COALESCE ( - + 32, - - 72 ) * - - 42 END AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT 26 / - CASE 63 WHEN 0 THEN 60 END + COUNT( * ) / - - 16 + 57 - + 56 AS col1, 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-3240
SELECT 26 / - CASE 63 WHEN 0 THEN 60 END + COUNT ( * ) / - - 16 + 57 - + 56 AS col1, 90
----
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT ALL - COUNT( * ) + - 49
----
-50

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL - COUNT ( * ) + - 49
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3242
SELECT 91 + - 28 + - + CAST( - 46 AS SIGNED ) * + + 23 AS col2
----
1121

skipif mysql # not compatible
query I rowsort label-3242
SELECT 91 + - 28 + - + CAST ( - 46 AS INTEGER ) * + + 23 AS col2
----
1121

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3245
SELECT ALL - CASE + 86 WHEN + 63 * - COUNT( ALL - ( - 51 ) ) + 39 + 7 + - ( + AVG ( CAST( NULL AS DECIMAL ) ) ) THEN NULL WHEN + 79 + - - 51 + ( - 92 ) THEN - AVG ( DISTINCT + 37 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL - CASE + 86 WHEN + 63 * - COUNT ( ALL - ( - 51 ) ) + 39 + 7 + - ( + AVG ( CAST ( NULL AS REAL ) ) ) THEN NULL WHEN + 79 + - - 51 + ( - 92 ) THEN - AVG ( DISTINCT + 37 ) END
----
NULL

query I rowsort
SELECT ALL + 9 + - 56
----
-47

query II rowsort
SELECT + 89, 96 AS col0
----
89
96

query I rowsort
SELECT 40 * + 83 + - 95 AS col0
----
3225

query I rowsort
SELECT DISTINCT - 75 + + 98 col2
----
23

query I rowsort
SELECT ALL - - NULLIF ( + 87, NULLIF ( - + 45, - 81 ) + - + 98 + 40 ) AS col0
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT 2 + - 52 + + ( - COUNT( * ) ) + + 98 * - + ( - 87 )
----
8475

skipif mysql # not compatible
query I rowsort label-3252
SELECT 2 + - 52 + + ( - COUNT ( * ) ) + + 98 * - + ( - 87 )
----
8475

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

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL - COUNT ( * ) / + + 37 + + 87 AS col2
----
87

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

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

query I rowsort
SELECT 81 + 75 * + 12 * + 46 + + 63 AS col1
----
41544

query I rowsort
SELECT + 12 * - 32
----
-384

query I rowsort
SELECT - 79 * - 34
----
2686

query II rowsort
SELECT ALL 69 AS col0, 44 * + 63 AS col1
----
69
2772

query I rowsort
SELECT + ( + 83 ) * + - 43
----
-3569

query I rowsort
SELECT + 15 * - - 72
----
1080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3261
SELECT 58 DIV - 59 + 95 + + 30 + + COUNT( * ) * - 71 * + 61
----
-4206

skipif mysql # not compatible
query I rowsort label-3261
SELECT 58 / - 59 + 95 + + 30 + + COUNT ( * ) * - 71 * + 61
----
-4206

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT SUM( ALL - + COALESCE ( - 66, + 49 ) ) + - + 98 + + 83 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3262
SELECT SUM ( ALL - + COALESCE ( - 66, + 49 ) ) + - + 98 + + 83 AS col0
----
51

query I rowsort
SELECT ALL 33 * 33
----
1089

query I rowsort
SELECT 76 + + - 30 * 3
----
-14

query I rowsort
SELECT 82 + - - 3 * + - 0 - + 79 AS col0
----
3

query I rowsort
SELECT DISTINCT 68 * - ( 42 )
----
-2856

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3267
SELECT ALL 97 * 27 DIV + SUM( DISTINCT + 93 ), - 64 + + 94 AS col1
----
28
30

skipif mysql # not compatible
query II rowsort label-3267
SELECT ALL 97 * 27 / + SUM ( DISTINCT + 93 ), - 64 + + 94 AS col1
----
28
30

query I rowsort
SELECT 66 * + 3
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT COUNT( * ) + + + 20
----
21

skipif mysql # not compatible
query I rowsort label-3269
SELECT COUNT ( * ) + + + 20
----
21

query I rowsort
SELECT DISTINCT 32 + - 22
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3271
SELECT - 5 * 35 * - COALESCE ( 35, - 88 ) * - SUM( - ( 46 ) ) + 58, + ( - + 28 ) AS col1
----
281808
-28

skipif mysql # not compatible
query II rowsort label-3271
SELECT - 5 * 35 * - COALESCE ( 35, - 88 ) * - SUM ( - ( 46 ) ) + 58, + ( - + 28 ) AS col1
----
281808
-28

query II rowsort
SELECT DISTINCT 90 + + ( 96 ) * 48, 24 AS col1
----
4698
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT ALL - 96 + + - 38 + - COUNT( * ) AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - 96 + + - 38 + - COUNT ( * ) AS col1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT + SUM( DISTINCT 6 ) + - 47 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-3274
SELECT + SUM ( DISTINCT 6 ) + - 47 AS col0
----
-41

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3276
SELECT ALL - 97 - + COUNT( DISTINCT - 23 ) - + + 86 DIV - 55 + + + 80 * + + 73 + NULLIF ( - + COALESCE ( 62, + SUM( - 51 ) ), MIN( ALL - + 86 ) ) AS col0
----
5681

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL - 97 - + COUNT ( DISTINCT - 23 ) - + + 86 / - 55 + + + 80 * + + 73 + NULLIF ( - + COALESCE ( 62, + SUM ( - 51 ) ), MIN ( ALL - + 86 ) ) AS col0
----
5681

onlyif mysql # DIV for integer division: 
query I rowsort label-3277
SELECT - 22 + - 36 - + 5 DIV + 83 * 4 + - 41
----
-99

skipif mysql # not compatible
query I rowsort label-3277
SELECT - 22 + - 36 - + 5 / + 83 * 4 + - 41
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3278
SELECT + 72 + + 85 AS col1, COUNT( * )
----
157
1

skipif mysql # not compatible
query II rowsort label-3278
SELECT + 72 + + 85 AS col1, COUNT ( * )
----
157
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3279
SELECT - 77 * + NULLIF ( + + COUNT( * ), - - ( + 75 ) ) + + 98 + - + 69 - NULLIF ( - COALESCE ( + MAX( - 32 ), + ( + + ( - 91 ) ) * COUNT( * ) * + SUM( DISTINCT - + 55 ) * + 58 DIV - - ( + 29 ) + + 72 ), - 63 * - - 72 + + 69 + COUNT( * ) ) * 45
----
-1488

skipif mysql # not compatible
query I rowsort label-3279
SELECT - 77 * + NULLIF ( + + COUNT ( * ), - - ( + 75 ) ) + + 98 + - + 69 - NULLIF ( - COALESCE ( + MAX ( - 32 ), + ( + + ( - 91 ) ) * COUNT ( * ) * + SUM ( DISTINCT - + 55 ) * + 58 / - - ( + 29 ) + + 72 ), - 63 * - - 72 + + 69 + COUNT ( * ) ) * 45
----
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL SUM( - + 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL SUM ( - + 74 ) AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3281
SELECT + CASE 99 WHEN - CAST( NULL AS SIGNED ) + + 61 + - 25 + - 23 THEN + 10 WHEN - + 30 THEN - - COUNT( * ) / - 18 END + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT + CASE 99 WHEN - CAST ( NULL AS INTEGER ) + + 61 + - 25 + - 23 THEN + 10 WHEN - + 30 THEN - - COUNT ( * ) / - 18 END + 73 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT + CAST( NULL AS SIGNED ) / 61 + - 67 / + + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3282
SELECT + CAST ( NULL AS INTEGER ) / 61 + - 67 / + + 30 AS col0
----
NULL

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

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

query I rowsort
SELECT - 22 + 89 * 79 AS col1
----
7009

query I rowsort
SELECT DISTINCT + 87 * - 60 AS col1
----
-5220

query I rowsort
SELECT 76 * - 45 AS col1
----
-3420

query I rowsort
SELECT ALL + 17 * + - 19 AS col2
----
-323

query I rowsort
SELECT ALL 27 + + 70
----
97

query II rowsort
SELECT DISTINCT 93 col1, - 15 AS col1
----
93
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL MAX( DISTINCT 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL MAX ( DISTINCT 51 ) AS col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT 66 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-3291
SELECT 66 / 95
----
0

query I rowsort
SELECT 72 - - 38
----
110

query II rowsort
SELECT 20 col2, 80
----
20
80

query I rowsort
SELECT + 85 * + 88 AS col1
----
7480

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT DISTINCT - 72 + COALESCE ( - - 8, + 50 DIV + 67 ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT - 72 + COALESCE ( - - 8, + 50 / + 67 ) col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT - 73 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-3296
SELECT - 73 / 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT + 79 * - CASE 17 WHEN 83 THEN - + 36 * + ( COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT + 79 * - CASE 17 WHEN 83 THEN - + 36 * + ( COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3298
SELECT DISTINCT - SUM( + - COALESCE ( + 42, + 70, + - 94 DIV 88, - 93 + + 70 + + 25 * + ( + 94 ) ) ) + 39 + ( NULLIF ( 26, - COUNT( * ) ) ) AS col0
----
107

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT - SUM ( + - COALESCE ( + 42, + 70, + - 94 / 88, - 93 + + 70 + + 25 * + ( + 94 ) ) ) + 39 + ( NULLIF ( 26, - COUNT ( * ) ) ) AS col0
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3299
SELECT 91 DIV - 69 - + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3299
SELECT 91 / - 69 - + COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT + 19 * - 41 AS col0
----
-779

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT COALESCE ( + - ( - 20 ), + + 22, - COUNT( 29 ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3301
SELECT COALESCE ( + - ( - 20 ), + + 22, - COUNT ( 29 ) ) AS col2
----
20

query I rowsort
SELECT + - CASE + - CASE + 61 WHEN + + 28 THEN 92 - - + 29 ELSE NULL END WHEN + AVG ( ALL + + NULLIF ( + - 79, + - 7 ) ) * + + NULLIF ( + 24, - 92 ) THEN - + 75 WHEN - + 0 THEN + - 27 WHEN + 81 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3303
SELECT + 67 * CAST( + - MAX( DISTINCT - - CAST( + 2 AS DECIMAL ) ) AS SIGNED ) AS col2, - CAST( NULL AS SIGNED ) + COUNT( * ) * 65 AS col2
----
-134
NULL

skipif mysql # not compatible
query II rowsort label-3303
SELECT + 67 * CAST ( + - MAX ( DISTINCT - - CAST ( + 2 AS REAL ) ) AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) + COUNT ( * ) * 65 AS col2
----
-134
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT + 11 + - - COUNT( * ) + + 98
----
110

skipif mysql # not compatible
query I rowsort label-3304
SELECT + 11 + - - COUNT ( * ) + + 98
----
110

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL - - 64 * SUM( 84 ) AS col1
----
5376

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - - 64 * SUM ( 84 ) AS col1
----
5376

query I rowsort
SELECT + 0 * - 18 - + 67 - - 50 + - 76 * - 70 AS col2
----
5303

query I rowsort
SELECT + 70 * - COALESCE ( 18, 86 ) AS col2
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT - - 92 * - + 66 * - COUNT( + - 38 ) - + 3 - + + 88 AS col0
----
5981

skipif mysql # not compatible
query I rowsort label-3310
SELECT - - 92 * - + 66 * - COUNT ( + - 38 ) - + 3 - + + 88 AS col0
----
5981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT - 97 / CAST( NULL AS SIGNED ) + + 28 + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT - 97 / CAST ( NULL AS INTEGER ) + + 28 + + 87
----
NULL

query I rowsort
SELECT - + 22 * 52
----
-1144

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

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

query I rowsort
SELECT ALL + 58 * - 60 * + 9 + 39
----
-31281

query II rowsort
SELECT + - 53 * + 73 + - 12, 18 AS col2
----
-3881
18

query I rowsort
SELECT ALL - 47 + - 44 + + NULLIF ( - 78, 17 ) + 18 + - 76 AS col2
----
-227

query I rowsort
SELECT - 57 - - - 54 + - COALESCE ( - 99, + - 19 * + 59 + + + 51 ) - - + 43 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3318
SELECT - CAST( NULL AS SIGNED ) * + + NULLIF ( - 32, - 35 * - - COUNT( * ) + + 96 + + - 17 + + CASE + 10 WHEN + COUNT( * ) THEN 7 + 99 * - 87 + - 99 END * + 74 ) * - 20 AS col0, + 63 / + 27 * + 19 / + 18 * - MIN( ALL - CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) - + COALESCE ( + 48, 68 + - 32 ) * + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3318
SELECT - CAST ( NULL AS INTEGER ) * + + NULLIF ( - 32, - 35 * - - COUNT ( * ) + + 96 + + - 17 + + CASE + 10 WHEN + COUNT ( * ) THEN 7 + 99 * - 87 + - 99 END * + 74 ) * - 20 AS col0, + 63 / + 27 * + 19 / + 18 * - MIN ( ALL - CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) - + COALESCE ( + 48, 68 + - 32 ) * + COUNT ( * )
----
NULL
NULL

query I rowsort
SELECT ALL - 58 + + 92 AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT + COUNT( * ) + - 27 AS col1, COUNT( * )
----
-26
1

skipif mysql # not compatible
query II rowsort label-3320
SELECT + COUNT ( * ) + - 27 AS col1, COUNT ( * )
----
-26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT - 86 * ( - - COUNT( 75 ) ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3321
SELECT - 86 * ( - - COUNT ( 75 ) ) AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3322
SELECT + CAST( 47 AS SIGNED ) + + + 29 * 76 + + - MIN( 63 ) AS col0, 53
----
2188
53

skipif mysql # not compatible
query II rowsort label-3322
SELECT + CAST ( 47 AS INTEGER ) + + + 29 * 76 + + - MIN ( 63 ) AS col0, 53
----
2188
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT - 3 - + COUNT( DISTINCT - - 47 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3323
SELECT - 3 - + COUNT ( DISTINCT - - 47 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT + 86 * + COUNT( + 3 ) col0
----
86

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT + 86 * + COUNT ( + 3 ) col0
----
86

query I rowsort
SELECT - 79 - - 32 * 56 AS col2
----
1713

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL - MIN( DISTINCT + 89 ) * 59
----
-5251

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL - MIN ( DISTINCT + 89 ) * 59
----
-5251

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT 14 + - 78 + + 25 + + MIN( ALL - - 12 )
----
-27

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT 14 + - 78 + + 25 + + MIN ( ALL - - 12 )
----
-27

query I rowsort
SELECT - 20 + + 91
----
71

query II rowsort
SELECT 5 AS col2, - 96 AS col0
----
5
-96

query I rowsort
SELECT - 96 + - - 82
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3331
SELECT - 82 DIV - 98 * - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3331
SELECT - 82 / - 98 * - 74 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3332
SELECT + - COALESCE ( + CAST( NULL AS SIGNED ), - 84, 65 * - + CAST( NULL AS SIGNED ) + - ( 70 ) DIV + 8 ) DIV 66 * + 11 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-3332
SELECT + - COALESCE ( + CAST ( NULL AS INTEGER ), - 84, 65 * - + CAST ( NULL AS INTEGER ) + - ( 70 ) / + 8 ) / 66 * + 11 AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT ALL - - 74 DIV - 3 + 58 DIV 84 + - 26 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL - - 74 / - 3 + 58 / 84 + - 26 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT + - COUNT( ALL + + 22 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3334
SELECT + - COUNT ( ALL + + 22 ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3335
SELECT DISTINCT + - CASE + 91 WHEN - AVG ( DISTINCT + - 97 ) THEN + + 78 * - + AVG ( - 23 ) * + CAST( - + 48 AS SIGNED ) + 39 + - - 92 + + 33 + + 18 + - 86 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT + - CASE + 91 WHEN - AVG ( DISTINCT + - 97 ) THEN + + 78 * - + AVG ( - 23 ) * + CAST ( - + 48 AS INTEGER ) + 39 + - - 92 + + 33 + + 18 + - 86 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 81 * + 81 * 81
----
531441

query I rowsort
SELECT ALL 28 * - + 88 AS col2
----
-2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3338
SELECT - MIN( + + 65 ) * + + COUNT( * ) DIV - COUNT( * ) + 81 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-3338
SELECT - MIN ( + + 65 ) * + + COUNT ( * ) / - COUNT ( * ) + 81 AS col0
----
146

query I rowsort
SELECT + 68 * + 46
----
3128

query I rowsort
SELECT - - 57 + - + 74
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3341
SELECT + - 51 - - + 21 DIV - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-3341
SELECT + - 51 - - + 21 / - COUNT ( * )
----
-72

query I rowsort
SELECT + + 82 * + 65 AS col2
----
5330

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL 50 * - 29 + - + ( - MIN( DISTINCT + 28 ) )
----
-1422

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL 50 * - 29 + - + ( - MIN ( DISTINCT + 28 ) )
----
-1422

query I rowsort
SELECT ALL 74 + - + 95 + - - NULLIF ( - ( + 35 ), + + 47 * + NULLIF ( - 27, - 13 + - 16 + 74 * 62 * - 53 ) * - + COALESCE ( - 86, + 56 ) * 91 )
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-3345
SELECT 82 DIV - - 80, 43 AS col1
----
1
43

skipif mysql # not compatible
query II rowsort label-3345
SELECT 82 / - - 80, 43 AS col1
----
1
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3346
SELECT COUNT( * ) + - - 83 AS col1, + 4 AS col0
----
84
4

skipif mysql # not compatible
query II rowsort label-3346
SELECT COUNT ( * ) + - - 83 AS col1, + 4 AS col0
----
84
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3347
SELECT DISTINCT 9 * + 84 * + 88 DIV + - 1 AS col2
----
-66528

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT 9 * + 84 * + 88 / + - 1 AS col2
----
-66528

query I rowsort
SELECT ( + + 65 ) * - 26 AS col2
----
-1690

query I rowsort
SELECT 27 + + 19
----
46

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3351
SELECT 7 - - MAX( DISTINCT - 10 ) + - - CAST( NULL AS SIGNED ) * + - 94 * 23 + - + 39 * - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT 7 - - MAX ( DISTINCT - 10 ) + - - CAST ( NULL AS INTEGER ) * + - 94 * 23 + - + 39 * - 83 AS col1
----
NULL

query I rowsort
SELECT 42 * 28 AS col1
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ( - 43 ) - 89 * + - 89 + - COUNT( * )
----
7877

skipif mysql # not compatible
query I rowsort label-3353
SELECT ( - 43 ) - 89 * + - 89 + - COUNT ( * )
----
7877

query I rowsort
SELECT ALL - COALESCE ( - 31, 55, - 35 * 23 ) * 70 AS col0
----
2170

query I rowsort
SELECT - ( - 25 ) * - - 57
----
1425

query I rowsort
SELECT - ( ( - 53 ) )
----
53

query I rowsort
SELECT 71 * - 44 * - 99 - + 12 AS col0
----
309264

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT 1 DIV + - 97 * - 47 + - 0
----
0

skipif mysql # not compatible
query I rowsort label-3358
SELECT 1 / + - 97 * - 47 + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT COUNT( * ) + - + SUM( DISTINCT + + 87 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-3359
SELECT COUNT ( * ) + - + SUM ( DISTINCT + + 87 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-3360
SELECT ALL - ( COUNT( * ) ) col2, - 65 * 67 * - - 74 AS col1
----
-1
-322270

skipif mysql # not compatible
query II rowsort label-3360
SELECT ALL - ( COUNT ( * ) ) col2, - 65 * 67 * - - 74 AS col1
----
-1
-322270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3361
SELECT - 5 * + SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT - 5 * + SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + - 40 * - NULLIF ( - 38, - 38 ) * ( + + 36 ) * + 80 + 55 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 55 + + - 87 * - 20 AS col2
----
1795

query I rowsort
SELECT ALL - + 92 + 91 col0
----
-1

query I rowsort
SELECT DISTINCT + - 63 + + + 5 + - 29
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL + COUNT( * ) + ( NULLIF ( + - 73, + 94 ) ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + COUNT ( * ) + ( NULLIF ( + - 73, + 94 ) ) col1
----
-72

query I rowsort
SELECT 85 * - 96 AS col1
----
-8160

onlyif mysql # aggregate syntax: 
query II rowsort label-3368
SELECT 41, - MAX( - - 76 ) col2
----
41
-76

skipif mysql # not compatible
query II rowsort label-3368
SELECT 41, - MAX ( - - 76 ) col2
----
41
-76

query I rowsort
SELECT ALL ( - 32 ) - + + 23 + + 9
----
-46

query I rowsort
SELECT 10 * + 65 AS col2
----
650

query I rowsort
SELECT 0 * - - 12 AS col0
----
0

query II rowsort
SELECT 79 AS col2, - 36 AS col1
----
79
-36

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

skipif mysql # not compatible
query I rowsort label-3373
SELECT COUNT ( * ) + + 71 AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3374
SELECT NULLIF ( + + 0, + 18 ) DIV + + 82
----
0

skipif mysql # not compatible
query I rowsort label-3374
SELECT NULLIF ( + + 0, + 18 ) / + + 82
----
0

query II rowsort
SELECT DISTINCT NULLIF ( - - 56, + 8 ) * 2 AS col0, CASE 73 WHEN ( - 72 ) + COALESCE ( + 71, + + 9 ) THEN 16 ELSE + NULLIF ( - 10, - 58 ) + 44 END AS col0
----
112
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT 16 + - 6 + - MIN( 44 ) * 30 col1
----
-1310

skipif mysql # not compatible
query I rowsort label-3376
SELECT 16 + - 6 + - MIN ( 44 ) * 30 col1
----
-1310

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3378
SELECT ALL CASE - NULLIF ( - + 72, - COALESCE ( 91, - - 90 ) ) WHEN + - 3 THEN + + CASE + + 54 WHEN - COALESCE ( + 45, - 76 * ( - 19 ) * - - 84, + 68 ) THEN NULL WHEN - CAST( + ( - - 2 ) AS SIGNED ) THEN - CAST( NULL AS SIGNED ) + - + MAX( ALL 70 ) * - 3 / 91 - - 12 END WHEN 72 * 73 + + ( 33 ) - 47 / 47 THEN NULL END * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL CASE - NULLIF ( - + 72, - COALESCE ( 91, - - 90 ) ) WHEN + - 3 THEN + + CASE + + 54 WHEN - COALESCE ( + 45, - 76 * ( - 19 ) * - - 84, + 68 ) THEN NULL WHEN - CAST ( + ( - - 2 ) AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) + - + MAX ( ALL 70 ) * - 3 / 91 - - 12 END WHEN 72 * 73 + + ( 33 ) - 47 / 47 THEN NULL END * 89
----
NULL

query I rowsort
SELECT - 87 * 37
----
-3219

query II rowsort
SELECT ALL + 36 * - 16 + 79 + + 77 * - 46 * + 96, - 50 AS col0
----
-340529
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL NULLIF ( + COUNT( * ), - 69 * + MAX( NULLIF ( + 63, 87 + + 27 * - 66 * + 85 ) ) + - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL NULLIF ( + COUNT ( * ), - 69 * + MAX ( NULLIF ( + 63, 87 + + 27 * - 66 * + 85 ) ) + - 34 )
----
1

query II rowsort
SELECT ALL 65 AS col1, 4
----
65
4

query I rowsort
SELECT + 23 * - 25
----
-575

query I rowsort
SELECT 39 + + 41
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT MIN( - - 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3385
SELECT MIN ( - - 57 ) AS col1
----
57

query I rowsort
SELECT + 61 * 84 + - 88 + 58 + - - 85
----
5179

query I rowsort
SELECT - 89 * 99
----
-8811

onlyif mysql # DIV for integer division: 
query II rowsort label-3388
SELECT - 50, + 89 + + - 43 DIV - 5 AS col1
----
-50
97

skipif mysql # not compatible
query II rowsort label-3388
SELECT - 50, + 89 + + - 43 / - 5 AS col1
----
-50
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL + + 57 * - - 14 * - + ( - - 33 ) - 37 + - - CASE - COUNT( ALL + 52 ) WHEN CASE + NULLIF ( - 33, + 16 / + 31 ) WHEN - - 1 THEN + - 40 ELSE - 3 END THEN + - COUNT( * ) END * - 82 * 59 + - NULLIF ( 53, - - 68 * - 74 ) * - ( COALESCE ( - 76, 47 - + 50 + - 88, 48 / 42 + - 94 ) ) * 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + + 57 * - - 14 * - + ( - - 33 ) - 37 + - - CASE - COUNT ( ALL + 52 ) WHEN CASE + NULLIF ( - 33, + 16 / + 31 ) WHEN - - 1 THEN + - 40 ELSE - 3 END THEN + - COUNT ( * ) END * - 82 * 59 + - NULLIF ( 53, - - 68 * - 74 ) * - ( COALESCE ( - 76, 47 - + 50 + - 88, 48 / 42 + - 94 ) ) * 23 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( + ( + 80 ) ) col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT - MIN( - + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT - MIN ( - + 29 )
----
29

query I rowsort
SELECT ALL + 14 * + 74 + + 9 - - ( - + 47 ) AS col0
----
998

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

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

query I rowsort
SELECT + 39 + 96
----
135

query I rowsort
SELECT DISTINCT 23 * + 0 * - 63 * + 15 * NULLIF ( - + 72, + 74 ) + + - 4 + 92 AS col1
----
88

query I rowsort
SELECT ALL + 10 * - COALESCE ( - + 52, + - 81 ) AS col1
----
520

query II rowsort
SELECT DISTINCT + - 31 AS col1, + 53 * + + 79 AS col2
----
-31
4187

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + 92 * + - 58 * + 61 * 28 - + CASE - - 6 WHEN + + 75 THEN NULL WHEN - + SUM( - 92 ) + 6 - + 10 + - + 73 * - COUNT( * ) * - 22 * - 91 * + + 1 * - COUNT( * ) THEN - 4 * - 52 + - 2 + 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT + 92 * + - 58 * + 61 * 28 - + CASE - - 6 WHEN + + 75 THEN NULL WHEN - + SUM ( - 92 ) + 6 - + 10 + - + 73 * - COUNT ( * ) * - 22 * - 91 * + + 1 * - COUNT ( * ) THEN - 4 * - 52 + - 2 + 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ALL + 9 * + 81 / + + CASE - ( COUNT( * ) ) WHEN - + 37 * - 67 * + + 91 THEN - + 55 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL + 9 * + 81 / + + CASE - ( COUNT ( * ) ) WHEN - + 37 * - 67 * + + 91 THEN - + 55 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT + COUNT( DISTINCT - + 84 )
----
1

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT + COUNT ( DISTINCT - + 84 )
----
1

query I rowsort
SELECT - 3 * ( + 28 ) AS col2
----
-84

query I rowsort
SELECT ALL NULLIF ( + 95, 87 ) * + - 32 + 20 AS col2
----
-3020

query I rowsort
SELECT - 20 + + 34 - + 85
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3404
SELECT ALL COALESCE ( 52, + 68 + - 60 + - MAX( ALL 96 ) + - - 66 * SUM( - + 2 ) + - - 32 * - 62 + + 15 * + - 94 DIV - 37 * + 53 * - COALESCE ( + 95, - 18 * 60 + + 35 * - 62 DIV 17, 51 ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL COALESCE ( 52, + 68 + - 60 + - MAX ( ALL 96 ) + - - 66 * SUM ( - + 2 ) + - - 32 * - 62 + + 15 * + - 94 / - 37 * + 53 * - COALESCE ( + 95, - 18 * 60 + + 35 * - 62 / 17, 51 ) ) AS col2
----
52

query I rowsort
SELECT ALL + ( 78 ) * - 99 AS col1
----
-7722

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT + SUM( 72 ) + - 11 + 43 * 52 * COUNT( * ) * 36 col0
----
80557

skipif mysql # not compatible
query I rowsort label-3406
SELECT + SUM ( 72 ) + - 11 + 43 * 52 * COUNT ( * ) * 36 col0
----
80557

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT DISTINCT + 46 * MIN( 45 ) AS col1
----
2070

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT + 46 * MIN ( 45 ) AS col1
----
2070

onlyif mysql # aggregate syntax: 
query II rowsort label-3408
SELECT ALL + COUNT( * ) * + 47, - 27 + + 48 * - 66 AS col2
----
47
-3195

skipif mysql # not compatible
query II rowsort label-3408
SELECT ALL + COUNT ( * ) * + 47, - 27 + + 48 * - 66 AS col2
----
47
-3195

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT ALL COALESCE ( - COUNT( * ), 12, 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL COALESCE ( - COUNT ( * ), 12, 18 )
----
-1

query I rowsort
SELECT DISTINCT ( - + 46 ) AS col1
----
-46

query I rowsort
SELECT + - ( - - 90 ) * - 46 AS col1
----
4140

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT + - 71 DIV 66
----
-1

skipif mysql # not compatible
query I rowsort label-3412
SELECT + - 71 / 66
----
-1

query I rowsort
SELECT + 64 - 33 + 88
----
119

query I rowsort
SELECT ALL - 75 * - 53 * + 45
----
178875

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT + NULLIF ( + 40, - - SUM( - - 76 ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3415
SELECT + NULLIF ( + 40, - - SUM ( - - 76 ) ) AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3416
SELECT - COUNT( * ) DIV + + 72 + - + 25 DIV - ( - NULLIF ( + 67, 15 * - 53 ) ) + - 37, - 45 AS col1
----
-37
-45

skipif mysql # not compatible
query II rowsort label-3416
SELECT - COUNT ( * ) / + + 72 + - + 25 / - ( - NULLIF ( + 67, 15 * - 53 ) ) + - 37, - 45 AS col1
----
-37
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3417
SELECT + 29 * + 1 + - + 31 + - 38 DIV + COUNT( * ) - + + 60 + - + COUNT( * ), 70 col1
----
-101
70

skipif mysql # not compatible
query II rowsort label-3417
SELECT + 29 * + 1 + - + 31 + - 38 / + COUNT ( * ) - + + 60 + - + COUNT ( * ), 70 col1
----
-101
70

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

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL COUNT ( * ) / + 95 + - 19 AS col2
----
-19

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

query II rowsort
SELECT + - COALESCE ( + 11, - 92 * + + 54 * + - 25 + + 35 * + 72 ) col1, + 18 * - + COALESCE ( - 41, + 29 * - 77 * 46 ) * - - 7
----
-11
5166

query I rowsort
SELECT + 94 + + 45 col0
----
139

query I rowsort
SELECT + 26 * + 94 + + - 35
----
2409

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

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

query I rowsort
SELECT + 51 * - 23
----
-1173

query I rowsort
SELECT - 79 + 1 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT + ( - + MAX( 14 ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3426
SELECT + ( - + MAX ( 14 ) ) AS col1
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3427
SELECT + 67 / - + ( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT + 67 / - + ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT - 73 * - 41 AS col0
----
2993

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT 69 * + NULLIF ( + 26, + + 51 * + 60 ) + + 70 * + - COUNT( * ) AS col0
----
1724

skipif mysql # not compatible
query I rowsort label-3429
SELECT 69 * + NULLIF ( + 26, + + 51 * + 60 ) + + 70 * + - COUNT ( * ) AS col0
----
1724

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT - COUNT( * ) * - - SUM( DISTINCT - ( + 96 ) )
----
96

skipif mysql # not compatible
query I rowsort label-3430
SELECT - COUNT ( * ) * - - SUM ( DISTINCT - ( + 96 ) )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3431
SELECT ALL - 78 DIV + 77
----
-1

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL - 78 / + 77
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3432
SELECT - 37 DIV 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3432
SELECT - 37 / 62 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT ALL - 65 * - - 4 + - - 27 + CAST( COALESCE ( 0, 79 ) AS SIGNED ) AS col2
----
-233

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL - 65 * - - 4 + - - 27 + CAST ( COALESCE ( 0, 79 ) AS INTEGER ) AS col2
----
-233

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT ALL 93 * - 68 + + - 19 DIV + + 24
----
-6324

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL 93 * - 68 + + - 19 / + + 24
----
-6324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3435
SELECT + 1 + 14 + + - 95 + - COUNT( * ) * - - 32 col1, AVG ( ALL 97 ) * + 77 * 43 + - MIN( DISTINCT 33 ) * 55 - - 37 * 80 - + CASE + - 10 WHEN MIN( ALL - ( 92 ) ) * - - CAST( NULL AS SIGNED ) + + 37 THEN + 70 END AS col2
----
-112
NULL

skipif mysql # not compatible
query II rowsort label-3435
SELECT + 1 + 14 + + - 95 + - COUNT ( * ) * - - 32 col1, AVG ( ALL 97 ) * + 77 * 43 + - MIN ( DISTINCT 33 ) * 55 - - 37 * 80 - + CASE + - 10 WHEN MIN ( ALL - ( 92 ) ) * - - CAST ( NULL AS INTEGER ) + + 37 THEN + 70 END AS col2
----
-112
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL + CASE + - 56 WHEN + + 46 - - 83 THEN + 42 - - COUNT( * ) WHEN - AVG ( DISTINCT 11 ) THEN NULL ELSE NULL END * 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL + CASE + - 56 WHEN + + 46 - - 83 THEN + 42 - - COUNT ( * ) WHEN - AVG ( DISTINCT 11 ) THEN NULL ELSE NULL END * 88 AS col2
----
NULL

query I rowsort
SELECT - 26 * + - 95
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT - SUM( ALL - 73 ) * + - 63 AS col2
----
-4599

skipif mysql # not compatible
query I rowsort label-3438
SELECT - SUM ( ALL - 73 ) * + - 63 AS col2
----
-4599

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL + - 60 + + + COUNT( * ) * - 54 * + 54
----
-2976

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL + - 60 + + + COUNT ( * ) * - 54 * + 54
----
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT DISTINCT + 93 * + COALESCE ( + + COUNT( * ), 96 ) + + - 73
----
20

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT + 93 * + COALESCE ( + + COUNT ( * ), 96 ) + + - 73
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3442
SELECT DISTINCT + AVG ( ALL 76 ) + - 85 * CASE - 34 WHEN 14 THEN - 46 - - + 42 ELSE NULL END AS col2, COALESCE ( - - 47, + COUNT( * ) )
----
NULL
47

skipif mysql # not compatible
query II rowsort label-3442
SELECT DISTINCT + AVG ( ALL 76 ) + - 85 * CASE - 34 WHEN 14 THEN - 46 - - + 42 ELSE NULL END AS col2, COALESCE ( - - 47, + COUNT ( * ) )
----
NULL
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL + 54 + + 68 * 9 + + 78 - - COUNT( * ) * + 38
----
782

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL + 54 + + 68 * 9 + + 78 - - COUNT ( * ) * + 38
----
782

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

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

query I rowsort
SELECT + 34 * + - COALESCE ( + 16, + - 14 )
----
-544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3446
SELECT COUNT( * ) * - 91 + 38 DIV 90 * + 78
----
-91

skipif mysql # not compatible
query I rowsort label-3446
SELECT COUNT ( * ) * - 91 + 38 / 90 * + 78
----
-91

query II rowsort
SELECT DISTINCT - + 57 AS col0, 66 AS col1
----
-57
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT + NULLIF ( + - 65, - 61 * + SUM( - + ( + 56 ) ) ) * - 4 AS col0
----
260

skipif mysql # not compatible
query I rowsort label-3448
SELECT + NULLIF ( + - 65, - 61 * + SUM ( - + ( + 56 ) ) ) * - 4 AS col0
----
260

query I rowsort
SELECT ALL - - 76 * + ( - 56 )
----
-4256

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT COALESCE ( - - MAX( + - 35 ), - COUNT( * ) * - 72 + - + MAX( ALL 47 ) * + + COUNT( * ) ) * - + 5 AS col1
----
175

skipif mysql # not compatible
query I rowsort label-3451
SELECT COALESCE ( - - MAX ( + - 35 ), - COUNT ( * ) * - 72 + - + MAX ( ALL 47 ) * + + COUNT ( * ) ) * - + 5 AS col1
----
175

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3452
SELECT CAST( NULL AS DECIMAL ) * 58 * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT CAST ( NULL AS REAL ) * 58 * - 43
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3453
SELECT COUNT( * ) + - + 12 AS col0, MIN( ALL - + 81 ) - 43
----
-11
-124

skipif mysql # not compatible
query II rowsort label-3453
SELECT COUNT ( * ) + - + 12 AS col0, MIN ( ALL - + 81 ) - 43
----
-11
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT - COUNT( * ) * 22 - 50 * COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-3454
SELECT - COUNT ( * ) * 22 - 50 * COUNT ( * ) AS col0
----
-72

query II rowsort
SELECT DISTINCT - 58, 15 + 4 col0
----
-58
19

query I rowsort
SELECT DISTINCT 90 + + - 81 + - 39 * + 98 AS col0
----
-3813

query I rowsort
SELECT DISTINCT 2 + - 68 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL - 74 + COUNT( * ) + - 56 + 39
----
-90

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL - 74 + COUNT ( * ) + - 56 + 39
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3459
SELECT 70 DIV - + MIN( ALL + 78 ) * - 4, - 79 DIV CASE - 25 WHEN 7 + + + 2 THEN - 56 ELSE NULL END + + + 56 * - + 50 * + 8 DIV 96 + COUNT( * ) col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3459
SELECT 70 / - + MIN ( ALL + 78 ) * - 4, - 79 / CASE - 25 WHEN 7 + + + 2 THEN - 56 ELSE NULL END + + + 56 * - + 50 * + 8 / 96 + COUNT ( * ) col1
----
0
NULL

query I rowsort
SELECT ALL 89 + + + 64 * 94 * + 85
----
511449

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3461
SELECT 41 * - - 10, + CAST( - 4 AS SIGNED ) DIV + 40 AS col0
----
410
0

skipif mysql # not compatible
query II rowsort label-3461
SELECT 41 * - - 10, + CAST ( - 4 AS INTEGER ) / + 40 AS col0
----
410
0

query I rowsort
SELECT 77 * + 23 AS col1
----
1771

query II rowsort
SELECT + 45 AS col1, - ( + + 3 )
----
45
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3464
SELECT + 17 * - ( COUNT( * ) ) + - + CAST( NULL AS SIGNED ) AS col2, 38 + - 43 AS col0
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-3464
SELECT + 17 * - ( COUNT ( * ) ) + - + CAST ( NULL AS INTEGER ) AS col2, 38 + - 43 AS col0
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT ALL - 38 + + SUM( DISTINCT 23 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL - 38 + + SUM ( DISTINCT 23 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT ALL 30 + - MIN( - 19 ) - + 41
----
8

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL 30 + - MIN ( - 19 ) - + 41
----
8

query I rowsort
SELECT DISTINCT + 5 + + - 44 - - 1 AS col1
----
-38

query I rowsort
SELECT + 73 * + + 95
----
6935

query I rowsort
SELECT ALL - 83 * + 53
----
-4399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3470
SELECT - 82 DIV - + COUNT( DISTINCT + 50 )
----
82

skipif mysql # not compatible
query I rowsort label-3470
SELECT - 82 / - + COUNT ( DISTINCT + 50 )
----
82

onlyif mysql # aggregate syntax: 
query III rowsort label-3471
SELECT ALL 63 AS col0, ( + + COUNT( * ) ) * - + 87 AS col0, - + 20 AS col2
----
63
-87
-20

skipif mysql # not compatible
query III rowsort label-3471
SELECT ALL 63 AS col0, ( + + COUNT ( * ) ) * - + 87 AS col0, - + 20 AS col2
----
63
-87
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3472
SELECT ALL + 7 AS col1, MAX( - + 99 ) col2
----
7
-99

skipif mysql # not compatible
query II rowsort label-3472
SELECT ALL + 7 AS col1, MAX ( - + 99 ) col2
----
7
-99

query I rowsort
SELECT 81 * + 61 AS col0
----
4941

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT DISTINCT - CASE - 95 WHEN - 37 THEN - 58 WHEN - - 1 * - MIN( - 7 ) THEN NULL ELSE NULL END * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT - CASE - 95 WHEN - 37 THEN - 58 WHEN - - 1 * - MIN ( - 7 ) THEN NULL ELSE NULL END * - 48
----
NULL

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

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

query I rowsort
SELECT + 49 - - 57 + + + 62
----
168

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

query I rowsort
SELECT + 32 * - 69
----
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT ALL - 31 * MAX( DISTINCT + 40 ) + + + 50 col2
----
-1190

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL - 31 * MAX ( DISTINCT + 40 ) + + + 50 col2
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT 4 * - + 71 * + + COUNT( * ) * + 26 * + 46 * 9 AS col1
----
-3056976

skipif mysql # not compatible
query I rowsort label-3480
SELECT 4 * - + 71 * + + COUNT ( * ) * + 26 * + 46 * 9 AS col1
----
-3056976

query II rowsort
SELECT ALL 86 AS col1, - 89 * - 34 AS col0
----
86
3026

query II rowsort
SELECT - - 50 AS col0, - NULLIF ( 8, + 85 * - + 23 / - 25 * + 20 ) * - 96 AS col2
----
50
768

query I rowsort
SELECT - ( - 43 ) * + 87 AS col0
----
3741

query I rowsort
SELECT ALL - ( + - 58 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT 50 * - CASE + 36 WHEN - 16 THEN NULL WHEN - 17 THEN - - COUNT( * ) END - - - 24 * - - 45 * + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT 50 * - CASE + 36 WHEN - 16 THEN NULL WHEN - 17 THEN - - COUNT ( * ) END - - - 24 * - - 45 * + 9 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3486
SELECT 0 DIV + - 61 * + 61 * - MAX( 41 )
----
0

skipif mysql # not compatible
query I rowsort label-3486
SELECT 0 / + - 61 * + 61 * - MAX ( 41 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3487
SELECT 36 * - 26 AS col1, SUM( ALL + 36 ) + + 68 AS col0
----
-936
104

skipif mysql # not compatible
query II rowsort label-3487
SELECT 36 * - 26 AS col1, SUM ( ALL + 36 ) + + 68 AS col0
----
-936
104

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT ALL - 5 DIV - - 62
----
0

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL - 5 / - - 62
----
0

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

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

query I rowsort
SELECT 20 + + 53 + 57
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL SUM( ALL COALESCE ( - 78, - + 4 ) ) * - 76 * + - 65
----
-385320

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL SUM ( ALL COALESCE ( - 78, - + 4 ) ) * - 76 * + - 65
----
-385320

onlyif mysql # DIV for integer division: 
query I rowsort label-3492
SELECT 26 DIV - 6
----
-4

skipif mysql # not compatible
query I rowsort label-3492
SELECT 26 / - 6
----
-4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3493
SELECT NULLIF ( + 74, - - COALESCE ( - - 19, 78 + 33 + - CAST( + 44 AS DECIMAL ) - 34 + + 80 ) ) * + CAST( + 86 AS SIGNED ) col0
----
6364

skipif mysql # not compatible
query I rowsort label-3493
SELECT NULLIF ( + 74, - - COALESCE ( - - 19, 78 + 33 + - CAST ( + 44 AS REAL ) - 34 + + 80 ) ) * + CAST ( + 86 AS INTEGER ) col0
----
6364

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT MAX( - - 12 ) * - 13 * - 66 * 88 * + 3
----
2718144

skipif mysql # not compatible
query I rowsort label-3494
SELECT MAX ( - - 12 ) * - 13 * - 66 * 88 * + 3
----
2718144

query I rowsort
SELECT ALL 96 * 99
----
9504

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

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

query I rowsort
SELECT - ( + 95 ) + 51 + - 54 AS col1
----
-98

query I rowsort
SELECT DISTINCT - 9 + + 9 + 37 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT MIN( DISTINCT 36 ) - - + SUM( DISTINCT - 19 ) * 55
----
-1009

skipif mysql # not compatible
query I rowsort label-3499
SELECT MIN ( DISTINCT 36 ) - - + SUM ( DISTINCT - 19 ) * 55
----
-1009

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT DISTINCT + 76 DIV - 22
----
-3

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT + 76 / - 22
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3501
SELECT ALL 41 * - COUNT( * ) * + CAST( - + 22 AS SIGNED )
----
902

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL 41 * - COUNT ( * ) * + CAST ( - + 22 AS INTEGER )
----
902

query II rowsort
SELECT ALL + 27 - + 89 col2, 25 AS col1
----
-62
25

query II rowsort
SELECT + + 21 * + 12 AS col2, 8 AS col1
----
252
8

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3505
SELECT - + 82 * COUNT( * ), + 48 + - 39 + NULLIF ( CAST( NULL AS SIGNED ), 3 - + MIN( - 9 ) ) / + 56 + - - COUNT( DISTINCT + 92 ) * - 53 * + 21 * + COUNT( * ) AS col1
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-3505
SELECT - + 82 * COUNT ( * ), + 48 + - 39 + NULLIF ( CAST ( NULL AS INTEGER ), 3 - + MIN ( - 9 ) ) / + 56 + - - COUNT ( DISTINCT + 92 ) * - 53 * + 21 * + COUNT ( * ) AS col1
----
-82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT + COUNT( * ) + - ( 54 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-3506
SELECT + COUNT ( * ) + - ( 54 ) AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT - CAST( NULL AS SIGNED ) - - CAST( - 57 AS SIGNED ) / - ( + - CAST( COALESCE ( - - 10, 47 + 14 ) AS SIGNED ) ) - - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT - CAST ( NULL AS INTEGER ) - - CAST ( - 57 AS INTEGER ) / - ( + - CAST ( COALESCE ( - - 10, 47 + 14 ) AS INTEGER ) ) - - 94 AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 50, 54 ) AS col2
----
50

query I rowsort
SELECT + 60 + ( ( 29 ) )
----
89

query I rowsort
SELECT + 74 * 58
----
4292

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3511
SELECT ALL + 11 DIV CAST( - ( 62 ) AS SIGNED ) DIV - 52 + 27 col2
----
27

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + 11 / CAST ( - ( 62 ) AS INTEGER ) / - 52 + 27 col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3512
SELECT ALL - 0 DIV + 51 col0
----
0

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL - 0 / + 51 col0
----
0

query I rowsort
SELECT - + 31 + + - 56 col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL SUM( DISTINCT - ( + 17 ) ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL SUM ( DISTINCT - ( + 17 ) ) col1
----
-17

query II rowsort
SELECT 90 AS col1, 68
----
90
68

query I rowsort
SELECT - 57 + 49 + - ( - CASE + + 58 WHEN + 63 THEN NULL WHEN + 62 THEN + AVG ( ALL 59 ) END ) * - 79
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3517
SELECT DISTINCT + CASE - - CAST( NULL AS SIGNED ) WHEN 18 THEN - + 72 ELSE NULL END, - 21 AS col1
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-3517
SELECT DISTINCT + CASE - - CAST ( NULL AS INTEGER ) WHEN 18 THEN - + 72 ELSE NULL END, - 21 AS col1
----
NULL
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3518
SELECT ALL + ( MAX( ALL 87 ) ) col0, + 51 AS col0
----
87
51

skipif mysql # not compatible
query II rowsort label-3518
SELECT ALL + ( MAX ( ALL 87 ) ) col0, + 51 AS col0
----
87
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3519
SELECT - 38 DIV + 70 + 10
----
10

skipif mysql # not compatible
query I rowsort label-3519
SELECT - 38 / + 70 + 10
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3520
SELECT ALL - 0 * + 52 + + NULLIF ( - MIN( ALL + NULLIF ( ( + + NULLIF ( ( 35 ), + + 38 + - + 54 * 10 ) ), + 9 - - ( + 53 ) ) ), - 3 + - 50 + 30 ), 16 AS col1
----
-35
16

skipif mysql # not compatible
query II rowsort label-3520
SELECT ALL - 0 * + 52 + + NULLIF ( - MIN ( ALL + NULLIF ( ( + + NULLIF ( ( 35 ), + + 38 + - + 54 * 10 ) ), + 9 - - ( + 53 ) ) ), - 3 + - 50 + 30 ), 16 AS col1
----
-35
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL MIN( - ( - 49 ) ) * 9 + 29
----
470

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL MIN ( - ( - 49 ) ) * 9 + 29
----
470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT ALL 37 * - ( - 86 ) * CAST( NULL AS SIGNED ) + 41 + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL 37 * - ( - 86 ) * CAST ( NULL AS INTEGER ) + 41 + + 84
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT - MAX( ALL + 72 ) * 54 * - 53
----
206064

skipif mysql # not compatible
query I rowsort label-3524
SELECT - MAX ( ALL + 72 ) * 54 * - 53
----
206064

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT + 93 * - 29 + - 38 col0, + CASE - - 4 WHEN - - 43 * 66 + - + 34 + - 62 + 96 + + 91 + 52 * + 68 THEN 22 + + COALESCE ( 17, - MAX( - 25 ) * + - CASE 54 WHEN NULLIF ( - 64, - 97 ) THEN 20 WHEN COUNT( * ) + - MIN( + - ( - + 51 ) ) * - + COUNT( * ) * + + 39 / COUNT( * ) * - 31 THEN - 82 * + 66 - 73 END + 20 / COUNT( DISTINCT 80 ) ) * + 95 END
----
-2735
NULL

skipif mysql # not compatible
query II rowsort label-3525
SELECT + 93 * - 29 + - 38 col0, + CASE - - 4 WHEN - - 43 * 66 + - + 34 + - 62 + 96 + + 91 + 52 * + 68 THEN 22 + + COALESCE ( 17, - MAX ( - 25 ) * + - CASE 54 WHEN NULLIF ( - 64, - 97 ) THEN 20 WHEN COUNT ( * ) + - MIN ( + - ( - + 51 ) ) * - + COUNT ( * ) * + + 39 / COUNT ( * ) * - 31 THEN - 82 * + 66 - 73 END + 20 / COUNT ( DISTINCT 80 ) ) * + 95 END
----
-2735
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT NULLIF ( ( 44 ), + 46 * - COUNT( * ) + + - 79 * - 22 / 29 )
----
44

skipif mysql # not compatible
query I rowsort label-3526
SELECT NULLIF ( ( 44 ), + 46 * - COUNT ( * ) + + - 79 * - 22 / 29 )
----
44

query I rowsort
SELECT - 96 + + 55 + + + 10
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT CASE WHEN 73 <> NULL THEN 56 + COUNT( * ) * - - 39 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT CASE WHEN 73 <> NULL THEN 56 + COUNT ( * ) * - - 39 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 1 * 26
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-3530
SELECT DISTINCT + 2 AS col2, 54 DIV + 42 + + + 71
----
2
72

skipif mysql # not compatible
query II rowsort label-3530
SELECT DISTINCT + 2 AS col2, 54 / + 42 + + + 71
----
2
72

query I rowsort
SELECT DISTINCT + 5 * 64
----
320

query I rowsort
SELECT DISTINCT + - 12 * - 25 AS col2
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3533
SELECT + + 78 / + + CASE + 90 WHEN 16 THEN NULL WHEN + NULLIF ( - COUNT( * ), 50 * - 84 ) THEN NULL ELSE 33 END * 8 * COALESCE ( + - 69, + 75 - - - 41, 1 ) / - COALESCE ( + - 9, 78 / + - 45 ) - + CAST( NULL AS SIGNED ) * - 46 col2, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3533
SELECT + + 78 / + + CASE + 90 WHEN 16 THEN NULL WHEN + NULLIF ( - COUNT ( * ), 50 * - 84 ) THEN NULL ELSE 33 END * 8 * COALESCE ( + - 69, + 75 - - - 41, 1 ) / - COALESCE ( + - 9, 78 / + - 45 ) - + CAST ( NULL AS INTEGER ) * - 46 col2, - COUNT ( * )
----
NULL
-1

query I rowsort
SELECT + - 61 + + 66
----
5

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

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

query I rowsort
SELECT - + 92 * + + 86 * - 39 * + - 21
----
-6479928

query I rowsort
SELECT - + ( + - 94 ) col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT - MIN( 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-3538
SELECT - MIN ( 84 )
----
-84

query I rowsort
SELECT + - COALESCE ( - COALESCE ( - 16, 37 ), - + 60 ) * - - 6
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT 2 * - - MIN( - 58 ) * - ( + 90 ) AS col2
----
10440

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT 2 * - - MIN ( - 58 ) * - ( + 90 ) AS col2
----
10440

query II rowsort
SELECT 85, 89 * + 13 AS col2
----
85
1157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT - + ( CAST( + - 87 AS SIGNED ) )
----
87

skipif mysql # not compatible
query I rowsort label-3542
SELECT - + ( CAST ( + - 87 AS INTEGER ) )
----
87

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

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

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

query I rowsort
SELECT + 69 - + 19
----
50

query I rowsort
SELECT + 45 - - + ( + 6 )
----
51

query I rowsort
SELECT ALL 51 + COALESCE ( + 25, 30, + 9 )
----
76

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

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

query I rowsort
SELECT ALL - 87 + - 51
----
-138

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3551
SELECT DISTINCT + COUNT( DISTINCT 67 ) DIV + + 5 + + 57 - + SUM( DISTINCT + - 69 ) + - - 29 * + MIN( ALL + 28 )
----
938

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT + COUNT ( DISTINCT 67 ) / + + 5 + + 57 - + SUM ( DISTINCT + - 69 ) + - - 29 * + MIN ( ALL + 28 )
----
938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3552
SELECT DISTINCT - 73 / + MIN( ALL - 94 ) * + 97 * + 83 + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) + - + 3 + + 80 AS col1, - 64
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-3552
SELECT DISTINCT - 73 / + MIN ( ALL - 94 ) * + 97 * + 83 + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) + - + 3 + + 80 AS col1, - 64
----
NULL
-64

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

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT - 23 / - 74 * COUNT ( * ) + + COUNT ( * ) + + - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3554
SELECT ALL ( - 31 ) DIV + + ( CAST( - + 19 AS SIGNED ) ) + + MIN( ALL + - 76 ) * 54 - + - 46 - - 77 * - 98 AS col2
----
-11603

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL ( - 31 ) / + + ( CAST ( - + 19 AS INTEGER ) ) + + MIN ( ALL + - 76 ) * 54 - + - 46 - - 77 * - 98 AS col2
----
-11603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3555
SELECT + CAST( COUNT( + - COALESCE ( 78, + + 65 * - - 56 + + + 83 ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3555
SELECT + CAST ( COUNT ( + - COALESCE ( 78, + + 65 * - - 56 + + + 83 ) ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT + 55 + 58 + MIN( ALL 32 ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-3556
SELECT + 55 + 58 + MIN ( ALL 32 ) AS col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT - COUNT( * ) + - + 85 + - 11 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3557
SELECT - COUNT ( * ) + - + 85 + - 11 AS col0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3558
SELECT DISTINCT 89 / CAST( NULL AS SIGNED ) - - 81 + - 23 * 69 AS col1, 9 AS col1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-3558
SELECT DISTINCT 89 / CAST ( NULL AS INTEGER ) - - 81 + - 23 * 69 AS col1, 9 AS col1
----
NULL
9

query I rowsort
SELECT DISTINCT 72 * - - 66 AS col0
----
4752

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

skipif mysql # not compatible
query I rowsort label-3560
SELECT 79 * COUNT ( * )
----
79

query I rowsort
SELECT ALL + 53 * + + 97
----
5141

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT - COUNT( + 1 ) + + 66 * - 57 * 47 * + 50 * - 32 + - 49 + - 1 + - 68 * + ( - 12 ) AS col2
----
282903165

skipif mysql # not compatible
query I rowsort label-3562
SELECT - COUNT ( + 1 ) + + 66 * - 57 * 47 * + 50 * - 32 + - 49 + - 1 + - 68 * + ( - 12 ) AS col2
----
282903165

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

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT + - COUNT ( * ) / COUNT ( * )
----
-1

query I rowsort
SELECT + 38 * + 21 + + + 89 AS col1
----
887

query I rowsort
SELECT + 29 + - 4
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL + - COUNT( * ) * + ( CASE + 81 WHEN - 29 THEN - + ( - 4 ) ELSE 77 END )
----
-77

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL + - COUNT ( * ) * + ( CASE + 81 WHEN - 29 THEN - + ( - 4 ) ELSE 77 END )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3567
SELECT DISTINCT + + 17 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT + + 17 / 53
----
0

query I rowsort
SELECT - 51 - - 41
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3569
SELECT COUNT( * ) DIV - - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3569
SELECT COUNT ( * ) / - - 91 AS col2
----
0

query I rowsort
SELECT ALL - + 67 * - - 4 AS col0
----
-268

query I rowsort
SELECT DISTINCT + + 5 + - 59 + + 81
----
27

query I rowsort
SELECT - 9 * 36 - - - ( - 65 ) AS col2
----
-259

query I rowsort
SELECT ALL + 8 + + + 34 * 52 AS col2
----
1776

query I rowsort
SELECT DISTINCT ( ( + 6 ) ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT + + NULLIF ( - + 91, - + 10 / 76 ) + - - MAX( - + 6 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT + + NULLIF ( - + 91, - + 10 / 76 ) + - - MAX ( - + 6 ) AS col0
----
-97

query I rowsort
SELECT 27 + - + 59
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT ALL 75 + + 47 + + 16 DIV - 62 * 42 + + 80 + + 20 * 6
----
322

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL 75 + + 47 + + 16 / - 62 * 42 + + 80 + + 20 * 6
----
322

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT + COUNT( * ) + + + 75 + - 94 - - ( - 79 ) * - MIN( + 41 ) * 11
----
35611

skipif mysql # not compatible
query I rowsort label-3578
SELECT + COUNT ( * ) + + + 75 + - 94 - - ( - 79 ) * - MIN ( + 41 ) * 11
----
35611

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT ALL + COUNT( * ) + 60 * NULLIF ( + + 26, ( + + 52 ) ) AS col1
----
1561

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL + COUNT ( * ) + 60 * NULLIF ( + + 26, ( + + 52 ) ) AS col1
----
1561

query I rowsort
SELECT 29 + - 69
----
-40

query I rowsort
SELECT ALL 33 + + 28
----
61

query I rowsort
SELECT NULLIF ( + + 32, - 50 ) * 7 AS col1
----
224

query I rowsort
SELECT ALL 27 * + 14
----
378

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3584
SELECT - 42 AS col1, NULLIF ( + CAST( + 80 AS SIGNED ), + + 6 ) * - - 16 * + 20 AS col2
----
-42
25600

skipif mysql # not compatible
query II rowsort label-3584
SELECT - 42 AS col1, NULLIF ( + CAST ( + 80 AS INTEGER ), + + 6 ) * - - 16 * + 20 AS col2
----
-42
25600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT CAST( - 48 AS SIGNED ) + + - 10
----
-58

skipif mysql # not compatible
query I rowsort label-3585
SELECT CAST ( - 48 AS INTEGER ) + + - 10
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL 73 - - + SUM( 25 )
----
98

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL 73 - - + SUM ( 25 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3587
SELECT 54 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-3587
SELECT 54 / + 59
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3588
SELECT DISTINCT CASE + 75 WHEN 98 + + 97 - 93 + - - 95 THEN 65 - + 12 ELSE - + ( + 36 ) / CAST( NULL AS SIGNED ) + - + COUNT( * ) END * + AVG ( DISTINCT - ( 88 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT CASE + 75 WHEN 98 + + 97 - 93 + - - 95 THEN 65 - + 12 ELSE - + ( + 36 ) / CAST ( NULL AS INTEGER ) + - + COUNT ( * ) END * + AVG ( DISTINCT - ( 88 ) )
----
NULL

query II rowsort
SELECT 83 AS col0, 53 - + - 9
----
83
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT 79 DIV 39 * + 65
----
130

skipif mysql # not compatible
query I rowsort label-3590
SELECT 79 / 39 * + 65
----
130

query I rowsort
SELECT ALL - 85 * + 66
----
-5610

onlyif mysql # aggregate syntax: 
query II rowsort label-3592
SELECT DISTINCT 25 / + 1 * - - CASE - AVG ( DISTINCT + 6 ) WHEN - COUNT( * ) THEN 51 * CASE + 82 WHEN + 69 + + 38 * - COUNT( * ) THEN - + 16 WHEN SUM( ALL 42 ) THEN NULL END * + 12 WHEN - ( 2 ) THEN NULL END, + COALESCE ( - - 3, + 60 * NULLIF ( + 69, 86 - + CASE - + 11 WHEN 29 * - - 15 * COUNT( * ) * + 44 * - 11 THEN + NULLIF ( - 36, + + COUNT( * ) ) END ) + + MAX( DISTINCT + 3 ) ) AS col2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3592
SELECT DISTINCT 25 / + 1 * - - CASE - AVG ( DISTINCT + 6 ) WHEN - COUNT ( * ) THEN 51 * CASE + 82 WHEN + 69 + + 38 * - COUNT ( * ) THEN - + 16 WHEN SUM ( ALL 42 ) THEN NULL END * + 12 WHEN - ( 2 ) THEN NULL END, + COALESCE ( - - 3, + 60 * NULLIF ( + 69, 86 - + CASE - + 11 WHEN 29 * - - 15 * COUNT ( * ) * + 44 * - 11 THEN + NULLIF ( - 36, + + COUNT ( * ) ) END ) + + MAX ( DISTINCT + 3 ) ) AS col2
----
NULL
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT ALL - 24 AS col0, + MIN( + 46 ) AS col0
----
-24
46

skipif mysql # not compatible
query II rowsort label-3593
SELECT ALL - 24 AS col0, + MIN ( + 46 ) AS col0
----
-24
46

query I rowsort
SELECT + - 14 * - 4 + 56 + 26
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-3595
SELECT ALL 7 DIV - 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL 7 / - 19 AS col0
----
0

query I rowsort
SELECT DISTINCT - ( - 63 ) AS col0
----
63

query I rowsort
SELECT + NULLIF ( - - 39, + 33 ) AS col2
----
39

query I rowsort
SELECT + 60 * - - 89 AS col0
----
5340

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3600
SELECT DISTINCT 78 * 63 + - + 24 DIV + 95 AS col0
----
4914

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT 78 * 63 + - + 24 / + 95 AS col0
----
4914

onlyif mysql # DIV for integer division: 
query I rowsort label-3601
SELECT + 27 * 8 DIV 42 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3601
SELECT + 27 * 8 / 42 AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3602
SELECT - 93 DIV NULLIF ( + + COALESCE ( + ( + 12 ), + 20, 11 + - COUNT( * ) * 88 + - + 73 + - 92 ), 58 - + - COUNT( * ) DIV + 51 * - + 47 )
----
-7

skipif mysql # not compatible
query I rowsort label-3602
SELECT - 93 / NULLIF ( + + COALESCE ( + ( + 12 ), + 20, 11 + - COUNT ( * ) * 88 + - + 73 + - 92 ), 58 - + - COUNT ( * ) / + 51 * - + 47 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3603
SELECT SUM( - - 48 ) * 57 * - NULLIF ( + CASE - ( + ( COUNT( * ) ) ) WHEN + CASE - 94 WHEN - AVG ( ALL 21 ) * + + COALESCE ( - + NULLIF ( 60, - 50 ), CAST( NULL AS SIGNED ) + - + 53 + 26 * 67 + + 95 - + 82 + + 40 ) * - 4 THEN CAST( - COUNT( * ) AS SIGNED ) + + 62 WHEN - 47 * - - 20 - + ( COALESCE ( - - 61, - - 35, - 21 * SUM( DISTINCT 73 ) ) ) * + 58 THEN NULL WHEN - 33 THEN + CAST( 27 AS SIGNED ) * 18 ELSE + 63 + - 30 * - MAX( DISTINCT 28 + 98 ) END THEN - 36 END, 14 ) + 57 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT SUM ( - - 48 ) * 57 * - NULLIF ( + CASE - ( + ( COUNT ( * ) ) ) WHEN + CASE - 94 WHEN - AVG ( ALL 21 ) * + + COALESCE ( - + NULLIF ( 60, - 50 ), CAST ( NULL AS INTEGER ) + - + 53 + 26 * 67 + + 95 - + 82 + + 40 ) * - 4 THEN CAST ( - COUNT ( * ) AS INTEGER ) + + 62 WHEN - 47 * - - 20 - + ( COALESCE ( - - 61, - - 35, - 21 * SUM ( DISTINCT 73 ) ) ) * + 58 THEN NULL WHEN - 33 THEN + CAST ( 27 AS INTEGER ) * 18 ELSE + 63 + - 30 * - MAX ( DISTINCT 28 + 98 ) END THEN - 36 END, 14 ) + 57 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT ALL + 63 + - 1 + + 8 + CAST( + 50 AS SIGNED )
----
120

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL + 63 + - 1 + + 8 + CAST ( + 50 AS INTEGER )
----
120

query I rowsort
SELECT ( 78 ) col0
----
78

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3608
SELECT ALL - + NULLIF ( - - 28, - + CAST( NULL AS SIGNED ) ) + - CAST( - 64 AS SIGNED ) * - + 60 col1
----
-3868

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL - + NULLIF ( - - 28, - + CAST ( NULL AS INTEGER ) ) + - CAST ( - 64 AS INTEGER ) * - + 60 col1
----
-3868

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT 42 * ( - - SUM( ALL - 78 ) )
----
-3276

skipif mysql # not compatible
query I rowsort label-3609
SELECT 42 * ( - - SUM ( ALL - 78 ) )
----
-3276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3610
SELECT ALL - CAST( + 58 AS SIGNED ) + 3 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL - CAST ( + 58 AS INTEGER ) + 3 AS col0
----
-55

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT DISTINCT - - 98 DIV 13 DIV 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT - - 98 / 13 / 57 AS col2
----
0

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

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

query I rowsort
SELECT DISTINCT - 33 * + - 82 AS col0
----
2706

query II rowsort
SELECT 31, - 45 AS col0
----
31
-45

query I rowsort
SELECT ALL - 60 * 23 AS col1
----
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT DISTINCT + COALESCE ( 59, 49 + - SUM( ( + 90 ) ), + 67 * 13 ) + 2 + + - 6 * + - ( + 58 ) AS col2
----
409

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT + COALESCE ( 59, 49 + - SUM ( ( + 90 ) ), + 67 * 13 ) + 2 + + - 6 * + - ( + 58 ) AS col2
----
409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3618
SELECT COUNT( 63 ) * COUNT( * ) + 25 * 89 DIV + 71
----
32

skipif mysql # not compatible
query I rowsort label-3618
SELECT COUNT ( 63 ) * COUNT ( * ) + 25 * 89 / + 71
----
32

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

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

query I rowsort
SELECT 71 * + - ( - 6 )
----
426

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT COUNT( * ) - - 85 + + 86 AS col0
----
172

skipif mysql # not compatible
query I rowsort label-3621
SELECT COUNT ( * ) - - 85 + + 86 AS col0
----
172

onlyif mysql # DIV for integer division: 
query II rowsort label-3622
SELECT ALL 47, + 75 DIV - ( - - 96 ) - + 69 AS col2
----
47
-69

skipif mysql # not compatible
query II rowsort label-3622
SELECT ALL 47, + 75 / - ( - - 96 ) - + 69 AS col2
----
47
-69

query I rowsort
SELECT 54 + + 36 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL - COUNT( * ) - ( - CASE + MIN( DISTINCT - 55 ) WHEN 78 * AVG ( ALL - 86 ) + 68 + + - COALESCE ( 20, + + 50 + - 28 + - 19, 77 * CASE - - 48 WHEN + - ( + COUNT( + 32 ) ) / 75 THEN - - COUNT( * ) * 97 - - COUNT( * ) END ) * 60 + + - 15 * - 93 THEN 34 ELSE NULL END ) + - 96 + - - NULLIF ( - 92, + COUNT( * ) ) / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - COUNT ( * ) - ( - CASE + MIN ( DISTINCT - 55 ) WHEN 78 * AVG ( ALL - 86 ) + 68 + + - COALESCE ( 20, + + 50 + - 28 + - 19, 77 * CASE - - 48 WHEN + - ( + COUNT ( + 32 ) ) / 75 THEN - - COUNT ( * ) * 97 - - COUNT ( * ) END ) * 60 + + - 15 * - 93 THEN 34 ELSE NULL END ) + - 96 + - - NULLIF ( - 92, + COUNT ( * ) ) / - COUNT ( * ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ALL 20 - MIN( DISTINCT 13 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL 20 - MIN ( DISTINCT 13 ) AS col1
----
7

query I rowsort
SELECT 70 * - 51
----
-3570

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL NULLIF ( - COUNT( * ), 62 * + 34 * + + 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL NULLIF ( - COUNT ( * ), 62 * + 34 * + + 62 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT DISTINCT NULLIF ( + COUNT( * ), + + 50 - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT NULLIF ( + COUNT ( * ), + + 50 - 34 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3630
SELECT MAX( + 41 ) * + + CAST( NULL AS DECIMAL ) + 93 + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT MAX ( + 41 ) * + + CAST ( NULL AS REAL ) + 93 + 49 AS col0
----
NULL

query I rowsort
SELECT + 78 - 82 AS col1
----
-4

query I rowsort
SELECT + 95 * + + 72 AS col0
----
6840

query II rowsort
SELECT DISTINCT 19 * 77 col2, 44 AS col1
----
1463
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3634
SELECT ALL + + 1 col0, CAST( - 66 AS SIGNED )
----
1
-66

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3635
SELECT + - 70 AS col1, CAST( + 3 AS SIGNED )
----
-70
3

skipif mysql # not compatible
query II rowsort label-3635
SELECT + - 70 AS col1, CAST ( + 3 AS INTEGER )
----
-70
3

query I rowsort
SELECT + + ( - 75 ) + 89 AS col2
----
14

query I rowsort
SELECT + 84 * + - 39 col1
----
-3276

query I rowsort
SELECT + 97 * - 39 - + 69 + + 23 + - COALESCE ( - 31, - 41 )
----
-3798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3639
SELECT ALL + + 58, COUNT( * ) * + CAST( 73 AS SIGNED ) * - - 99 AS col0
----
58
7227

skipif mysql # not compatible
query II rowsort label-3639
SELECT ALL + + 58, COUNT ( * ) * + CAST ( 73 AS INTEGER ) * - - 99 AS col0
----
58
7227

query I rowsort
SELECT DISTINCT - ( - 19 ) * - 36
----
-684

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

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL + - ( + COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3642
SELECT ALL - + CAST( - 81 AS SIGNED ) * - - COUNT( * ) + - 17 * + 47
----
-718

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - + CAST ( - 81 AS INTEGER ) * - - COUNT ( * ) + - 17 * + 47
----
-718

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT + COUNT( + NULLIF ( + - 28, - + 73 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3643
SELECT + COUNT ( + NULLIF ( + - 28, - + 73 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT + + 61 + - 65 - + 43 - COUNT( * ) + 70
----
22

skipif mysql # not compatible
query I rowsort label-3644
SELECT + + 61 + - 65 - + 43 - COUNT ( * ) + 70
----
22

query I rowsort
SELECT + + COALESCE ( - - 37, - - 53, 22 * - - 16 )
----
37

query I rowsort
SELECT 86 * - + 30 + - 34 + - + 98 AS col2
----
-2712

query I rowsort
SELECT - 69 - - 61 * 55 + + 85 * - ( 42 )
----
-284

query I rowsort
SELECT + NULLIF ( - 23, - + 77 ) AS col0
----
-23

query I rowsort
SELECT + 13 + + ( + - 66 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT + 27 + + MAX( + 3 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3650
SELECT + 27 + + MAX ( + 3 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT ALL 97 + + ( - - COUNT( * ) ) + - NULLIF ( - ( - 57 ), + + COUNT( - 59 ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL 97 + + ( - - COUNT ( * ) ) + - NULLIF ( - ( - 57 ), + + COUNT ( - 59 ) ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT + - COUNT( * ) * - 34 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3652
SELECT + - COUNT ( * ) * - 34 AS col0
----
34

query I rowsort
SELECT - 40 + + + 32
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT - 92 + + COUNT( * ) * + 99 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3654
SELECT - 92 + + COUNT ( * ) * + 99 AS col0
----
7

query I rowsort
SELECT ALL 98 - 12 + - + 96 * - NULLIF ( + 56, ( 37 ) ) * + 69 * + 63
----
23369558

query I rowsort
SELECT + 3 * + 75 AS col1
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT DISTINCT CASE + + MAX( - + 27 ) WHEN - MAX( + - 55 ) + + 70 + - + 31 THEN - + 68 * 59 / + 50 * 68 - - AVG ( ALL - 32 ) WHEN ( 31 ) THEN + + 58 + - + COUNT( * ) ELSE COUNT( * ) * MAX( 84 ) END AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT CASE + + MAX ( - + 27 ) WHEN - MAX ( + - 55 ) + + 70 + - + 31 THEN - + 68 * 59 / + 50 * 68 - - AVG ( ALL - 32 ) WHEN ( 31 ) THEN + + 58 + - + COUNT ( * ) ELSE COUNT ( * ) * MAX ( 84 ) END AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3658
SELECT - 56 + + COUNT( * ), 90 * + - NULLIF ( - ( + - COUNT( * ) ), - - COALESCE ( + 40, - ( + + CAST( + - SUM( DISTINCT + 72 ) AS SIGNED ) ), + COUNT( * ) ) + + + 40 + + - 19 ) AS col0
----
-55
-90

skipif mysql # not compatible
query II rowsort label-3658
SELECT - 56 + + COUNT ( * ), 90 * + - NULLIF ( - ( + - COUNT ( * ) ), - - COALESCE ( + 40, - ( + + CAST ( + - SUM ( DISTINCT + 72 ) AS INTEGER ) ), + COUNT ( * ) ) + + + 40 + + - 19 ) AS col0
----
-55
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3659
SELECT - NULLIF ( - 95, + 87 ) + + CAST( + 73 AS SIGNED ) DIV - ( MAX( - 13 ) ) + - 81 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3659
SELECT - NULLIF ( - 95, + 87 ) + + CAST ( + 73 AS INTEGER ) / - ( MAX ( - 13 ) ) + - 81 AS col1
----
19

query I rowsort
SELECT DISTINCT - 2 * 50 * + 22 AS col2
----
-2200

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3661
SELECT ALL - 29 DIV 58, - MIN( DISTINCT - + COALESCE ( + 25, 8 - - 46 ) ) AS col1
----
0
25

skipif mysql # not compatible
query II rowsort label-3661
SELECT ALL - 29 / 58, - MIN ( DISTINCT - + COALESCE ( + 25, 8 - - 46 ) ) AS col1
----
0
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3662
SELECT - COUNT( * ) DIV + ( - CASE - 30 WHEN - 46 + + 79 THEN - + 32 WHEN - 11 + - 27 THEN NULL ELSE + 17 + - 96 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3662
SELECT - COUNT ( * ) / + ( - CASE - 30 WHEN - 46 + + 79 THEN - + 32 WHEN - 11 + - 27 THEN NULL ELSE + 17 + - 96 END ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 84 * - + 53
----
-4452

query I rowsort
SELECT DISTINCT + 12 * + 22 AS col2
----
264

query I rowsort
SELECT ALL NULLIF ( - 50, 86 )
----
-50

query I rowsort
SELECT ALL + 94 * - COALESCE ( + 6, - NULLIF ( + 10, + 26 ) ) AS col2
----
-564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3667
SELECT - MIN( ALL - 47 ) DIV 18 DIV - 88 + + 78 col2
----
78

skipif mysql # not compatible
query I rowsort label-3667
SELECT - MIN ( ALL - 47 ) / 18 / - 88 + + 78 col2
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3668
SELECT - ( COUNT( * ) ) DIV - + 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3668
SELECT - ( COUNT ( * ) ) / - + 27 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT ALL - COUNT( * ) + + + 43
----
42

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL - COUNT ( * ) + + + 43
----
42

query I rowsort
SELECT ALL + 67 + + 63 + 55 AS col0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT CAST( - 64 AS SIGNED ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3671
SELECT CAST ( - 64 AS INTEGER ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT - 82 * - NULLIF ( + - 97, - 15 * - - COUNT( * ) ) AS col2
----
-7954

skipif mysql # not compatible
query I rowsort label-3672
SELECT - 82 * - NULLIF ( + - 97, - 15 * - - COUNT ( * ) ) AS col2
----
-7954

onlyif mysql # DIV for integer division: 
query I rowsort label-3673
SELECT ALL + 12 DIV 94 + - 30 + 18 DIV 38 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL + 12 / 94 + - 30 + 18 / 38 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT COUNT( * ) * - 34 - + 14
----
-48

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT COUNT ( * ) * - 34 - + 14
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3675
SELECT ALL - 48 / COUNT( DISTINCT + 1 ) * + 53 + + ( - - COUNT( * ) ) + - 14 * - - 85 + - + 89 + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL - 48 / COUNT ( DISTINCT + 1 ) * + 53 + + ( - - COUNT ( * ) ) + - 14 * - - 85 + - + 89 + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT + + MAX( + + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-3676
SELECT + + MAX ( + + 80 )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-3677
SELECT - 44 * + 75 * 10 + 61 + - + 62 AS col1, 89 * ( + COUNT( * ) ) AS col1
----
-33001
89

skipif mysql # not compatible
query II rowsort label-3677
SELECT - 44 * + 75 * 10 + 61 + - + 62 AS col1, 89 * ( + COUNT ( * ) ) AS col1
----
-33001
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3678
SELECT ALL + COUNT( * ) DIV - + 91 + - 12 + + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL + COUNT ( * ) / - + 91 + - 12 + + COUNT ( * )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT ALL NULLIF ( + COALESCE ( - 29, - + CAST( NULL AS SIGNED ) ), - + NULLIF ( - 31, + + 84 ) * - 44 * - - 47 ) * + + 79 * 93
----
-213063

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL NULLIF ( + COALESCE ( - 29, - + CAST ( NULL AS INTEGER ) ), - + NULLIF ( - 31, + + 84 ) * - 44 * - - 47 ) * + + 79 * 93
----
-213063

onlyif mysql # aggregate syntax: 
query II rowsort label-3680
SELECT - 84 * - COUNT( * ) AS col2, - 81 + + ( + 53 ) * - 61 + - CASE + 23 WHEN + 0 / - - 30 THEN NULL WHEN - - 11 + + SUM( DISTINCT - 32 ) * + COUNT( * ) THEN - 51 END + - 84 + - 47
----
84
NULL

skipif mysql # not compatible
query II rowsort label-3680
SELECT - 84 * - COUNT ( * ) AS col2, - 81 + + ( + 53 ) * - 61 + - CASE + 23 WHEN + 0 / - - 30 THEN NULL WHEN - - 11 + + SUM ( DISTINCT - 32 ) * + COUNT ( * ) THEN - 51 END + - 84 + - 47
----
84
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT DISTINCT + 5 * CAST( - 76 AS SIGNED ) AS col2
----
-380

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT + 5 * CAST ( - 76 AS INTEGER ) AS col2
----
-380

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT DISTINCT 59 DIV - 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT 59 / - 96 AS col2
----
0

query I rowsort
SELECT DISTINCT + - 0 * + 10 - - 10
----
10

query I rowsort
SELECT + + 16 * - + 95 AS col2
----
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT + NULLIF ( COALESCE ( + - COUNT( * ), 13 ), NULLIF ( - ( + 94 ), + NULLIF ( - 49, - 39 * - 25 ) + + AVG ( 42 ) - + 92 * - 47 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3685
SELECT + NULLIF ( COALESCE ( + - COUNT ( * ), 13 ), NULLIF ( - ( + 94 ), + NULLIF ( - 49, - 39 * - 25 ) + + AVG ( 42 ) - + 92 * - 47 ) )
----
-1

query II rowsort
SELECT ALL 25, - 95 AS col2
----
25
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT COUNT( * ) * - 46 - CASE + 13 WHEN CASE COUNT( * ) WHEN - 14 THEN NULL WHEN 57 THEN - + COUNT( * ) ELSE NULL END * + - 6 THEN 90 END * + + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT COUNT ( * ) * - 46 - CASE + 13 WHEN CASE COUNT ( * ) WHEN - 14 THEN NULL WHEN 57 THEN - + COUNT ( * ) ELSE NULL END * + - 6 THEN 90 END * + + 45 AS col0
----
NULL

query I rowsort
SELECT + 86 * - + 76 col1
----
-6536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3689
SELECT + ( + - CAST( COUNT( * ) AS SIGNED ) ) * - 58 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-3689
SELECT + ( + - CAST ( COUNT ( * ) AS INTEGER ) ) * - 58 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL 50 * - + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL 50 * - + COUNT ( * )
----
-50

query I rowsort
SELECT + 50 * + - ( - - 92 )
----
-4600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT - CAST( 53 AS SIGNED ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3692
SELECT - CAST ( 53 AS INTEGER ) AS col2
----
-53

query I rowsort
SELECT DISTINCT 73 * 51
----
3723

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT COUNT( ALL 48 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3694
SELECT COUNT ( ALL 48 ) * + COUNT ( * )
----
1

query I rowsort
SELECT ALL 8 * + ( + 76 )
----
608

query I rowsort
SELECT 54 + - - 59
----
113

query II rowsort
SELECT 12, + 65 * - 8 - - + 62 col1
----
12
-458

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT DISTINCT 2 + + MAX( 34 )
----
36

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT 2 + + MAX ( 34 )
----
36

query I rowsort
SELECT ALL - 35 + + + 87 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT 79 + - ( - + 66 ) * COUNT( * ) * + 99 + 8 AS col1
----
6621

skipif mysql # not compatible
query I rowsort label-3700
SELECT 79 + - ( - + 66 ) * COUNT ( * ) * + 99 + 8 AS col1
----
6621

query I rowsort
SELECT DISTINCT 7 + 18
----
25

query I rowsort
SELECT DISTINCT 66 + - 9 * + 95
----
-789

query I rowsort
SELECT ALL + 63 * + + 20 AS col2
----
1260

query II rowsort
SELECT 6 AS col0, 49 + - - 22 + + 8
----
6
79

query I rowsort
SELECT DISTINCT + + 75 + - - 71 AS col2
----
146

query I rowsort
SELECT ALL + - 25 + 22 * - - 45 AS col0
----
965

query I rowsort
SELECT + ( 84 ) * - - 63 - - - 53
----
5239

query I rowsort
SELECT DISTINCT - ( - + 61 ) AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3709
SELECT DISTINCT + CAST( MIN( DISTINCT 39 ) AS SIGNED ) * 83 * - COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT + CAST ( MIN ( DISTINCT 39 ) AS INTEGER ) * 83 * - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT ALL + - ( + 96 ) + + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + - ( + 96 ) + + COUNT ( * )
----
-95

query I rowsort
SELECT 71 * + - 16 AS col2
----
-1136

onlyif mysql # DIV for integer division: 
query I rowsort label-3712
SELECT + 68 DIV 69 DIV - 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3712
SELECT + 68 / 69 / - 77 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3713
SELECT 17 + - 89 + 20 * CAST( NULL AS DECIMAL ) * + - 58 * + - 23, + 89 AS col0
----
NULL
89

skipif mysql # not compatible
query II rowsort label-3713
SELECT 17 + - 89 + 20 * CAST ( NULL AS REAL ) * + - 58 * + - 23, + 89 AS col0
----
NULL
89

query I rowsort
SELECT ALL - + 12 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ALL - + COUNT( * ) - + 15 + + - 57 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL - + COUNT ( * ) - + 15 + + - 57 AS col0
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-3716
SELECT ALL - COUNT( * ) AS col0, + 72 AS col1
----
-1
72

skipif mysql # not compatible
query II rowsort label-3716
SELECT ALL - COUNT ( * ) AS col0, + 72 AS col1
----
-1
72

query I rowsort
SELECT + - ( - 1 ) AS col2
----
1

query I rowsort
SELECT ALL 48 * + 55 AS col2
----
2640

query I rowsort
SELECT DISTINCT - 51 - COALESCE ( - 76, - - 64 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT - MAX( 97 ) + - MIN( DISTINCT - 84 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3720
SELECT - MAX ( 97 ) + - MIN ( DISTINCT - 84 ) AS col1
----
-13

query I rowsort
SELECT 20 * + 55
----
1100

query I rowsort
SELECT ALL + 49 * - 88 AS col2
----
-4312

query I rowsort
SELECT + 84 + - 38 col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT 80 - + 75 + + - CAST( - 28 AS SIGNED ) * + 99 AS col1
----
2777

skipif mysql # not compatible
query I rowsort label-3724
SELECT 80 - + 75 + + - CAST ( - 28 AS INTEGER ) * + 99 AS col1
----
2777

query I rowsort
SELECT ALL 27 * CASE 32 WHEN - - 41 THEN - ( + 91 ) END * + - 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT CASE - 39 WHEN + - 67 THEN NULL WHEN - + 51 THEN - 74 * 33 - - 74 + COUNT( 81 ) * - 34 ELSE - + CASE + 54 WHEN - - 76 * + 50 * - + COUNT( * ) + + 53 THEN + COUNT( * ) WHEN - 8 / + 68 THEN - NULLIF ( + + COALESCE ( + - 38, + 11 ), + 12 * - + 71 ) ELSE NULL END * - COALESCE ( - + 92, + AVG ( - 21 ) + - 35, 83 ) + ( + + 40 ) + - 2 * - COUNT( * ) * 68 * - - 52 * + COALESCE ( 54, - 32, 25 ) * COALESCE ( 13, + 69 ) * + 3 END / + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3726
SELECT CASE - 39 WHEN + - 67 THEN NULL WHEN - + 51 THEN - 74 * 33 - - 74 + COUNT ( 81 ) * - 34 ELSE - + CASE + 54 WHEN - - 76 * + 50 * - + COUNT ( * ) + + 53 THEN + COUNT ( * ) WHEN - 8 / + 68 THEN - NULLIF ( + + COALESCE ( + - 38, + 11 ), + 12 * - + 71 ) ELSE NULL END * - COALESCE ( - + 92, + AVG ( - 21 ) + - 35, 83 ) + ( + + 40 ) + - 2 * - COUNT ( * ) * 68 * - - 52 * + COALESCE ( 54, - 32, 25 ) * COALESCE ( 13, + 69 ) * + 3 END / + 84 AS col1
----
NULL

query I rowsort
SELECT ( - + 41 ) + ( + + 28 ) + + 23 col1
----
10

query I rowsort
SELECT DISTINCT 26 + 27 * + 14
----
404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT CAST( + 61 AS SIGNED ) + 48 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-3729
SELECT CAST ( + 61 AS INTEGER ) + 48 AS col1
----
109

onlyif mysql # DIV for integer division: 
query II rowsort label-3730
SELECT ALL 61 + - 16 AS col0, - 60 + + + COALESCE ( 63, - ( - AVG ( ALL + 35 ) ) DIV + - 10 * + CASE + 95 WHEN + + 12 DIV + 36 THEN + 87 END, + + 58 ) + 21 AS col0
----
45
24

skipif mysql # not compatible
query II rowsort label-3730
SELECT ALL 61 + - 16 AS col0, - 60 + + + COALESCE ( 63, - ( - AVG ( ALL + 35 ) ) / + - 10 * + CASE + 95 WHEN + + 12 / + 36 THEN + 87 END, + + 58 ) + 21 AS col0
----
45
24

query I rowsort
SELECT DISTINCT 96 + 59 + + - 43 col0
----
112

query I rowsort
SELECT ALL 13 + + 21
----
34

query I rowsort
SELECT ALL 25 + + 54 * 89 AS col2
----
4831

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3734
SELECT DISTINCT SUM( ALL + 84 ) * - 91 + 55 AS col1, 3 * + + 24 DIV + COUNT( * ) AS col1
----
-7589
72

skipif mysql # not compatible
query II rowsort label-3734
SELECT DISTINCT SUM ( ALL + 84 ) * - 91 + 55 AS col1, 3 * + + 24 / + COUNT ( * ) AS col1
----
-7589
72

query I rowsort
SELECT ALL 1 + - + ( - 60 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT ALL 18 * - + CASE - 33 WHEN + + CASE + 56 WHEN - 46 * - + 3 - - + 65 + COUNT( * ) * + 69 THEN + 68 + - + 64 ELSE - 27 END THEN - 87 WHEN + + 63 + 32 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL 18 * - + CASE - 33 WHEN + + CASE + 56 WHEN - 46 * - + 3 - - + 65 + COUNT ( * ) * + 69 THEN + 68 + - + 64 ELSE - 27 END THEN - 87 WHEN + + 63 + 32 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 56 + - 61
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT 53 + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-3738
SELECT 53 + COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3739
SELECT ALL COUNT( DISTINCT - + 42 ) - + - 50 + + + 27, 90 * + MAX( CASE + 1 WHEN + ( - 13 ) * - 71 THEN NULL WHEN + 4 THEN - + 11 END ) * - - ( + 93 ) AS col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-3739
SELECT ALL COUNT ( DISTINCT - + 42 ) - + - 50 + + + 27, 90 * + MAX ( CASE + 1 WHEN + ( - 13 ) * - 71 THEN NULL WHEN + 4 THEN - + 11 END ) * - - ( + 93 ) AS col0
----
78
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3740
SELECT CASE + + 80 WHEN + 26 - + CAST( - 75 AS SIGNED ) THEN NULL WHEN 53 + + COALESCE ( - MIN( + 91 ), - 89 * - - 19, 24 ) THEN + + ( + COUNT( * ) ) * + 37 END * SUM( - + 78 ) / ( - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT CASE + + 80 WHEN + 26 - + CAST ( - 75 AS INTEGER ) THEN NULL WHEN 53 + + COALESCE ( - MIN ( + 91 ), - 89 * - - 19, 24 ) THEN + + ( + COUNT ( * ) ) * + 37 END * SUM ( - + 78 ) / ( - COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 36 col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL - 46 * 30 - - - 18 + + COUNT( * ) AS col0
----
-1397

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL - 46 * 30 - - - 18 + + COUNT ( * ) AS col0
----
-1397

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT + SUM( ALL 64 )
----
64

skipif mysql # not compatible
query I rowsort label-3743
SELECT + SUM ( ALL 64 )
----
64

query II rowsort
SELECT ALL + 55 * + 73 col1, + 33
----
4015
33

query I rowsort
SELECT - 93 * 44
----
-4092

query II rowsort
SELECT DISTINCT - 11 * - 5 AS col2, - ( - + 71 ) AS col2
----
55
71

query I rowsort
SELECT ALL - + 85 col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - CASE - - 72 WHEN 94 THEN COUNT( * ) ELSE NULL END * 99 - NULLIF ( 39, 38 ) + - - 41 + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT - CASE - - 72 WHEN 94 THEN COUNT ( * ) ELSE NULL END * 99 - NULLIF ( 39, 38 ) + - - 41 + + 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3749
SELECT ALL - + CAST( + 68 AS SIGNED ) * ( + - 87 ) + - COUNT( * ) + - 82 col1
----
5833

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL - + CAST ( + 68 AS INTEGER ) * ( + - 87 ) + - COUNT ( * ) + - 82 col1
----
5833

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT CASE 33 WHEN + 88 / - 85 * - 83 THEN + COALESCE ( + 68, ( - SUM( + + 60 ) ), + 66 / 37, 29 ) * - - 39 + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT CASE 33 WHEN + 88 / - 85 * - 83 THEN + COALESCE ( + 68, ( - SUM ( + + 60 ) ), + 66 / 37, 29 ) * - - 39 + 97 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT 34 * - MAX( + + 76 )
----
-2584

skipif mysql # not compatible
query I rowsort label-3751
SELECT 34 * - MAX ( + + 76 )
----
-2584

query II rowsort
SELECT ALL - 19, + 54 AS col1
----
-19
54

query I rowsort
SELECT DISTINCT - ( - + 68 ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3754
SELECT - COALESCE ( + MAX( DISTINCT 29 ), + 33 * + 83, + + 14 + CASE - 52 WHEN COUNT( * ) * - + 42 THEN NULL WHEN + 31 THEN + - CAST( 63 AS SIGNED ) - - 59 WHEN 42 THEN NULL ELSE NULL END * - 83 ) * ( 58 ) AS col1
----
-1682

skipif mysql # not compatible
query I rowsort label-3754
SELECT - COALESCE ( + MAX ( DISTINCT 29 ), + 33 * + 83, + + 14 + CASE - 52 WHEN COUNT ( * ) * - + 42 THEN NULL WHEN + 31 THEN + - CAST ( 63 AS INTEGER ) - - 59 WHEN 42 THEN NULL ELSE NULL END * - 83 ) * ( 58 ) AS col1
----
-1682

query II rowsort
SELECT + 80 AS col1, + 7
----
80
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL - 70 + - 53 + - + MAX( 88 ) + + 13 * + 74
----
751

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - 70 + - 53 + - + MAX ( 88 ) + + 13 * + 74
----
751

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT DISTINCT COUNT( ALL + + 34 ) * + 80 * - 81
----
-6480

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT COUNT ( ALL + + 34 ) * + 80 * - 81
----
-6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3758
SELECT ALL + ( - CASE - COUNT( * ) WHEN 32 / + + 84 + + 81 + - + 81 THEN CAST( - 37 AS SIGNED ) + + 51 WHEN + 1 + - 28 * + 42 THEN - + 39 + - COUNT( * ) + - COUNT( * ) ELSE NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL + ( - CASE - COUNT ( * ) WHEN 32 / + + 84 + + 81 + - + 81 THEN CAST ( - 37 AS INTEGER ) + + 51 WHEN + 1 + - 28 * + 42 THEN - + 39 + - COUNT ( * ) + - COUNT ( * ) ELSE NULL END ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT - CASE + SUM( ALL 81 ) WHEN + ( 98 ) THEN NULL WHEN + 79 THEN - COUNT( * ) ELSE NULL END * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT - CASE + SUM ( ALL 81 ) WHEN + ( 98 ) THEN NULL WHEN + 79 THEN - COUNT ( * ) ELSE NULL END * 56
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT ALL + 98 + - + CAST( NULL AS SIGNED ) * - + 69 * - 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL + 98 + - + CAST ( NULL AS INTEGER ) * - + 69 * - 71 AS col2
----
NULL

query I rowsort
SELECT ALL - 35 + - 57
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT CASE + SUM( DISTINCT + - 69 ) WHEN - COUNT( * ) + + - 55 THEN ( - 19 ) / - 0 WHEN + NULLIF ( + 38, - - 39 ) + - COUNT( * ) THEN NULL WHEN + 31 * - 19 THEN NULL END * + COUNT( * ) - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT CASE + SUM ( DISTINCT + - 69 ) WHEN - COUNT ( * ) + + - 55 THEN ( - 19 ) / - 0 WHEN + NULLIF ( + 38, - - 39 ) + - COUNT ( * ) THEN NULL WHEN + 31 * - 19 THEN NULL END * + COUNT ( * ) - 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT DISTINCT NULLIF ( 40, - COUNT( * ) * 11 )
----
40

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT NULLIF ( 40, - COUNT ( * ) * 11 )
----
40

query I rowsort
SELECT - 43 * 24 col2
----
-1032

query I rowsort
SELECT ALL 55 * - 13
----
-715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3766
SELECT DISTINCT 72 + + CAST( NULL AS SIGNED ) + + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT 72 + + CAST ( NULL AS INTEGER ) + + + 59
----
NULL

query I rowsort
SELECT DISTINCT - 81 * + + 98 * - ( - - 59 ) col0
----
468342

query I rowsort
SELECT ALL 7 + - 78 col1
----
-71

query I rowsort
SELECT + 13 * - 88
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT ALL - 63 * SUM( DISTINCT - 12 ) AS col0
----
756

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL - 63 * SUM ( DISTINCT - 12 ) AS col0
----
756

query I rowsort
SELECT DISTINCT ( - 83 ) AS col2
----
-83

query I rowsort
SELECT - 60 + 75 AS col1
----
15

query I rowsort
SELECT ALL - 0 - + + 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT CASE + 55 WHEN 15 * COUNT( * ) THEN + 52 ELSE + - 84 END
----
-84

skipif mysql # not compatible
query I rowsort label-3774
SELECT CASE + 55 WHEN 15 * COUNT ( * ) THEN + 52 ELSE + - 84 END
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL + COUNT( * ) - + - 25
----
26

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL + COUNT ( * ) - + - 25
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3776
SELECT DISTINCT 63 DIV + - 29 col2
----
-2

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT 63 / + - 29 col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3777
SELECT + + 45 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT + + 45 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3778
SELECT ALL MAX( + 38 ) * CAST( - + 76 AS SIGNED ) AS col0
----
-2888

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL MAX ( + 38 ) * CAST ( - + 76 AS INTEGER ) AS col0
----
-2888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT + CAST( COUNT( * ) AS SIGNED ) * 85 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3779
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * 85 AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3780
SELECT + - 70 + CAST( NULL AS SIGNED ) * 62 * + 71 - - 57 AS col0, + 27 col2
----
NULL
27

skipif mysql # not compatible
query II rowsort label-3780
SELECT + - 70 + CAST ( NULL AS INTEGER ) * 62 * + 71 - - 57 AS col0, + 27 col2
----
NULL
27

query I rowsort
SELECT ALL + 64 - - 31 - 63 * 38 AS col2
----
-2299

query II rowsort
SELECT DISTINCT + 42 * - 77 * - 77 AS col1, 22 - - 99 + + - 60 AS col1
----
249018
61

query II rowsort
SELECT DISTINCT 52 * 16 - - + 32 AS col2, + 83
----
864
83

query I rowsort
SELECT + 91 * + 6 * + 62 + + 84
----
33936

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT + + 93 * - - COUNT( + + 30 )
----
93

skipif mysql # not compatible
query I rowsort label-3785
SELECT + + 93 * - - COUNT ( + + 30 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3786
SELECT + + CASE - 81 WHEN - NULLIF ( - - 20, + 47 + + + 83 * + 32 + - 42 * 78 * CAST( ( + + MIN( DISTINCT + 78 ) ) AS SIGNED ) / + 67 * - CASE - 44 WHEN + 38 * CASE + 50 WHEN 59 THEN + + 76 * - SUM( + 7 ) - 83 WHEN + 79 + - + 69 THEN + + 14 ELSE - + 15 END THEN - 79 ELSE + NULLIF ( - - COUNT( * ), + 99 ) END ) + + 29 THEN + + 91 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT + + CASE - 81 WHEN - NULLIF ( - - 20, + 47 + + + 83 * + 32 + - 42 * 78 * CAST ( ( + + MIN ( DISTINCT + 78 ) ) AS INTEGER ) / + 67 * - CASE - 44 WHEN + 38 * CASE + 50 WHEN 59 THEN + + 76 * - SUM ( + 7 ) - 83 WHEN + 79 + - + 69 THEN + + 14 ELSE - + 15 END THEN - 79 ELSE + NULLIF ( - - COUNT ( * ), + 99 ) END ) + + 29 THEN + + 91 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3787
SELECT DISTINCT + ( - 95 ) * + CAST( + - COUNT( * ) AS SIGNED ) + - COALESCE ( - 50, - 56 * + 95 )
----
145

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT + ( - 95 ) * + CAST ( + - COUNT ( * ) AS INTEGER ) + - COALESCE ( - 50, - 56 * + 95 )
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-3788
SELECT ALL + + 74, - 12 * - COUNT( * ) AS col0
----
74
12

skipif mysql # not compatible
query II rowsort label-3788
SELECT ALL + + 74, - 12 * - COUNT ( * ) AS col0
----
74
12

query I rowsort
SELECT - + 38 * + + 21 AS col2
----
-798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT ALL + CAST( 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + CAST ( 17 AS INTEGER )
----
17

query II rowsort
SELECT + + 34 AS col1, + 19
----
34
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3792
SELECT + - COUNT( - 65 ) + + - CAST( NULL AS SIGNED ) + + + 38 + + 72, 68 + + - COUNT( * ) col2
----
NULL
67

skipif mysql # not compatible
query II rowsort label-3792
SELECT + - COUNT ( - 65 ) + + - CAST ( NULL AS INTEGER ) + + + 38 + + 72, 68 + + - COUNT ( * ) col2
----
NULL
67

query II rowsort
SELECT - 43 AS col1, + 78 AS col2
----
-43
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3794
SELECT ALL + ( - CAST( - NULLIF ( - SUM( DISTINCT 4 ), - 4 ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL + ( - CAST ( - NULLIF ( - SUM ( DISTINCT 4 ), - 4 ) AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 96 AS col2, 74 AS col1
----
96
74

query I rowsort
SELECT ALL 49 * 75 * - 31 + + - 89 AS col2
----
-114014

query I rowsort
SELECT ALL + COALESCE ( 59, + 89, - + 46 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3798
SELECT + 75 col0, NULLIF ( - 23, NULLIF ( - 34, 87 + - + AVG ( - + 86 ) + - 78 * - 84 + - - 72 + + CAST( NULL AS SIGNED ) ) * - - COUNT( * ) + + + CAST( NULL AS SIGNED ) + 27 + - ( COUNT( * ) ) / - 14 ) + - + ( 74 )
----
75
-97

skipif mysql # not compatible
query II rowsort label-3798
SELECT + 75 col0, NULLIF ( - 23, NULLIF ( - 34, 87 + - + AVG ( - + 86 ) + - 78 * - 84 + - - 72 + + CAST ( NULL AS INTEGER ) ) * - - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + 27 + - ( COUNT ( * ) ) / - 14 ) + - + ( 74 )
----
75
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3799
SELECT DISTINCT COALESCE ( - 85, - MAX( ALL 80 ) + + - 35 + + 95 * + + 51, + ( - CAST( NULL AS SIGNED ) ) * + 97 * - - 68 - + ( 44 ) ) * + - 43 + - 8 - - + 47 + + 34 AS col1
----
3728

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT COALESCE ( - 85, - MAX ( ALL 80 ) + + - 35 + + 95 * + + 51, + ( - CAST ( NULL AS INTEGER ) ) * + 97 * - - 68 - + ( 44 ) ) * + - 43 + - 8 - - + 47 + + 34 AS col1
----
3728

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT NULLIF ( - COUNT( * ), + ( - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT NULLIF ( - COUNT ( * ), + ( - COUNT ( * ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3801
SELECT + 73 + COUNT( * ) AS col2, - ( - 80 ) + - 19 + COUNT( * ) + + NULLIF ( ( - + 10 ), + - COUNT( * ) ) / 86 / + 83 + - + 92 + 39 + - 48 * ( + - 3 ) * + + 36 / - + CAST( NULL AS SIGNED ) col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-3801
SELECT + 73 + COUNT ( * ) AS col2, - ( - 80 ) + - 19 + COUNT ( * ) + + NULLIF ( ( - + 10 ), + - COUNT ( * ) ) / 86 / + 83 + - + 92 + 39 + - 48 * ( + - 3 ) * + + 36 / - + CAST ( NULL AS INTEGER ) col1
----
74
NULL

query I rowsort
SELECT + ( + + 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3803
SELECT + NULLIF ( 29, + - 26 * + SUM( DISTINCT - + 71 ) * + ( + 24 ) + 48 - 99 - - 26 ) * - - 13 + 74 DIV - 72
----
376

skipif mysql # not compatible
query I rowsort label-3803
SELECT + NULLIF ( 29, + - 26 * + SUM ( DISTINCT - + 71 ) * + ( + 24 ) + 48 - 99 - - 26 ) * - - 13 + 74 / - 72
----
376

query I rowsort
SELECT COALESCE ( 23, + + 44, 78 + + 20 )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3805
SELECT ALL 98 * - ( + 28 ) * 61 + + 23 * + 73 + - ( - 59 ) + 44 * + SUM( + 81 ) AS col2, 27 + - + 93 + + 22 AS col2
----
-162082
-44

skipif mysql # not compatible
query II rowsort label-3805
SELECT ALL 98 * - ( + 28 ) * 61 + + 23 * + 73 + - ( - 59 ) + 44 * + SUM ( + 81 ) AS col2, 27 + - + 93 + + 22 AS col2
----
-162082
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT COUNT( * ) * MIN( ALL 53 ) * NULLIF ( - MAX( - - 5 ), - 25 ) + - 45
----
-310

skipif mysql # not compatible
query I rowsort label-3806
SELECT COUNT ( * ) * MIN ( ALL 53 ) * NULLIF ( - MAX ( - - 5 ), - 25 ) + - 45
----
-310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3807
SELECT ALL COUNT( * ) * + + 23 * 27 * + + 10 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL COUNT ( * ) * + + 23 * 27 * + + 10 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3808
SELECT ALL + CAST( - 20 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL + CAST ( - 20 AS INTEGER )
----
-20

query I rowsort
SELECT ALL - 23 * - - 93 + - + 70 AS col1
----
-2209

query I rowsort
SELECT NULLIF ( 29, - + 75 * - 48 * 30 )
----
29

query I rowsort
SELECT DISTINCT - 94 * - 74 * 0 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3812
SELECT COUNT( * ) AS col2, + 56 - + - 52 + 72 * - NULLIF ( 99, + 4 ) col2
----
1
-7020

skipif mysql # not compatible
query II rowsort label-3812
SELECT COUNT ( * ) AS col2, + 56 - + - 52 + 72 * - NULLIF ( 99, + 4 ) col2
----
1
-7020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3813
SELECT DISTINCT CAST( - ( + + 67 ) AS SIGNED ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT CAST ( - ( + + 67 ) AS INTEGER ) AS col2
----
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3814
SELECT - 11 AS col2, - CAST( NULL AS DECIMAL )
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-3814
SELECT - 11 AS col2, - CAST ( NULL AS REAL )
----
-11
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3815
SELECT COUNT( * ) col2, ( + COUNT( * ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-3815
SELECT COUNT ( * ) col2, ( + COUNT ( * ) )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL + 96 * - 98 - 97 + 51 * + MAX( DISTINCT - 29 ) + + COUNT( * ) + + 40
----
-10943

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL + 96 * - 98 - 97 + 51 * + MAX ( DISTINCT - 29 ) + + COUNT ( * ) + + 40
----
-10943

query I rowsort
SELECT DISTINCT ( 21 )
----
21

query I rowsort
SELECT - 42 + + - 72 * + 3 AS col2
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT + 82 * - 35 + - 52 + + 2 * 53 + + COUNT( * ) * + 60 AS col2
----
-2756

skipif mysql # not compatible
query I rowsort label-3819
SELECT + 82 * - 35 + - 52 + + 2 * 53 + + COUNT ( * ) * + 60 AS col2
----
-2756

query I rowsort
SELECT ALL - + 89 * + - 28 AS col1
----
2492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3821
SELECT ALL CAST( 48 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL CAST ( 48 AS INTEGER )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3822
SELECT ALL 19 col0, + COUNT( * ) + - 98 AS col2
----
19
-97

skipif mysql # not compatible
query II rowsort label-3822
SELECT ALL 19 col0, + COUNT ( * ) + - 98 AS col2
----
19
-97

query II rowsort
SELECT 15 AS col2, - 34 AS col1
----
15
-34

query II rowsort
SELECT ALL 81 col0, + 45
----
81
45

query I rowsort
SELECT - + 82 * ( 4 ) AS col1
----
-328

onlyif mysql # aggregate syntax: 
query II rowsort label-3826
SELECT ALL - 3 AS col2, 81 * 82 * - ( - - MAX( - ( 72 ) ) ) * - - 13
----
-3
6216912

skipif mysql # not compatible
query II rowsort label-3826
SELECT ALL - 3 AS col2, 81 * 82 * - ( - - MAX ( - ( 72 ) ) ) * - - 13
----
-3
6216912

query II rowsort
SELECT 59, - 84 AS col0
----
59
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL CASE 53 WHEN + ( - 73 ) + - + 70 THEN + 24 WHEN - 79 / 21 * + + 14 - - - 50 * + - 81 THEN + COUNT( * ) + 81 WHEN - 90 * ( - 79 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL CASE 53 WHEN + ( - 73 ) + - + 70 THEN + 24 WHEN - 79 / 21 * + + 14 - - - 50 * + - 81 THEN + COUNT ( * ) + 81 WHEN - 90 * ( - 79 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3829
SELECT CASE - 24 WHEN + COUNT( DISTINCT - + 93 ) THEN 26 ELSE + 96 END, 17 AS col0
----
96
17

skipif mysql # not compatible
query II rowsort label-3829
SELECT CASE - 24 WHEN + COUNT ( DISTINCT - + 93 ) THEN 26 ELSE + 96 END, 17 AS col0
----
96
17

query II rowsort
SELECT - - ( - + 32 ) AS col2, + 43
----
-32
43

query I rowsort
SELECT - - 22 * - 24 + - 97
----
-625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3832
SELECT - + 47 * 89 + - CAST( + + 43 AS SIGNED )
----
-4226

skipif mysql # not compatible
query I rowsort label-3832
SELECT - + 47 * 89 + - CAST ( + + 43 AS INTEGER )
----
-4226

query I rowsort
SELECT + + 83 * + - 1
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3834
SELECT - 15 AS col1, + CASE + CASE COUNT( * ) WHEN + COUNT( * ) THEN NULL WHEN - 60 * 75 - - + COUNT( * ) THEN 86 / + CAST( - 99 AS DECIMAL ) + 24 END WHEN - + 94 THEN + 82 WHEN - - CAST( NULL AS SIGNED ) THEN + COUNT( * ) END * CAST( NULL AS SIGNED ) * + COUNT( * ) + 93 / + 49 * - 97 AS col0
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-3834
SELECT - 15 AS col1, + CASE + CASE COUNT ( * ) WHEN + COUNT ( * ) THEN NULL WHEN - 60 * 75 - - + COUNT ( * ) THEN 86 / + CAST ( - 99 AS REAL ) + 24 END WHEN - + 94 THEN + 82 WHEN - - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) END * CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 93 / + 49 * - 97 AS col0
----
-15
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3835
SELECT + 11 DIV - - 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT + 11 / - - 13 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3836
SELECT ALL 81 DIV - - 42
----
1

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL 81 / - - 42
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT DISTINCT + ( - + 11 ) + 87 + - + 89 * + 24 * + 82 + - + ( - 35 ) * + COUNT( * ) AS col2
----
-175041

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT + ( - + 11 ) + 87 + - + 89 * + 24 * + 82 + - + ( - 35 ) * + COUNT ( * ) AS col2
----
-175041

query II rowsort
SELECT DISTINCT - 70 + - - 51 AS col1, + 21 + - 11 AS col2
----
-19
10

query I rowsort
SELECT ALL + - 30 + + - 44 + 71 * - 30 * 74 * - - 37 AS col0
----
-5832014

query I rowsort
SELECT ALL 98 + 13 * - 97 AS col0
----
-1163

onlyif mysql # aggregate syntax: 
query II rowsort label-3841
SELECT DISTINCT 9 + + COUNT( * ), + 92 AS col0
----
10
92

skipif mysql # not compatible
query II rowsort label-3841
SELECT DISTINCT 9 + + COUNT ( * ), + 92 AS col0
----
10
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ALL 85 + + + COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL 85 + + + COUNT ( * ) AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3843
SELECT ALL 44 * + COUNT( * ) DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL 44 * + COUNT ( * ) / + 72
----
0

query I rowsort
SELECT 70 * - + 25 * 50
----
-87500

query II rowsort
SELECT DISTINCT 97 + - 5 * 52 + 76 + - - 60, 19 AS col0
----
-27
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT CASE - - COUNT( * ) WHEN + - ( - 82 ) - - 1 * 46 THEN + COUNT( * ) * + + COUNT( * ) END + CASE + 27 WHEN - COUNT( * ) + - + 38 THEN - + 38 WHEN + 86 * + COUNT( * ) THEN NULL ELSE - 2 END * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT CASE - - COUNT ( * ) WHEN + - ( - 82 ) - - 1 * 46 THEN + COUNT ( * ) * + + COUNT ( * ) END + CASE + 27 WHEN - COUNT ( * ) + - + 38 THEN - + 38 WHEN + 86 * + COUNT ( * ) THEN NULL ELSE - 2 END * + 19
----
NULL

query I rowsort
SELECT COALESCE ( + 83, + + 54 + - 3 ) * - - 18 AS col2
----
1494

query I rowsort
SELECT ALL 72 - + 90 AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3849
SELECT DISTINCT COUNT( * ) * CAST( - 96 AS SIGNED ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT COUNT ( * ) * CAST ( - 96 AS INTEGER ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT COALESCE ( + ( + MIN( - 65 ) ), + - 37 ) - 28 col0
----
-93

skipif mysql # not compatible
query I rowsort label-3850
SELECT COALESCE ( + ( + MIN ( - 65 ) ), + - 37 ) - 28 col0
----
-93

query I rowsort
SELECT 38 * - 84
----
-3192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3852
SELECT MAX( - ( + 97 ) ) DIV - 51 + 30
----
31

skipif mysql # not compatible
query I rowsort label-3852
SELECT MAX ( - ( + 97 ) ) / - 51 + 30
----
31

query I rowsort
SELECT ALL - NULLIF ( 55, ( - ( + 30 ) ) ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT - ( + MAX( ALL 31 ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3854
SELECT - ( + MAX ( ALL 31 ) ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT COUNT( * ) + - 87 * - COUNT( 4 )
----
88

skipif mysql # not compatible
query I rowsort label-3855
SELECT COUNT ( * ) + - 87 * - COUNT ( 4 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT + COALESCE ( + 59, + 27 + + SUM( DISTINCT + 51 ) ) + 93 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-3856
SELECT + COALESCE ( + 59, + 27 + + SUM ( DISTINCT + 51 ) ) + 93 AS col0
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3857
SELECT + CASE 46 WHEN + COUNT( * ) * - 60 THEN - 75 * + - COUNT( * ) * - - CAST( 57 AS SIGNED ) * - - 68 WHEN - 66 THEN NULL ELSE - 25 END
----
-25

skipif mysql # not compatible
query I rowsort label-3857
SELECT + CASE 46 WHEN + COUNT ( * ) * - 60 THEN - 75 * + - COUNT ( * ) * - - CAST ( 57 AS INTEGER ) * - - 68 WHEN - 66 THEN NULL ELSE - 25 END
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-3858
SELECT DISTINCT COALESCE ( + + 43, 39 + + + 25, + 23 ) AS col1, + COUNT( * ) - - + MIN( + 56 ) * - 78
----
43
-4367

skipif mysql # not compatible
query II rowsort label-3858
SELECT DISTINCT COALESCE ( + + 43, 39 + + + 25, + 23 ) AS col1, + COUNT ( * ) - - + MIN ( + 56 ) * - 78
----
43
-4367

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL - SUM( - 52 ) + - 11
----
41

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - SUM ( - 52 ) + - 11
----
41

query I rowsort
SELECT 40 + - 71 + + - 91 col2
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT - COUNT( DISTINCT - 65 )
----
-1

skipif mysql # not compatible
query I rowsort label-3861
SELECT - COUNT ( DISTINCT - 65 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3862
SELECT ALL - COALESCE ( + + ( 42 ), - + 92 * COALESCE ( 96, + 15 - - 91 + 72 ) + 65 + + - 57 * - - 12 + - CAST( MAX( DISTINCT - - 58 ) AS SIGNED ) + - 90, + ( 28 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - COALESCE ( + + ( 42 ), - + 92 * COALESCE ( 96, + 15 - - 91 + 72 ) + 65 + + - 57 * - - 12 + - CAST ( MAX ( DISTINCT - - 58 ) AS INTEGER ) + - 90, + ( 28 ) )
----
-42

query I rowsort
SELECT 86 + 8 col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT ALL + 21 DIV 74 + - 98
----
-98

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL + 21 / 74 + - 98
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-3865
SELECT COUNT( * ) * + 79 AS col1, 11
----
79
11

skipif mysql # not compatible
query II rowsort label-3865
SELECT COUNT ( * ) * + 79 AS col1, 11
----
79
11

query II rowsort
SELECT - ( - 27 ) AS col0, - 81 - - 43 AS col0
----
27
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT ALL - 30 + + 6 / + 30 / + 84 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL - 30 + + 6 / + 30 / + 84 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + 71 + - - 18 AS col0, 70 AS col1
----
89
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT ALL CAST( NULL AS SIGNED ) + + ( + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL CAST ( NULL AS INTEGER ) + + ( + 23 )
----
NULL

query I rowsort
SELECT 40 * - ( + 45 ) + 54
----
-1746

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT + COALESCE ( + - 94, + - 32 ) + - SUM( DISTINCT 51 ) * 1 + + 96 - + 54 * 20 col2
----
-1129

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + COALESCE ( + - 94, + - 32 ) + - SUM ( DISTINCT 51 ) * 1 + + 96 - + 54 * 20 col2
----
-1129

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT MAX( DISTINCT + - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-3872
SELECT MAX ( DISTINCT + - 72 )
----
-72

query II rowsort
SELECT + 73 AS col0, - 29
----
73
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3874
SELECT SUM( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3874
SELECT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 39 + + 48
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3876
SELECT ALL + 49 DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + 49 / 82 AS col0
----
0

query I rowsort
SELECT ALL NULLIF ( 85, - 7 ) - - ( + - 34 ) AS col1
----
51

query I rowsort
SELECT ALL 91 * - 54 col2
----
-4914

query II rowsort
SELECT + 39 AS col2, 20
----
39
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3880
SELECT ALL - COUNT( * ), + MIN( DISTINCT 67 ) AS col1
----
-1
67

skipif mysql # not compatible
query II rowsort label-3880
SELECT ALL - COUNT ( * ), + MIN ( DISTINCT 67 ) AS col1
----
-1
67

query I rowsort
SELECT DISTINCT + 22 - + 77 * + 40 + - 10
----
-3068

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT - COUNT( * ) * 91 - - ( + CASE ( 8 ) WHEN + - CASE 33 WHEN ( - + 32 ) THEN - MAX( 42 ) WHEN + - 45 * 85 THEN NULL ELSE NULL END THEN 23 WHEN - - 41 THEN - + COUNT( * ) END ) + + + CASE SUM( ALL + 44 ) WHEN + 38 THEN 63 + + + 96 END * - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT - COUNT ( * ) * 91 - - ( + CASE ( 8 ) WHEN + - CASE 33 WHEN ( - + 32 ) THEN - MAX ( 42 ) WHEN + - 45 * 85 THEN NULL ELSE NULL END THEN 23 WHEN - - 41 THEN - + COUNT ( * ) END ) + + + CASE SUM ( ALL + 44 ) WHEN + 38 THEN 63 + + + 96 END * - 9 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3883
SELECT ALL 55 * CAST( NULL AS SIGNED ) / - - COALESCE ( - CAST( CASE - 36 WHEN - MIN( ALL - 6 ) THEN NULL WHEN - 22 / 45 THEN NULL ELSE + 74 / - 24 / - + ( + + ( - - 19 ) ) END AS SIGNED ), - 76, + + 13 ) * AVG ( 33 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL 55 * CAST ( NULL AS INTEGER ) / - - COALESCE ( - CAST ( CASE - 36 WHEN - MIN ( ALL - 6 ) THEN NULL WHEN - 22 / 45 THEN NULL ELSE + 74 / - 24 / - + ( + + ( - - 19 ) ) END AS INTEGER ), - 76, + + 13 ) * AVG ( 33 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT 95 * - 37 * + - MIN( DISTINCT + 11 )
----
38665

skipif mysql # not compatible
query I rowsort label-3884
SELECT 95 * - 37 * + - MIN ( DISTINCT + 11 )
----
38665

onlyif mysql # aggregate syntax: 
query II rowsort label-3885
SELECT ALL - 69, - COUNT( * ) AS col1
----
-69
-1

skipif mysql # not compatible
query II rowsort label-3885
SELECT ALL - 69, - COUNT ( * ) AS col1
----
-69
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT 41 * + COUNT( * ) + 69 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-3886
SELECT 41 * + COUNT ( * ) + 69 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT COUNT( * ) * - SUM( - 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-3887
SELECT COUNT ( * ) * - SUM ( - 54 ) AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3888
SELECT - 64 * - 99 + - - ( CAST( - CASE + + 16 WHEN - NULLIF ( + - 47, - + 86 ) - - - 80 THEN NULL WHEN + COUNT( * ) THEN - - COUNT( * ) ELSE NULL END AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT - 64 * - 99 + - - ( CAST ( - CASE + + 16 WHEN - NULLIF ( + - 47, - + 86 ) - - - 80 THEN NULL WHEN + COUNT ( * ) THEN - - COUNT ( * ) ELSE NULL END AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3889
SELECT 23 + + - CAST( + 13 AS SIGNED ) col0
----
10

skipif mysql # not compatible
query I rowsort label-3889
SELECT 23 + + - CAST ( + 13 AS INTEGER ) col0
----
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3890
SELECT DISTINCT - 88 DIV - CAST( - COALESCE ( + 4, - + CAST( 32 AS SIGNED ), ( COALESCE ( - ( + - 44 ), - - 1 ) ) - - + 64 ) AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT - 88 / - CAST ( - COALESCE ( + 4, - + CAST ( 32 AS INTEGER ), ( COALESCE ( - ( + - 44 ), - - 1 ) ) - - + 64 ) AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL - COUNT( DISTINCT + 80 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL - COUNT ( DISTINCT + 80 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT + + COUNT( * ) * + 94 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT + + COUNT ( * ) * + 94 AS col2
----
94

query II rowsort
SELECT 7 col2, 22 AS col1
----
7
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT - 44 + + 85 * COUNT( * ) * + 0
----
-44

skipif mysql # not compatible
query I rowsort label-3894
SELECT - 44 + + 85 * COUNT ( * ) * + 0
----
-44

query II rowsort
SELECT - 88 * + 4 + 12 AS col1, - 19
----
-340
-19

query II rowsort
SELECT 50 col0, + ( 32 )
----
50
32

query I rowsort
SELECT DISTINCT + 94 + + 13
----
107

query I rowsort
SELECT ALL 40 + + 57
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL + - MAX( 60 ) + + 37 * ( + SUM( DISTINCT 57 ) ) col0
----
2049

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL + - MAX ( 60 ) + + 37 * ( + SUM ( DISTINCT 57 ) ) col0
----
2049

query I rowsort
SELECT + + 56 * + + 24
----
1344

query II rowsort
SELECT DISTINCT 98 * - - ( 40 ) AS col2, ( 34 ) AS col1
----
3920
34

query I rowsort
SELECT DISTINCT 2 + 63 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT ALL CAST( + + 66 AS SIGNED ) col0
----
66

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL CAST ( + + 66 AS INTEGER ) col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3904
SELECT DISTINCT - - 4 DIV + ( - COUNT( * ) )
----
-4

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT - - 4 / + ( - COUNT ( * ) )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3905
SELECT DISTINCT + - COALESCE ( - 54, - + COUNT( * ) * - 54 ) + - 9 + + 16 + 20 * ( CAST( NULL AS SIGNED ) ) * + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + - COALESCE ( - 54, - + COUNT ( * ) * - 54 ) + - 9 + + 16 + 20 * ( CAST ( NULL AS INTEGER ) ) * + 76 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 42 + - 17
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3907
SELECT - - 65 AS col1, + ( + COUNT( * ) ) * - 5 AS col0
----
65
-5

skipif mysql # not compatible
query II rowsort label-3907
SELECT - - 65 AS col1, + ( + COUNT ( * ) ) * - 5 AS col0
----
65
-5

query II rowsort
SELECT DISTINCT 90 AS col0, - 57
----
90
-57

query II rowsort
SELECT - 12 AS col2, - 41 col2
----
-12
-41

query II rowsort
SELECT DISTINCT 40, ( + - 81 ) AS col2
----
40
-81

query I rowsort
SELECT ALL + 53 - + 3 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3912
SELECT - NULLIF ( - + MAX( 51 ), - 26 * ( + + ( - - NULLIF ( + COUNT( * ), + 6 ) ) ) + 49 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT - NULLIF ( - + MAX ( 51 ), - 26 * ( + + ( - - NULLIF ( + COUNT ( * ), + 6 ) ) ) + 49 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3913
SELECT ALL COALESCE ( + - ( + 63 ), - CAST( + - COUNT( * ) AS SIGNED ) * - - 10 + - 5 + - COUNT( * ) ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL COALESCE ( + - ( + 63 ), - CAST ( + - COUNT ( * ) AS INTEGER ) * - - 10 + - 5 + - COUNT ( * ) ) AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3914
SELECT - CAST( + + COALESCE ( - + 65, 21 + + - 94 ) AS SIGNED ) * COUNT( * ) + - 67 + - + 52 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3914
SELECT - CAST ( + + COALESCE ( - + 65, 21 + + - 94 ) AS INTEGER ) * COUNT ( * ) + - 67 + - + 52 AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT ALL + CAST( ( 60 ) AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL + CAST ( ( 60 ) AS INTEGER )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT DISTINCT + 35 * + - MAX( ALL NULLIF ( + + 33, - - 89 * - 71 ) ) * - 76 AS col0
----
87780

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT + 35 * + - MAX ( ALL NULLIF ( + + 33, - - 89 * - 71 ) ) * - 76 AS col0
----
87780

query I rowsort
SELECT - 90 + + 43 AS col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-3918
SELECT - 49 DIV - 7 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3918
SELECT - 49 / - 7 AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3919
SELECT ALL + CAST( - 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL + CAST ( - 22 AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT NULLIF ( + 42, + COUNT( * ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3920
SELECT NULLIF ( + 42, + COUNT ( * ) ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-3921
SELECT ALL + CASE - + 71 WHEN COUNT( * ) * + 92 THEN NULL WHEN + - 50 THEN 85 + - 56 WHEN + 44 * + 43 THEN NULL END AS col1, ( + 11 ) * + 62 + - - 3
----
NULL
685

skipif mysql # not compatible
query II rowsort label-3921
SELECT ALL + CASE - + 71 WHEN COUNT ( * ) * + 92 THEN NULL WHEN + - 50 THEN 85 + - 56 WHEN + 44 * + 43 THEN NULL END AS col1, ( + 11 ) * + 62 + - - 3
----
NULL
685

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT + MIN( DISTINCT + - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3922
SELECT + MIN ( DISTINCT + - 41 ) AS col1
----
-41

query I rowsort
SELECT + 19 * - NULLIF ( - + 78, - COALESCE ( NULLIF ( + 59, - - 98 ), 92 ) ) col2
----
1482

query I rowsort
SELECT - 31 * + 52 AS col1
----
-1612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3925
SELECT DISTINCT - COUNT( * ) DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT - COUNT ( * ) / - 18
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3926
SELECT + MAX( + + 78 ) AS col1, 49
----
78
49

skipif mysql # not compatible
query II rowsort label-3926
SELECT + MAX ( + + 78 ) AS col1, 49
----
78
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3927
SELECT - 83 DIV 69 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3927
SELECT - 83 / 69 AS col1
----
-1

query I rowsort
SELECT + 19 * 52 * - 26 col1
----
-25688

query I rowsort
SELECT ALL + - COALESCE ( - NULLIF ( - 1, ( 88 ) ), + + 67 )
----
-1

query I rowsort
SELECT DISTINCT 90 * 47 + - + 26 + + + 7 AS col0
----
4211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3931
SELECT - + CAST( + 24 AS SIGNED ) - - + 79 + 6 DIV + MIN( ALL 59 )
----
55

skipif mysql # not compatible
query I rowsort label-3931
SELECT - + CAST ( + 24 AS INTEGER ) - - + 79 + 6 / + MIN ( ALL 59 )
----
55

query II rowsort
SELECT + - 85 - 59, 38 AS col0
----
-144
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3933
SELECT ALL + ( - CASE + - 93 WHEN COUNT( * ) THEN NULL ELSE - 58 + - ( - - 79 ) END ), + AVG ( ( 33 ) ) - - CASE - 1 WHEN - COALESCE ( AVG ( ALL 22 ), - - 43 - - 62, + + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) * ( + 68 ) - - ( - - 75 ) THEN + COUNT( * ) WHEN + MAX( + + 99 ) + 76 THEN - 67 ELSE NULL END AS col0
----
137
NULL

skipif mysql # not compatible
query II rowsort label-3933
SELECT ALL + ( - CASE + - 93 WHEN COUNT ( * ) THEN NULL ELSE - 58 + - ( - - 79 ) END ), + AVG ( ( 33 ) ) - - CASE - 1 WHEN - COALESCE ( AVG ( ALL 22 ), - - 43 - - 62, + + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) * ( + 68 ) - - ( - - 75 ) THEN + COUNT ( * ) WHEN + MAX ( + + 99 ) + 76 THEN - 67 ELSE NULL END AS col0
----
137
NULL

query I rowsort
SELECT DISTINCT - ( + - 0 ) + - 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT + 88 + - ( + 61 ) + - - 33 + + 73 + 73 * + MAX( DISTINCT - - 69 )
----
5170

skipif mysql # not compatible
query I rowsort label-3935
SELECT + 88 + - ( + 61 ) + - - 33 + + 73 + 73 * + MAX ( DISTINCT - - 69 )
----
5170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3936
SELECT + 58 - + CASE - CAST( + 40 AS SIGNED ) WHEN - 85 THEN - + 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT + 58 - + CASE - CAST ( + 40 AS INTEGER ) WHEN - 85 THEN - + 38 END AS col2
----
NULL

query I rowsort
SELECT - - ( + - 78 ) AS col2
----
-78

query I rowsort
SELECT ALL - 89 - - + 56
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3939
SELECT + - 83 + + COUNT( * ) * - CAST( 15 AS SIGNED ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3939
SELECT + - 83 + + COUNT ( * ) * - CAST ( 15 AS INTEGER ) AS col1
----
-98

query I rowsort
SELECT - + 78 * + ( + ( - - 45 ) ) AS col2
----
-3510

query I rowsort
SELECT + ( - 2 ) + + 28 + 21 * - 98 AS col1
----
-2032

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT DISTINCT COALESCE ( - + 20, 86, + COUNT( * ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT COALESCE ( - + 20, 86, + COUNT ( * ) ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL 85 - - - COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL 85 - - - COUNT ( * ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT + 97 * COUNT( ALL - 64 ) * COALESCE ( - COUNT( * ), MIN( ALL + - 29 ) * + 91 * + 2 * + - 59 ) * + 82
----
-7954

skipif mysql # not compatible
query I rowsort label-3944
SELECT + 97 * COUNT ( ALL - 64 ) * COALESCE ( - COUNT ( * ), MIN ( ALL + - 29 ) * + 91 * + 2 * + - 59 ) * + 82
----
-7954

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT ALL - 76 DIV + - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL - 76 / + - 93 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT ALL + NULLIF ( + + 96, + 32 ) - + + 57 + CAST( NULL AS SIGNED ) / + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL + NULLIF ( + + 96, + 32 ) - + + 57 + CAST ( NULL AS INTEGER ) / + 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3947
SELECT - 73 * - + MIN( + + 82 ) AS col1, + 4
----
5986
4

skipif mysql # not compatible
query II rowsort label-3947
SELECT - 73 * - + MIN ( + + 82 ) AS col1, + 4
----
5986
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - COUNT( * ) * + - 42 col2
----
42

skipif mysql # not compatible
query I rowsort label-3948
SELECT - COUNT ( * ) * + - 42 col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3949
SELECT ALL + CASE + 92 WHEN + 10 / 20 * + + 61 - - COUNT( * ) * + CAST( + 19 AS SIGNED ) + + + AVG ( - NULLIF ( - 68, - + 80 * - + 82 ) ) THEN NULL WHEN - 88 + - - COUNT( * ) - + 96 THEN - 32 * - 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + CASE + 92 WHEN + 10 / 20 * + + 61 - - COUNT ( * ) * + CAST ( + 19 AS INTEGER ) + + + AVG ( - NULLIF ( - 68, - + 80 * - + 82 ) ) THEN NULL WHEN - 88 + - - COUNT ( * ) - + 96 THEN - 32 * - 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT - COUNT( * ) * + NULLIF ( 92, - ( + - 57 ) + - - 63 + 76 * + CASE - 32 WHEN 38 * - + 54 THEN NULL ELSE + - 46 + + 33 END ) * + 62 + - COUNT( * ) - - ( + - SUM( DISTINCT - 66 ) )
----
-5639

skipif mysql # not compatible
query I rowsort label-3950
SELECT - COUNT ( * ) * + NULLIF ( 92, - ( + - 57 ) + - - 63 + 76 * + CASE - 32 WHEN 38 * - + 54 THEN NULL ELSE + - 46 + + 33 END ) * + 62 + - COUNT ( * ) - - ( + - SUM ( DISTINCT - 66 ) )
----
-5639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3951
SELECT CAST( + 3 AS SIGNED ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3951
SELECT CAST ( + 3 AS INTEGER ) AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3952
SELECT 14 DIV - 63 * - 76 + - + MIN( ALL - 28 ) + + ( COUNT( * ) ) * + 80
----
108

skipif mysql # not compatible
query I rowsort label-3952
SELECT 14 / - 63 * - 76 + - + MIN ( ALL - 28 ) + + ( COUNT ( * ) ) * + 80
----
108

query I rowsort
SELECT ALL - 86 * - 43 AS col2
----
3698

onlyif mysql # aggregate syntax: 
query II rowsort label-3954
SELECT - 7 * - + MIN( 89 ) AS col1, 12 AS col1
----
623
12

skipif mysql # not compatible
query II rowsort label-3954
SELECT - 7 * - + MIN ( 89 ) AS col1, 12 AS col1
----
623
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT ALL - 93 DIV - 98 + 87
----
87

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL - 93 / - 98 + 87
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3956
SELECT + 58, 79 * - - 35 * + 47 - + ( + + COUNT( * ) ) AS col2
----
58
129954

skipif mysql # not compatible
query II rowsort label-3956
SELECT + 58, 79 * - - 35 * + 47 - + ( + + COUNT ( * ) ) AS col2
----
58
129954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3957
SELECT + 71 + COALESCE ( - CAST( COUNT( * ) AS SIGNED ), COALESCE ( 21, MIN( 36 ) ), COUNT( 42 ) )
----
70

skipif mysql # not compatible
query I rowsort label-3957
SELECT + 71 + COALESCE ( - CAST ( COUNT ( * ) AS INTEGER ), COALESCE ( 21, MIN ( 36 ) ), COUNT ( 42 ) )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3958
SELECT COUNT( * ) * - 69 * - 37 - - CAST( NULL AS SIGNED ) / + 90 AS col1, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3958
SELECT COUNT ( * ) * - 69 * - 37 - - CAST ( NULL AS INTEGER ) / + 90 AS col1, + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT MIN( DISTINCT - + 16 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-3959
SELECT MIN ( DISTINCT - + 16 ) AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3960
SELECT - + 75 + COUNT( * ) DIV - 44 + - ( MIN( ALL CAST( - 75 AS SIGNED ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3960
SELECT - + 75 + COUNT ( * ) / - 44 + - ( MIN ( ALL CAST ( - 75 AS INTEGER ) ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3961
SELECT - - 0 DIV + ( + + COUNT( * ) ) AS col2, - COUNT( 36 ) DIV + + COALESCE ( 58, NULLIF ( - NULLIF ( + 36, 60 + + COUNT( * ) ), + 26 ) ) * 27 + 49 + - ( + CAST( + + AVG ( - 63 ) AS SIGNED ) ) + - 52 * - 9 * 13 + CASE - 17 WHEN + 57 THEN COALESCE ( - 50, + CASE - - CAST( 79 AS SIGNED ) WHEN 25 * + 30 DIV - 46 THEN + COUNT( * ) WHEN 34 DIV + + 50 + + - 11 DIV + - 22 THEN NULL WHEN CASE - 15 WHEN 4 * - 86 THEN - 30 + + 98 ELSE NULL END * COUNT( * ) * NULLIF ( + 20, - ( - 35 ) ) - 30 DIV CAST( NULL AS SIGNED ) THEN 60 * - 51 ELSE NULL END, - 41 DIV 96 + 30 DIV + 84 ) WHEN 11 THEN CASE COUNT( * ) WHEN - COUNT( * ) + - ( CAST( - 18 AS SIGNED ) + + 74 ) THEN NULL ELSE ( 72 ) + + 74 * - 96 END ELSE NULL END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3961
SELECT - - 0 / + ( + + COUNT ( * ) ) AS col2, - COUNT ( 36 ) / + + COALESCE ( 58, NULLIF ( - NULLIF ( + 36, 60 + + COUNT ( * ) ), + 26 ) ) * 27 + 49 + - ( + CAST ( + + AVG ( - 63 ) AS INTEGER ) ) + - 52 * - 9 * 13 + CASE - 17 WHEN + 57 THEN COALESCE ( - 50, + CASE - - CAST ( 79 AS INTEGER ) WHEN 25 * + 30 / - 46 THEN + COUNT ( * ) WHEN 34 / + + 50 + + - 11 / + - 22 THEN NULL WHEN CASE - 15 WHEN 4 * - 86 THEN - 30 + + 98 ELSE NULL END * COUNT ( * ) * NULLIF ( + 20, - ( - 35 ) ) - 30 / CAST ( NULL AS INTEGER ) THEN 60 * - 51 ELSE NULL END, - 41 / 96 + 30 / + 84 ) WHEN 11 THEN CASE COUNT ( * ) WHEN - COUNT ( * ) + - ( CAST ( - 18 AS INTEGER ) + + 74 ) THEN NULL ELSE ( 72 ) + + 74 * - 96 END ELSE NULL END AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL 88 * + 27 + MIN( + 3 ) + + 77 * - 60 AS col1
----
-2241

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL 88 * + 27 + MIN ( + 3 ) + + 77 * - 60 AS col1
----
-2241

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT SUM( ALL 45 ) * + ( SUM( DISTINCT + - 51 ) ) + + - 75 + - - 92 AS col0
----
-2278

skipif mysql # not compatible
query I rowsort label-3963
SELECT SUM ( ALL 45 ) * + ( SUM ( DISTINCT + - 51 ) ) + + - 75 + - - 92 AS col0
----
-2278

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT - COALESCE ( - 23, + + 90 ) * - - NULLIF ( - + ( - 22 ), + COUNT( * ) )
----
506

skipif mysql # not compatible
query I rowsort label-3964
SELECT - COALESCE ( - 23, + + 90 ) * - - NULLIF ( - + ( - 22 ), + COUNT ( * ) )
----
506

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT DISTINCT - - 63 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT - - 63 / + 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT - - COUNT( * ) + + CASE - 91 WHEN 49 THEN + 33 ELSE - - 49 END * + - 81 AS col1
----
-3968

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT - - COUNT ( * ) + + CASE - 91 WHEN 49 THEN + 33 ELSE - - 49 END * + - 81 AS col1
----
-3968

query I rowsort
SELECT - 6 + - ( + 98 ) + + 14 * 71
----
890

query II rowsort
SELECT ALL - + 96 + + 36 + + 24 AS col1, 49 + + - 18
----
-36
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT DISTINCT - - ( + CAST( - + 47 AS SIGNED ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT - - ( + CAST ( - + 47 AS INTEGER ) ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3970
SELECT DISTINCT + COUNT( * ) * + + 43 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + COUNT ( * ) * + + 43 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 15 + + 78
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT + COUNT( * ) * - 98 + + 88 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3972
SELECT + COUNT ( * ) * - 98 + + 88 AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT + CAST( - 85 AS SIGNED ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-3973
SELECT + CAST ( - 85 AS INTEGER ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-3974
SELECT + 55 + - + COUNT( - + 90 ) AS col1, 19 AS col1
----
54
19

skipif mysql # not compatible
query II rowsort label-3974
SELECT + 55 + - + COUNT ( - + 90 ) AS col1, 19 AS col1
----
54
19

query I rowsort
SELECT ALL - 93 - 65
----
-158

query I rowsort
SELECT 95 * + 97 * + 81
----
746415

query I rowsort
SELECT - + 38 col2
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3978
SELECT 22, 99 * - 68 + + 24 * COUNT( * ) * + COUNT( * ) + 95 * - 87 col1
----
22
-14973

skipif mysql # not compatible
query II rowsort label-3978
SELECT 22, 99 * - 68 + + 24 * COUNT ( * ) * + COUNT ( * ) + 95 * - 87 col1
----
22
-14973

query I rowsort
SELECT DISTINCT - 49 * 50
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT + 31 * 45 + COUNT( * ) * + 68 AS col0
----
1463

skipif mysql # not compatible
query I rowsort label-3980
SELECT + 31 * 45 + COUNT ( * ) * + 68 AS col0
----
1463

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT 8 DIV + - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3981
SELECT 8 / + - 60 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT 14 + - 61 + + CASE WHEN ( NULL ) >= ( 6 ) THEN + SUM( 51 ) + + - 85 + 47 + + + NULLIF ( + 48, - ( - - 53 ) * + COUNT( * ) ) ELSE NULL END / 42 * 71 * + NULLIF ( - 41, COUNT( * ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT 14 + - 61 + + CASE WHEN ( NULL ) >= ( 6 ) THEN + SUM ( 51 ) + + - 85 + 47 + + + NULLIF ( + 48, - ( - - 53 ) * + COUNT ( * ) ) ELSE NULL END / 42 * 71 * + NULLIF ( - 41, COUNT ( * ) ) * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3983
SELECT - 79, + CAST( NULL AS DECIMAL ) + + NULLIF ( 97, 44 ) + - 73 AS col2
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-3983
SELECT - 79, + CAST ( NULL AS REAL ) + + NULLIF ( 97, 44 ) + - 73 AS col2
----
-79
NULL

query II rowsort
SELECT 50 col0, - 62
----
50
-62

query II rowsort
SELECT ( + - 86 ) + + 95 + + - 12 AS col0, - 45
----
-3
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-3986
SELECT ALL 32 * + COUNT( * ) AS col2, - 31 AS col0
----
32
-31

skipif mysql # not compatible
query II rowsort label-3986
SELECT ALL 32 * + COUNT ( * ) AS col2, - 31 AS col0
----
32
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT 98 DIV 10
----
9

skipif mysql # not compatible
query I rowsort label-3987
SELECT 98 / 10
----
9

query I rowsort
SELECT 4 + 5 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT ALL CAST( NULL AS SIGNED ) * - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL CAST ( NULL AS INTEGER ) * - 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ( - 26 ) + - + ( - COALESCE ( 70, 73 * - + MIN( DISTINCT + 19 ) * - - 21, - 43 * + - 95 + + 47 ) ) - 26 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3990
SELECT ( - 26 ) + - + ( - COALESCE ( 70, 73 * - + MIN ( DISTINCT + 19 ) * - - 21, - 43 * + - 95 + + 47 ) ) - 26 AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3991
SELECT COUNT( * ) DIV - 14
----
0

skipif mysql # not compatible
query I rowsort label-3991
SELECT COUNT ( * ) / - 14
----
0

query I rowsort
SELECT ALL - 46 + 64 * - ( 59 ) AS col0
----
-3822

query I rowsort
SELECT ALL - 82 + + 97
----
15

query I rowsort
SELECT 39 + - 58 - 52
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-3995
SELECT 96 AS col2, + COUNT( * ) + 47 AS col0
----
96
48

skipif mysql # not compatible
query II rowsort label-3995
SELECT 96 AS col2, + COUNT ( * ) + 47 AS col0
----
96
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3996
SELECT ALL - 78 AS col1, - 68 * - COUNT( * )
----
-78
68

skipif mysql # not compatible
query II rowsort label-3996
SELECT ALL - 78 AS col1, - 68 * - COUNT ( * )
----
-78
68

query II rowsort
SELECT + 11 AS col2, 94 AS col0
----
11
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT COUNT( * ) * 27 + + 71
----
98

skipif mysql # not compatible
query I rowsort label-3998
SELECT COUNT ( * ) * 27 + + 71
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL 59 + + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL 59 + + COUNT ( * ) AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4000
SELECT 1 AS col1, CASE + CAST( + 14 AS SIGNED ) WHEN + 36 - + COALESCE ( - 39, + 2 - + 83, - 51, - - 99 ) THEN - SUM( - - 59 ) WHEN 57 * + COUNT( * ) THEN 41 ELSE NULL END * NULLIF ( + - 61, + 39 ) * + 26 + - 68 + - 17 + - AVG ( 20 ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4000
SELECT 1 AS col1, CASE + CAST ( + 14 AS INTEGER ) WHEN + 36 - + COALESCE ( - 39, + 2 - + 83, - 51, - - 99 ) THEN - SUM ( - - 59 ) WHEN 57 * + COUNT ( * ) THEN 41 ELSE NULL END * NULLIF ( + - 61, + 39 ) * + 26 + - 68 + - 17 + - AVG ( 20 ) AS col2
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT + - 52 * - - 14 * - - 38 * - - 3 * + - 82 + + NULLIF ( - - 78, + - 72 * 89 * + 62 ) DIV 52 * + 9 + + 77 AS col1
----
6805430

skipif mysql # not compatible
query I rowsort label-4001
SELECT + - 52 * - - 14 * - - 38 * - - 3 * + - 82 + + NULLIF ( - - 78, + - 72 * 89 * + 62 ) / 52 * + 9 + + 77 AS col1
----
6805430

query I rowsort
SELECT ALL - 49 * + 92
----
-4508

query I rowsort
SELECT 61 * - - 30 * ( + - 75 ) * - 9
----
1235250

query I rowsort
SELECT ALL + 38 + - + 50
----
-12

query II rowsort
SELECT ALL + 57 + + 33 + - 54 * - 59 AS col1, 46
----
3276
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT + COALESCE ( - + 46, + SUM( DISTINCT + ( - + 20 ) ) * + + 28 + 49 + + 78 )
----
-46

skipif mysql # not compatible
query I rowsort label-4006
SELECT + COALESCE ( - + 46, + SUM ( DISTINCT + ( - + 20 ) ) * + + 28 + 49 + + 78 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL - - SUM( 19 ) - - - 46 * + + 13 * - - 5 AS col2
----
-2971

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL - - SUM ( 19 ) - - - 46 * + + 13 * - - 5 AS col2
----
-2971

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT - + 65 * - 48 + COUNT( * ) + - 59
----
3062

skipif mysql # not compatible
query I rowsort label-4008
SELECT - + 65 * - 48 + COUNT ( * ) + - 59
----
3062

query I rowsort
SELECT ALL - - 68 - - - 41
----
27

query I rowsort
SELECT 7 * + 22 AS col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL COUNT( + 81 )
----
1

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL COUNT ( + 81 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4012
SELECT ALL + - 93 DIV + 66 col1, 88 * + + 56 + 79 + - CASE + - 83 WHEN - 19 * - + COUNT( * ) THEN - 45 WHEN 29 - NULLIF ( + 33, - - ( 96 ) DIV + COUNT( * ) * + - 92 * 70 ) THEN NULL END + - 95
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4012
SELECT ALL + - 93 / + 66 col1, 88 * + + 56 + 79 + - CASE + - 83 WHEN - 19 * - + COUNT ( * ) THEN - 45 WHEN 29 - NULLIF ( + 33, - - ( 96 ) / + COUNT ( * ) * + - 92 * 70 ) THEN NULL END + - 95
----
-1
NULL

query II rowsort
SELECT - + 2, - 45 AS col1
----
-2
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4014
SELECT + COUNT( * ) * + 16 DIV 62 - - COUNT( DISTINCT + - 98 )
----
1

skipif mysql # not compatible
query I rowsort label-4014
SELECT + COUNT ( * ) * + 16 / 62 - - COUNT ( DISTINCT + - 98 )
----
1

query I rowsort
SELECT 18 - + + 2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT 89 * + CASE 61 WHEN + 94 + - AVG ( ALL 68 ) THEN - 99 * - 61 * + ( - ( 53 ) ) * - 50 WHEN - CASE 68 WHEN + + ( COUNT( * ) ) THEN COUNT( * ) WHEN - + NULLIF ( + 75, - 92 ) * 60 THEN NULL ELSE COUNT( * ) + - 53 END + - 88 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT 89 * + CASE 61 WHEN + 94 + - AVG ( ALL 68 ) THEN - 99 * - 61 * + ( - ( 53 ) ) * - 50 WHEN - CASE 68 WHEN + + ( COUNT ( * ) ) THEN COUNT ( * ) WHEN - + NULLIF ( + 75, - 92 ) * 60 THEN NULL ELSE COUNT ( * ) + - 53 END + - 88 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT 24 * - 38 * 90 * + - COUNT( * ) * SUM( ALL + 26 ) AS col1
----
2134080

skipif mysql # not compatible
query I rowsort label-4017
SELECT 24 * - 38 * 90 * + - COUNT ( * ) * SUM ( ALL + 26 ) AS col1
----
2134080

onlyif mysql # aggregate syntax: 
query II rowsort label-4018
SELECT NULLIF ( - - 59, COALESCE ( - 88, 89 + + 25, - - COUNT( * ) ) ) - - + 95 AS col1, - 84
----
154
-84

skipif mysql # not compatible
query II rowsort label-4018
SELECT NULLIF ( - - 59, COALESCE ( - 88, 89 + + 25, - - COUNT ( * ) ) ) - - + 95 AS col1, - 84
----
154
-84

query I rowsort
SELECT DISTINCT - ( - 48 ) * - 48 * - 36 AS col1
----
82944

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT 8 + SUM( + 23 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4020
SELECT 8 + SUM ( + 23 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT 14 * MAX( DISTINCT ( - 28 ) ) AS col2
----
-392

skipif mysql # not compatible
query I rowsort label-4021
SELECT 14 * MAX ( DISTINCT ( - 28 ) ) AS col2
----
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL MIN( DISTINCT - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL MIN ( DISTINCT - 7 ) AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4023
SELECT DISTINCT SUM( + 69 ) + + ( + CAST( 76 AS SIGNED ) )
----
145

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT SUM ( + 69 ) + + ( + CAST ( 76 AS INTEGER ) )
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT SUM( + - 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT SUM ( + - 81 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT 13 + - ( + - 87 ) * COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-4025
SELECT 13 + - ( + - 87 ) * COUNT ( * )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT DISTINCT 83 + ( + COUNT( * ) )
----
84

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT 83 + ( + COUNT ( * ) )
----
84

query I rowsort
SELECT ALL - 6 * 73 + 15 AS col0
----
-423

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT DISTINCT 77 * SUM( + + 53 )
----
4081

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT 77 * SUM ( + + 53 )
----
4081

onlyif mysql # DIV for integer division: 
query I rowsort label-4029
SELECT 51 DIV + + 75 + - 72 + + 29 col1
----
-43

skipif mysql # not compatible
query I rowsort label-4029
SELECT 51 / + + 75 + - 72 + + 29 col1
----
-43

query I rowsort
SELECT + 0 * - 26 * - 31 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4031
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * 38 * - COALESCE ( 1, 23 )
----
-38

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * 38 * - COALESCE ( 1, 23 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT ALL - 90 * - - 76 - + COUNT( * )
----
-6841

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL - 90 * - - 76 - + COUNT ( * )
----
-6841

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT + COUNT( * ) + 82 + 97 + - 92 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4033
SELECT + COUNT ( * ) + 82 + 97 + - 92 AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4034
SELECT + - NULLIF ( + - 70, + + MIN( ALL 94 ) ) * - + 72 / + CAST( NULL AS SIGNED ) / - + 65 / 87 * 27 + + 16 + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT + - NULLIF ( + - 70, + + MIN ( ALL 94 ) ) * - + 72 / + CAST ( NULL AS INTEGER ) / - + 65 / 87 * 27 + + 16 + + 45
----
NULL

query I rowsort
SELECT - 24 + 46 + 96 * - - 60 + - 56 AS col1
----
5726

query II rowsort
SELECT + + 45 + + 60 AS col0, - 50 * + 25 * + + 45 AS col2
----
105
-56250

query I rowsort
SELECT + - 21 + 68 AS col2
----
47

query I rowsort
SELECT ALL + 10 * + ( 57 )
----
570

query I rowsort
SELECT - 13 * - 86
----
1118

query II rowsort
SELECT ALL 83 * - 9 - 17 AS col2, - 72
----
-764
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL + + CASE 65 WHEN - 93 THEN - - 96 + + - 49 WHEN - - COUNT( * ) + 63 * ( + - 85 ) THEN NULL WHEN 23 * + - 44 THEN + CASE + 48 WHEN ( + 4 ) - + ( + - 53 ) + + - ( COUNT( * ) ) THEN NULL WHEN 9 THEN NULL ELSE + 30 / + - 13 END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL + + CASE 65 WHEN - 93 THEN - - 96 + + - 49 WHEN - - COUNT ( * ) + 63 * ( + - 85 ) THEN NULL WHEN 23 * + - 44 THEN + CASE + 48 WHEN ( + 4 ) - + ( + - 53 ) + + - ( COUNT ( * ) ) THEN NULL WHEN 9 THEN NULL ELSE + 30 / + - 13 END END AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( - - 55, + 62 ) + + 87 AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT - 26 * 38 + 33 + - CASE - + 21 WHEN + 39 THEN + 20 END - - CAST( 58 AS SIGNED ) * + 6 * AVG ( + ( + 94 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT - 26 * 38 + 33 + - CASE - + 21 WHEN + 39 THEN + 20 END - - CAST ( 58 AS INTEGER ) * + 6 * AVG ( + ( + 94 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL + MAX( ALL + + 55 ) * - 90 * + ( 67 ) AS col0
----
-331650

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL + MAX ( ALL + + 55 ) * - 90 * + ( 67 ) AS col0
----
-331650

query I rowsort
SELECT - 68 * 78
----
-5304

onlyif mysql # aggregate syntax: 
query II rowsort label-4046
SELECT 97, + CASE 54 WHEN 88 * + + 29 * 71 THEN 70 WHEN + MIN( DISTINCT - 14 ) * + 4 * 24 * + 33 THEN NULL ELSE NULL END * + - 26 AS col2
----
97
NULL

skipif mysql # not compatible
query II rowsort label-4046
SELECT 97, + CASE 54 WHEN 88 * + + 29 * 71 THEN 70 WHEN + MIN ( DISTINCT - 14 ) * + 4 * 24 * + 33 THEN NULL ELSE NULL END * + - 26 AS col2
----
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ALL - COUNT( * ) + + 19 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL - COUNT ( * ) + + 19 AS col0
----
18

query II rowsort
SELECT DISTINCT 61 + - 35 + - 23 + - 41 AS col2, 13 AS col0
----
-38
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT DISTINCT + COUNT( * ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT + COUNT ( * ) + + 76
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4050
SELECT DISTINCT MIN( DISTINCT ( 93 ) ) AS col1, 71 + + + 54 AS col2
----
93
125

skipif mysql # not compatible
query II rowsort label-4050
SELECT DISTINCT MIN ( DISTINCT ( 93 ) ) AS col1, 71 + + + 54 AS col2
----
93
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4051
SELECT - 67 DIV CAST( 67 AS SIGNED ), 12 + - 27 + + 87 + - 67 DIV NULLIF ( - COUNT( * ), - 86 + 1 + - 32 ) * + + 7 * - 30 + + - COUNT( * ) AS col0
----
-1
-13999

skipif mysql # not compatible
query II rowsort label-4051
SELECT - 67 / CAST ( 67 AS INTEGER ), 12 + - 27 + + 87 + - 67 / NULLIF ( - COUNT ( * ), - 86 + 1 + - 32 ) * + + 7 * - 30 + + - COUNT ( * ) AS col0
----
-1
-13999

query II rowsort
SELECT - 46, - 72 col2
----
-46
-72

query I rowsort
SELECT - 78 + + 72 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4054
SELECT DISTINCT - CAST( - 33 AS SIGNED ) + 50 + - - 3
----
86

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT - CAST ( - 33 AS INTEGER ) + 50 + - - 3
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT - 54 + + - COUNT( DISTINCT - - 79 ) * + - 64 + AVG ( - + ( CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT - 54 + + - COUNT ( DISTINCT - - 79 ) * + - 64 + AVG ( - + ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query II rowsort
SELECT 21 AS col0, - 36 - + - 35
----
21
-1

query I rowsort
SELECT - 42 + 36 AS col0
----
-6

query I rowsort
SELECT DISTINCT 30 - + - 30 - - 28 * + 63 + 85
----
1909

query II rowsort
SELECT DISTINCT 2 AS col1, 74 * 19 AS col1
----
2
1406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4060
SELECT ALL 68 DIV + 98 + - COUNT( * ) - + + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL 68 / + 98 + - COUNT ( * ) - + + COUNT ( * ) AS col2
----
-2

query II rowsort
SELECT ALL + + 2 AS col0, 24
----
2
24

query I rowsort
SELECT + 81 + 52
----
133

query I rowsort
SELECT + 86 * - - 45
----
3870

query I rowsort
SELECT + + COALESCE ( - 76, + 80 - + 77 ) * - 1 + + 39 + 3
----
118

query II rowsort
SELECT - 81 AS col0, - 30 AS col2
----
-81
-30

query I rowsort
SELECT + ( + + 80 ) AS col0
----
80

query II rowsort
SELECT + - 1, 56 AS col0
----
-1
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT ALL + 5 * - COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL + 5 * - COUNT ( * ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT DISTINCT + MIN( - 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT + MIN ( - 75 ) AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT + 2 * - - CAST( NULL AS SIGNED ) * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT + 2 * - - CAST ( NULL AS INTEGER ) * 13
----
NULL

query I rowsort
SELECT - 41 + 51 AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4072
SELECT NULLIF ( CAST( NULL AS DECIMAL ), + CASE + COUNT( * ) WHEN + 58 * + 61 + + MAX( - 18 ) / 79 + - - 69 + COUNT( * ) - COUNT( * ) THEN + + 80 END + - 93 * MIN( DISTINCT - 53 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT NULLIF ( CAST ( NULL AS REAL ), + CASE + COUNT ( * ) WHEN + 58 * + 61 + + MAX ( - 18 ) / 79 + - - 69 + COUNT ( * ) - COUNT ( * ) THEN + + 80 END + - 93 * MIN ( DISTINCT - 53 ) )
----
NULL

query I rowsort
SELECT - NULLIF ( + 21, + + 7 ) * + + 62 + 55
----
-1247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4074
SELECT + + 84 * CASE CAST( + MIN( DISTINCT - NULLIF ( + 37, - - 15 * + CAST( - 59 AS SIGNED ) + - 8 ) ) AS SIGNED ) WHEN + + 16 THEN - 21 WHEN - 17 * + 42 - - COUNT( * ) + - COUNT( * ) THEN NULLIF ( + 79, - 24 ) ELSE + - 62 END AS col1
----
-5208

skipif mysql # not compatible
query I rowsort label-4074
SELECT + + 84 * CASE CAST ( + MIN ( DISTINCT - NULLIF ( + 37, - - 15 * + CAST ( - 59 AS INTEGER ) + - 8 ) ) AS INTEGER ) WHEN + + 16 THEN - 21 WHEN - 17 * + 42 - - COUNT ( * ) + - COUNT ( * ) THEN NULLIF ( + 79, - 24 ) ELSE + - 62 END AS col1
----
-5208

onlyif mysql # aggregate syntax: 
query II rowsort label-4075
SELECT ALL + + 94 AS col0, + COUNT( * ) AS col0
----
94
1

skipif mysql # not compatible
query II rowsort label-4075
SELECT ALL + + 94 AS col0, + COUNT ( * ) AS col0
----
94
1

query II rowsort
SELECT DISTINCT + 21 AS col2, 79 AS col2
----
21
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT + - 9 * - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-4077
SELECT + - 9 * - COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT + ( + SUM( ALL - 64 ) ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4078
SELECT + ( + SUM ( ALL - 64 ) ) AS col2
----
-64

query I rowsort
SELECT ALL - 11 * - - 30 + + ( - 36 )
----
-366

onlyif mysql # DIV for integer division: 
query I rowsort label-4080
SELECT + 15 - - - 83 DIV + 59 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4080
SELECT + 15 - - - 83 / + 59 AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4081
SELECT CASE 18 WHEN + 37 * - 70 THEN - COUNT( * ) WHEN + + 76 * + 41 - - 19 + + COUNT( * ) THEN NULL END col0, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4081
SELECT CASE 18 WHEN + 37 * - 70 THEN - COUNT ( * ) WHEN + + 76 * + 41 - - 19 + + COUNT ( * ) THEN NULL END col0, - COUNT ( * )
----
NULL
-1

query I rowsort
SELECT + 91 + + 67
----
158

query I rowsort
SELECT ALL + 59 * 81
----
4779

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT SUM( 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4084
SELECT SUM ( 92 ) AS col2
----
92

query I rowsort
SELECT ALL + 45 * + 6 + + + 90
----
360

query I rowsort
SELECT - 37 - + + 16 col1
----
-53

query I rowsort
SELECT DISTINCT + 42 * - 16 col0
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT ALL + 69 - + COUNT( DISTINCT + 83 ) + + - 78 * - NULLIF ( - - 48, 84 * + 11 * + 69 + + ( - - 40 ) ) AS col2
----
3812

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL + 69 - + COUNT ( DISTINCT + 83 ) + + - 78 * - NULLIF ( - - 48, 84 * + 11 * + 69 + + ( - - 40 ) ) AS col2
----
3812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT 52 + - + CASE + - 19 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE 27 + - - COUNT( * ) END + COUNT( * ) * - + ( - 33 ) * - 71
----
-2319

skipif mysql # not compatible
query I rowsort label-4089
SELECT 52 + - + CASE + - 19 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE 27 + - - COUNT ( * ) END + COUNT ( * ) * - + ( - 33 ) * - 71
----
-2319

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4090
SELECT ALL - 97 DIV 86 * - + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL - 97 / 86 * - + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT 58 * + - 8 AS col2
----
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT DISTINCT - COUNT( * ) * 49 * - 69 * + 18 + COUNT( * )
----
60859

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT - COUNT ( * ) * 49 * - 69 * + 18 + COUNT ( * )
----
60859

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4093
SELECT 46 + - 45 DIV 32 * + COUNT( ALL + 3 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4093
SELECT 46 + - 45 / 32 * + COUNT ( ALL + 3 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT - + SUM( ALL 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4094
SELECT - + SUM ( ALL 60 ) AS col0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4095
SELECT DISTINCT + - 24 - 22 DIV - + 69 - NULLIF ( - ( - + 76 ), + 75 * 17 )
----
-100

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT + - 24 - 22 / - + 69 - NULLIF ( - ( - + 76 ), + 75 * 17 )
----
-100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4096
SELECT + CAST( NULL AS DECIMAL ) + - + NULLIF ( + - 30, + - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT + CAST ( NULL AS REAL ) + - + NULLIF ( + - 30, + - 49 )
----
NULL

query I rowsort
SELECT - COALESCE ( 14, + 18 )
----
-14

query I rowsort
SELECT + - 24 * + - 98 * + - 81 * - 9 + + 3
----
1714611

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4099
SELECT 29 DIV - COUNT( * ) + + + 91 + - 45 * 85 AS col2
----
-3763

skipif mysql # not compatible
query I rowsort label-4099
SELECT 29 / - COUNT ( * ) + + + 91 + - 45 * 85 AS col2
----
-3763

query II rowsort
SELECT + ( - 1 ) col2, 88
----
-1
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT ALL - + CASE - 2 WHEN SUM( - 77 ) * + + 68 THEN + + 22 * 77 / 44 + - ( - + 39 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - + CASE - 2 WHEN SUM ( - 77 ) * + + 68 THEN + + 22 * 77 / 44 + - ( - + 39 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT DISTINCT + 32 * ( - 71 ) * + 37 + + + 76 + - + ( + COUNT( DISTINCT + 89 ) ) + + 39 AS col0
----
-83950

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT + 32 * ( - 71 ) * + 37 + + + 76 + - + ( + COUNT ( DISTINCT + 89 ) ) + + 39 AS col0
----
-83950

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT 54 * - - ( + COUNT( * ) ) - - 81 AS col0, - 34 * - - 62 + + ( + 69 ) + + - 60
----
135
-2099

skipif mysql # not compatible
query II rowsort label-4103
SELECT 54 * - - ( + COUNT ( * ) ) - - 81 AS col0, - 34 * - - 62 + + ( + 69 ) + + - 60
----
135
-2099

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT - + ( + + 65 ) * + + ( - + COUNT( * ) ) + + 64
----
129

skipif mysql # not compatible
query I rowsort label-4104
SELECT - + ( + + 65 ) * + + ( - + COUNT ( * ) ) + + 64
----
129

query I rowsort
SELECT - ( + 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4106
SELECT - 78 DIV COUNT( * ) + + COUNT( * ) + + COUNT( * ), 84 AS col1
----
-76
84

skipif mysql # not compatible
query II rowsort label-4106
SELECT - 78 / COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ), 84 AS col1
----
-76
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT DISTINCT - + CAST( + 15 AS SIGNED ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT - + CAST ( + 15 AS INTEGER ) AS col1
----
-15

query I rowsort
SELECT + 22 + - 56 * + 63 AS col0
----
-3506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4109
SELECT COUNT( * ) * + 52 * + 77 + + - 35 DIV - - 29
----
4003

skipif mysql # not compatible
query I rowsort label-4109
SELECT COUNT ( * ) * + 52 * + 77 + + - 35 / - - 29
----
4003

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT - COUNT( 98 ) * + NULLIF ( MAX( ALL - 90 ), - 43 ) + - 72 + + 91
----
109

skipif mysql # not compatible
query I rowsort label-4110
SELECT - COUNT ( 98 ) * + NULLIF ( MAX ( ALL - 90 ), - 43 ) + - 72 + + 91
----
109

query I rowsort
SELECT ALL - NULLIF ( - 32, - 47 ) AS col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4112
SELECT DISTINCT - COUNT( + + 30 ) DIV - 52 * - + 9 + - + 11 + + 7 * 17 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT - COUNT ( + + 30 ) / - 52 * - + 9 + - + 11 + + 7 * 17 AS col1
----
108

query I rowsort
SELECT 17 + + 35 col2
----
52

query I rowsort
SELECT DISTINCT - 55 * + + 70 * + 98 * - COALESCE ( 23, + 31 )
----
8677900

onlyif mysql # DIV for integer division: 
query I rowsort label-4115
SELECT 7 DIV - 18 col1
----
0

skipif mysql # not compatible
query I rowsort label-4115
SELECT 7 / - 18 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4116
SELECT 43 + - CAST( NULL AS SIGNED ) * + 99 + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT 43 + - CAST ( NULL AS INTEGER ) * + 99 + 96
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4117
SELECT + 79 * - COUNT( * ) + + - ( + 56 ) + + 71 AS col1, COUNT( * ) AS col1
----
-64
1

skipif mysql # not compatible
query II rowsort label-4117
SELECT + 79 * - COUNT ( * ) + + - ( + 56 ) + + 71 AS col1, COUNT ( * ) AS col1
----
-64
1

query II rowsort
SELECT DISTINCT 89 AS col0, 96 + - - 86
----
89
182

query I rowsort
SELECT ( + 50 ) * - + 15
----
-750

query II rowsort
SELECT ALL 53, 57 AS col0
----
53
57

query I rowsort
SELECT DISTINCT 48 * - 39 * 58 AS col2
----
-108576

query I rowsort
SELECT 68 * + 58 AS col2
----
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT COUNT( * ) - - 27 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4123
SELECT COUNT ( * ) - - 27 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT - SUM( + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-4124
SELECT - SUM ( + 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT 83 + 5 * - CASE 37 WHEN - 60 THEN MIN( 92 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4125
SELECT 83 + 5 * - CASE 37 WHEN - 60 THEN MIN ( 92 ) END
----
NULL

query I rowsort
SELECT 57 * 92
----
5244

query I rowsort
SELECT 93 + 77
----
170

query I rowsort
SELECT ALL 93 * 43
----
3999

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT DISTINCT COUNT( * ) * 45 + + 69 * ( + 53 + - 11 ) AS col2
----
2943

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT COUNT ( * ) * 45 + + 69 * ( + 53 + - 11 ) AS col2
----
2943

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT SUM( 85 ) * + 42
----
3570

skipif mysql # not compatible
query I rowsort label-4130
SELECT SUM ( 85 ) * + 42
----
3570

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT 8 + + 69 DIV + 17
----
12

skipif mysql # not compatible
query I rowsort label-4131
SELECT 8 + + 69 / + 17
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT ALL - NULLIF ( + 22, - SUM( 21 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL - NULLIF ( + 22, - SUM ( 21 ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT + COUNT( DISTINCT 92 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4133
SELECT + COUNT ( DISTINCT 92 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT MIN( ALL + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4134
SELECT MIN ( ALL + 93 ) AS col1
----
93

query I rowsort
SELECT ALL - 72 * + 97 + 86
----
-6898

query I rowsort
SELECT 8 * 34 AS col1
----
272

query I rowsort
SELECT ALL - 59 * + ( 19 ) AS col0
----
-1121

query I rowsort
SELECT DISTINCT - 86 * + 60
----
-5160

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT DISTINCT + 14 + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT + 14 + COUNT ( * )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4140
SELECT 5 * + 71 + 59 DIV 32 AS col2
----
356

skipif mysql # not compatible
query I rowsort label-4140
SELECT 5 * + 71 + 59 / 32 AS col2
----
356

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT 52 DIV 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4141
SELECT 52 / 68 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4142
SELECT - 49 * - CAST( 32 AS SIGNED ) AS col2
----
1568

skipif mysql # not compatible
query I rowsort label-4142
SELECT - 49 * - CAST ( 32 AS INTEGER ) AS col2
----
1568

query I rowsort
SELECT - 8 + ( - 13 - - 9 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT + SUM( + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4144
SELECT + SUM ( + 20 ) AS col1
----
20

query I rowsort
SELECT ALL + 69 - - ( + 83 ) AS col2
----
152

query I rowsort
SELECT - 25 - 80 AS col1
----
-105

query I rowsort
SELECT - 2 - + 79
----
-81

query I rowsort
SELECT ALL 13 * + 28 col2
----
364

query I rowsort
SELECT - 19 * + 98 AS col2
----
-1862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4150
SELECT DISTINCT - 24 DIV - MIN( DISTINCT 43 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT - 24 / - MIN ( DISTINCT 43 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4151
SELECT COUNT( * ) * + 56 + COALESCE ( - 95 + CAST( + COUNT( * ) AS SIGNED ), 97 * 36 + - MAX( ALL + ( 18 ) - + 51 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-4151
SELECT COUNT ( * ) * + 56 + COALESCE ( - 95 + CAST ( + COUNT ( * ) AS INTEGER ), 97 * 36 + - MAX ( ALL + ( 18 ) - + 51 ) )
----
-38

query I rowsort
SELECT ALL + ( + 34 ) * 96
----
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT NULLIF ( + COUNT( * ), 31 - + 82 * 50 )
----
1

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT NULLIF ( + COUNT ( * ), 31 - + 82 * 50 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4154
SELECT - COUNT( * ) DIV 76 col2
----
0

skipif mysql # not compatible
query I rowsort label-4154
SELECT - COUNT ( * ) / 76 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4155
SELECT + ( + 50 ) DIV - COUNT( * ) col2
----
-50

skipif mysql # not compatible
query I rowsort label-4155
SELECT + ( + 50 ) / - COUNT ( * ) col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4156
SELECT ALL + 67 DIV + 53 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + 67 / + 53 AS col2
----
1

query I rowsort
SELECT + 74 * + 83
----
6142

query I rowsort
SELECT DISTINCT + ( 84 ) + + 72 * + NULLIF ( - 74 * + 35, + 80 )
----
-186396

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT + COUNT( * ) + + 56 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4159
SELECT + COUNT ( * ) + + 56 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT DISTINCT - - ( 63 ) + ( - 74 ) * + COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT - - ( 63 ) + ( - 74 ) * + COUNT ( * ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL + COUNT( * ) + + 90 * 45
----
4051

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + COUNT ( * ) + + 90 * 45
----
4051

query I rowsort
SELECT + - 38 * + 39
----
-1482

query I rowsort
SELECT + 94 + + 75 * - 27 AS col0
----
-1931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT + 7 + - COALESCE ( 12, + CAST( NULL AS SIGNED ) * - 49 )
----
-5

skipif mysql # not compatible
query I rowsort label-4164
SELECT + 7 + - COALESCE ( 12, + CAST ( NULL AS INTEGER ) * - 49 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4165
SELECT + 94 * + MIN( DISTINCT - 47 ) + 18 DIV 58
----
-4418

skipif mysql # not compatible
query I rowsort label-4165
SELECT + 94 * + MIN ( DISTINCT - 47 ) + 18 / 58
----
-4418

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT + - NULLIF ( NULLIF ( 17, MAX( DISTINCT + 39 ) ), + 31 + 76 ) + 5
----
-12

skipif mysql # not compatible
query I rowsort label-4166
SELECT + - NULLIF ( NULLIF ( 17, MAX ( DISTINCT + 39 ) ), + 31 + 76 ) + 5
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4167
SELECT - COALESCE ( 30, + 83 ) * - ( - MAX( DISTINCT 64 ) ) + + COUNT( * ) DIV 46
----
-1920

skipif mysql # not compatible
query I rowsort label-4167
SELECT - COALESCE ( 30, + 83 ) * - ( - MAX ( DISTINCT 64 ) ) + + COUNT ( * ) / 46
----
-1920

query I rowsort
SELECT - 85 * - + 58 * 85
----
419050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT 0 * + ( CAST( NULL AS SIGNED ) ) * - NULLIF ( 4, COALESCE ( 2, 16 * - 11 + 56 ) + 92 ) + - CAST( 78 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT 0 * + ( CAST ( NULL AS INTEGER ) ) * - NULLIF ( 4, COALESCE ( 2, 16 * - 11 + 56 ) + 92 ) + - CAST ( 78 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4170
SELECT ALL ( - MAX( 28 ) ) DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL ( - MAX ( 28 ) ) / 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT - COUNT( * ) + + ( - SUM( ALL 36 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-4171
SELECT - COUNT ( * ) + + ( - SUM ( ALL 36 ) )
----
-37

query I rowsort
SELECT + ( + - 20 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL - 37 * + COUNT( - 21 )
----
-37

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL - 37 * + COUNT ( - 21 )
----
-37

query I rowsort
SELECT 1 * + - 88 + - 88 AS col1
----
-176

query I rowsort
SELECT - 32 * + 1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL + COUNT( + + 16 )
----
1

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL + COUNT ( + + 16 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT - 71 * 92 + CASE + 29 WHEN AVG ( ALL - 86 ) * - ( 21 + - 28 ) THEN CAST( NULL AS SIGNED ) * 58 WHEN 49 THEN 85 * 32 WHEN + 9 * - 63 THEN + 55 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT - 71 * 92 + CASE + 29 WHEN AVG ( ALL - 86 ) * - ( 21 + - 28 ) THEN CAST ( NULL AS INTEGER ) * 58 WHEN 49 THEN 85 * 32 WHEN + 9 * - 63 THEN + 55 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT + MAX( ALL 98 )
----
98

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT + MAX ( ALL 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT - 96 * - MAX( - 42 ) * 78 AS col1
----
-314496

skipif mysql # not compatible
query I rowsort label-4179
SELECT - 96 * - MAX ( - 42 ) * 78 AS col1
----
-314496

query I rowsort
SELECT DISTINCT - 20 * + 88 AS col2
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL + ( - MAX( + 96 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL + ( - MAX ( + 96 ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT - 46 * ( + NULLIF ( COUNT( * ), - 77 ) ) + - 78 * + 24
----
-1918

skipif mysql # not compatible
query I rowsort label-4182
SELECT - 46 * ( + NULLIF ( COUNT ( * ), - 77 ) ) + - 78 * + 24
----
-1918

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT + 27 * - 63 * - MAX( 48 * 65 ) + - NULLIF ( 30, 69 * + 52 + + 99 ) * 32 AS col2
----
5306160

skipif mysql # not compatible
query I rowsort label-4183
SELECT + 27 * - 63 * - MAX ( 48 * 65 ) + - NULLIF ( 30, 69 * + 52 + + 99 ) * 32 AS col2
----
5306160

query I rowsort
SELECT - 60 * + + 6 * 59 AS col1
----
-21240

query I rowsort
SELECT DISTINCT ( + - 28 ) AS col0
----
-28

query I rowsort
SELECT + ( - 82 ) + + 49
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT ALL + 75 DIV - + 6 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + 75 / - + 6 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT DISTINCT + + 26 + + 24 * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT + + 26 + + 24 * COUNT ( * )
----
50

query I rowsort
SELECT - 12 + 97 AS col2
----
85

query I rowsort
SELECT ALL + - ( - 99 ) + + 57
----
156

query I rowsort
SELECT ALL 65 + 36
----
101

query I rowsort
SELECT ALL - - 63 * - - 96 + 27 * 78
----
8154

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT - COUNT( ALL + 60 ) * - 3
----
3

skipif mysql # not compatible
query I rowsort label-4193
SELECT - COUNT ( ALL + 60 ) * - 3
----
3

query I rowsort
SELECT + 52 * 44 AS col1
----
2288

query I rowsort
SELECT + - 1 + 65
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4196
SELECT ALL - 95 + + COALESCE ( + CASE 86 WHEN + 24 THEN COALESCE ( COUNT( * ), + 48 * COUNT( 2 ), 57 + + 35 DIV 32 ) * 66 ELSE NULL END, CASE - COALESCE ( + 54, 89 * + 78 ) WHEN 74 THEN NULL ELSE - 13 * 23 END ) * 76
----
-22819

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL - 95 + + COALESCE ( + CASE 86 WHEN + 24 THEN COALESCE ( COUNT ( * ), + 48 * COUNT ( 2 ), 57 + + 35 / 32 ) * 66 ELSE NULL END, CASE - COALESCE ( + 54, 89 * + 78 ) WHEN 74 THEN NULL ELSE - 13 * 23 END ) * 76
----
-22819

query I rowsort
SELECT + + ( + 7 ) + 47
----
54

query I rowsort
SELECT - + 15 * - 64
----
960

query I rowsort
SELECT - - 56 * + 58
----
3248

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT DISTINCT NULLIF ( + - COUNT( * ), 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT NULLIF ( + - COUNT ( * ), 93 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL 99 * NULLIF ( - CASE + 29 WHEN 76 * + 97 THEN + 1 * - 47 WHEN CASE COUNT( * ) WHEN + 65 * - 93 THEN 66 * 28 + + 43 END + + 46 * + 39 THEN NULL WHEN MAX( + 18 ) THEN 0 * + 82 END, ( 34 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL 99 * NULLIF ( - CASE + 29 WHEN 76 * + 97 THEN + 1 * - 47 WHEN CASE COUNT ( * ) WHEN + 65 * - 93 THEN 66 * 28 + + 43 END + + 46 * + 39 THEN NULL WHEN MAX ( + 18 ) THEN 0 * + 82 END, ( 34 ) )
----
NULL

query I rowsort
SELECT ALL 38 * + 33 + 26 AS col0
----
1280

query I rowsort
SELECT NULLIF ( - + 6, - 71 ) * - 8
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4204
SELECT 67 AS col2, + 93 + - COALESCE ( CAST( NULL AS SIGNED ), + 38 * ( 68 ), 56 ) AS col0
----
67
-2491

skipif mysql # not compatible
query II rowsort label-4204
SELECT 67 AS col2, + 93 + - COALESCE ( CAST ( NULL AS INTEGER ), + 38 * ( 68 ), 56 ) AS col0
----
67
-2491

query I rowsort
SELECT DISTINCT ( - 5 ) * - 8 AS col1
----
40

query II rowsort
SELECT DISTINCT - 90, - 21 * - - 49 AS col0
----
-90
-1029

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4207
SELECT ALL - 3 AS col1, - 25 DIV - ( + SUM( ALL ( + 43 ) ) ) * 17 col2
----
-3
0

skipif mysql # not compatible
query II rowsort label-4207
SELECT ALL - 3 AS col1, - 25 / - ( + SUM ( ALL ( + 43 ) ) ) * 17 col2
----
-3
0

query I rowsort
SELECT ALL 37 + + ( + 24 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4209
SELECT - 42 * - ( - 28 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT - 42 * - ( - 28 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 5 AS col0, 48
----
5
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT CAST( NULL AS SIGNED ) / - - ( + NULLIF ( - 57, - 33 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT CAST ( NULL AS INTEGER ) / - - ( + NULLIF ( - 57, - 33 ) ) AS col0
----
NULL

query I rowsort
SELECT 79 * 66 + + - 82 * - 44 AS col0
----
8822

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT 93 * - COUNT( * ) * - 86 * + 11 AS col2
----
87978

skipif mysql # not compatible
query I rowsort label-4213
SELECT 93 * - COUNT ( * ) * - 86 * + 11 AS col2
----
87978

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT 96 * 37 * - + 28 * COUNT( * )
----
-99456

skipif mysql # not compatible
query I rowsort label-4214
SELECT 96 * 37 * - + 28 * COUNT ( * )
----
-99456

query I rowsort
SELECT ALL - 34 + - 41
----
-75

query I rowsort
SELECT DISTINCT 36 + - - 63 AS col2
----
99

query I rowsort
SELECT 83 * ( 94 ) * - 46
----
-358892

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT 12 * 61 + CASE - COUNT( * ) WHEN - COALESCE ( COUNT( 75 ), COALESCE ( 95, + ( - NULLIF ( 17, 99 + COUNT( * ) ) ) ) ) * - 47 THEN NULL ELSE 14 END
----
746

skipif mysql # not compatible
query I rowsort label-4218
SELECT 12 * 61 + CASE - COUNT ( * ) WHEN - COALESCE ( COUNT ( 75 ), COALESCE ( 95, + ( - NULLIF ( 17, 99 + COUNT ( * ) ) ) ) ) * - 47 THEN NULL ELSE 14 END
----
746

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4219
SELECT ALL 70 + - 60 + COUNT( 17 ) DIV - 59 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL 70 + - 60 + COUNT ( 17 ) / - 59 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4220
SELECT ALL - COUNT( * ) AS col0, + 47 * + COUNT( DISTINCT 97 ) * - 41
----
-1
-1927

skipif mysql # not compatible
query II rowsort label-4220
SELECT ALL - COUNT ( * ) AS col0, + 47 * + COUNT ( DISTINCT 97 ) * - 41
----
-1
-1927

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL + + 40 + - 54 + + ( - 41 ) + + 22 * COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL + + 40 + - 54 + + ( - 41 ) + + 22 * COUNT ( * )
----
-33

query I rowsort
SELECT - - NULLIF ( + ( + - 45 ), 28 )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-4223
SELECT ALL + 72 AS col0, - 73 + - - COUNT( * ) AS col0
----
72
-72

skipif mysql # not compatible
query II rowsort label-4223
SELECT ALL + 72 AS col0, - 73 + - - COUNT ( * ) AS col0
----
72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT DISTINCT - CAST( + 98 AS SIGNED ) + 28 * ( 19 + ( 62 ) ) AS col2
----
2170

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT - CAST ( + 98 AS INTEGER ) + 28 * ( 19 + ( 62 ) ) AS col2
----
2170

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT - 67 + COALESCE ( + COUNT( * ), 55 )
----
-66

skipif mysql # not compatible
query I rowsort label-4225
SELECT - 67 + COALESCE ( + COUNT ( * ), 55 )
----
-66

query I rowsort
SELECT 74 - 45 + + ( 12 ) * 8
----
125

query I rowsort
SELECT - CASE - 88 WHEN 85 THEN NULL WHEN 17 THEN + 9 + 93 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - 10 + - 83 AS col2
----
-73

query I rowsort
SELECT DISTINCT + ( - ( - 53 ) ) AS col1
----
53

query I rowsort
SELECT DISTINCT - 63 - + 52 AS col2
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT DISTINCT CASE - + 62 WHEN - 60 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - NULLIF ( + 21, 10 + + 21 * + 43 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT CASE - + 62 WHEN - 60 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - NULLIF ( + 21, 10 + + 21 * + 43 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4232
SELECT DISTINCT + - NULLIF ( + COUNT( * ), + COUNT( * ) ) - - AVG ( DISTINCT 94 + + 83 ) * + ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT + - NULLIF ( + COUNT ( * ), + COUNT ( * ) ) - - AVG ( DISTINCT 94 + + 83 ) * + ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 23 * - + 85 AS col0
----
-1955

query I rowsort
SELECT + 92 + + 53
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT - - CAST( 85 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-4235
SELECT - - CAST ( 85 AS INTEGER )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + 66 * + CASE + + 7 WHEN 7 + - 50 THEN NULL WHEN - MAX( ALL 49 ) * 84 + - 69 THEN - 77 * - 98 - + 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT + 66 * + CASE + + 7 WHEN 7 + - 50 THEN NULL WHEN - MAX ( ALL 49 ) * 84 + - 69 THEN - 77 * - 98 - + 28 END
----
NULL

query I rowsort
SELECT 56 + - - 36
----
92

query I rowsort
SELECT - ( + - 92 )
----
92

query I rowsort
SELECT 87 + 91 + + ( 93 ) AS col2
----
271

query I rowsort
SELECT 26 * ( 6 )
----
156

query I rowsort
SELECT 62 * + 28 * - - 25 AS col0
----
43400

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT 37 * COUNT( ALL - 25 ) + + 36 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-4242
SELECT 37 * COUNT ( ALL - 25 ) + + 36 AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4243
SELECT - 26 DIV + + COUNT( * ) + + + 92
----
66

skipif mysql # not compatible
query I rowsort label-4243
SELECT - 26 / + + COUNT ( * ) + + + 92
----
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4244
SELECT 52 + - CAST( CAST( + + 97 AS DECIMAL ) AS SIGNED ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4244
SELECT 52 + - CAST ( CAST ( + + 97 AS REAL ) AS INTEGER ) AS col2
----
-45

query II rowsort
SELECT DISTINCT - ( - + 96 ) AS col0, + 19
----
96
19

query I rowsort
SELECT + 38 * + - 54 + 22 * 52
----
-908

query I rowsort
SELECT ALL + ( + 7 ) + - + 26
----
-19

query I rowsort
SELECT ALL 31 + - 59
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT + COUNT( + + 61 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4249
SELECT + COUNT ( + + 61 ) AS col1
----
1

query I rowsort
SELECT ALL 95 + - 65
----
30

query I rowsort
SELECT DISTINCT 18 + + + ( + 44 ) AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4252
SELECT ALL 68 + + CAST( NULL AS SIGNED ) AS col0, + 68 + 21 - - 97 * 21 AS col0
----
NULL
2126

skipif mysql # not compatible
query II rowsort label-4252
SELECT ALL 68 + + CAST ( NULL AS INTEGER ) AS col0, + 68 + 21 - - 97 * 21 AS col0
----
NULL
2126

query I rowsort
SELECT 53 * + 75
----
3975

query I rowsort
SELECT + COALESCE ( + ( - 80 ), + 27, + 44 ) * + 99
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT + 75 * + 6 - + 78 * - MIN( ALL + 42 ) + COUNT( * )
----
3727

skipif mysql # not compatible
query I rowsort label-4255
SELECT + 75 * + 6 - + 78 * - MIN ( ALL + 42 ) + COUNT ( * )
----
3727

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - 4 * + 80 + - COUNT( * ) col2
----
-321

skipif mysql # not compatible
query I rowsort label-4256
SELECT - 4 * + 80 + - COUNT ( * ) col2
----
-321

query I rowsort
SELECT - ( - + ( 24 ) ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4258
SELECT CASE - 65 WHEN 83 * - - 97 THEN + 67 WHEN 20 + 28 THEN NULL END + + CAST( SUM( + 88 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT CASE - 65 WHEN 83 * - - 97 THEN + 67 WHEN 20 + 28 THEN NULL END + + CAST ( SUM ( + 88 ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 67 - + 55 * + 72
----
-4027

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT COUNT( DISTINCT 85 ) + + 60 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4260
SELECT COUNT ( DISTINCT 85 ) + + 60 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT 99 + + COUNT( * ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-4261
SELECT 99 + + COUNT ( * ) AS col2
----
100

query I rowsort
SELECT DISTINCT ( - ( - 28 ) ) col0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT ALL + CAST( NULL AS SIGNED ) * 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL + CAST ( NULL AS INTEGER ) * 21 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT - - SUM( ALL - - ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT - - SUM ( ALL - - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4265
SELECT - 46 + - CAST( COUNT( * ) AS SIGNED ) + + MIN( DISTINCT + 74 ) * 58
----
4245

skipif mysql # not compatible
query I rowsort label-4265
SELECT - 46 + - CAST ( COUNT ( * ) AS INTEGER ) + + MIN ( DISTINCT + 74 ) * 58
----
4245

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT - + 99 * COALESCE ( + - 78, 11 * CASE 73 WHEN + 29 THEN + 13 WHEN + 0 / 9 + - MIN( + 80 ) THEN NULLIF ( 54, COUNT( * ) ) - COUNT( * ) ELSE NULL END + - 31 ) + ( 12 ) AS col1
----
7734

skipif mysql # not compatible
query I rowsort label-4266
SELECT - + 99 * COALESCE ( + - 78, 11 * CASE 73 WHEN + 29 THEN + 13 WHEN + 0 / 9 + - MIN ( + 80 ) THEN NULLIF ( 54, COUNT ( * ) ) - COUNT ( * ) ELSE NULL END + - 31 ) + ( 12 ) AS col1
----
7734

query I rowsort
SELECT ALL NULLIF ( + + 37, 89 * - 32 )
----
37

query I rowsort
SELECT - 73 + + 39
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4269
SELECT DISTINCT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 78 * 6
----
-468

query I rowsort
SELECT - 3 * 2 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT ALL COUNT( DISTINCT 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL COUNT ( DISTINCT 0 ) AS col0
----
1

query II rowsort
SELECT - 69 col1, 43
----
-69
43

query I rowsort
SELECT ALL CASE 92 WHEN + 18 + - 70 THEN NULL ELSE + - 30 END
----
-30

query I rowsort
SELECT ALL - 51 * - 57 * - 21 col2
----
-61047

onlyif mysql # DIV for integer division: 
query I rowsort label-4276
SELECT - 55 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-4276
SELECT - 55 / - 81
----
0

query II rowsort
SELECT ALL - ( - + 46 ) + + 6 AS col2, + 60 AS col0
----
52
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT DISTINCT 46 * - COUNT( * ) + - ( + ( + MAX( - 19 ) ) ) + - 93 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT 46 * - COUNT ( * ) + - ( + ( + MAX ( - 19 ) ) ) + - 93 AS col0
----
-120

query I rowsort
SELECT COALESCE ( + - 62, + 1 * + - 44 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT ( + COUNT( * ) ) * + 61 + CASE - - 19 WHEN - ( 66 ) + MAX( 14 - 37 ) * + 3 THEN NULL ELSE 30 END * 49 + 88 AS col0
----
1619

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT ( + COUNT ( * ) ) * + 61 + CASE - - 19 WHEN - ( 66 ) + MAX ( 14 - 37 ) * + 3 THEN NULL ELSE 30 END * 49 + 88 AS col0
----
1619

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL 21 * COUNT( * ) + + 87
----
108

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL 21 * COUNT ( * ) + + 87
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-4282
SELECT - 19 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-4282
SELECT - 19 / 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT + COUNT( * ) * - ( + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-4283
SELECT + COUNT ( * ) * - ( + 6 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4284
SELECT - COUNT( DISTINCT - 76 ) DIV COALESCE ( 4, 91 - 90 * + ( 80 ), 81 * 65 - 52 )
----
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT - COUNT ( DISTINCT - 76 ) / COALESCE ( 4, 91 - 90 * + ( 80 ), 81 * 65 - 52 )
----
0

query I rowsort
SELECT - 65 * 10 * + 44
----
-28600

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL + COUNT( * ) * - + 73 + + + 60 col2
----
-13

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL + COUNT ( * ) * - + 73 + + + 60 col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT - COUNT( DISTINCT 47 ) + 13 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4287
SELECT - COUNT ( DISTINCT 47 ) + 13 AS col2
----
12

query I rowsort
SELECT 10 * - + 30 + + - NULLIF ( - 37, - 22 / + 54 )
----
-263

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT + 5 * 13 + + 10 - COUNT( DISTINCT - - 30 ) * - 92
----
167

skipif mysql # not compatible
query I rowsort label-4289
SELECT + 5 * 13 + + 10 - COUNT ( DISTINCT - - 30 ) * - 92
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ALL COUNT( ALL 93 ) * + - 16 + + + 66 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL COUNT ( ALL 93 ) * + - 16 + + + 66 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4291
SELECT + 85 * 64 + - - 17 AS col1, 99 * + ( MIN( + COALESCE ( + 62, + CAST( NULL AS SIGNED ) ) ) ) * 91 AS col2
----
5457
558558

skipif mysql # not compatible
query II rowsort label-4291
SELECT + 85 * 64 + - - 17 AS col1, 99 * + ( MIN ( + COALESCE ( + 62, + CAST ( NULL AS INTEGER ) ) ) ) * 91 AS col2
----
5457
558558

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT DISTINCT - 66 * CASE - 88 WHEN + + 46 THEN NULL WHEN - 80 THEN NULL WHEN NULLIF ( COUNT( * ), + NULLIF ( + ( + 3 ), + NULLIF ( + 76, 33 + COUNT( * ) * + 86 ) ) ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT - 66 * CASE - 88 WHEN + + 46 THEN NULL WHEN - 80 THEN NULL WHEN NULLIF ( COUNT ( * ), + NULLIF ( + ( + 3 ), + NULLIF ( + 76, 33 + COUNT ( * ) * + 86 ) ) ) THEN COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT COUNT( * ) * 15 + 39 * - - 27 - - ( + 93 ) + 56 * 19 AS col1
----
2225

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT COUNT ( * ) * 15 + 39 * - - 27 - - ( + 93 ) + 56 * 19 AS col1
----
2225

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL - - 64 * + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - - 64 * + COUNT ( * ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4295
SELECT + - COUNT( + 86 ) + - + 10, 91 AS col1
----
-11
91

skipif mysql # not compatible
query II rowsort label-4295
SELECT + - COUNT ( + 86 ) + - + 10, 91 AS col1
----
-11
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL + + SUM( DISTINCT - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + + SUM ( DISTINCT - 14 )
----
-14

query I rowsort
SELECT DISTINCT CASE + 12 WHEN 58 / - - 47 * - - 21 THEN NULL WHEN 60 + 85 THEN NULL ELSE 45 * + 36 END * + 92
----
149040

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT ALL COUNT( * ) AS col0, + 38 - - 1 AS col0
----
1
39

skipif mysql # not compatible
query II rowsort label-4298
SELECT ALL COUNT ( * ) AS col0, + 38 - - 1 AS col0
----
1
39

query II rowsort
SELECT 88 AS col0, 26 AS col0
----
88
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT - + MAX( DISTINCT - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-4300
SELECT - + MAX ( DISTINCT - 56 )
----
56

query I rowsort
SELECT + 35 + + 36 AS col2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4302
SELECT ALL 4 DIV 70 - - ( - 79 ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL 4 / 70 - - ( - 79 ) col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT + 44 * + 91 + COUNT( * ) * + - CASE ( 35 ) WHEN - 78 + NULLIF ( 67 - 73, 16 * ( ( - ( 23 ) ) ) ) THEN ( - 4 ) WHEN + COUNT( * ) THEN NULL ELSE 35 * + 61 END AS col1
----
1869

skipif mysql # not compatible
query I rowsort label-4303
SELECT + 44 * + 91 + COUNT ( * ) * + - CASE ( 35 ) WHEN - 78 + NULLIF ( 67 - 73, 16 * ( ( - ( 23 ) ) ) ) THEN ( - 4 ) WHEN + COUNT ( * ) THEN NULL ELSE 35 * + 61 END AS col1
----
1869

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT - COUNT( * ) + + 19 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4304
SELECT - COUNT ( * ) + + 19 AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT DISTINCT 62 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT 62 / - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + + 51 * - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-4306
SELECT + + 51 * - COUNT ( * )
----
-51

query I rowsort
SELECT + 15 + + 54
----
69

query I rowsort
SELECT ALL - ( - 80 ) AS col1
----
80

query I rowsort
SELECT ALL 85 + - 5 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL ( COUNT( * ) ) + + ( + 17 ) * 34 - - + 84 + 85 AS col0
----
748

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL ( COUNT ( * ) ) + + ( + 17 ) * 34 - - + 84 + 85 AS col0
----
748

query I rowsort
SELECT + 67 + + + 87 - + 70 * + + 46 AS col1
----
-3066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4312
SELECT - CASE - 47 WHEN + - MIN( + 3 ) THEN 92 + - - 91 + 8 ELSE - CAST( NULL AS SIGNED ) END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4312
SELECT - CASE - 47 WHEN + - MIN ( + 3 ) THEN 92 + - - 91 + 8 ELSE - CAST ( NULL AS INTEGER ) END - COUNT ( * )
----
NULL

query I rowsort
SELECT + 43 + + 69 + 70
----
182

query II rowsort
SELECT - 49 - + + 39 col0, - 61 * - ( - + 22 ) AS col2
----
-88
-1342

query I rowsort
SELECT ALL 55 + 0 * + 28
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL - 48 + - CASE - 76 WHEN - 93 + - 19 + + SUM( 72 ) + 11 THEN NULL WHEN 94 THEN 71 WHEN - 85 / 92 THEN + 87 + NULLIF ( + COUNT( * ), 90 * 45 + 67 ) WHEN 44 * 76 THEN - 4 ELSE NULL END + 53 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL - 48 + - CASE - 76 WHEN - 93 + - 19 + + SUM ( 72 ) + 11 THEN NULL WHEN 94 THEN 71 WHEN - 85 / 92 THEN + 87 + NULLIF ( + COUNT ( * ), 90 * 45 + 67 ) WHEN 44 * 76 THEN - 4 ELSE NULL END + 53 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4317
SELECT 11 DIV + 30 + + 9 + MIN( ALL + - 75 ) + - COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4317
SELECT 11 / + 30 + + 9 + MIN ( ALL + - 75 ) + - COUNT ( * ) AS col1
----
-67

query I rowsort
SELECT - ( 85 ) + - 87
----
-172

query I rowsort
SELECT DISTINCT + NULLIF ( + - 91, - - 76 ) col2
----
-91

query II rowsort
SELECT ALL + 38 AS col2, + 52 AS col1
----
38
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT - 35 DIV 62 + + 94
----
94

skipif mysql # not compatible
query I rowsort label-4321
SELECT - 35 / 62 + + 94
----
94

query I rowsort
SELECT ALL + 12 * 93 AS col2
----
1116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4323
SELECT - COALESCE ( 10, - - CAST( 29 AS SIGNED ) + - NULLIF ( + 66, + 87 * + COUNT( * ) ) * 27 ) * COUNT( * ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4323
SELECT - COALESCE ( 10, - - CAST ( 29 AS INTEGER ) + - NULLIF ( + 66, + 87 * + COUNT ( * ) ) * 27 ) * COUNT ( * ) AS col1
----
-10

query II rowsort
SELECT + 10 AS col0, 55 * + 99
----
10
5445

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT - 12 + MAX( DISTINCT - - 48 ) * + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4325
SELECT - 12 + MAX ( DISTINCT - - 48 ) * + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT - - MIN( - - 68 ) * COUNT( * ) + + 23 - CASE - 28 WHEN - 0 * 11 THEN NULL ELSE 4 END * + COUNT( * ) * + 18 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4326
SELECT - - MIN ( - - 68 ) * COUNT ( * ) + + 23 - CASE - 28 WHEN - 0 * 11 THEN NULL ELSE 4 END * + COUNT ( * ) * + 18 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4327
SELECT DISTINCT - - 62 * + - COALESCE ( COALESCE ( + COUNT( * ), + 92 * 68 * + 24 ), + CASE 33 WHEN - 9 THEN 97 END, CAST( 9 AS SIGNED ) + + 33 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT - - 62 * + - COALESCE ( COALESCE ( + COUNT ( * ), + 92 * 68 * + 24 ), + CASE 33 WHEN - 9 THEN 97 END, CAST ( 9 AS INTEGER ) + + 33 ) AS col0
----
-62

query II rowsort
SELECT ( - 4 ) AS col2, - 98
----
-4
-98

query II rowsort
SELECT + + 36 AS col0, 63
----
36
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL + + CASE + 54 WHEN - 26 THEN NULLIF ( 90, COUNT( + 69 ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL + + CASE + 54 WHEN - 26 THEN NULLIF ( 90, COUNT ( + 69 ) ) END col1
----
NULL

query II rowsort
SELECT 21 col0, 26 * - + 52
----
21
-1352

query II rowsort
SELECT DISTINCT + + 70 col1, - 15 * - 26 AS col0
----
70
390

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + SUM( 92 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-4333
SELECT + SUM ( 92 ) col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4334
SELECT ALL - - 89 AS col2, NULLIF ( - 7, ( 28 ) ) + + COUNT( DISTINCT - ( - 62 ) ) - + 73 AS col0
----
89
-79

skipif mysql # not compatible
query II rowsort label-4334
SELECT ALL - - 89 AS col2, NULLIF ( - 7, ( 28 ) ) + + COUNT ( DISTINCT - ( - 62 ) ) - + 73 AS col0
----
89
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4335
SELECT 58 AS col1, 39 DIV 33 * + - SUM( DISTINCT - + 83 ) + - - 22
----
58
105

skipif mysql # not compatible
query II rowsort label-4335
SELECT 58 AS col1, 39 / 33 * + - SUM ( DISTINCT - + 83 ) + - - 22
----
58
105

onlyif mysql # aggregate syntax: 
query II rowsort label-4336
SELECT DISTINCT COUNT( * ), + 11 AS col0
----
1
11

skipif mysql # not compatible
query II rowsort label-4336
SELECT DISTINCT COUNT ( * ), + 11 AS col0
----
1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT MIN( ALL 76 ) * + 47
----
3572

skipif mysql # not compatible
query I rowsort label-4337
SELECT MIN ( ALL 76 ) * + 47
----
3572

query I rowsort
SELECT ALL + 2 + + 94 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4339
SELECT ALL + 98 col2, + 24 + - + COUNT( * ) * + CAST( 79 AS SIGNED )
----
98
-55

skipif mysql # not compatible
query II rowsort label-4339
SELECT ALL + 98 col2, + 24 + - + COUNT ( * ) * + CAST ( 79 AS INTEGER )
----
98
-55

query I rowsort
SELECT DISTINCT + 33 + - 45 * - + 54 col0
----
2463

query I rowsort
SELECT ALL + + 44 + 85
----
129

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4342
SELECT ALL - CAST( NULL AS DECIMAL ) + + - NULLIF ( 92, - - NULLIF ( + 87, - COUNT( * ) ) * COALESCE ( 30, 84, + COALESCE ( - 49, + 11 ) ) + 11 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL - CAST ( NULL AS REAL ) + + - NULLIF ( 92, - - NULLIF ( + 87, - COUNT ( * ) ) * COALESCE ( 30, 84, + COALESCE ( - 49, + 11 ) ) + 11 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 20 + - 29 + 12 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4344
SELECT COUNT( * ) DIV - 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4344
SELECT COUNT ( * ) / - 29 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4345
SELECT 81 - - 85 AS col1, - 50 * + ( COUNT( * ) ) - + CASE - + 22 WHEN - CAST( - MAX( DISTINCT - 65 ) AS SIGNED ) THEN 3 + + COUNT( * ) END * - COUNT( * )
----
166
NULL

skipif mysql # not compatible
query II rowsort label-4345
SELECT 81 - - 85 AS col1, - 50 * + ( COUNT ( * ) ) - + CASE - + 22 WHEN - CAST ( - MAX ( DISTINCT - 65 ) AS INTEGER ) THEN 3 + + COUNT ( * ) END * - COUNT ( * )
----
166
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4346
SELECT DISTINCT 73 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT 73 / 75
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4347
SELECT CASE + - 0 WHEN - 72 * 42 * - 39 THEN - - SUM( DISTINCT - 39 ) WHEN 51 THEN NULL WHEN MAX( DISTINCT + CAST( 73 AS DECIMAL ) ) THEN NULL ELSE 34 END DIV 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4347
SELECT CASE + - 0 WHEN - 72 * 42 * - 39 THEN - - SUM ( DISTINCT - 39 ) WHEN 51 THEN NULL WHEN MAX ( DISTINCT + CAST ( 73 AS REAL ) ) THEN NULL ELSE 34 END / 92 AS col1
----
0

query I rowsort
SELECT ALL 19 + + 44 + + - 47 AS col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT DISTINCT 37 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT 37 / - 56
----
0

query I rowsort
SELECT ALL 1 * 66 * + + CASE + 59 WHEN + 93 THEN - 6 * - 30 WHEN 56 * 50 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 31 - - ( 46 ) * + 26 + 77 * - 72 + - 60 AS col2
----
-4377

query I rowsort
SELECT 67 - - 37 AS col0
----
104

query II rowsort
SELECT ALL 65 * 58 col1, 50 * + ( + 49 ) * - 50 + + - 69 * - 58
----
3770
-118498

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT 28 * + NULLIF ( - 87, ( - 46 ) + COUNT( * ) )
----
-2436

skipif mysql # not compatible
query I rowsort label-4354
SELECT 28 * + NULLIF ( - 87, ( - 46 ) + COUNT ( * ) )
----
-2436

query I rowsort
SELECT ALL - - 10 col1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4356
SELECT ALL + + 89 * 53 AS col0, - MAX( DISTINCT - + 60 ) AS col1
----
4717
60

skipif mysql # not compatible
query II rowsort label-4356
SELECT ALL + + 89 * 53 AS col0, - MAX ( DISTINCT - + 60 ) AS col1
----
4717
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT COUNT( * ) * - COALESCE ( COUNT( * ), + - 54 * + 24 ) * - + 48 + + + 36 - + 3 * + 10
----
54

skipif mysql # not compatible
query I rowsort label-4357
SELECT COUNT ( * ) * - COALESCE ( COUNT ( * ), + - 54 * + 24 ) * - + 48 + + + 36 - + 3 * + 10
----
54

query I rowsort
SELECT DISTINCT - NULLIF ( + ( + 10 ), + 25 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT - COUNT( * ) + - COUNT( * ) - + - 75 * + 80 AS col1
----
5998

skipif mysql # not compatible
query I rowsort label-4359
SELECT - COUNT ( * ) + - COUNT ( * ) - + - 75 * + 80 AS col1
----
5998

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL + - SUM( 32 ) * 50 + - 44 * - MIN( + NULLIF ( + 54, + 13 - 39 ) ) * - ( 60 ) - 90 * 78 AS col0
----
-151180

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + - SUM ( 32 ) * 50 + - 44 * - MIN ( + NULLIF ( + 54, + 13 - 39 ) ) * - ( 60 ) - 90 * 78 AS col0
----
-151180

query I rowsort
SELECT + 3 - 24
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT - CASE 43 WHEN - - 71 THEN ( - - 60 ) WHEN 26 THEN 2 - - COUNT( * ) * 7 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT - CASE 43 WHEN - - 71 THEN ( - - 60 ) WHEN 26 THEN 2 - - COUNT ( * ) * 7 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4363
SELECT - 26 DIV - 44 + + 37 + + 18
----
55

skipif mysql # not compatible
query I rowsort label-4363
SELECT - 26 / - 44 + + 37 + + 18
----
55

query I rowsort
SELECT ALL - 31 + + 28
----
-3

query I rowsort
SELECT + 70 + - + 85
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4366
SELECT ALL - + 17 * 42 - 17 + + 22 - - + CAST( - 37 AS SIGNED ) * COUNT( * ) * 66 + + 93 DIV - 63 col1
----
-3152

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL - + 17 * 42 - 17 + + 22 - - + CAST ( - 37 AS INTEGER ) * COUNT ( * ) * 66 + + 93 / - 63 col1
----
-3152

query I rowsort
SELECT DISTINCT + + 55 + + + ( - 92 ) AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4368
SELECT ALL + 40 / - CAST( NULL AS SIGNED ) + 13 + + + 39 * 61 col1, 16 * - 4 AS col2
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-4368
SELECT ALL + 40 / - CAST ( NULL AS INTEGER ) + 13 + + + 39 * 61 col1, 16 * - 4 AS col2
----
NULL
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4369
SELECT DISTINCT + 82 + - COUNT( * ) + - 50 + 17 - + + COUNT( * ) - - CAST( NULL AS SIGNED ) * + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT + 82 + - COUNT ( * ) + - 50 + 17 - + + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * + 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL + + NULLIF ( - 17, - - 94 * + + 64 + + 88 + COUNT( * ) + + + COUNT( * ) + 68 * + 92 ) + ( - 29 )
----
-46

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL + + NULLIF ( - 17, - - 94 * + + 64 + + 88 + COUNT ( * ) + + + COUNT ( * ) + 68 * + 92 ) + ( - 29 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT SUM( ALL COALESCE ( - 61, + CASE 56 WHEN - + 17 THEN NULL ELSE + + 92 * + 91 END ) )
----
-61

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT SUM ( ALL COALESCE ( - 61, + CASE 56 WHEN - + 17 THEN NULL ELSE + + 92 * + 91 END ) )
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT - 9 * + 24 + - 60 DIV - 9 + - 74 + 1
----
-283

skipif mysql # not compatible
query I rowsort label-4372
SELECT - 9 * + 24 + - 60 / - 9 + - 74 + 1
----
-283

query I rowsort
SELECT DISTINCT + 65 + + - 47
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4374
SELECT ALL - 93 + - CAST( - SUM( ALL NULLIF ( + - 1, + CASE + - 32 WHEN - ( 17 ) THEN - ( 29 ) ELSE NULL END ) ) AS SIGNED ) * + 74 AS col2
----
-167

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL - 93 + - CAST ( - SUM ( ALL NULLIF ( + - 1, + CASE + - 32 WHEN - ( 17 ) THEN - ( 29 ) ELSE NULL END ) ) AS INTEGER ) * + 74 AS col2
----
-167

query I rowsort
SELECT 67 - 65
----
2

query I rowsort
SELECT ALL + 57 * - 36 col2
----
-2052

query I rowsort
SELECT ALL + 48 - + 73 AS col0
----
-25

query II rowsort
SELECT ALL 30 AS col0, - 97
----
30
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4379
SELECT ALL COUNT( * ), 48 + + 5 + 55 AS col0
----
1
108

skipif mysql # not compatible
query II rowsort label-4379
SELECT ALL COUNT ( * ), 48 + + 5 + 55 AS col0
----
1
108

query I rowsort
SELECT DISTINCT + 30 - + - 61 - + + 29 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT MIN( DISTINCT - 53 ) + - 89 AS col2
----
-142

skipif mysql # not compatible
query I rowsort label-4381
SELECT MIN ( DISTINCT - 53 ) + - 89 AS col2
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT ( - + COUNT( * ) ) - + 26 + - 86
----
-113

skipif mysql # not compatible
query I rowsort label-4382
SELECT ( - + COUNT ( * ) ) - + 26 + - 86
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4383
SELECT COUNT( * ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4384
SELECT CASE + 38 WHEN + 94 + + 0 THEN + + ( - 63 ) * - - 64 * 23 WHEN - CASE 73 WHEN - 8 THEN - 55 + CAST( COUNT( * ) + 5 AS SIGNED ) * + 79 END * 27 THEN NULL ELSE NULL END * CASE WHEN - 41 + 86 * - ( 86 ) < NULL THEN + 52 - + 82 WHEN 92 * 44 + COUNT( * ) IS NOT NULL THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT CASE + 38 WHEN + 94 + + 0 THEN + + ( - 63 ) * - - 64 * 23 WHEN - CASE 73 WHEN - 8 THEN - 55 + CAST ( COUNT ( * ) + 5 AS INTEGER ) * + 79 END * 27 THEN NULL ELSE NULL END * CASE WHEN - 41 + 86 * - ( 86 ) < NULL THEN + 52 - + 82 WHEN 92 * 44 + COUNT ( * ) IS NOT NULL THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4385
SELECT 83 AS col0, + 67 DIV - 36 AS col0
----
83
-1

skipif mysql # not compatible
query II rowsort label-4385
SELECT 83 AS col0, + 67 / - 36 AS col0
----
83
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4386
SELECT 92 + - CAST( NULL AS DECIMAL ) + + - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4386
SELECT 92 + - CAST ( NULL AS REAL ) + + - 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL MAX( DISTINCT + - 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL MAX ( DISTINCT + - 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT 11 + - CASE - 56 WHEN + + 12 THEN NULL ELSE - + 52 + 81 END + - COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4388
SELECT 11 + - CASE - 56 WHEN + + 12 THEN NULL ELSE - + 52 + 81 END + - COUNT ( * ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL 82 * + MAX( 60 ) col2
----
4920

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL 82 * + MAX ( 60 ) col2
----
4920

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT - + ( 3 ) * - COUNT( * ) * + + 51 + + COUNT( * )
----
154

skipif mysql # not compatible
query I rowsort label-4390
SELECT - + ( 3 ) * - COUNT ( * ) * + + 51 + + COUNT ( * )
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT COUNT( + ( - 94 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4391
SELECT COUNT ( + ( - 94 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT DISTINCT + 60 * ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT + 60 * ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4393
SELECT + - 53, COUNT( * ) * - 48 + - COUNT( * ) AS col1, CASE + 5 WHEN 76 THEN + + 46 ELSE 31 * ( 43 ) + 45 END + COUNT( 53 ) AS col0
----
-53
-49
1379

skipif mysql # not compatible
query III rowsort label-4393
SELECT + - 53, COUNT ( * ) * - 48 + - COUNT ( * ) AS col1, CASE + 5 WHEN 76 THEN + + 46 ELSE 31 * ( 43 ) + 45 END + COUNT ( 53 ) AS col0
----
-53
-49
1379

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT DISTINCT - + 2 * - 78 + + MIN( 61 )
----
217

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT - + 2 * - 78 + + MIN ( 61 )
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL - - 35 * 56 + 91 * COUNT( ALL - + 76 ) AS col0
----
2051

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL - - 35 * 56 + 91 * COUNT ( ALL - + 76 ) AS col0
----
2051

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT 19 AS col0, - COUNT( * ) * + + 99 AS col0
----
19
-99

skipif mysql # not compatible
query II rowsort label-4396
SELECT 19 AS col0, - COUNT ( * ) * + + 99 AS col0
----
19
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT DISTINCT + 63 * - 98 + - COUNT( 38 ) + - 50 AS col1
----
-6225

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT + 63 * - 98 + - COUNT ( 38 ) + - 50 AS col1
----
-6225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4398
SELECT - 61 * + 32 + COUNT( * ) + + - 71 DIV 13 * - - 58 AS col1, - 42 + 55
----
-2241
13

skipif mysql # not compatible
query II rowsort label-4398
SELECT - 61 * + 32 + COUNT ( * ) + + - 71 / 13 * - - 58 AS col1, - 42 + 55
----
-2241
13

query I rowsort
SELECT + + ( + - 47 ) col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4400
SELECT ALL + SUM( DISTINCT - + 63 ) DIV + + 29
----
-2

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL + SUM ( DISTINCT - + 63 ) / + + 29
----
-2

query I rowsort
SELECT - 6 * + 95 - 78 + - 18 AS col2
----
-666

query II rowsort
SELECT + 90 AS col2, + 4 AS col0
----
90
4

query II rowsort
SELECT ALL + + 73, ( + + 26 ) AS col0
----
73
26

query I rowsort
SELECT DISTINCT - 50 * - 85 AS col2
----
4250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4405
SELECT + - COUNT( * ) DIV + 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4405
SELECT + - COUNT ( * ) / + 14 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL - 15 * - SUM( DISTINCT 34 )
----
510

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL - 15 * - SUM ( DISTINCT 34 )
----
510

query I rowsort
SELECT ALL + 61 - - + 38
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT DISTINCT NULLIF ( + COUNT( * ), - SUM( DISTINCT + + 62 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT NULLIF ( + COUNT ( * ), - SUM ( DISTINCT + + 62 ) ) col2
----
1

query I rowsort
SELECT ALL NULLIF ( + 71, - 78 ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT - 90 + - + CAST( CAST( + 6 AS SIGNED ) AS SIGNED ) + - 50 - 24
----
-170

skipif mysql # not compatible
query I rowsort label-4410
SELECT - 90 + - + CAST ( CAST ( + 6 AS INTEGER ) AS INTEGER ) + - 50 - 24
----
-170

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4411
SELECT DISTINCT - 71 / + CAST( NULL AS DECIMAL ), - 84 col0
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-4411
SELECT DISTINCT - 71 / + CAST ( NULL AS REAL ), - 84 col0
----
NULL
-84

query I rowsort
SELECT ALL ( + 32 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT DISTINCT MAX( ALL - + 76 ), - MIN( + 32 ) AS col2
----
-76
-32

skipif mysql # not compatible
query II rowsort label-4413
SELECT DISTINCT MAX ( ALL - + 76 ), - MIN ( + 32 ) AS col2
----
-76
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL NULLIF ( - + COUNT( * ), - + 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL NULLIF ( - + COUNT ( * ), - + 94 )
----
-1

query II rowsort
SELECT - 60 + - 85, + 5 * - + 74 AS col0
----
-145
-370

query II rowsort
SELECT - 19 * + 58, 34 AS col1
----
-1102
34

query I rowsort
SELECT DISTINCT NULLIF ( ( 85 ), + + 74 )
----
85

query I rowsort
SELECT + 13 + 18 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4419
SELECT ALL + CASE CAST( + 1 AS SIGNED ) WHEN + + 1 / - - 13 + + 49 * + 90 THEN CASE 56 WHEN + 90 / CAST( NULL AS SIGNED ) THEN NULL ELSE + 94 END * - 39 WHEN 34 THEN NULL ELSE - MIN( ALL 42 ) * + 58 + 47 * + 41 END * - 8 AS col1
----
4072

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + CASE CAST ( + 1 AS INTEGER ) WHEN + + 1 / - - 13 + + 49 * + 90 THEN CASE 56 WHEN + 90 / CAST ( NULL AS INTEGER ) THEN NULL ELSE + 94 END * - 39 WHEN 34 THEN NULL ELSE - MIN ( ALL 42 ) * + 58 + 47 * + 41 END * - 8 AS col1
----
4072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4420
SELECT DISTINCT NULLIF ( - + 59, + CASE + - COUNT( * ) WHEN - 75 * SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - - 41 THEN NULL WHEN - COUNT( - 20 ) + CAST( SUM( DISTINCT - 41 ) + + ( 19 + 64 ) * COUNT( * ) AS SIGNED ) THEN - 18 - 6 * 40 END )
----
-59

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT NULLIF ( - + 59, + CASE + - COUNT ( * ) WHEN - 75 * SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - - 41 THEN NULL WHEN - COUNT ( - 20 ) + CAST ( SUM ( DISTINCT - 41 ) + + ( 19 + 64 ) * COUNT ( * ) AS INTEGER ) THEN - 18 - 6 * 40 END )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL CASE - + 6 WHEN - 82 * - + COUNT( * ) + + - 13 * 84 THEN NULL WHEN - - NULLIF ( - - 19, - + ( + 18 ) ) * + 24 - 93 THEN ( COUNT( - 68 ) ) + 21 * - 31 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL CASE - + 6 WHEN - 82 * - + COUNT ( * ) + + - 13 * 84 THEN NULL WHEN - - NULLIF ( - - 19, - + ( + 18 ) ) * + 24 - 93 THEN ( COUNT ( - 68 ) ) + 21 * - 31 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4422
SELECT DISTINCT - 99 * - 74, MIN( + 79 ) * + 77 AS col1
----
7326
6083

skipif mysql # not compatible
query II rowsort label-4422
SELECT DISTINCT - 99 * - 74, MIN ( + 79 ) * + 77 AS col1
----
7326
6083

query I rowsort
SELECT - 53 * 98
----
-5194

query I rowsort
SELECT DISTINCT - 89 * 96 + 70 AS col2
----
-8474

query I rowsort
SELECT ALL + - 43 + 15 * - + 66 AS col1
----
-1033

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4426
SELECT - + CAST( NULL AS SIGNED ) - - + 34 + - 27 * + - ( + - 1 ) / - 16 + - + SUM( ALL - - 60 ) * 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT - + CAST ( NULL AS INTEGER ) - - + 34 + - 27 * + - ( + - 1 ) / - 16 + - + SUM ( ALL - - 60 ) * 10 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4427
SELECT ALL - COUNT( * ) / + 13 + - COUNT( * ) * COUNT( * ) * + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - COUNT ( * ) / + 13 + - COUNT ( * ) * COUNT ( * ) * + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT - 2 * - + CASE 83 WHEN + + ( 60 ) * + 19 * 65 THEN - 75 END * - 33 + ( - 26 ) / + COUNT( * ) + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT - 2 * - + CASE 83 WHEN + + ( 60 ) * + 19 * 65 THEN - 75 END * - 33 + ( - 26 ) / + COUNT ( * ) + 98 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT + MIN( NULLIF ( + - 11, - 45 ) ) * - + NULLIF ( 81, + 8 * + COUNT( * ) * - ( + 79 ) )
----
891

skipif mysql # not compatible
query I rowsort label-4429
SELECT + MIN ( NULLIF ( + - 11, - 45 ) ) * - + NULLIF ( 81, + 8 * + COUNT ( * ) * - ( + 79 ) )
----
891

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT - 25 - - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-4430
SELECT - 25 - - COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4431
SELECT ALL + + 70 DIV 89 + + - 31 + + 66 * 58 + + COUNT( * ) * - 55 + 15 + - 6 * 90
----
3217

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL + + 70 / 89 + + - 31 + + 66 * 58 + + COUNT ( * ) * - 55 + 15 + - 6 * 90
----
3217

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT DISTINCT - 66 DIV 69 + + 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT - 66 / 69 + + 79 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT ALL + MAX( ALL + 27 ) * + COUNT( * ) + - + 93 + 48
----
-18

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL + MAX ( ALL + 27 ) * + COUNT ( * ) + - + 93 + 48
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4434
SELECT ALL + 37 DIV + 3 + ( - - 98 ) AS col2, ( - SUM( + + 12 ) ) + + + 88 DIV 72
----
110
-11

skipif mysql # not compatible
query II rowsort label-4434
SELECT ALL + 37 / + 3 + ( - - 98 ) AS col2, ( - SUM ( + + 12 ) ) + + + 88 / 72
----
110
-11

query I rowsort
SELECT - 59 * - - 60 - 54 AS col0
----
-3594

query I rowsort
SELECT ALL + 23 * + 17 + - 67 AS col1
----
324

query I rowsort
SELECT DISTINCT 26 * ( - 21 ) - 31 AS col1
----
-577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4438
SELECT + CAST( + 76 AS SIGNED ) * + COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4438
SELECT + CAST ( + 76 AS INTEGER ) * + COUNT ( * ) AS col0
----
76

query I rowsort
SELECT ALL 44 * ( + - 32 )
----
-1408

query I rowsort
SELECT ALL - 54 * - - 45
----
-2430

query I rowsort
SELECT + 88 - - - 40 + + - 53 * - 92
----
4924

query I rowsort
SELECT DISTINCT + ( - 36 )
----
-36

query I rowsort
SELECT - 79 * 5 + 93
----
-302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT + CAST( NULL AS SIGNED ) - + - 18 + + CASE + + 74 WHEN - + COUNT( * ) - - + 78 / ( - 18 ) - + + 83 + 79 THEN 43 ELSE + 70 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT + CAST ( NULL AS INTEGER ) - + - 18 + + CASE + + 74 WHEN - + COUNT ( * ) - - + 78 / ( - 18 ) - + + 83 + 79 THEN 43 ELSE + 70 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT + 54 * + SUM( 12 ) + + 30 * - + 76 AS col0
----
-1632

skipif mysql # not compatible
query I rowsort label-4445
SELECT + 54 * + SUM ( 12 ) + + 30 * - + 76 AS col0
----
-1632

query I rowsort
SELECT ALL + 77 * - - 46 - + 89 AS col1
----
3453

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT DISTINCT 95 * NULLIF ( + + 7, + CASE + MIN( - 37 ) WHEN - 46 THEN - - 18 WHEN + - COUNT( * ) - + 39 + - 24 * - 36 THEN 70 END ) - 78
----
587

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT 95 * NULLIF ( + + 7, + CASE + MIN ( - 37 ) WHEN - 46 THEN - - 18 WHEN + - COUNT ( * ) - + 39 + - 24 * - 36 THEN 70 END ) - 78
----
587

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT MIN( ALL 83 ) * COUNT( * ) + - - COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-4448
SELECT MIN ( ALL 83 ) * COUNT ( * ) + - - COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL 70 * - MIN( ALL + + 74 ) / + 91 - + CASE + + COUNT( DISTINCT - 63 ) WHEN COUNT( * ) * - + 20 THEN - 13 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL 70 * - MIN ( ALL + + 74 ) / + 91 - + CASE + + COUNT ( DISTINCT - 63 ) WHEN COUNT ( * ) * - + 20 THEN - 13 END AS col2
----
NULL

query I rowsort
SELECT + 67 * + + 62
----
4154

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL ( COALESCE ( COUNT( * ), + 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL ( COALESCE ( COUNT ( * ), + 37 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT + CASE - ( - 1 ) WHEN - ( + 53 ) / - 43 + - MAX( DISTINCT - 14 ) / 77 * - 4 THEN NULL WHEN 79 THEN 21 * - 89 END + + 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT + CASE - ( - 1 ) WHEN - ( + 53 ) / - 43 + - MAX ( DISTINCT - 14 ) / 77 * - 4 THEN NULL WHEN 79 THEN 21 * - 89 END + + 3 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4453
SELECT - 19 DIV + NULLIF ( ( - 25 ), + + 88 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4453
SELECT - 19 / + NULLIF ( ( - 25 ), + + 88 ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT ALL CASE + + 92 WHEN + - 23 THEN 38 + 99 * - + 35 ELSE - + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL CASE + + 92 WHEN + - 23 THEN 38 + 99 * - + 35 ELSE - + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4455
SELECT - CAST( + + COALESCE ( + + AVG ( DISTINCT - 44 ), + 74 ) AS SIGNED ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4455
SELECT - CAST ( + + COALESCE ( + + AVG ( DISTINCT - 44 ), + 74 ) AS INTEGER ) AS col2
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4456
SELECT + CAST( NULL AS DECIMAL ) - + 8 + NULLIF ( + - 49, + - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT + CAST ( NULL AS REAL ) - + 8 + NULLIF ( + - 49, + - 1 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4457
SELECT + MAX( 1 ) DIV + + 41
----
0

skipif mysql # not compatible
query I rowsort label-4457
SELECT + MAX ( 1 ) / + + 41
----
0

query I rowsort
SELECT ALL 89 * + + 94
----
8366

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT MAX( + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT MAX ( + 90 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4460
SELECT ALL CAST( 99 AS SIGNED ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL CAST ( 99 AS INTEGER ) AS col0
----
99

query I rowsort
SELECT ALL COALESCE ( + + 27, + 58 * - - 22 ) AS col2
----
27

query I rowsort
SELECT ALL - 95 + 5
----
-90

query I rowsort
SELECT 1 + - 70
----
-69

query I rowsort
SELECT ALL + 68 + + 18
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT ALL - COALESCE ( + + 38, + COUNT( * ) + + 44 + - - 70 + 37 )
----
-38

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL - COALESCE ( + + 38, + COUNT ( * ) + + 44 + - - 70 + 37 )
----
-38

query I rowsort
SELECT + 22 + + 47 AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4467
SELECT ALL - - 11 + CASE + ( 29 ) WHEN + 83 * 30 + - - CAST( NULL AS SIGNED ) + 61 * + 91 * + COUNT( * ) THEN 50 - + 79 WHEN 24 / - CASE 54 WHEN - 38 THEN NULL ELSE - 96 END THEN 8 END * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL - - 11 + CASE + ( 29 ) WHEN + 83 * 30 + - - CAST ( NULL AS INTEGER ) + 61 * + 91 * + COUNT ( * ) THEN 50 - + 79 WHEN 24 / - CASE 54 WHEN - 38 THEN NULL ELSE - 96 END THEN 8 END * - 77
----
NULL

query I rowsort
SELECT DISTINCT - ( - 87 )
----
87

query I rowsort
SELECT DISTINCT - 16 * + - 70
----
1120

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT - COALESCE ( - CASE - + 92 WHEN + - AVG ( 8 ) + + 46 * 86 THEN - 77 * 10 ELSE NULL END, 3 ) DIV + 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4470
SELECT - COALESCE ( - CASE - + 92 WHEN + - AVG ( 8 ) + + 46 * 86 THEN - 77 * 10 ELSE NULL END, 3 ) / + 63 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4471
SELECT + COALESCE ( - 90, - 69 * - + COUNT( * ) + COUNT( * ) + - 85 * 75 * - 73, - + 89 DIV - 75 * ( - NULLIF ( 79, - 78 DIV + 20 ) * 70 ) ) col1
----
-90

skipif mysql # not compatible
query I rowsort label-4471
SELECT + COALESCE ( - 90, - 69 * - + COUNT ( * ) + COUNT ( * ) + - 85 * 75 * - 73, - + 89 / - 75 * ( - NULLIF ( 79, - 78 / + 20 ) * 70 ) ) col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT DISTINCT - MIN( DISTINCT 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT - MIN ( DISTINCT 20 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL + + COALESCE ( + MAX( ALL + 22 ), - 89 * 82 ) - + 47 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL + + COALESCE ( + MAX ( ALL + 22 ), - 89 * 82 ) - + 47 AS col2
----
-25

query I rowsort
SELECT + ( - 88 ) AS col1
----
-88

query I rowsort
SELECT 90 + 52
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4476
SELECT + 38 DIV - SUM( ALL - 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4476
SELECT + 38 / - SUM ( ALL - 37 ) AS col1
----
1

query II rowsort
SELECT DISTINCT - 51, + 33 AS col2
----
-51
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL - + ( - + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL - + ( - + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4479
SELECT COUNT( * ) * - 32 + - + COUNT( * ), + COUNT( * ) AS col2
----
-33
1

skipif mysql # not compatible
query II rowsort label-4479
SELECT COUNT ( * ) * - 32 + - + COUNT ( * ), + COUNT ( * ) AS col2
----
-33
1

query I rowsort
SELECT DISTINCT 3 * 69
----
207

query I rowsort
SELECT 96 * + 93
----
8928

query I rowsort
SELECT DISTINCT 8 * - - 63
----
504

onlyif mysql # aggregate syntax: 
query II rowsort label-4483
SELECT + 73 AS col1, 15 * - COUNT( * ) + + 5 AS col0
----
73
-10

skipif mysql # not compatible
query II rowsort label-4483
SELECT + 73 AS col1, 15 * - COUNT ( * ) + + 5 AS col0
----
73
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-4484
SELECT ALL - 51, + SUM( DISTINCT + - 50 ) AS col1
----
-51
-50

skipif mysql # not compatible
query II rowsort label-4484
SELECT ALL - 51, + SUM ( DISTINCT + - 50 ) AS col1
----
-51
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4485
SELECT - 82 col2, + ( 38 ) + + ( + SUM( ALL + - 44 ) )
----
-82
-6

skipif mysql # not compatible
query II rowsort label-4485
SELECT - 82 col2, + ( 38 ) + + ( + SUM ( ALL + - 44 ) )
----
-82
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4486
SELECT ALL CASE + 76 WHEN - + 10 THEN - 74 * MAX( ALL + 74 ) END + + - 68 + - 74 * - + 48, + 93 AS col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-4486
SELECT ALL CASE + 76 WHEN - + 10 THEN - 74 * MAX ( ALL + 74 ) END + + - 68 + - 74 * - + 48, + 93 AS col1
----
NULL
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4487
SELECT ( 50 ) + - COUNT( * ) + - 94 * - 74 / - CAST( NULL AS SIGNED ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT ( 50 ) + - COUNT ( * ) + - 94 * - 74 / - CAST ( NULL AS INTEGER ) / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT COUNT( * ) * - 29 * 68
----
-1972

skipif mysql # not compatible
query I rowsort label-4488
SELECT COUNT ( * ) * - 29 * 68
----
-1972

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT MIN( - 14 ) + - - 14
----
0

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT MIN ( - 14 ) + - - 14
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT ALL CASE + 12 WHEN + 89 THEN NULL WHEN - - CAST( NULL AS SIGNED ) + 90 THEN - 96 ELSE NULL END + + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL CASE + 12 WHEN + 89 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) + 90 THEN - 96 ELSE NULL END + + 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT ALL COUNT( * ) + + 36 - + 42 * - 55 AS col1
----
2347

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL COUNT ( * ) + + 36 - + 42 * - 55 AS col1
----
2347

query I rowsort
SELECT DISTINCT 94 + - - 57
----
151

query I rowsort
SELECT 46 + + 75 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL + 39 * - COUNT( * ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL + 39 * - COUNT ( * ) col0
----
-39

query II rowsort
SELECT 64 AS col1, 6 * - 65
----
64
-390

query I rowsort
SELECT + 54 + 69
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT - 93 * + 0 + + CASE - MIN( + - 60 ) WHEN + 21 THEN 3 ELSE - - 20 END + + 10 + - + 22
----
8

skipif mysql # not compatible
query I rowsort label-4497
SELECT - 93 * + 0 + + CASE - MIN ( + - 60 ) WHEN + 21 THEN 3 ELSE - - 20 END + + 10 + - + 22
----
8

query I rowsort
SELECT - - 66 col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT ALL + ( + CAST( + 65 AS SIGNED ) )
----
65

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + ( + CAST ( + 65 AS INTEGER ) )
----
65

query II rowsort
SELECT 7 AS col1, 22
----
7
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL MAX( ALL 30 ) + - - 28
----
58

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL MAX ( ALL 30 ) + - - 28
----
58

query I rowsort
SELECT ALL + 56 + - 93 * - 38 - + 34 col1
----
3556

onlyif mysql # aggregate syntax: 
query II rowsort label-4503
SELECT - 74 AS col2, + NULLIF ( 55, + + 88 * - + 19 ) * + + COUNT( * ) + - 8 + + 89 * COUNT( * ) + 74
----
-74
210

skipif mysql # not compatible
query II rowsort label-4503
SELECT - 74 AS col2, + NULLIF ( 55, + + 88 * - + 19 ) * + + COUNT ( * ) + - 8 + + 89 * COUNT ( * ) + 74
----
-74
210

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT 36 * CASE + 38 WHEN + 73 + + 54 THEN - - 24 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT 36 * CASE + 38 WHEN + 73 + + 54 THEN - - 24 END * COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT ALL + 12 DIV - + 84 - - - 95
----
-95

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL + 12 / - + 84 - - - 95
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4506
SELECT MIN( - 55 ) DIV 33 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4506
SELECT MIN ( - 55 ) / 33 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4507
SELECT + 97 AS col0, + 32 DIV + 9 DIV + - ( + COUNT( * ) ) + + + 32 * - 68
----
97
-2179

skipif mysql # not compatible
query II rowsort label-4507
SELECT + 97 AS col0, + 32 / + 9 / + - ( + COUNT ( * ) ) + + + 32 * - 68
----
97
-2179

query I rowsort
SELECT + NULLIF ( 19, + - 13 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + - CASE - SUM( 65 ) WHEN - - COUNT( * ) THEN - ( + 50 ) + + ( + 0 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT + - CASE - SUM ( 65 ) WHEN - - COUNT ( * ) THEN - ( + 50 ) + + ( + 0 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT DISTINCT - COUNT( ALL + 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - COUNT ( ALL + 1 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT COUNT( - + 93 ) * COUNT( * ) - + 61 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4511
SELECT COUNT ( - + 93 ) * COUNT ( * ) - + 61 AS col2
----
-60

query II rowsort
SELECT ALL - 35, + 79 + + 53 AS col2
----
-35
132

query I rowsort
SELECT - 45 * - 2 * + 0 + - ( - 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT - NULLIF ( + - 41, + 23 - NULLIF ( - - 39, + + COUNT( * ) * - + COUNT( * ) * + 49 ) + - ( + - 60 ) * + + 33 ) * + COUNT( * ) + - 94 * 33
----
-3061

skipif mysql # not compatible
query I rowsort label-4514
SELECT - NULLIF ( + - 41, + 23 - NULLIF ( - - 39, + + COUNT ( * ) * - + COUNT ( * ) * + 49 ) + - ( + - 60 ) * + + 33 ) * + COUNT ( * ) + - 94 * 33
----
-3061

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT DISTINCT + 27 * - COUNT( * ) + 60
----
33

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + 27 * - COUNT ( * ) + 60
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4516
SELECT DISTINCT - - 94, - 50 * - MIN( + 96 ) AS col1
----
94
4800

skipif mysql # not compatible
query II rowsort label-4516
SELECT DISTINCT - - 94, - 50 * - MIN ( + 96 ) AS col1
----
94
4800

query I rowsort
SELECT 84 * - 97 * + + ( - 97 ) * 47
----
37146732

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT 61 + 92 + + 39 + - COUNT( * ) * + 14
----
178

skipif mysql # not compatible
query I rowsort label-4518
SELECT 61 + 92 + + 39 + - COUNT ( * ) * + 14
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT 96 DIV - ( - - 54 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4519
SELECT 96 / - ( - - 54 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT 67 * + + COALESCE ( - + SUM( DISTINCT 77 ), + 86, + + 83 )
----
-5159

skipif mysql # not compatible
query I rowsort label-4520
SELECT 67 * + + COALESCE ( - + SUM ( DISTINCT 77 ), + 86, + + 83 )
----
-5159

onlyif mysql # DIV for integer division: 
query II rowsort label-4521
SELECT 3 * 26 + - 47 * - + 2 - + 99 + + 66 DIV - - 79 + 44 + + 58 DIV 53, 65 AS col1
----
118
65

skipif mysql # not compatible
query II rowsort label-4521
SELECT 3 * 26 + - 47 * - + 2 - + 99 + + 66 / - - 79 + 44 + + 58 / 53, 65 AS col1
----
118
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT 6 - - - COUNT( * ) + + 26
----
31

skipif mysql # not compatible
query I rowsort label-4522
SELECT 6 - - - COUNT ( * ) + + 26
----
31

query II rowsort
SELECT ALL - ( + - 32 ), 12 col0
----
32
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4524
SELECT 86 DIV COUNT( * ) DIV + + 39
----
2

skipif mysql # not compatible
query I rowsort label-4524
SELECT 86 / COUNT ( * ) / + + 39
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4525
SELECT ALL + 58 + + - 6 AS col2, CAST( NULL AS DECIMAL ) - - + 39 + + 65 + 20
----
52
NULL

skipif mysql # not compatible
query II rowsort label-4525
SELECT ALL + 58 + + - 6 AS col2, CAST ( NULL AS REAL ) - - + 39 + + 65 + 20
----
52
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 96, - 47 * + 11 - + 60 )
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT COUNT( * ) + - 36 - - + 34 DIV 55
----
-35

skipif mysql # not compatible
query I rowsort label-4527
SELECT COUNT ( * ) + - 36 - - + 34 / 55
----
-35

query I rowsort
SELECT ALL - ( - 97 )
----
97

query I rowsort
SELECT DISTINCT - 13 + 55 AS col2
----
42

query I rowsort
SELECT 40 * 44 + - 66
----
1694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4531
SELECT ALL COUNT( * ) * - CAST( 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL COUNT ( * ) * - CAST ( 14 AS INTEGER )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4533
SELECT - MAX( - NULLIF ( - 17, + CASE WHEN NULL IS NOT NULL THEN - 35 END - 30 ) ) AS col0, + CAST( AVG ( ALL + + 60 ) AS SIGNED ) AS col2
----
-17
60

skipif mysql # not compatible
query II rowsort label-4533
SELECT - MAX ( - NULLIF ( - 17, + CASE WHEN NULL IS NOT NULL THEN - 35 END - 30 ) ) AS col0, + CAST ( AVG ( ALL + + 60 ) AS INTEGER ) AS col2
----
-17
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4534
SELECT - 42 + + 19 DIV + 75 * + COUNT( ALL + 82 ) AS col2, - ( CASE + 27 WHEN + 4 THEN NULL WHEN + ( - - 2 ) * + - 15 DIV 48 THEN COUNT( * ) + - 74 END )
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-4534
SELECT - 42 + + 19 / + 75 * + COUNT ( ALL + 82 ) AS col2, - ( CASE + 27 WHEN + 4 THEN NULL WHEN + ( - - 2 ) * + - 15 / 48 THEN COUNT ( * ) + - 74 END )
----
-42
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4535
SELECT + COUNT( * ) DIV + 52 AS col1, CAST( + + 52 AS SIGNED ) col2
----
0
52

skipif mysql # not compatible
query II rowsort label-4535
SELECT + COUNT ( * ) / + 52 AS col1, CAST ( + + 52 AS INTEGER ) col2
----
0
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL COUNT( * ) * + - 3 * - + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL COUNT ( * ) * + - 3 * - + COUNT ( * ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT - 18 + - SUM( ALL - - 33 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4537
SELECT - 18 + - SUM ( ALL - - 33 ) AS col1
----
-51

query II rowsort
SELECT ALL 6 + + 18 AS col2, - 50 + + 52 + - 60
----
24
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + 12 + - 12 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4539
SELECT + 12 + - 12 + - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT DISTINCT COALESCE ( - 36, COUNT( DISTINCT - 27 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT COALESCE ( - 36, COUNT ( DISTINCT - 27 ) )
----
-36

query I rowsort
SELECT + 91 + + COALESCE ( 69, 43 )
----
160

onlyif mysql # DIV for integer division: 
query II rowsort label-4542
SELECT ALL + 66 - + 13, + 75 DIV + 92 col1
----
53
0

skipif mysql # not compatible
query II rowsort label-4542
SELECT ALL + 66 - + 13, + 75 / + 92 col1
----
53
0

query I rowsort
SELECT + + 5 - - 84 + - + 66 * - + 22 col0
----
1541

query I rowsort
SELECT + - ( - 56 ) + + 55 AS col1
----
111

query I rowsort
SELECT + - 30 - - 47
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL - 67 * - + 97 * 8 * + MAX( ALL + + 58 )
----
3015536

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - 67 * - + 97 * 8 * + MAX ( ALL + + 58 )
----
3015536

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT + ( + + 95 ) * + 84 + + COUNT( * )
----
7981

skipif mysql # not compatible
query I rowsort label-4547
SELECT + ( + + 95 ) * + 84 + + COUNT ( * )
----
7981

query I rowsort
SELECT DISTINCT 33 * 24 * ( + - 86 ) * + - ( + 2 )
----
136224

query I rowsort
SELECT + COALESCE ( - - 9, + - 96 - - 43 - - - 89 * - + 59 * - 73, + 0 * + + 67 * + 8 * - + 36 ) + + + 48
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT ALL 90 * + - MAX( - 80 ) AS col1
----
7200

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL 90 * + - MAX ( - 80 ) AS col1
----
7200

query I rowsort
SELECT DISTINCT 95 * - 79 AS col2
----
-7505

query I rowsort
SELECT - + 4 * 70 AS col0
----
-280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4553
SELECT DISTINCT + CAST( - 24 AS SIGNED ), + 83 col0
----
-24
83

skipif mysql # not compatible
query II rowsort label-4553
SELECT DISTINCT + CAST ( - 24 AS INTEGER ), + 83 col0
----
-24
83

query I rowsort
SELECT ( + + 47 ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT + COALESCE ( + + 11, + CAST( + + 41 AS SIGNED ) + - + 11, 86 ) * - - 37
----
407

skipif mysql # not compatible
query I rowsort label-4555
SELECT + COALESCE ( + + 11, + CAST ( + + 41 AS INTEGER ) + - + 11, 86 ) * - - 37
----
407

query I rowsort
SELECT ( - + 0 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4557
SELECT ALL + 83 * + 64 + + 85 + COUNT( * ) - - 9 DIV + SUM( ALL + CAST( 51 AS SIGNED ) ) AS col2, + 19
----
5398
19

skipif mysql # not compatible
query II rowsort label-4557
SELECT ALL + 83 * + 64 + + 85 + COUNT ( * ) - - 9 / + SUM ( ALL + CAST ( 51 AS INTEGER ) ) AS col2, + 19
----
5398
19

query II rowsort
SELECT ALL + 76 col2, + 17 + + 43 * - 28 AS col1
----
76
-1187

query I rowsort
SELECT 63 * + + 8 + - - 76
----
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT ALL + CAST( + ( - + 53 ) AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL + CAST ( + ( - + 53 ) AS INTEGER )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4561
SELECT 72 * + 51 - + 39 AS col2, CAST( + + 67 AS SIGNED ) + + 94
----
3633
161

skipif mysql # not compatible
query II rowsort label-4561
SELECT 72 * + 51 - + 39 AS col2, CAST ( + + 67 AS INTEGER ) + + 94
----
3633
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT NULLIF ( + 32, + 69 / - SUM( ALL - 64 ) )
----
32

skipif mysql # not compatible
query I rowsort label-4562
SELECT NULLIF ( + 32, + 69 / - SUM ( ALL - 64 ) )
----
32

query I rowsort
SELECT - 1 - 36 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT - COUNT( * ) * + ( 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4564
SELECT - COUNT ( * ) * + ( 92 ) AS col0
----
-92

query I rowsort
SELECT ALL + ( + ( + 21 ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT DISTINCT + SUM( DISTINCT - + 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT + SUM ( DISTINCT - + 86 )
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-4567
SELECT COUNT( * ), - 81 + - 85 AS col0
----
1
-166

skipif mysql # not compatible
query II rowsort label-4567
SELECT COUNT ( * ), - 81 + - 85 AS col0
----
1
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4568
SELECT ALL CAST( NULL AS SIGNED ) AS col1, COUNT( - 47 ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4568
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COUNT ( - 47 ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4569
SELECT - 12 + - 69 + + + CAST( - - COUNT( * ) AS SIGNED ) + - + 61
----
-141

skipif mysql # not compatible
query I rowsort label-4569
SELECT - 12 + - 69 + + + CAST ( - - COUNT ( * ) AS INTEGER ) + - + 61
----
-141

query I rowsort
SELECT - 88 + - - ( - 38 ) + + CASE + 44 WHEN + 39 THEN + - 25 ELSE - 65 * + 26 * 2 END * - - NULLIF ( ( + 24 ), - 28 ) AS col1
----
-81246

query I rowsort
SELECT ALL ( + 25 )
----
25

query I rowsort
SELECT ALL + 56 * - 22
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT - + 51 * 18 * MAX( + + 27 )
----
-24786

skipif mysql # not compatible
query I rowsort label-4573
SELECT - + 51 * 18 * MAX ( + + 27 )
----
-24786

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL - + COUNT( * ) * - - 63 * + 33 * + COUNT( * ) + 13 + - 84 * - 47 AS col2
----
1882

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL - + COUNT ( * ) * - - 63 * + 33 * + COUNT ( * ) + 13 + - 84 * - 47 AS col2
----
1882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4575
SELECT 34 * + - CASE - - 99 WHEN - + CAST( NULL AS SIGNED ) THEN NULL ELSE + + 43 END * CASE + 4 WHEN - ( + 34 ) THEN + 72 END + ( - ( 85 ) ) + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT 34 * + - CASE - - 99 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 43 END * CASE + 4 WHEN - ( + 34 ) THEN + 72 END + ( - ( 85 ) ) + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT DISTINCT - 29 * - COUNT( * ) + - 9 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT - 29 * - COUNT ( * ) + - 9 AS col1
----
20

query I rowsort
SELECT + 25 + - + 81 AS col0
----
-56

query I rowsort
SELECT - 69 * - + 71 AS col1
----
4899

query I rowsort
SELECT + 38 + - 38 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4580
SELECT - 42, + 56 DIV 77 AS col2
----
-42
0

skipif mysql # not compatible
query II rowsort label-4580
SELECT - 42, + 56 / 77 AS col2
----
-42
0

query I rowsort
SELECT ALL - NULLIF ( - 43, - 7 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT ALL MAX( + 31 ) col2
----
31

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL MAX ( + 31 ) col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4583
SELECT - NULLIF ( COUNT( * ), ( 19 ) ) AS col2, MAX( + CAST( 36 AS SIGNED ) ) AS col1
----
-1
36

skipif mysql # not compatible
query II rowsort label-4583
SELECT - NULLIF ( COUNT ( * ), ( 19 ) ) AS col2, MAX ( + CAST ( 36 AS INTEGER ) ) AS col1
----
-1
36

query I rowsort
SELECT - + 63 - + 70 - - + 67 AS col1
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4585
SELECT - 77 AS col0, + 67 * + 21 * + 68 * + 85 * + + 32 + + + 75 + - - CAST( NULL AS DECIMAL ) * + 77 * 7
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-4585
SELECT - 77 AS col0, + 67 * + 21 * + 68 * + 85 * + + 32 + + + 75 + - - CAST ( NULL AS REAL ) * + 77 * 7
----
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT + 85 + + NULLIF ( + - CAST( 45 AS SIGNED ), - ( 37 ) ) * - + CASE 29 WHEN + + 41 THEN + - 60 END + + + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT + 85 + + NULLIF ( + - CAST ( 45 AS INTEGER ), - ( 37 ) ) * - + CASE 29 WHEN + + 41 THEN + - 60 END + + + 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL 24 * - + 17 * - 3 * + + MIN( - - 89 ) + 40
----
108976

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL 24 * - + 17 * - 3 * + + MIN ( - - 89 ) + 40
----
108976

query I rowsort
SELECT ALL + CASE + 60 WHEN - - 20 THEN NULL WHEN + + COALESCE ( 45, - 92 / - 18, - - ( + - 74 ) / 39 / - - 71 ) THEN + ( + 25 ) * - 51 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT DISTINCT - ( 44 ) DIV - + 45 + - COUNT( * ) * - 66 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT - ( 44 ) / - + 45 + - COUNT ( * ) * - 66 AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4590
SELECT ALL + 39 DIV + 49 * 93 * + 65 + + COUNT( * ) DIV 10
----
0

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + 39 / + 49 * 93 * + 65 + + COUNT ( * ) / 10
----
0

query I rowsort
SELECT + 85 - + 57 AS col2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4592
SELECT ALL 34 DIV - + 42 + - 23 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL 34 / - + 42 + - 23 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL + SUM( DISTINCT - 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL + SUM ( DISTINCT - 65 ) AS col1
----
-65

query I rowsort
SELECT 76 * + ( - 62 ) * + 56 * + 94 + - + 56 AS col0
----
-24804024

query I rowsort
SELECT ALL 43 + - 62 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL - MAX( ALL - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL - MAX ( ALL - 0 ) AS col2
----
0

query I rowsort
SELECT 77 * + 26 + + 6
----
2008

query I rowsort
SELECT 40 - 69 - + 78
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4599
SELECT ALL 13 DIV COUNT( * ) col0, 8 - + NULLIF ( + CAST( + 67 AS SIGNED ), 32 ) AS col0
----
13
-59

skipif mysql # not compatible
query II rowsort label-4599
SELECT ALL 13 / COUNT ( * ) col0, 8 - + NULLIF ( + CAST ( + 67 AS INTEGER ), 32 ) AS col0
----
13
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL - ( + + MIN( DISTINCT - - 86 ) ) - + ( - MAX( DISTINCT - 60 ) ) - NULLIF ( + 28, - COUNT( * ) / + 42 + + 43 * - 23 + + 53 + - 7 ) + + 75
----
-99

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - ( + + MIN ( DISTINCT - - 86 ) ) - + ( - MAX ( DISTINCT - 60 ) ) - NULLIF ( + 28, - COUNT ( * ) / + 42 + + 43 * - 23 + + 53 + - 7 ) + + 75
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4601
SELECT DISTINCT + 23 * COALESCE ( COUNT( * ), - 62, - ( + 72 ) * 39 + - COUNT( * ) ) DIV - + 78
----
0

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT + 23 * COALESCE ( COUNT ( * ), - 62, - ( + 72 ) * 39 + - COUNT ( * ) ) / - + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT DISTINCT - MAX( ALL - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT - MAX ( ALL - 45 )
----
45

query I rowsort
SELECT ALL - 5 * + - 22 * - - 41 AS col2
----
4510

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL 70 * + 30 * + + COUNT( * ) * + + 19
----
39900

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL 70 * + 30 * + + COUNT ( * ) * + + 19
----
39900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4605
SELECT ALL COALESCE ( - + MAX( DISTINCT + 89 ), - - 43 * - 7 + - 0 + 84 * + 69 * + 74 + + 41, - 17, + + COUNT( * ) DIV + COUNT( * ) + - NULLIF ( - 96, + SUM( + 51 ) ) ) - + 60
----
-149

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL COALESCE ( - + MAX ( DISTINCT + 89 ), - - 43 * - 7 + - 0 + 84 * + 69 * + 74 + + 41, - 17, + + COUNT ( * ) / + COUNT ( * ) + - NULLIF ( - 96, + SUM ( + 51 ) ) ) - + 60
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - - MIN( ALL 3 ) * + COALESCE ( COUNT( * ), - 2 ) + - CASE - COUNT( * ) WHEN COUNT( * ) THEN COUNT( * ) * + 52 + 95 ELSE + 55 END * + 44 * - 16
----
38723

skipif mysql # not compatible
query I rowsort label-4606
SELECT - - MIN ( ALL 3 ) * + COALESCE ( COUNT ( * ), - 2 ) + - CASE - COUNT ( * ) WHEN COUNT ( * ) THEN COUNT ( * ) * + 52 + 95 ELSE + 55 END * + 44 * - 16
----
38723

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT 41 * MAX( 69 ) * 24 AS col1
----
67896

skipif mysql # not compatible
query I rowsort label-4607
SELECT 41 * MAX ( 69 ) * 24 AS col1
----
67896

query I rowsort
SELECT ALL - ( - 36 ) * - 80 AS col2
----
-2880

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4609
SELECT - 39 + + 71 * - COUNT( - - CAST( NULL AS DECIMAL ) )
----
-39

skipif mysql # not compatible
query I rowsort label-4609
SELECT - 39 + + 71 * - COUNT ( - - CAST ( NULL AS REAL ) )
----
-39

query I rowsort
SELECT 21 * - 42 + 0 * 5 + - - 30 + + 13
----
-839

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT + SUM( DISTINCT + - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-4611
SELECT + SUM ( DISTINCT + - 41 )
----
-41

query I rowsort
SELECT ALL - COALESCE ( + 11, - 95, ( + 25 ) ) col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4613
SELECT - 55 + + COUNT( * ) DIV MAX( 28 )
----
-55

skipif mysql # not compatible
query I rowsort label-4613
SELECT - 55 + + COUNT ( * ) / MAX ( 28 )
----
-55

query I rowsort
SELECT 21 - - 58
----
79

query I rowsort
SELECT DISTINCT + 64 col1
----
64

query I rowsort
SELECT ALL - + 9 + - - 78 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT 23 + + 82 + COUNT( ALL - 10 ) + - + 28 col1
----
78

skipif mysql # not compatible
query I rowsort label-4617
SELECT 23 + + 82 + COUNT ( ALL - 10 ) + - + 28 col1
----
78

query I rowsort
SELECT ALL + 48 * 43 AS col0
----
2064

query I rowsort
SELECT 69 * - + COALESCE ( - 27, 24 ) * 15
----
27945

query I rowsort
SELECT ALL - 32 + - - 37
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4621
SELECT 96 + + 53 * + + CAST( NULL AS SIGNED ) AS col0, + ( - 34 ) AS col0
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-4621
SELECT 96 + + 53 * + + CAST ( NULL AS INTEGER ) AS col0, + ( - 34 ) AS col0
----
NULL
-34

query I rowsort
SELECT ALL - 81 * - + 11
----
891

query I rowsort
SELECT DISTINCT + 26 + 62 col2
----
88

query III rowsort
SELECT ALL 13 AS col0, 96 + - 23 AS col1, + 33 + + 40 + 80 * + + ( + - 58 ) * + - 25
----
13
73
116073

query I rowsort
SELECT ALL + 8 + - 63
----
-55

query I rowsort
SELECT 95 * 18 * + 47
----
80370

query I rowsort
SELECT 31 * - 36 AS col1
----
-1116

onlyif mysql # DIV for integer division: 
query I rowsort label-4628
SELECT 0 DIV - - 20 + 64 DIV - 54
----
-1

skipif mysql # not compatible
query I rowsort label-4628
SELECT 0 / - - 20 + 64 / - 54
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4629
SELECT - 42 DIV - MAX( - 41 ) + - 73 * - SUM( DISTINCT + 61 )
----
4452

skipif mysql # not compatible
query I rowsort label-4629
SELECT - 42 / - MAX ( - 41 ) + - 73 * - SUM ( DISTINCT + 61 )
----
4452

query I rowsort
SELECT 21 * + - 28 AS col0
----
-588

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT ALL - 36 DIV - - 26 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL - 36 / - - 26 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4632
SELECT ALL - 95 AS col1, - COUNT( + 85 )
----
-95
-1

skipif mysql # not compatible
query II rowsort label-4632
SELECT ALL - 95 AS col1, - COUNT ( + 85 )
----
-95
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT DISTINCT COUNT( * ) * 40
----
40

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT COUNT ( * ) * 40
----
40

query II rowsort
SELECT ALL - 11 AS col1, 3
----
-11
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT COUNT( * ) * - 62 * 86 + - - 51
----
-5281

skipif mysql # not compatible
query I rowsort label-4635
SELECT COUNT ( * ) * - 62 * 86 + - - 51
----
-5281

onlyif mysql # aggregate syntax: 
query II rowsort label-4636
SELECT 82 AS col2, COUNT( - - 24 )
----
82
1

skipif mysql # not compatible
query II rowsort label-4636
SELECT 82 AS col2, COUNT ( - - 24 )
----
82
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4637
SELECT ALL CAST( NULL AS SIGNED ) * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL CAST ( NULL AS INTEGER ) * + 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT - 22 * + CAST( NULL AS SIGNED ) - + ( - 30 ) * 99 * + 55 * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT - 22 * + CAST ( NULL AS INTEGER ) - + ( - 30 ) * 99 * + 55 * + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT CASE 87 WHEN + CASE 76 WHEN SUM( - 5 ) THEN - 25 ELSE - 22 END + + 27 * + ( 87 ) * + ( + 73 ) + - 43 THEN + COUNT( * ) WHEN MIN( - 20 ) THEN NULL WHEN - 28 THEN + 36 END / MIN( DISTINCT 3 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4639
SELECT CASE 87 WHEN + CASE 76 WHEN SUM ( - 5 ) THEN - 25 ELSE - 22 END + + 27 * + ( 87 ) * + ( + 73 ) + - 43 THEN + COUNT ( * ) WHEN MIN ( - 20 ) THEN NULL WHEN - 28 THEN + 36 END / MIN ( DISTINCT 3 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL - - MAX( - + 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL - - MAX ( - + 71 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT + - COUNT( DISTINCT + - 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-4641
SELECT + - COUNT ( DISTINCT + - 69 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4642
SELECT DISTINCT 72 DIV + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT 72 / + COUNT ( * )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4643
SELECT ALL + SUM( DISTINCT - + 61 ) DIV - 43 + + 18
----
19

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL + SUM ( DISTINCT - + 61 ) / - 43 + + 18
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT ALL - 88 + + - COUNT( - 70 ) * 32 AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL - 88 + + - COUNT ( - 70 ) * 32 AS col1
----
-120

query I rowsort
SELECT + + 97 * + + 45 - - 16 AS col0
----
4381

query I rowsort
SELECT DISTINCT - 55 + - + 56 * 12 col2
----
-727

query I rowsort
SELECT ALL + 97 + 97
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT - SUM( ALL + ( - ( + 52 ) ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT - SUM ( ALL + ( - ( + 52 ) ) ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT COUNT( * ) * 10 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4649
SELECT COUNT ( * ) * 10 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4650
SELECT ALL + SUM( ALL + + 45 ) + 91 - + 75 + - 33 AS col0, 32 AS col0
----
28
32

skipif mysql # not compatible
query II rowsort label-4650
SELECT ALL + SUM ( ALL + + 45 ) + 91 - + 75 + - 33 AS col0, 32 AS col0
----
28
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT + CAST( NULL AS SIGNED ) * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT + CAST ( NULL AS INTEGER ) * 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4652
SELECT 69 * + AVG ( DISTINCT - 68 ) * + + 10 / - CAST( NULL AS SIGNED ) + + CAST( + - COUNT( * ) AS SIGNED ) * 15 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT 69 * + AVG ( DISTINCT - 68 ) * + + 10 / - CAST ( NULL AS INTEGER ) + + CAST ( + - COUNT ( * ) AS INTEGER ) * 15 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4653
SELECT DISTINCT 45 * - ( - ( + COUNT( * ) ) ) + + + 23 AS col2, - CASE - 22 WHEN 29 THEN NULL WHEN + 13 THEN + + 78 * 89 ELSE NULL END AS col2
----
68
NULL

skipif mysql # not compatible
query II rowsort label-4653
SELECT DISTINCT 45 * - ( - ( + COUNT ( * ) ) ) + + + 23 AS col2, - CASE - 22 WHEN 29 THEN NULL WHEN + 13 THEN + + 78 * 89 ELSE NULL END AS col2
----
68
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT ALL + 11 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL + 11 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4655
SELECT - 3 DIV - 65 * + 12 * + + 95
----
0

skipif mysql # not compatible
query I rowsort label-4655
SELECT - 3 / - 65 * + 12 * + + 95
----
0

query I rowsort
SELECT ALL COALESCE ( - 43, 48 )
----
-43

query I rowsort
SELECT - ( - 76 ) + + 31 col0
----
107

query I rowsort
SELECT - 31 * 59 AS col0
----
-1829

query I rowsort
SELECT ALL + 4 * + - 22 AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT - 2 + + 36 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT - 2 + + 36 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 7 * + + 97 * - 16 AS col1
----
10864

query II rowsort
SELECT - 78 + + 26, 55 AS col0
----
-52
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4663
SELECT - 95 DIV + COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4663
SELECT - 95 / + COUNT ( * ) AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4664
SELECT ALL + 5 * 29 * + CAST( + 68 AS SIGNED ) AS col1
----
9860

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL + 5 * 29 * + CAST ( + 68 AS INTEGER ) AS col1
----
9860

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL - COUNT( ALL - 5 ) * - - 96 + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL - COUNT ( ALL - 5 ) * - - 96 + - COUNT ( * )
----
-97

query I rowsort
SELECT - 71 - - 81 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4667
SELECT ALL + 1 AS col1, + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4667
SELECT ALL + 1 AS col1, + COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT DISTINCT - ( + - 93 ) * - 50
----
-4650

query I rowsort
SELECT ALL + 81 * - + 14 - + - 78 AS col1
----
-1056

query I rowsort
SELECT COALESCE ( - 26, 38, + 18 ) AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4671
SELECT 51 DIV 18 + - - ( + 87 ) * + + 41 * COALESCE ( 44, - COUNT( * ) ) AS col2
----
156950

skipif mysql # not compatible
query I rowsort label-4671
SELECT 51 / 18 + - - ( + 87 ) * + + 41 * COALESCE ( 44, - COUNT ( * ) ) AS col2
----
156950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4672
SELECT ALL + 20, + COUNT( * ) + + + COUNT( * ) * - COUNT( * ) * + - 84 * + CAST( NULL AS SIGNED ) * + + 21 AS col2
----
20
NULL

skipif mysql # not compatible
query II rowsort label-4672
SELECT ALL + 20, + COUNT ( * ) + + + COUNT ( * ) * - COUNT ( * ) * + - 84 * + CAST ( NULL AS INTEGER ) * + + 21 AS col2
----
20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT - COUNT( * ) + - - 99 - + - 17 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-4673
SELECT - COUNT ( * ) + - - 99 - + - 17 AS col2
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-4674
SELECT ALL + 1, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4674
SELECT ALL + 1, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT NULLIF ( - + COUNT( * ), - 84 + - - 73 * + COALESCE ( 56, + COUNT( * ), + 82 ) * + 69 / - 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-4675
SELECT NULLIF ( - + COUNT ( * ), - 84 + - - 73 * + COALESCE ( 56, + COUNT ( * ), + 82 ) * + 69 / - 71 )
----
-1

query I rowsort
SELECT DISTINCT - 50 * + - 84
----
4200

onlyif mysql # DIV for integer division: 
query I rowsort label-4677
SELECT DISTINCT - 64 * 68 DIV - 26 + 19
----
186

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT - 64 * 68 / - 26 + 19
----
186

query I rowsort
SELECT DISTINCT + + ( NULLIF ( + 74, + - 28 * + 16 ) )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4679
SELECT ALL + 36 * - ( + - COUNT( * ) ) + - + 89 DIV + 92
----
36

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL + 36 * - ( + - COUNT ( * ) ) + - + 89 / + 92
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT + 57 * CASE 12 WHEN + COUNT( * ) / - 92 THEN + 12 WHEN SUM( ALL - - 48 ) THEN NULL END * 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT + 57 * CASE 12 WHEN + COUNT ( * ) / - 92 THEN + 12 WHEN SUM ( ALL - - 48 ) THEN NULL END * 24 AS col1
----
NULL

query I rowsort
SELECT ALL - 21 * 64 + + + 18 col1
----
-1326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4682
SELECT ALL + 57 * + 37 + - CAST( - 82 AS SIGNED ) - + + 1 + + ( + + 26 ) AS col2
----
2216

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL + 57 * + 37 + - CAST ( - 82 AS INTEGER ) - + + 1 + + ( + + 26 ) AS col2
----
2216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4683
SELECT ALL + 6 * - 87 + + + 87 - - 81 DIV - 57 + COUNT( * ) + + 47 AS col0
----
-388

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL + 6 * - 87 + + + 87 - - 81 / - 57 + COUNT ( * ) + + 47 AS col0
----
-388

query I rowsort
SELECT + 9 * + 14 + - - 46 AS col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT + - NULLIF ( 29, - COUNT( * ) / - - 22 ) - - MIN( 42 ) col2
----
13

skipif mysql # not compatible
query I rowsort label-4685
SELECT + - NULLIF ( 29, - COUNT ( * ) / - - 22 ) - - MIN ( 42 ) col2
----
13

query I rowsort
SELECT ALL ( + - 93 ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL 77 + + SUM( + - 7 )
----
70

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL 77 + + SUM ( + - 7 )
----
70

query I rowsort
SELECT + - 1 + - ( - 55 ) col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4689
SELECT - 21 DIV - - 14 * + 74 DIV - 44 DIV - 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4689
SELECT - 21 / - - 14 * + 74 / - 44 / - 15 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL CASE + NULLIF ( ( + - NULLIF ( 70, 19 ) ), + 82 ) WHEN 24 THEN + COALESCE ( - - COUNT( * ), - + 36 ) + - 32 * - + COALESCE ( + - 24, - + COALESCE ( - ( 22 ), MAX( + 39 ) * + 63 ) + + COUNT( * ) ) / + 39 WHEN + 3 THEN + COUNT( * ) END + NULLIF ( 31 + 43, 68 / - 56 + + ( - 55 ) ) / + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL CASE + NULLIF ( ( + - NULLIF ( 70, 19 ) ), + 82 ) WHEN 24 THEN + COALESCE ( - - COUNT ( * ), - + 36 ) + - 32 * - + COALESCE ( + - 24, - + COALESCE ( - ( 22 ), MAX ( + 39 ) * + 63 ) + + COUNT ( * ) ) / + 39 WHEN + 3 THEN + COUNT ( * ) END + NULLIF ( 31 + 43, 68 / - 56 + + ( - 55 ) ) / + 69
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4691
SELECT - - CAST( SUM( DISTINCT + ( + - CAST( NULL AS SIGNED ) ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT - - CAST ( SUM ( DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT DISTINCT - 63 + + + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT - 63 + + + COUNT ( * )
----
-62

query I rowsort
SELECT + 87 + + 0
----
87

query I rowsort
SELECT + 1 + 1 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL + COALESCE ( + SUM( DISTINCT - 4 ), + 95 ) - 43 + - 79 * COUNT( * ) AS col2
----
-126

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + COALESCE ( + SUM ( DISTINCT - 4 ), + 95 ) - 43 + - 79 * COUNT ( * ) AS col2
----
-126

query I rowsort
SELECT - ( - + 26 )
----
26

query I rowsort
SELECT - 32 + + 25 AS col2
----
-7

query II rowsort
SELECT - 90 * + - 37 AS col2, + 94 + + + 79
----
3330
173

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT ALL CASE - - COUNT( * ) WHEN - - 5 THEN NULL WHEN ( + COUNT( * ) ) THEN - - ( + 55 ) END * 63 AS col1
----
3465

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL CASE - - COUNT ( * ) WHEN - - 5 THEN NULL WHEN ( + COUNT ( * ) ) THEN - - ( + 55 ) END * 63 AS col1
----
3465

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4700
SELECT + 54 * + + NULLIF ( + 99, + 49 / 46 + + + 1 * NULLIF ( - - CAST( NULL AS DECIMAL ), + + 22 ) + 96 - - 29 / + + COUNT( * ) - - 88 * + - ( - - 70 ) - 39 ) * + 59 AS col0
----
315414

skipif mysql # not compatible
query I rowsort label-4700
SELECT + 54 * + + NULLIF ( + 99, + 49 / 46 + + + 1 * NULLIF ( - - CAST ( NULL AS REAL ), + + 22 ) + 96 - - 29 / + + COUNT ( * ) - - 88 * + - ( - - 70 ) - 39 ) * + 59 AS col0
----
315414

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT ALL CASE 11 WHEN - 8 THEN NULL WHEN + + 7 + + 7 THEN NULL ELSE + 68 + 74 * + 96 END * - COUNT( * ) * ( + 48 ) * - 19 * + 64 AS col1
----
418615296

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL CASE 11 WHEN - 8 THEN NULL WHEN + + 7 + + 7 THEN NULL ELSE + 68 + 74 * + 96 END * - COUNT ( * ) * ( + 48 ) * - 19 * + 64 AS col1
----
418615296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT - 72 + + + COALESCE ( - 44, + 23, 25 * - 8 - + 6 + - CAST( NULL AS SIGNED ) ) AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-4702
SELECT - 72 + + + COALESCE ( - 44, + 23, 25 * - 8 - + 6 + - CAST ( NULL AS INTEGER ) ) AS col0
----
-116

query I rowsort
SELECT ALL ( + 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4704
SELECT DISTINCT CASE + + CASE - + 79 WHEN - - 63 THEN 94 * + + 58 + + - 54 + 63 END WHEN - + 63 THEN - AVG ( + + 56 ) WHEN + ( ( + 27 ) ) THEN 2 END AS col1, + 45 * + COUNT( * ) + + 8 col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-4704
SELECT DISTINCT CASE + + CASE - + 79 WHEN - - 63 THEN 94 * + + 58 + + - 54 + 63 END WHEN - + 63 THEN - AVG ( + + 56 ) WHEN + ( ( + 27 ) ) THEN 2 END AS col1, + 45 * + COUNT ( * ) + + 8 col1
----
NULL
53

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4705
SELECT + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1, - 30
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-4705
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col1, - 30
----
NULL
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4706
SELECT ALL + CASE COUNT( * ) WHEN - + 22 THEN NULL ELSE - 40 * + 50 END DIV 67 - + - 41
----
12

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL + CASE COUNT ( * ) WHEN - + 22 THEN NULL ELSE - 40 * + 50 END / 67 - + - 41
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4707
SELECT 74 / 44 / + - CASE + + 8 WHEN 17 THEN - COUNT( * ) ELSE NULL END + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT 74 / 44 / + - CASE + + 8 WHEN 17 THEN - COUNT ( * ) ELSE NULL END + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 47 * + 19 AS col1
----
893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4709
SELECT - CAST( NULL AS SIGNED ) / - 97 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT - CAST ( NULL AS INTEGER ) / - 97 col1
----
NULL

query I rowsort
SELECT - 61 * + 36 + - + 15 + - 81 AS col0
----
-2292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4711
SELECT + + COALESCE ( + 80, - - 74 * - + 53 * COUNT( * ) ) * - 10 * ( + 46 ) + - - ( - 79 ) DIV 19 AS col0
----
-36804

skipif mysql # not compatible
query I rowsort label-4711
SELECT + + COALESCE ( + 80, - - 74 * - + 53 * COUNT ( * ) ) * - 10 * ( + 46 ) + - - ( - 79 ) / 19 AS col0
----
-36804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT DISTINCT + + 62 * + - 8 + + 20 + 49 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + + 62 * + - 8 + + 20 + 49 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4713
SELECT + - 59 * + CAST( NULL AS SIGNED ) - - 30 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4713
SELECT + - 59 * + CAST ( NULL AS INTEGER ) - - 30 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4714
SELECT DISTINCT COUNT( * ) * 48 + - 78 * - + CASE WHEN ( AVG ( ALL - - 76 ) ) IN ( + 78 ) THEN 97 DIV - ( + 13 ) ELSE - COUNT( * ) END + + ( - - SUM( ( 87 ) ) ) - 79
----
-22

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT COUNT ( * ) * 48 + - 78 * - + CASE WHEN ( AVG ( ALL - - 76 ) ) IN ( + 78 ) THEN 97 / - ( + 13 ) ELSE - COUNT ( * ) END + + ( - - SUM ( ( 87 ) ) ) - 79
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT DISTINCT ( - - NULLIF ( - 52, - 65 + + 7 ) ) * + + COALESCE ( NULLIF ( - COUNT( * ), + + 39 ), + + 23 - + 16 ) + - 79 * COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT ( - - NULLIF ( - 52, - 65 + + 7 ) ) * + + COALESCE ( NULLIF ( - COUNT ( * ), + + 39 ), + + 23 - + 16 ) + - 79 * COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT 25 * - + 8 + ( 44 ) + 55 AS col0
----
-101

query I rowsort
SELECT ALL + 45 * + - 4 * + - 58
----
10440

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT + + COUNT( * ) * - - COUNT( * ) * - - 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4718
SELECT + + COUNT ( * ) * - - COUNT ( * ) * - - 60 AS col0
----
60

query I rowsort
SELECT DISTINCT - 44 * - 25 - + 63 AS col1
----
1037

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT - MIN( DISTINCT + + 13 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-4720
SELECT - MIN ( DISTINCT + + 13 ) AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4721
SELECT ALL NULLIF ( + SUM( DISTINCT - 39 ), CAST( - + 18 AS SIGNED ) + - 23 - + + 93 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL NULLIF ( + SUM ( DISTINCT - 39 ), CAST ( - + 18 AS INTEGER ) + - 23 - + + 93 ) AS col0
----
-39

query I rowsort
SELECT - 7 * + 93 AS col2
----
-651

query I rowsort
SELECT 34 * - 38
----
-1292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT COALESCE ( - 95, + 99 * + + 47 + + 78 * - CAST( - - 72 AS SIGNED ) ) - - CAST( - + 68 AS SIGNED )
----
-163

skipif mysql # not compatible
query I rowsort label-4724
SELECT COALESCE ( - 95, + 99 * + + 47 + + 78 * - CAST ( - - 72 AS INTEGER ) ) - - CAST ( - + 68 AS INTEGER )
----
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-4725
SELECT 24 DIV - - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4725
SELECT 24 / - - 65 AS col2
----
0

query I rowsort
SELECT ALL 66 * - 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT ALL 78 DIV + 35 col2
----
2

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL 78 / + 35 col2
----
2

query I rowsort
SELECT ALL 42 * + 3
----
126

query I rowsort
SELECT ALL + 78 * - + 40 col2
----
-3120

query I rowsort
SELECT 20 + + 79 AS col2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT - 31 AS col0, COUNT( * ) * + 10 AS col2
----
-31
10

skipif mysql # not compatible
query II rowsort label-4731
SELECT - 31 AS col0, COUNT ( * ) * + 10 AS col2
----
-31
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4732
SELECT CAST( - 24 AS SIGNED ) * + CASE - - 45 WHEN 99 THEN NULL WHEN + 21 THEN - COALESCE ( - - 99, + - ( COUNT( * ) ) - - 63, + 29 ) * - + 59 + - CAST( + 37 AS SIGNED ) + + + 89 - - 14 * 81 + + 13 / + NULLIF ( + 50, - COUNT( * ) * 61 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT CAST ( - 24 AS INTEGER ) * + CASE - - 45 WHEN 99 THEN NULL WHEN + 21 THEN - COALESCE ( - - 99, + - ( COUNT ( * ) ) - - 63, + 29 ) * - + 59 + - CAST ( + 37 AS INTEGER ) + + + 89 - - 14 * 81 + + 13 / + NULLIF ( + 50, - COUNT ( * ) * 61 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ( + COUNT( * ) ) + + MIN( - 70 ) + 75 + - 11 + 27 * + 0 * - 43
----
-5

skipif mysql # not compatible
query I rowsort label-4733
SELECT ( + COUNT ( * ) ) + + MIN ( - 70 ) + 75 + - 11 + 27 * + 0 * - 43
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT ( 47 ) * + MAX( + - 30 )
----
-1410

skipif mysql # not compatible
query I rowsort label-4734
SELECT ( 47 ) * + MAX ( + - 30 )
----
-1410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4735
SELECT COUNT( * ) + + 43 + - 28 DIV 37 * - + COUNT( DISTINCT - 48 )
----
44

skipif mysql # not compatible
query I rowsort label-4735
SELECT COUNT ( * ) + + 43 + - 28 / 37 * - + COUNT ( DISTINCT - 48 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4736
SELECT 11, + CAST( + 93 AS SIGNED ) + - COUNT( ALL - + 86 ) AS col2
----
11
92

skipif mysql # not compatible
query II rowsort label-4736
SELECT 11, + CAST ( + 93 AS INTEGER ) + - COUNT ( ALL - + 86 ) AS col2
----
11
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4737
SELECT CAST( NULL AS SIGNED ) + + + 21 + - 59, + 4 * + COUNT( * ) col1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-4737
SELECT CAST ( NULL AS INTEGER ) + + + 21 + - 59, + 4 * + COUNT ( * ) col1
----
NULL
4

query I rowsort
SELECT ALL + 42 + - + 66 * - 39 + - + 87 AS col0
----
2529

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ALL + 88 + + 9 + - - COUNT( * ) * + - 54
----
43

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL + 88 + + 9 + - - COUNT ( * ) * + - 54
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4740
SELECT ALL - 0 AS col0, + 72 * CAST( - 44 AS SIGNED )
----
0
-3168

skipif mysql # not compatible
query II rowsort label-4740
SELECT ALL - 0 AS col0, + 72 * CAST ( - 44 AS INTEGER )
----
0
-3168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4741
SELECT ALL - + 42 DIV COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL - + 42 / COUNT ( * )
----
-42

query II rowsort
SELECT - NULLIF ( - 28, - 56 ), 73 AS col1
----
28
73

query II rowsort
SELECT - 45 AS col0, + 50 col1
----
-45
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4744
SELECT - 80 - CAST( NULL AS SIGNED ) * + 48 * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4744
SELECT - 80 - CAST ( NULL AS INTEGER ) * + 48 * - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4745
SELECT DISTINCT - - 0 * - 81 * - COALESCE ( 60, - 91 - 56 + - 96 + ( - 25 ) DIV COUNT( * ) * - + 34 ) * + 18 + ( - NULLIF ( - - 3, - 19 ) ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT - - 0 * - 81 * - COALESCE ( 60, - 91 - 56 + - 96 + ( - 25 ) / COUNT ( * ) * - + 34 ) * + 18 + ( - NULLIF ( - - 3, - 19 ) ) AS col1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT ALL 94 - COALESCE ( - - 24, 85 ) DIV - 55
----
94

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL 94 - COALESCE ( - - 24, 85 ) / - 55
----
94

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4747
SELECT ALL + CAST( NULL AS DECIMAL ) - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL + CAST ( NULL AS REAL ) - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL + + 71 * + COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + + 71 * + COUNT ( * ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT + 91 * - ( - 27 ) * MAX( DISTINCT - 43 ) / NULLIF ( + - 50, + + 59 - + + 40 ) * + MAX( ALL - 34 ) + - 68 + - CASE + 94 WHEN - 74 * - 83 THEN - 70 ELSE NULL END - - ( + 43 ) + ( 69 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT + 91 * - ( - 27 ) * MAX ( DISTINCT - 43 ) / NULLIF ( + - 50, + + 59 - + + 40 ) * + MAX ( ALL - 34 ) + - 68 + - CASE + 94 WHEN - 74 * - 83 THEN - 70 ELSE NULL END - - ( + 43 ) + ( 69 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4750
SELECT ALL - + 99, + COUNT( * ) AS col2
----
-99
1

skipif mysql # not compatible
query II rowsort label-4750
SELECT ALL - + 99, + COUNT ( * ) AS col2
----
-99
1

query II rowsort
SELECT ALL - - 39, 36 + 29 AS col1
----
39
65

query I rowsort
SELECT + 13 * + 51 - - + 64 + 6 * - 97 AS col1
----
145

query I rowsort
SELECT - 22 + + 6
----
-16

query I rowsort
SELECT 90 - + 52 AS col2
----
38

query I rowsort
SELECT 92 + - 3 AS col1
----
89

query I rowsort
SELECT 51 + 34
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4757
SELECT 14 * + + COUNT( * ) AS col2, 61 AS col2
----
14
61

skipif mysql # not compatible
query II rowsort label-4757
SELECT 14 * + + COUNT ( * ) AS col2, 61 AS col2
----
14
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT 21 + + COUNT( * ) + 71 * - 84
----
-5942

skipif mysql # not compatible
query I rowsort label-4758
SELECT 21 + + COUNT ( * ) + 71 * - 84
----
-5942

query I rowsort
SELECT DISTINCT 8 * - + 7 * + + 80 col2
----
-4480

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT 30 + NULLIF ( - ( - - 40 ), 86 * - SUM( DISTINCT + 13 ) * + - COALESCE ( COALESCE ( 23, 57, - COUNT( * ) ), + 67 ) + - - 86 * + 22 ) + - 15 * + ( - 35 ) * + 81 - 83 * ( + 9 ) col2
----
41768

skipif mysql # not compatible
query I rowsort label-4760
SELECT 30 + NULLIF ( - ( - - 40 ), 86 * - SUM ( DISTINCT + 13 ) * + - COALESCE ( COALESCE ( 23, 57, - COUNT ( * ) ), + 67 ) + - - 86 * + 22 ) + - 15 * + ( - 35 ) * + 81 - 83 * ( + 9 ) col2
----
41768

onlyif mysql # DIV for integer division: 
query I rowsort label-4761
SELECT ALL - 91 DIV - 64
----
1

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL - 91 / - 64
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT ALL + 19 + + + COALESCE ( COUNT( * ), - COUNT( DISTINCT + + 74 ) ) + + 84
----
104

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL + 19 + + + COALESCE ( COUNT ( * ), - COUNT ( DISTINCT + + 74 ) ) + + 84
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-4763
SELECT 59 + 57 AS col2, COUNT( * ) * SUM( ( + - 4 ) )
----
116
-4

skipif mysql # not compatible
query II rowsort label-4763
SELECT 59 + 57 AS col2, COUNT ( * ) * SUM ( ( + - 4 ) )
----
116
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT 65 + + MIN( 80 ) + + 93 AS col1
----
238

skipif mysql # not compatible
query I rowsort label-4764
SELECT 65 + + MIN ( 80 ) + + 93 AS col1
----
238

query I rowsort
SELECT ( + 40 ) + + - ( - + 94 )
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-4766
SELECT 49 DIV + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4766
SELECT 49 / + 92 AS col1
----
0

query I rowsort
SELECT DISTINCT + 1 + + + 62
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4768
SELECT DISTINCT 94 DIV + COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT 94 / + COUNT ( * ) AS col2
----
94

query I rowsort
SELECT ALL 53 + 50 * + 25 * + 60
----
75053

query I rowsort
SELECT DISTINCT 12 + + 57
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4771
SELECT DISTINCT 23 DIV + 58 * + 5
----
0

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT 23 / + 58 * + 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT DISTINCT MAX( ALL 55 ) + + - COUNT( - 14 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT MAX ( ALL 55 ) + + - COUNT ( - 14 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT DISTINCT 5 * COUNT( * ) * 35 AS col0
----
175

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT 5 * COUNT ( * ) * 35 AS col0
----
175

query I rowsort
SELECT + 28 * - 95 + + 98 AS col2
----
-2562

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL ( - 24 ) * ( - + 69 ) * 40 + + + ( + - COUNT( * ) ) col0
----
66239

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL ( - 24 ) * ( - + 69 ) * 40 + + + ( + - COUNT ( * ) ) col0
----
66239

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT + COUNT( * ) DIV - + ( 91 ) - + 13 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4776
SELECT + COUNT ( * ) / - + ( 91 ) - + 13 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-4777
SELECT - MAX( - - 49 ) AS col1, COALESCE ( 73, + + 63 * - 46 + ( MIN( DISTINCT - 71 ) ), - 90 ) AS col1
----
-49
73

skipif mysql # not compatible
query II rowsort label-4777
SELECT - MAX ( - - 49 ) AS col1, COALESCE ( 73, + + 63 * - 46 + ( MIN ( DISTINCT - 71 ) ), - 90 ) AS col1
----
-49
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT + SUM( DISTINCT - + 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-4778
SELECT + SUM ( DISTINCT - + 41 ) AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4779
SELECT - CASE - 66 WHEN + 16 THEN + COUNT( * ) WHEN + SUM( - 71 ) THEN - - 15 + 57 + 74 ELSE ( + 22 ) END * - 79 DIV + 1 + - 27 + + + 2 - 73 * - 47 * - - 93 - CASE + 28 WHEN COUNT( * ) THEN - 58 + + 42 ELSE - 58 END + CAST( - 88 + + ( ( - 97 ) ) AS SIGNED ) AS col2
----
320669

skipif mysql # not compatible
query I rowsort label-4779
SELECT - CASE - 66 WHEN + 16 THEN + COUNT ( * ) WHEN + SUM ( - 71 ) THEN - - 15 + 57 + 74 ELSE ( + 22 ) END * - 79 / + 1 + - 27 + + + 2 - 73 * - 47 * - - 93 - CASE + 28 WHEN COUNT ( * ) THEN - 58 + + 42 ELSE - 58 END + CAST ( - 88 + + ( ( - 97 ) ) AS INTEGER ) AS col2
----
320669

query I rowsort
SELECT - 64 * 97 AS col1
----
-6208

onlyif mysql # aggregate syntax: 
query II rowsort label-4781
SELECT DISTINCT SUM( ALL + 95 ) * + + 1 * COUNT( * ), 93 * - 66 AS col0
----
95
-6138

skipif mysql # not compatible
query II rowsort label-4781
SELECT DISTINCT SUM ( ALL + 95 ) * + + 1 * COUNT ( * ), 93 * - 66 AS col0
----
95
-6138

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT + - 39 * + 72 * COUNT( * )
----
-2808

skipif mysql # not compatible
query I rowsort label-4782
SELECT + - 39 * + 72 * COUNT ( * )
----
-2808

query I rowsort
SELECT DISTINCT + + 5 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4784
SELECT DISTINCT - + CAST( + + 59 AS SIGNED ) * + ( 41 ) AS col1, + CAST( MIN( - 75 ) AS SIGNED )
----
-2419
-75

skipif mysql # not compatible
query II rowsort label-4784
SELECT DISTINCT - + CAST ( + + 59 AS INTEGER ) * + ( 41 ) AS col1, + CAST ( MIN ( - 75 ) AS INTEGER )
----
-2419
-75

query I rowsort
SELECT DISTINCT - 43 * + 84 - 84 col0
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT ALL + COALESCE ( - 0, + 33 * + - CASE MAX( + 58 ) WHEN + ( - COUNT( * ) ) + + - 92 * - 73 THEN NULL ELSE + 43 * + COALESCE ( + 77, - 12, 89 ) END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL + COALESCE ( - 0, + 33 * + - CASE MAX ( + 58 ) WHEN + ( - COUNT ( * ) ) + + - 92 * - 73 THEN NULL ELSE + 43 * + COALESCE ( + 77, - 12, 89 ) END ) AS col0
----
0

query I rowsort
SELECT + ( + - 76 )
----
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-4788
SELECT + + 12 DIV 1 AS col0, + 95 AS col0
----
12
95

skipif mysql # not compatible
query II rowsort label-4788
SELECT + + 12 / 1 AS col0, + 95 AS col0
----
12
95

query I rowsort
SELECT + - 85 * + 40 + 4
----
-3396

query I rowsort
SELECT ALL + + 30 * + 76 AS col0
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT DISTINCT COUNT( * ) * - 88 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT COUNT ( * ) * - 88 AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4792
SELECT ALL - ( + 20 ) * - COUNT( * ) AS col1, - CAST( 69 AS SIGNED )
----
20
-69

skipif mysql # not compatible
query II rowsort label-4792
SELECT ALL - ( + 20 ) * - COUNT ( * ) AS col1, - CAST ( 69 AS INTEGER )
----
20
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4793
SELECT DISTINCT + CASE + - 86 WHEN + 15 + + COALESCE ( - 40, 33 ) * + 62 * - COUNT( * ) + - NULLIF ( + MAX( ALL 52 ), - + 75 * 26 + - 98 * - 83 * + - 14 + + CAST( NULL AS SIGNED ) ) THEN COUNT( * ) ELSE NULL END AS col0, COALESCE ( + + NULLIF ( - 48, COUNT( * ) ), + 57, 61, 54 )
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-4793
SELECT DISTINCT + CASE + - 86 WHEN + 15 + + COALESCE ( - 40, 33 ) * + 62 * - COUNT ( * ) + - NULLIF ( + MAX ( ALL 52 ), - + 75 * 26 + - 98 * - 83 * + - 14 + + CAST ( NULL AS INTEGER ) ) THEN COUNT ( * ) ELSE NULL END AS col0, COALESCE ( + + NULLIF ( - 48, COUNT ( * ) ), + 57, 61, 54 )
----
NULL
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4794
SELECT DISTINCT NULLIF ( - + 75, CAST( NULL AS SIGNED ) * 18 )
----
-75

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT NULLIF ( - + 75, CAST ( NULL AS INTEGER ) * 18 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL ( COUNT( - - CASE 9 WHEN - 55 THEN NULL ELSE - 71 + + 81 END ) )
----
1

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL ( COUNT ( - - CASE 9 WHEN - 55 THEN NULL ELSE - 71 + + 81 END ) )
----
1

query I rowsort
SELECT - 25 * 0 * + - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL - 87 + COUNT( * ) + - + 14
----
-100

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL - 87 + COUNT ( * ) + - + 14
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT + 37 - + COUNT( 92 )
----
36

skipif mysql # not compatible
query I rowsort label-4798
SELECT + 37 - + COUNT ( 92 )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4799
SELECT - 69, - COUNT( * ) AS col1
----
-69
-1

skipif mysql # not compatible
query II rowsort label-4799
SELECT - 69, - COUNT ( * ) AS col1
----
-69
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL CASE - + 0 WHEN 79 * COALESCE ( + - COUNT( * ), - - 25 ) THEN NULL ELSE 18 * - - 12 END
----
216

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL CASE - + 0 WHEN 79 * COALESCE ( + - COUNT ( * ), - - 25 ) THEN NULL ELSE 18 * - - 12 END
----
216

query I rowsort
SELECT - 89 * 14 AS col1
----
-1246

query I rowsort
SELECT + 95 * + + 61
----
5795

query I rowsort
SELECT DISTINCT - 42 + + 48 col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT - CASE COUNT( ALL - 57 ) WHEN - 12 / 98 THEN NULL WHEN + 66 THEN + 67 WHEN - 10 * + 36 + ( + 50 ) THEN NULL END - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4804
SELECT - CASE COUNT ( ALL - 57 ) WHEN - 12 / 98 THEN NULL WHEN + 66 THEN + 67 WHEN - 10 * + 36 + ( + 50 ) THEN NULL END - 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL COUNT( ALL + 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL COUNT ( ALL + 19 ) AS col1
----
1

query I rowsort
SELECT ALL 53 + - - 14
----
67

query II rowsort
SELECT - 59 - + 42 - + + 31 AS col2, ( + + 2 ) AS col0
----
-132
2

query I rowsort
SELECT ALL 71 * 61
----
4331

query I rowsort
SELECT DISTINCT - 43 + + - 39 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT - COUNT( ALL + NULLIF ( - - 19, - 21 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4810
SELECT - COUNT ( ALL + NULLIF ( - - 19, - 21 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4811
SELECT ALL - 25 + - CAST( NULL AS SIGNED ) - COUNT( * ) * - - 92 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL - 25 + - CAST ( NULL AS INTEGER ) - COUNT ( * ) * - - 92 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 23 + + 10 * 89 AS col1
----
867

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT - + 9 + + 11 DIV + 71 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4813
SELECT - + 9 + + 11 / + 71 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4814
SELECT + + 4 - + ( 79 ) AS col0, COUNT( * ) * + ( - 47 ) * + - 7 AS col2
----
-75
329

skipif mysql # not compatible
query II rowsort label-4814
SELECT + + 4 - + ( 79 ) AS col0, COUNT ( * ) * + ( - 47 ) * + - 7 AS col2
----
-75
329

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4815
SELECT ALL CASE + - CAST( NULL AS SIGNED ) WHEN + + COALESCE ( 36, + 30 * + 49 + 91 * 36 + - 34 ) * + 27 * + ( + COUNT( * ) ) * CASE - 31 WHEN + - 99 THEN + + 34 WHEN + + 25 THEN - 28 * - 56 * - ( - 87 ) + + 30 END * - ( - 95 ) THEN 15 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL CASE + - CAST ( NULL AS INTEGER ) WHEN + + COALESCE ( 36, + 30 * + 49 + 91 * 36 + - 34 ) * + 27 * + ( + COUNT ( * ) ) * CASE - 31 WHEN + - 99 THEN + + 34 WHEN + + 25 THEN - 28 * - 56 * - ( - 87 ) + + 30 END * - ( - 95 ) THEN 15 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4816
SELECT - 7, + COUNT( + 78 ) DIV ( + ( COUNT( * ) ) ) * 95 * 44 AS col2
----
-7
4180

skipif mysql # not compatible
query II rowsort label-4816
SELECT - 7, + COUNT ( + 78 ) / ( + ( COUNT ( * ) ) ) * 95 * 44 AS col2
----
-7
4180

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT - - COUNT( * ) + - + 55 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4817
SELECT - - COUNT ( * ) + - + 55 AS col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4818
SELECT + - COALESCE ( + + 69, + 81 ) DIV + + 39
----
-1

skipif mysql # not compatible
query I rowsort label-4818
SELECT + - COALESCE ( + + 69, + 81 ) / + + 39
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT + 58 * 67 + - - COUNT( * ) - - COUNT( * )
----
3888

skipif mysql # not compatible
query I rowsort label-4819
SELECT + 58 * 67 + - - COUNT ( * ) - - COUNT ( * )
----
3888

onlyif mysql # DIV for integer division: 
query II rowsort label-4820
SELECT ALL 45 DIV - ( + 98 ) AS col2, 29 * + 53
----
0
1537

skipif mysql # not compatible
query II rowsort label-4820
SELECT ALL 45 / - ( + 98 ) AS col2, 29 * + 53
----
0
1537

query I rowsort
SELECT + - 4 * 86 + + 56 + - + ( - 54 )
----
-234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4822
SELECT DISTINCT - COALESCE ( - - SUM( ALL + CAST( - - 95 AS SIGNED ) ), + 6 ) DIV - 62
----
1

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT - COALESCE ( - - SUM ( ALL + CAST ( - - 95 AS INTEGER ) ), + 6 ) / - 62
----
1

query I rowsort
SELECT + ( - 6 ) AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT ALL + COUNT( * ) * + 36 DIV COUNT( * ) + - + NULLIF ( - 70, 31 ) * + ( - ( - COUNT( * ) ) ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL + COUNT ( * ) * + 36 / COUNT ( * ) + - + NULLIF ( - 70, 31 ) * + ( - ( - COUNT ( * ) ) ) AS col1
----
106

query I rowsort
SELECT - + 3 * 49 * 84 * + 18 + 11 + - 63 + + + 25
----
-222291

query I rowsort
SELECT ALL + + CASE - 72 WHEN - 84 THEN - + 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL COALESCE ( + - 39, COUNT( * ) * - + 22 * + 69 + 57 ) * - 62
----
2418

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL COALESCE ( + - 39, COUNT ( * ) * - + 22 * + 69 + 57 ) * - 62
----
2418

onlyif mysql # aggregate syntax: 
query II rowsort label-4828
SELECT ALL + 4, - 34 - 1 * - 13 + + COUNT( * ) AS col2
----
4
-20

skipif mysql # not compatible
query II rowsort label-4828
SELECT ALL + 4, - 34 - 1 * - 13 + + COUNT ( * ) AS col2
----
4
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4829
SELECT ALL + 60 * 2 * - - COUNT( * ) * + 71 + + 71 + + 4 * + 83 + 30 DIV 99 AS col1
----
8923

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL + 60 * 2 * - - COUNT ( * ) * + 71 + + 71 + + 4 * + 83 + 30 / 99 AS col1
----
8923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4830
SELECT ALL + 28 DIV COUNT( * ) col0
----
28

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL + 28 / COUNT ( * ) col0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4831
SELECT + COUNT( * ) DIV + COALESCE ( + 99, - AVG ( ALL - - 79 ) * + ( 35 ), - + 92 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT + COUNT ( * ) / + COALESCE ( + 99, - AVG ( ALL - - 79 ) * + ( 35 ), - + 92 ) AS col2
----
0

query II rowsort
SELECT - 80 * - 1 + 70 * + 43 col2, 58 AS col2
----
3090
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT CASE 50 WHEN + CASE - + COUNT( * ) WHEN 97 + 50 THEN + 38 + + - 23 WHEN - 7 THEN NULL ELSE NULL END THEN + 26 WHEN - 24 THEN - NULLIF ( + - 62, + AVG ( DISTINCT - 98 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT CASE 50 WHEN + CASE - + COUNT ( * ) WHEN 97 + 50 THEN + 38 + + - 23 WHEN - 7 THEN NULL ELSE NULL END THEN + 26 WHEN - 24 THEN - NULLIF ( + - 62, + AVG ( DISTINCT - 98 ) ) END
----
NULL

query II rowsort
SELECT + 13 AS col1, + 17 AS col0
----
13
17

query I rowsort
SELECT + 13 + 33 * 1 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4836
SELECT 19 * + 66 - + COUNT( * ) + 9 - ( + 2 ) * CAST( NULL AS SIGNED ) AS col0, 40 AS col2
----
NULL
40

skipif mysql # not compatible
query II rowsort label-4836
SELECT 19 * + 66 - + COUNT ( * ) + 9 - ( + 2 ) * CAST ( NULL AS INTEGER ) AS col0, 40 AS col2
----
NULL
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4837
SELECT COALESCE ( - 85, - - COALESCE ( COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ), 79 * + + 78 - - 51 + + 38 * + + 94 * - - CAST( 61 AS SIGNED ), + 30 * + COUNT( * ) DIV - 4 * - ( + 29 ) + - - 96 - + 0 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-4837
SELECT COALESCE ( - 85, - - COALESCE ( COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ), 79 * + + 78 - - 51 + + 38 * + + 94 * - - CAST ( 61 AS INTEGER ), + 30 * + COUNT ( * ) / - 4 * - ( + 29 ) + - - 96 - + 0 ) )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT + 89 + - 6 DIV - ( 75 )
----
89

skipif mysql # not compatible
query I rowsort label-4838
SELECT + 89 + - 6 / - ( 75 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT - CASE - 65 WHEN + 79 THEN NULL WHEN + 8 * - 88 * AVG ( DISTINCT 36 ) THEN NULL WHEN + COUNT( * ) THEN + COUNT( * ) WHEN + 41 THEN NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4839
SELECT - CASE - 65 WHEN + 79 THEN NULL WHEN + 8 * - 88 * AVG ( DISTINCT 36 ) THEN NULL WHEN + COUNT ( * ) THEN + COUNT ( * ) WHEN + 41 THEN NULL END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4840
SELECT - CAST( NULL AS SIGNED ), - CASE - - 28 WHEN + - COUNT( * ) THEN - 90 END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4840
SELECT - CAST ( NULL AS INTEGER ), - CASE - - 28 WHEN + - COUNT ( * ) THEN - 90 END AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT ALL CAST( NULL AS SIGNED ) * 17 * - - 84 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL CAST ( NULL AS INTEGER ) * 17 * - - 84 col0
----
NULL

query I rowsort
SELECT DISTINCT ( - + 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT DISTINCT 83 * + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT 83 * + COUNT ( * )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4844
SELECT ALL 41 - + + ( 84 ) * 82 + - 40 + - + CAST( NULL AS SIGNED ) + - - 16 - + 58 * - + 34 * MAX( DISTINCT + 89 ) * - - 34 * + - 11 + 5 * - - 14 + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL 41 - + + ( 84 ) * 82 + - 40 + - + CAST ( NULL AS INTEGER ) + - - 16 - + 58 * - + 34 * MAX ( DISTINCT + 89 ) * - - 34 * + - 11 + 5 * - - 14 + 88 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4845
SELECT ALL CAST( - 27 AS SIGNED ) col2
----
-27

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL CAST ( - 27 AS INTEGER ) col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4846
SELECT - CAST( NULL AS SIGNED ) + - - 65 + + NULLIF ( + MAX( 95 ), - MIN( + 90 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT - CAST ( NULL AS INTEGER ) + - - 65 + + NULLIF ( + MAX ( 95 ), - MIN ( + 90 ) )
----
NULL

query I rowsort
SELECT DISTINCT - 38 - + - 46 + + 40
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4848
SELECT ALL CAST( NULL AS SIGNED ) col2, 18 * 87 + 64 AS col0
----
NULL
1630

skipif mysql # not compatible
query II rowsort label-4848
SELECT ALL CAST ( NULL AS INTEGER ) col2, 18 * 87 + 64 AS col0
----
NULL
1630

query I rowsort
SELECT - ( - + 2 ) + - 58
----
-56

query II rowsort
SELECT + 13 AS col1, 58 * + 85 col1
----
13
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - + SUM( DISTINCT + ( - + 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-4851
SELECT - + SUM ( DISTINCT + ( - + 16 ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL + + 56 * + COALESCE ( - SUM( 80 ), + 72, + CASE - 36 WHEN 81 + - 39 + + 36 + - 96 THEN - COUNT( * ) END ) * + NULLIF ( 7, + + COUNT( ALL + - 59 ) ) + + + 73 AS col2
----
-31287

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + + 56 * + COALESCE ( - SUM ( 80 ), + 72, + CASE - 36 WHEN 81 + - 39 + + 36 + - 96 THEN - COUNT ( * ) END ) * + NULLIF ( 7, + + COUNT ( ALL + - 59 ) ) + + + 73 AS col2
----
-31287

query II rowsort
SELECT ALL 92 AS col2, 63
----
92
63

query I rowsort
SELECT DISTINCT + 45 - 63
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-4855
SELECT DISTINCT - COALESCE ( - + 21, + 31 * + 84 - + 5 DIV - 77 ) AS col0, 79
----
21
79

skipif mysql # not compatible
query II rowsort label-4855
SELECT DISTINCT - COALESCE ( - + 21, + 31 * + 84 - + 5 / - 77 ) AS col0, 79
----
21
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT ALL + - 64 * - 75 + 1 + MAX( ALL + ( + 17 ) ) AS col2, - 18
----
4818
-18

skipif mysql # not compatible
query II rowsort label-4856
SELECT ALL + - 64 * - 75 + 1 + MAX ( ALL + ( + 17 ) ) AS col2, - 18
----
4818
-18

query II rowsort
SELECT + + 34, 86 AS col2
----
34
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4858
SELECT 37 DIV - - 56 - - 43 * - 1 * - ( COUNT( * ) ) AS col1, CAST( NULL AS SIGNED ) + + 49
----
43
NULL

skipif mysql # not compatible
query II rowsort label-4858
SELECT 37 / - - 56 - - 43 * - 1 * - ( COUNT ( * ) ) AS col1, CAST ( NULL AS INTEGER ) + + 49
----
43
NULL

query I rowsort
SELECT + 43 * 96 + - 61 AS col2
----
4067

query II rowsort
SELECT 98 * - 83 col1, - 77
----
-8134
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4861
SELECT - 47 * + 90 DIV - + 90 + + - COALESCE ( + 73, - 22, 37 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4861
SELECT - 47 * + 90 / - + 90 + + - COALESCE ( + 73, - 22, 37 ) AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4862
SELECT ALL 46 DIV 1 DIV 30 * 56 * - MAX( DISTINCT + 40 ) - + COUNT( * ) * + + 86 * 95 * - 55
----
447110

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL 46 / 1 / 30 * 56 * - MAX ( DISTINCT + 40 ) - + COUNT ( * ) * + + 86 * 95 * - 55
----
447110

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4863
SELECT - 93 DIV 19 - - 75 + - CAST( 49 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4863
SELECT - 93 / 19 - - 75 + - CAST ( 49 AS INTEGER ) AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4864
SELECT ALL - 99 + + 57 + + SUM( 40 ) * COALESCE ( 34, - 82 + - CASE - CAST( NULL AS DECIMAL ) WHEN - 77 + + CASE COUNT( * ) WHEN + - 89 + + 28 - - 48 THEN + MIN( - + 78 ) ELSE - + NULLIF ( - - ( + - ( - CAST( - COUNT( * ) AS SIGNED ) ) ), COUNT( * ) ) END THEN - 36 ELSE 61 + + COUNT( * ) END ) + + 12 AS col2
----
1330

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL - 99 + + 57 + + SUM ( 40 ) * COALESCE ( 34, - 82 + - CASE - CAST ( NULL AS REAL ) WHEN - 77 + + CASE COUNT ( * ) WHEN + - 89 + + 28 - - 48 THEN + MIN ( - + 78 ) ELSE - + NULLIF ( - - ( + - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) ), COUNT ( * ) ) END THEN - 36 ELSE 61 + + COUNT ( * ) END ) + + 12 AS col2
----
1330

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL - 41 + 38 * NULLIF ( + 34, - COUNT( * ) ) + 7
----
1258

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL - 41 + 38 * NULLIF ( + 34, - COUNT ( * ) ) + 7
----
1258

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT 30 * COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4866
SELECT 30 * COUNT ( * ) AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4867
SELECT ALL 1 + + - 85 - CAST( + 49 AS SIGNED ) + - COUNT( 32 ) + - 94 * + 76 * - 85 AS col2
----
607106

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL 1 + + - 85 - CAST ( + 49 AS INTEGER ) + - COUNT ( 32 ) + - 94 * + 76 * - 85 AS col2
----
607106

onlyif mysql # DIV for integer division: 
query I rowsort label-4868
SELECT ALL 88 - + 94 - 23 DIV - 62
----
-6

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL 88 - + 94 - 23 / - 62
----
-6

query I rowsort
SELECT 83 * - 12 AS col2
----
-996

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4870
SELECT 64 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT 64 - + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT - 90 * + 59, + COALESCE ( - + 7, - 9 ) AS col0
----
-5310
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4872
SELECT DISTINCT 49 * + + 97 * + 39 AS col1, + 49 * - - 53 / - CAST( NULL AS DECIMAL )
----
185367
NULL

skipif mysql # not compatible
query II rowsort label-4872
SELECT DISTINCT 49 * + + 97 * + 39 AS col1, + 49 * - - 53 / - CAST ( NULL AS REAL )
----
185367
NULL

query I rowsort
SELECT + 97 * - + 82 - 68 AS col0
----
-8022

query I rowsort
SELECT DISTINCT - 88 * + - 51 col1
----
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT SUM( 88 ) col2
----
88

skipif mysql # not compatible
query I rowsort label-4875
SELECT SUM ( 88 ) col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT - 64 + - 51 + - - COUNT( * ) * 86 * + NULLIF ( ( + CASE 82 WHEN ( COALESCE ( + + 24, 13 * + + 50 * 79, - MIN( + 4 ) * + 28 + COUNT( * ) + + AVG ( ALL + + 83 ) * 92 - - - AVG ( ALL + COALESCE ( 95, - 90 * 84, 14, 0 * 87 ) ) / ( - COUNT( * ) ) ) ) THEN 7 WHEN - 22 THEN NULL ELSE 11 - 87 END ), COALESCE ( NULLIF ( 41, 44 * ( - 67 ) ), 59 + + 73, 89, - 27 ) * CASE + 53 + - 18 * + CAST( + 46 + COALESCE ( COALESCE ( 61, 63 + - COUNT( * ), 94 ), 69 * 92 + 24, 0 + 77 * + 82 ) AS SIGNED ) WHEN - COUNT( * ) - - ( + 20 ) THEN NULL ELSE + 91 + 71 * - 66 END ) * ( 3 + 32 * 62 ) AS col0
----
-12987147

skipif mysql # not compatible
query I rowsort label-4876
SELECT - 64 + - 51 + - - COUNT ( * ) * 86 * + NULLIF ( ( + CASE 82 WHEN ( COALESCE ( + + 24, 13 * + + 50 * 79, - MIN ( + 4 ) * + 28 + COUNT ( * ) + + AVG ( ALL + + 83 ) * 92 - - - AVG ( ALL + COALESCE ( 95, - 90 * 84, 14, 0 * 87 ) ) / ( - COUNT ( * ) ) ) ) THEN 7 WHEN - 22 THEN NULL ELSE 11 - 87 END ), COALESCE ( NULLIF ( 41, 44 * ( - 67 ) ), 59 + + 73, 89, - 27 ) * CASE + 53 + - 18 * + CAST ( + 46 + COALESCE ( COALESCE ( 61, 63 + - COUNT ( * ), 94 ), 69 * 92 + 24, 0 + 77 * + 82 ) AS INTEGER ) WHEN - COUNT ( * ) - - ( + 20 ) THEN NULL ELSE + 91 + 71 * - 66 END ) * ( 3 + 32 * 62 ) AS col0
----
-12987147

onlyif mysql # aggregate syntax: 
query II rowsort label-4877
SELECT - COALESCE ( + + 20, - COUNT( * ), 78 * + 13 + - 62 ) - + 62 + + 99 * + 26 * - 90, + 40 col2
----
-231742
40

skipif mysql # not compatible
query II rowsort label-4877
SELECT - COALESCE ( + + 20, - COUNT ( * ), 78 * + 13 + - 62 ) - + 62 + + 99 * + 26 * - 90, + 40 col2
----
-231742
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT - 47 - + + SUM( ALL - 77 )
----
30

skipif mysql # not compatible
query I rowsort label-4878
SELECT - 47 - + + SUM ( ALL - 77 )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4879
SELECT DISTINCT - 3 + - - 15 AS col1, - 24 + COUNT( * ) + - 85
----
12
-108

skipif mysql # not compatible
query II rowsort label-4879
SELECT DISTINCT - 3 + - - 15 AS col1, - 24 + COUNT ( * ) + - 85
----
12
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4880
SELECT - 22 / + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT - 22 / + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4881
SELECT DISTINCT + 11 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT + 11 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 28 * 38 col1
----
-1064

query II rowsort
SELECT 65 * 73 * 92 AS col2, + 98 AS col0
----
436540
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT MIN( DISTINCT 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4884
SELECT MIN ( DISTINCT 73 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL + 55 + - COUNT( * ) * - 57 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL + 55 + - COUNT ( * ) * - 57 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT DISTINCT + 83 * + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT + 83 * + COUNT ( * )
----
83

query I rowsort
SELECT + CASE WHEN NULL <= 63 THEN NULL WHEN NOT - 19 BETWEEN - - ( - COALESCE ( 86, + ( - - 58 ) + + - 2 ) ) AND + 73 THEN + 62 * - 4 ELSE NULL END * - ( + + 0 ) + + 85
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4888
SELECT ALL + 56 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL + 56 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 48 - 8 AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4890
SELECT DISTINCT - 84 DIV + 68 col2
----
-1

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT - 84 / + 68 col2
----
-1

query I rowsort
SELECT + 34 * + ( - 46 ) + 50 AS col2
----
-1514

query I rowsort
SELECT 64 + - 78 AS col0
----
-14

query I rowsort
SELECT 93 * + 73 * - 23 * 4 - + 19 AS col1
----
-624607

query I rowsort
SELECT ( + 64 ) * - + 99
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT SUM( ALL - 71 ) + + + 86
----
15

skipif mysql # not compatible
query I rowsort label-4895
SELECT SUM ( ALL - 71 ) + + + 86
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4896
SELECT + CAST( - NULLIF ( - + ( + 78 ), + SUM( + 32 ) ) AS SIGNED ) * + - 88 AS col0
----
-6864

skipif mysql # not compatible
query I rowsort label-4896
SELECT + CAST ( - NULLIF ( - + ( + 78 ), + SUM ( + 32 ) ) AS INTEGER ) * + - 88 AS col0
----
-6864

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT DISTINCT + 21 * - + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-4897
SELECT DISTINCT + 21 * - + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT + COUNT( DISTINCT 8 ) + 57 + + 58 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-4898
SELECT + COUNT ( DISTINCT 8 ) + 57 + + 58 AS col2
----
116

query II rowsort
SELECT DISTINCT 50, 59 AS col2
----
50
59

query I rowsort
SELECT ALL 38 * + 76 - + 35
----
2853

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT + 81 + - 99 - 50 DIV + 99 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4901
SELECT + 81 + - 99 - 50 / + 99 AS col1
----
-18

query II rowsort
SELECT DISTINCT - ( 64 ) + - - 43 + - 84, 88 AS col0
----
-105
88

query I rowsort
SELECT + 61 * 85 AS col1
----
5185

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT - + COUNT( * ) + + + 5
----
4

skipif mysql # not compatible
query I rowsort label-4904
SELECT - + COUNT ( * ) + + + 5
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4905
SELECT ALL + 34 + - + 18 DIV - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + 34 + - + 18 / - COUNT ( * ) AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4906
SELECT DISTINCT MIN( - + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT MIN ( - + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4907
SELECT + - CAST( + CAST( - - 11 AS SIGNED ) AS SIGNED ) * - COUNT( - 88 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4907
SELECT + - CAST ( + CAST ( - - 11 AS INTEGER ) AS INTEGER ) * - COUNT ( - 88 ) AS col1
----
11

query I rowsort
SELECT ALL - 65 + - + 92 AS col0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL + - 84 * COUNT( + + 3 )
----
-84

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL + - 84 * COUNT ( + + 3 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT + + CAST( + 44 AS SIGNED ) * 23
----
1012

skipif mysql # not compatible
query I rowsort label-4910
SELECT + + CAST ( + 44 AS INTEGER ) * 23
----
1012

query I rowsort
SELECT ALL 67 * - - 30 AS col0
----
2010

query I rowsort
SELECT - 11 * - 72 AS col2
----
792

query II rowsort
SELECT - 56, + 65 col0
----
-56
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT - MIN( - - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-4914
SELECT - MIN ( - - 38 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4915
SELECT ALL + CAST( 58 AS SIGNED ) * ( - - NULLIF ( + + CAST( 11 AS SIGNED ), 68 + + MIN( DISTINCT + 14 ) / - 35 * - 53 / + ( + - 16 ) + 61 ) ) AS col1
----
638

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL + CAST ( 58 AS INTEGER ) * ( - - NULLIF ( + + CAST ( 11 AS INTEGER ), 68 + + MIN ( DISTINCT + 14 ) / - 35 * - 53 / + ( + - 16 ) + 61 ) ) AS col1
----
638

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT + CASE + 99 WHEN - 85 * + - SUM( DISTINCT + + 87 ) + COUNT( ALL - 43 ) + - MAX( ALL - 45 ) * + COUNT( * ) THEN 63 WHEN + 24 THEN NULL END - + - MIN( + - 21 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT + CASE + 99 WHEN - 85 * + - SUM ( DISTINCT + + 87 ) + COUNT ( ALL - 43 ) + - MAX ( ALL - 45 ) * + COUNT ( * ) THEN 63 WHEN + 24 THEN NULL END - + - MIN ( + - 21 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4917
SELECT ( + 92 ), COALESCE ( + 19, - + 27 ) DIV + 26 col1
----
92
0

skipif mysql # not compatible
query II rowsort label-4917
SELECT ( + 92 ), COALESCE ( + 19, - + 27 ) / + 26 col1
----
92
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT ( - - CAST( 0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4918
SELECT ( - - CAST ( 0 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4919
SELECT - 43 * + 96 AS col2, - COUNT( * ) AS col2
----
-4128
-1

skipif mysql # not compatible
query II rowsort label-4919
SELECT - 43 * + 96 AS col2, - COUNT ( * ) AS col2
----
-4128
-1

query I rowsort
SELECT ALL - 97 * - 69 * + 18 AS col1
----
120474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4921
SELECT MAX( + 21 ) * + ( - - 89 ) + + + SUM( ALL + + 67 ) * - 45 * + - 88 + 45 DIV + + 97
----
267189

skipif mysql # not compatible
query I rowsort label-4921
SELECT MAX ( + 21 ) * + ( - - 89 ) + + + SUM ( ALL + + 67 ) * - 45 * + - 88 + 45 / + + 97
----
267189

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4922
SELECT DISTINCT 55 * + - CAST( NULL AS DECIMAL ) - - 56 * 65 * 22 * + - 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT 55 * + - CAST ( NULL AS REAL ) - - 56 * 65 * 22 * + - 44 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT + 7 * - COALESCE ( + + 34, 88 * + - 3 * COUNT( DISTINCT 57 ) ) AS col2
----
-238

skipif mysql # not compatible
query I rowsort label-4923
SELECT + 7 * - COALESCE ( + + 34, 88 * + - 3 * COUNT ( DISTINCT 57 ) ) AS col2
----
-238

query I rowsort
SELECT - 13 * 76
----
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL - 97 * MIN( + + 64 ) AS col1
----
-6208

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL - 97 * MIN ( + + 64 ) AS col1
----
-6208

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT NULLIF ( - 1, + - SUM( + 88 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4926
SELECT NULLIF ( - 1, + - SUM ( + 88 ) ) AS col1
----
-1

query I rowsort
SELECT COALESCE ( + 54, 84 * 17 ) AS col0
----
54

query I rowsort
SELECT DISTINCT - 79 * - 34
----
2686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT DISTINCT + ( - - CAST( 33 AS SIGNED ) ) col1
----
33

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT + ( - - CAST ( 33 AS INTEGER ) ) col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - 77 * - COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4930
SELECT - 77 * - COUNT ( * ) AS col1
----
77

query I rowsort
SELECT ALL + 34 * - 69 AS col0
----
-2346

query I rowsort
SELECT DISTINCT - 80 * - + 37 AS col0
----
2960

onlyif mysql # DIV for integer division: 
query I rowsort label-4933
SELECT ALL 41 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL 41 / - 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT - + 99 - CASE - COUNT( * ) WHEN + 29 THEN - 43 WHEN - 48 * 82 / - + 50 * COUNT( * ) THEN - + ( + - COUNT( * ) ) / 36 WHEN + - 55 + 47 + + 49 THEN NULL ELSE NULL END + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT - + 99 - CASE - COUNT ( * ) WHEN + 29 THEN - 43 WHEN - 48 * 82 / - + 50 * COUNT ( * ) THEN - + ( + - COUNT ( * ) ) / 36 WHEN + - 55 + 47 + + 49 THEN NULL ELSE NULL END + + 33
----
NULL

query I rowsort
SELECT ALL - 15 * + 41 * + + 94 + + - 88 * + 54 AS col0
----
-62562

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT - - 24 - SUM( - 72 )
----
96

skipif mysql # not compatible
query I rowsort label-4936
SELECT - - 24 - SUM ( - 72 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT - + 49 + - MAX( ALL - + 48 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4937
SELECT - + 49 + - MAX ( ALL - + 48 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4938
SELECT ALL + NULLIF ( + MAX( + CAST( 46 AS SIGNED ) ), + 33 + - + 15 / + + COALESCE ( - COUNT( + - 17 ), + - 3 * - 4 * 53 * + 49 + 26 ) ) * 35 AS col0
----
1610

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL + NULLIF ( + MAX ( + CAST ( 46 AS INTEGER ) ), + 33 + - + 15 / + + COALESCE ( - COUNT ( + - 17 ), + - 3 * - 4 * 53 * + 49 + 26 ) ) * 35 AS col0
----
1610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT DISTINCT 94 + + + CASE + 78 WHEN + 51 + - 30 + CAST( NULL AS SIGNED ) + - NULLIF ( + + ( 93 ), - 26 ) THEN NULL ELSE - 42 END AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT 94 + + + CASE + 78 WHEN + 51 + - 30 + CAST ( NULL AS INTEGER ) + - NULLIF ( + + ( 93 ), - 26 ) THEN NULL ELSE - 42 END AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-4940
SELECT ALL 12 + COUNT( * ) + + COALESCE ( + + ( + NULLIF ( + 76, - + MIN( + 3 ) ) ), + 29 ) AS col1, 1
----
89
1

skipif mysql # not compatible
query II rowsort label-4940
SELECT ALL 12 + COUNT ( * ) + + COALESCE ( + + ( + NULLIF ( + 76, - + MIN ( + 3 ) ) ), + 29 ) AS col1, 1
----
89
1

query I rowsort
SELECT DISTINCT - - 3 * - 60 AS col1
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4942
SELECT + CAST( - 26 AS DECIMAL ) * + SUM( + - 2 ) / + + CAST( NULL AS SIGNED ) + + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT + CAST ( - 26 AS REAL ) * + SUM ( + - 2 ) / + + CAST ( NULL AS INTEGER ) + + + 23
----
NULL

query I rowsort
SELECT - - 22 * - 88 + - 96
----
-2032

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL MIN( DISTINCT - + 91 ) + - 21
----
-112

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL MIN ( DISTINCT - + 91 ) + - 21
----
-112

query II rowsort
SELECT - + 48 + + 94, 84 AS col1
----
46
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT + - COUNT( - 68 ) + + 39 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4946
SELECT + - COUNT ( - 68 ) + + 39 AS col2
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4947
SELECT + - 67 - COUNT( * ) * 25 * + - 83 col1, 94 AS col1
----
2008
94

skipif mysql # not compatible
query II rowsort label-4947
SELECT + - 67 - COUNT ( * ) * 25 * + - 83 col1, 94 AS col1
----
2008
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4948
SELECT ALL - 62 / - 14 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL - 62 / - 14 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 45 col1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4950
SELECT DISTINCT + COUNT( * ) DIV - ( - NULLIF ( + + 14, 55 + - - COUNT( * ) ) ) - - 75 + - 51 + - ( 92 ) * + SUM( + 31 )
----
-2828

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT + COUNT ( * ) / - ( - NULLIF ( + + 14, 55 + - - COUNT ( * ) ) ) - - 75 + - 51 + - ( 92 ) * + SUM ( + 31 )
----
-2828

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL - 10 * COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL - 10 * COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4952
SELECT + COUNT( * ) DIV 84 * 52
----
0

skipif mysql # not compatible
query I rowsort label-4952
SELECT + COUNT ( * ) / 84 * 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT + NULLIF ( - 88, - - 4 * 1 * - 68 + 14 + - - 46 ) * + 97 + - - 90 * + 96 - - - 80 + MAX( ALL + 58 ) * - - ( + ( - 73 ) ) AS col0
----
-4210

skipif mysql # not compatible
query I rowsort label-4953
SELECT + NULLIF ( - 88, - - 4 * 1 * - 68 + 14 + - - 46 ) * + 97 + - - 90 * + 96 - - - 80 + MAX ( ALL + 58 ) * - - ( + ( - 73 ) ) AS col0
----
-4210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4954
SELECT CAST( - 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-4954
SELECT CAST ( - 81 AS INTEGER )
----
-81

query I rowsort
SELECT - 89 * - 88 AS col0
----
7832

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL 42 * 69 * + + COUNT( * )
----
2898

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL 42 * 69 * + + COUNT ( * )
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL - MAX( ALL + 90 ) + - - 85
----
-5

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL - MAX ( ALL + 90 ) + - - 85
----
-5

query I rowsort
SELECT 99 + - 5
----
94

query I rowsort
SELECT DISTINCT - ( COALESCE ( + 66, + + 74 * 78 ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT DISTINCT MAX( - 2 ) + + 18 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT MAX ( - 2 ) + + 18 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4961
SELECT 30 * - 50 + - 99 - + CAST( 11 AS SIGNED ) * 1 - 1 * + 88, 34 + + + SUM( ALL 33 ) + - - AVG ( CAST( NULL AS SIGNED ) ) col1
----
-1698
NULL

skipif mysql # not compatible
query II rowsort label-4961
SELECT 30 * - 50 + - 99 - + CAST ( 11 AS INTEGER ) * 1 - 1 * + 88, 34 + + + SUM ( ALL 33 ) + - - AVG ( CAST ( NULL AS INTEGER ) ) col1
----
-1698
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT ALL + 3 + - COUNT( * ) * - SUM( + - ( + - CASE + 37 WHEN + 69 THEN NULL ELSE - 23 END ) ) * - 37 AS col1
----
854

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL + 3 + - COUNT ( * ) * - SUM ( + - ( + - CASE + 37 WHEN + 69 THEN NULL ELSE - 23 END ) ) * - 37 AS col1
----
854

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4963
SELECT + 87 * + COUNT( * ) + + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT + 87 * + COUNT ( * ) + + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT CAST( NULL AS SIGNED ) - 82 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT CAST ( NULL AS INTEGER ) - 82 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT 42 + COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4965
SELECT 42 + COUNT ( * ) AS col1
----
43

query I rowsort
SELECT ALL + 67 + + 25 AS col2
----
92

query I rowsort
SELECT ALL + COALESCE ( + + 52, + 67, - 65 * - 36 + 55 * + 9 )
----
52

query I rowsort
SELECT - - ( 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT ALL + 18 + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL + 18 + COUNT ( * )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4970
SELECT ALL 18 AS col0, COALESCE ( + + 30, 14 * - + CAST( NULL AS SIGNED ), + 56 ) * + + 84 * - 48 - + + 99
----
18
-121059

skipif mysql # not compatible
query II rowsort label-4970
SELECT ALL 18 AS col0, COALESCE ( + + 30, 14 * - + CAST ( NULL AS INTEGER ), + 56 ) * + + 84 * - 48 - + + 99
----
18
-121059

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT + COUNT( * ) * - 35 + - 86
----
-121

skipif mysql # not compatible
query I rowsort label-4971
SELECT + COUNT ( * ) * - 35 + - 86
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4972
SELECT CAST( + 60 AS SIGNED ) * 58 + - 86 - - 84 * + COUNT( * )
----
3478

skipif mysql # not compatible
query I rowsort label-4972
SELECT CAST ( + 60 AS INTEGER ) * 58 + - 86 - - 84 * + COUNT ( * )
----
3478

query I rowsort
SELECT + 93 + 14 * ( + 69 )
----
1059

query II rowsort
SELECT ALL - 47 AS col0, 18
----
-47
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT SUM( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-4975
SELECT SUM ( 35 )
----
35

query I rowsort
SELECT 80 + 54
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4977
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 0 * - 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT DISTINCT - + COUNT( * ) * - + 81 * - 73 * - + 18 AS col0
----
106434

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT - + COUNT ( * ) * - + 81 * - 73 * - + 18 AS col0
----
106434

query I rowsort
SELECT DISTINCT - 15 * - NULLIF ( + - 31, + + 62 ) * - 24 AS col0
----
11160

query I rowsort
SELECT DISTINCT + 97 * + 49 col0
----
4753

query II rowsort
SELECT ALL - 23 col1, + 2 col1
----
-23
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4983
SELECT + SUM( DISTINCT + 51 ) DIV + - ( - + 81 ) - - COALESCE ( - 1, + 15, 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4983
SELECT + SUM ( DISTINCT + 51 ) / + - ( - + 81 ) - - COALESCE ( - 1, + 15, 1 ) AS col0
----
-1

query I rowsort
SELECT 68 - 37 * - - 4 col2
----
-80

query II rowsort
SELECT + 18, + 28 + 81 AS col0
----
18
109

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4986
SELECT DISTINCT 94 + - CAST( NULL AS DECIMAL ) - + + 86 + 93 + + 87 + + 54 + + + 72 + - CASE + 92 WHEN - 66 + + COUNT( * ) + + 96 * - - 64 * - ( + + 78 ) / + 10 THEN NULL WHEN + 36 THEN + 25 WHEN + 37 * 46 + + 0 + + 36 THEN NULL WHEN + - 73 THEN NULL END + + 62 - + - 22 + + - 86 * - 87 / ( - 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT 94 + - CAST ( NULL AS REAL ) - + + 86 + 93 + + 87 + + 54 + + + 72 + - CASE + 92 WHEN - 66 + + COUNT ( * ) + + 96 * - - 64 * - ( + + 78 ) / + 10 THEN NULL WHEN + 36 THEN + 25 WHEN + 37 * 46 + + 0 + + 36 THEN NULL WHEN + - 73 THEN NULL END + + 62 - + - 22 + + - 86 * - 87 / ( - 16 ) AS col1
----
NULL

query I rowsort
SELECT ( 96 ) - - 73
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4988
SELECT CAST( NULL AS SIGNED ) / - CAST( + + 45 AS SIGNED ) * - + 38 / + COUNT( * ) * MIN( DISTINCT + 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4988
SELECT CAST ( NULL AS INTEGER ) / - CAST ( + + 45 AS INTEGER ) * - + 38 / + COUNT ( * ) * MIN ( DISTINCT + 91 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT DISTINCT CASE + 74 WHEN - 77 THEN ( + - 52 ) + - COUNT( + 88 ) WHEN - 30 + + 37 THEN COUNT( * ) + - + 69 END + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT CASE + 74 WHEN - 77 THEN ( + - 52 ) + - COUNT ( + 88 ) WHEN - 30 + + 37 THEN COUNT ( * ) + - + 69 END + 80 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4990
SELECT DISTINCT - + 49 AS col2, 96 * + NULLIF ( 84, - MAX( DISTINCT - 73 ) * - 90 + 48 ) AS col2
----
-49
8064

skipif mysql # not compatible
query II rowsort label-4990
SELECT DISTINCT - + 49 AS col2, 96 * + NULLIF ( 84, - MAX ( DISTINCT - 73 ) * - 90 + 48 ) AS col2
----
-49
8064

query I rowsort
SELECT DISTINCT 88 + + 10
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT + SUM( ALL + 17 ) * - + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-4992
SELECT + SUM ( ALL + 17 ) * - + COUNT ( * )
----
-17

query I rowsort
SELECT 13 - - + 70 col2
----
83

query II rowsort
SELECT - 35 col2, 86 AS col0
----
-35
86

query I rowsort
SELECT 5 + 66 AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4996
SELECT ALL + - COALESCE ( MIN( + 76 ), 51 ) * 71 DIV 55 * - 99
----
9702

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL + - COALESCE ( MIN ( + 76 ), 51 ) * 71 / 55 * - 99
----
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT DISTINCT 18 - + - 53 * + + 35 + - + 37 + - + COUNT( * ) * CASE - 50 WHEN + 63 THEN NULL ELSE - - ( 31 ) END AS col0
----
1805

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT 18 - + - 53 * + + 35 + - + 37 + - + COUNT ( * ) * CASE - 50 WHEN + 63 THEN NULL ELSE - - ( 31 ) END AS col0
----
1805

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT ALL - 34 * + COUNT( * ) + 96 - COUNT( * ) AS col1, - 77 col2
----
61
-77

skipif mysql # not compatible
query II rowsort label-4998
SELECT ALL - 34 * + COUNT ( * ) + 96 - COUNT ( * ) AS col1, - 77 col2
----
61
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4999
SELECT ALL 47 col0, + COUNT( * )
----
47
1

skipif mysql # not compatible
query II rowsort label-4999
SELECT ALL 47 col0, + COUNT ( * )
----
47
1

query I rowsort
SELECT + 66 - ( + 91 ) AS col2
----
-25

query I rowsort
SELECT ALL - ( + 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT ALL COUNT( + - 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL COUNT ( + - 78 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT 5 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT 5 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 84 * 41 * - - 97 AS col1
----
334068

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT ALL - 38 DIV 12
----
-3

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - 38 / 12
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT 65 DIV 80 * 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5006
SELECT 65 / 80 * 52 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT - MIN( + + 92 ) + - - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-5007
SELECT - MIN ( + + 92 ) + - - COUNT ( * )
----
-91

query I rowsort
SELECT + 83 * 14 AS col0
----
1162

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT ALL - 5 * - COUNT( * ) + MIN( DISTINCT + 85 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL - 5 * - COUNT ( * ) + MIN ( DISTINCT + 85 ) AS col0
----
90

query II rowsort
SELECT ALL + 75 * - 26, - 42 AS col2
----
-1950
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT DISTINCT COUNT( * ) * + + 34 + - + 85 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT COUNT ( * ) * + + 34 + - + 85 AS col2
----
-51

query I rowsort
SELECT COALESCE ( 53, + 16 ) AS col0
----
53

query I rowsort
SELECT NULLIF ( 5, + 34 + 40 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT CASE 97 WHEN - 78 + - + SUM( DISTINCT + 33 ) * - 49 * 26 * - 78 THEN - CAST( + 44 AS SIGNED ) WHEN + - 50 THEN - 43 + - 26 ELSE CASE WHEN NOT 29 IS NULL THEN NULL ELSE NULLIF ( + COUNT( * ), + + 45 * + + 70 + + SUM( DISTINCT 83 ) + + SUM( - - 83 ) + - COUNT( * ) - 21 - - - 28 * SUM( DISTINCT - 28 * ( - 11 ) ) * + 75 ) END END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT CASE 97 WHEN - 78 + - + SUM ( DISTINCT + 33 ) * - 49 * 26 * - 78 THEN - CAST ( + 44 AS INTEGER ) WHEN + - 50 THEN - 43 + - 26 ELSE CASE WHEN NOT 29 IS NULL THEN NULL ELSE NULLIF ( + COUNT ( * ), + + 45 * + + 70 + + SUM ( DISTINCT 83 ) + + SUM ( - - 83 ) + - COUNT ( * ) - 21 - - - 28 * SUM ( DISTINCT - 28 * ( - 11 ) ) * + 75 ) END END col0
----
NULL

query I rowsort
SELECT + NULLIF ( - 80, + + 87 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL + 95 * + COUNT( * ) + - 20 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + 95 * + COUNT ( * ) + - 20 AS col0
----
75

query I rowsort
SELECT + 35 + - + 71 * + + 21 + + 83 AS col2
----
-1373

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5018
SELECT ALL - COUNT( * ) * - 63 * + + ( + 16 ) * + + 21 * + CAST( NULL AS DECIMAL ) * + COUNT( * ) + - 50 - 80 - - CASE + 49 WHEN - ( + ( + + AVG ( + 44 ) ) ) * + 19 + - 40 THEN - + 41 + - 73 ELSE + + 46 + - - MAX( DISTINCT - ( - + 79 ) ) * + 47 * + 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL - COUNT ( * ) * - 63 * + + ( + 16 ) * + + 21 * + CAST ( NULL AS REAL ) * + COUNT ( * ) + - 50 - 80 - - CASE + 49 WHEN - ( + ( + + AVG ( + 44 ) ) ) * + 19 + - 40 THEN - + 41 + - 73 ELSE + + 46 + - - MAX ( DISTINCT - ( - + 79 ) ) * + 47 * + 13 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5019
SELECT + NULLIF ( ( MAX( - 11 ) ), 37 * - CASE + 82 WHEN - 64 THEN - COUNT( + 92 ) END + 87 ) + - COALESCE ( + 97, - MAX( DISTINCT + - 28 ), - SUM( - 80 ) * + - CAST( NULL AS SIGNED ) * - COUNT( * ), + 38 ) AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-5019
SELECT + NULLIF ( ( MAX ( - 11 ) ), 37 * - CASE + 82 WHEN - 64 THEN - COUNT ( + 92 ) END + 87 ) + - COALESCE ( + 97, - MAX ( DISTINCT + - 28 ), - SUM ( - 80 ) * + - CAST ( NULL AS INTEGER ) * - COUNT ( * ), + 38 ) AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT - + 73 * 4 - + 73 + - COUNT( * )
----
-366

skipif mysql # not compatible
query I rowsort label-5020
SELECT - + 73 * 4 - + 73 + - COUNT ( * )
----
-366

query I rowsort
SELECT + 62 * - 18 + 6 * + 50
----
-816

query I rowsort
SELECT + + 11 * 62
----
682

query I rowsort
SELECT + 64 + + - ( - + 59 )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - 78 + - COUNT( * ) + + 27 * 54 + - 62 AS col2
----
1317

skipif mysql # not compatible
query I rowsort label-5024
SELECT - 78 + - COUNT ( * ) + + 27 * 54 + - 62 AS col2
----
1317

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL MAX( ALL - - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL MAX ( ALL - - 79 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5026
SELECT + COUNT( * ) + - COUNT( * ) * - COUNT( * ) + - - 96 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT + COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) + - - 96 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 60 * - 60
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT ALL + 80 + + 2 - - ( - COUNT( * ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL + 80 + + 2 - - ( - COUNT ( * ) ) AS col1
----
81

query I rowsort
SELECT ALL 19 + 32 * + + 32 + + 59
----
1102

query I rowsort
SELECT - 30 * + 70 AS col0
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL MAX( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL MAX ( 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5032
SELECT - 24 + + NULLIF ( - 93, + COUNT( * ) * + 23 * - - 1 * + 64 * - 18 * 49 * - 82 + - + CAST( NULL AS SIGNED ) + 65 + - - MAX( + + 71 ) * - + CAST( NULL AS SIGNED ) * 56 )
----
-117

skipif mysql # not compatible
query I rowsort label-5032
SELECT - 24 + + NULLIF ( - 93, + COUNT ( * ) * + 23 * - - 1 * + 64 * - 18 * 49 * - 82 + - + CAST ( NULL AS INTEGER ) + 65 + - - MAX ( + + 71 ) * - + CAST ( NULL AS INTEGER ) * 56 )
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT - 83 DIV - 77 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5033
SELECT - 83 / - 77 AS col0
----
1

query I rowsort
SELECT + 94 * - 12
----
-1128

onlyif mysql # DIV for integer division: 
query I rowsort label-5035
SELECT - 12 DIV + - 7 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5035
SELECT - 12 / + - 7 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT + 38 DIV 2 - 92 + - 38 - - COUNT( * ) * - 58 * 13
----
-865

skipif mysql # not compatible
query I rowsort label-5036
SELECT + 38 / 2 - 92 + - 38 - - COUNT ( * ) * - 58 * 13
----
-865

query II rowsort
SELECT + 84 AS col2, - 42
----
84
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5038
SELECT - ( + 58 ) * + + 63 * - CAST( - CAST( + 93 AS SIGNED ) AS SIGNED ) + - 85 + 88 + 12, 42 AS col1
----
-339807
42

skipif mysql # not compatible
query II rowsort label-5038
SELECT - ( + 58 ) * + + 63 * - CAST ( - CAST ( + 93 AS INTEGER ) AS INTEGER ) + - 85 + 88 + 12, 42 AS col1
----
-339807
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT - 53 DIV 22 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5039
SELECT - 53 / 22 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5040
SELECT CAST( NULL AS SIGNED ) AS col0, + 10 AS col0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-5040
SELECT CAST ( NULL AS INTEGER ) AS col0, + 10 AS col0
----
NULL
10

query I rowsort
SELECT DISTINCT 45 * + 98
----
4410

query I rowsort
SELECT DISTINCT - - ( 11 ) * - - 82 + + + 87 + + 88 AS col2
----
1077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT ALL + - CASE + CAST( NULL AS SIGNED ) WHEN + 72 / + 8 * + + 50 * - 7 - - - 88 + + 93 + - - 45 THEN 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL + - CASE + CAST ( NULL AS INTEGER ) WHEN + 72 / + 8 * + + 50 * - 7 - - - 88 + + 93 + - - 45 THEN 21 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5044
SELECT 62, + COUNT( * ) * 68 col1
----
62
68

skipif mysql # not compatible
query II rowsort label-5044
SELECT 62, + COUNT ( * ) * 68 col1
----
62
68

query II rowsort
SELECT + - 65 AS col2, - 51 * + + 82 + 81
----
-65
-4101

query I rowsort
SELECT + - ( + 31 )
----
-31

query I rowsort
SELECT + + 59 + 26 + - - 25 col1
----
110

query I rowsort
SELECT + 59 * - 92 AS col2
----
-5428

query I rowsort
SELECT ALL + + 29 AS col1
----
29

query II rowsort
SELECT + - 42 AS col0, 82 AS col0
----
-42
82

onlyif mysql # DIV for integer division: 
query II rowsort label-5051
SELECT NULLIF ( 44, - + 99 * 15 ) AS col2, 70 DIV - 55
----
44
-1

skipif mysql # not compatible
query II rowsort label-5051
SELECT NULLIF ( 44, - + 99 * 15 ) AS col2, 70 / - 55
----
44
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5052
SELECT ALL + + MAX( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + + MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5053
SELECT DISTINCT CASE - COUNT( * ) WHEN CASE + - 19 WHEN - 75 THEN NULL WHEN - - 75 + + - ( + - 27 ) THEN - 90 WHEN + 84 THEN NULL END THEN CASE CAST( + 39 AS SIGNED ) WHEN - 69 THEN NULL ELSE - 50 END ELSE NULL END * - + COUNT( * ) * COUNT( * ) + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT CASE - COUNT ( * ) WHEN CASE + - 19 WHEN - 75 THEN NULL WHEN - - 75 + + - ( + - 27 ) THEN - 90 WHEN + 84 THEN NULL END THEN CASE CAST ( + 39 AS INTEGER ) WHEN - 69 THEN NULL ELSE - 50 END ELSE NULL END * - + COUNT ( * ) * COUNT ( * ) + + 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5054
SELECT DISTINCT - 1 DIV - 49 - + NULLIF ( 47, COALESCE ( - 53, - COUNT( * ), + 63 ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - 1 / - 49 - + NULLIF ( 47, COALESCE ( - 53, - COUNT ( * ), + 63 ) ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-5055
SELECT + SUM( ALL - 19 ) * - + 65 col2, MAX( DISTINCT - ( - 13 ) ) - + 35 AS col2
----
1235
-22

skipif mysql # not compatible
query II rowsort label-5055
SELECT + SUM ( ALL - 19 ) * - + 65 col2, MAX ( DISTINCT - ( - 13 ) ) - + 35 AS col2
----
1235
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5056
SELECT DISTINCT - 52 * CAST( NULL AS SIGNED ) + + + COUNT( * ) * + 41 * 92 / + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT - 52 * CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * + 41 * 92 / + 12
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5057
SELECT - - 88 + 81 * - MAX( + + CASE 0 WHEN - + 41 + 97 + - 99 * - + ( 96 ) * + + 35 THEN 18 DIV - - 78 END ), 83 DIV NULLIF ( - 91, 83 ) AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5057
SELECT - - 88 + 81 * - MAX ( + + CASE 0 WHEN - + 41 + 97 + - 99 * - + ( 96 ) * + + 35 THEN 18 / - - 78 END ), 83 / NULLIF ( - 91, 83 ) AS col0
----
NULL
0

query I rowsort
SELECT 68 + 45 * + - 27 AS col1
----
-1147

query I rowsort
SELECT COALESCE ( 1, + 13 ) * + 31 + 47
----
78

query I rowsort
SELECT DISTINCT + 39 + - 30 AS col2
----
9

query I rowsort
SELECT ALL 49 + + + ( + 66 ) AS col0
----
115

query I rowsort
SELECT ALL 60 * - 12
----
-720

onlyif mysql # aggregate syntax: 
query II rowsort label-5063
SELECT ALL 19 + 16 AS col2, - COUNT( * ) + 10 + - 87
----
35
-78

skipif mysql # not compatible
query II rowsort label-5063
SELECT ALL 19 + 16 AS col2, - COUNT ( * ) + 10 + - 87
----
35
-78

query I rowsort
SELECT DISTINCT 78 + 87 * 87
----
7647

query I rowsort
SELECT ALL - 21 + - 98 - + - ( + 2 ) * - 85 - + 22 AS col2
----
-311

query I rowsort
SELECT ALL 13 + + - 53 AS col0
----
-40

query I rowsort
SELECT ALL 65 + - - 2 AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT 28 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT 28 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 38 - - - ( ( 76 ) ) * + + ( ( + 21 ) ) AS col2
----
-1558

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT COUNT( * ) * - ( - 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5070
SELECT COUNT ( * ) * - ( - 31 ) AS col2
----
31

query I rowsort
SELECT ALL 47 * 13 AS col1
----
611

query II rowsort
SELECT DISTINCT 64 - + + 39 AS col0, + 56 AS col2
----
25
56

query II rowsort
SELECT + 60 * + 22 AS col0, 80 * + 31
----
1320
2480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5074
SELECT + 69 + + + COUNT( ALL - 3 ) DIV + 65
----
69

skipif mysql # not compatible
query I rowsort label-5074
SELECT + 69 + + + COUNT ( ALL - 3 ) / + 65
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT + - SUM( - 15 ) col1
----
15

skipif mysql # not compatible
query I rowsort label-5075
SELECT + - SUM ( - 15 ) col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT + 44 DIV - 22 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5076
SELECT + 44 / - 22 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT 11 + + - COUNT( * ) + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-5077
SELECT 11 + + - COUNT ( * ) + COUNT ( * )
----
11

query I rowsort
SELECT ALL + 7 * - - 48 + + 49
----
385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5079
SELECT DISTINCT - + 66 * - - COUNT( * ) - + 99 + + + 82 * - - 94 * + 18 * + + 59 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT - + 66 * - - COUNT ( * ) - + 99 + + + 82 * - - 94 * + 18 * + + 59 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5080
SELECT + 95 * - CAST( + 15 AS SIGNED ) + 35, + 35 * 28 AS col1
----
-1390
980

skipif mysql # not compatible
query II rowsort label-5080
SELECT + 95 * - CAST ( + 15 AS INTEGER ) + 35, + 35 * 28 AS col1
----
-1390
980

query I rowsort
SELECT ALL - - NULLIF ( - - 81, 53 ) + + 99 + 45 AS col2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT DISTINCT - 56 + COUNT( 13 )
----
-55

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT - 56 + COUNT ( 13 )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + - - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT ALL - - 24 + - 85 - - MIN( 66 )
----
5

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL - - 24 + - 85 - - MIN ( 66 )
----
5

query I rowsort
SELECT ALL + + 11 + + 79 + 73
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT DISTINCT - CASE + 4 WHEN + 62 THEN + 67 WHEN 81 * COALESCE ( NULLIF ( + - 31, - 27 ), 99 ) - ( - 7 ) THEN + 45 ELSE - 37 + - COUNT( * ) END
----
38

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT - CASE + 4 WHEN + 62 THEN + 67 WHEN 81 * COALESCE ( NULLIF ( + - 31, - 27 ), 99 ) - ( - 7 ) THEN + 45 ELSE - 37 + - COUNT ( * ) END
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT 84 * + - COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-5087
SELECT 84 * + - COUNT ( * ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT 66 * COUNT( * ) * + 73
----
4818

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT 66 * COUNT ( * ) * + 73
----
4818

onlyif mysql # DIV for integer division: 
query I rowsort label-5089
SELECT DISTINCT + 34 + 65 DIV + + 14
----
38

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT + 34 + 65 / + + 14
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL COUNT( * ) * - 63
----
-63

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL COUNT ( * ) * - 63
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-5091
SELECT COUNT( * ) + - 56 + + + 24 * + 52 * 97, - COUNT( * ) AS col1
----
121001
-1

skipif mysql # not compatible
query II rowsort label-5091
SELECT COUNT ( * ) + - 56 + + + 24 * + 52 * 97, - COUNT ( * ) AS col1
----
121001
-1

query I rowsort
SELECT ALL + 16 + + 17
----
33

query II rowsort
SELECT 61 AS col1, 2 * - 74
----
61
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT DISTINCT + 7 * COALESCE ( 69, - CASE + COUNT( ALL - + 95 ) WHEN + - 88 + - 14 THEN 48 END, - 76 + - - 10 ) AS col2
----
483

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT + 7 * COALESCE ( 69, - CASE + COUNT ( ALL - + 95 ) WHEN + - 88 + - 14 THEN 48 END, - 76 + - - 10 ) AS col2
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL COUNT( ALL - 55 ) * - 83
----
-83

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL COUNT ( ALL - 55 ) * - 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT COUNT( 4 ) * 83 + - 76 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5096
SELECT COUNT ( 4 ) * 83 + - 76 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT ALL - COUNT( * ) * 47 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL - COUNT ( * ) * 47 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL MIN( + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL MIN ( + 32 )
----
32

query I rowsort
SELECT 28 * - 47 AS col1
----
-1316

query II rowsort
SELECT 80 AS col2, 34 * + 27
----
80
918

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT 18 * + NULLIF ( - 94, - COUNT( * ) + 97 + - - 32 * + 6 ) AS col1
----
-1692

skipif mysql # not compatible
query I rowsort label-5101
SELECT 18 * + NULLIF ( - 94, - COUNT ( * ) + 97 + - - 32 * + 6 ) AS col1
----
-1692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5102
SELECT CAST( NULL AS SIGNED ) * - - 54 / - 19 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT CAST ( NULL AS INTEGER ) * - - 54 / - 19 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5103
SELECT COUNT( * ) * + COALESCE ( + CAST( - 68 AS SIGNED ), + COUNT( * ) ) + COUNT( * ) * - + 80
----
-148

skipif mysql # not compatible
query I rowsort label-5103
SELECT COUNT ( * ) * + COALESCE ( + CAST ( - 68 AS INTEGER ), + COUNT ( * ) ) + COUNT ( * ) * - + 80
----
-148

query II rowsort
SELECT + 49 col2, 31 AS col2
----
49
31

query I rowsort
SELECT + 17 * + ( COALESCE ( + 11, - - 38 ) ) * 2 AS col1
----
374

query II rowsort
SELECT + 83 AS col2, 30 AS col0
----
83
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT + NULLIF ( + 17, + - COUNT( * ) + + 74 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-5107
SELECT + NULLIF ( + 17, + - COUNT ( * ) + + 74 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL - COALESCE ( + + NULLIF ( + 45, - 19 + + - SUM( ALL 51 ) * - 66 + 42 ), + 10 * - 59, 52 * - 35 * + + 23 + 75 ) * - - 7 * - 85 * 65 + - + COUNT( * )
----
1740374

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL - COALESCE ( + + NULLIF ( + 45, - 19 + + - SUM ( ALL 51 ) * - 66 + 42 ), + 10 * - 59, 52 * - 35 * + + 23 + 75 ) * - - 7 * - 85 * 65 + - + COUNT ( * )
----
1740374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5109
SELECT DISTINCT + - 59 DIV - - COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT + - 59 / - - COUNT ( * ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT ALL + COUNT( * ) * 40
----
40

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL + COUNT ( * ) * 40
----
40

query I rowsort
SELECT DISTINCT ( - + 39 ) + 72 + - 68 col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT ALL - COUNT( * ) + - 27 + ( + - 7 ) * - - 15 AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL - COUNT ( * ) + - 27 + ( + - 7 ) * - - 15 AS col0
----
-133

query II rowsort
SELECT ALL + 29, ( + 41 ) AS col1
----
29
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT + NULLIF ( + COALESCE ( NULLIF ( 81, AVG ( + + 6 ) ), + - 88, COALESCE ( - 91, - 99 * + + 59 * + - 49 ) ), 34 * - - 86 ) - 45 + + MAX( + 0 ) * - COUNT( * ) + - 14
----
22

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT + NULLIF ( + COALESCE ( NULLIF ( 81, AVG ( + + 6 ) ), + - 88, COALESCE ( - 91, - 99 * + + 59 * + - 49 ) ), 34 * - - 86 ) - 45 + + MAX ( + 0 ) * - COUNT ( * ) + - 14
----
22

query II rowsort
SELECT 33 AS col1, 94
----
33
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5116
SELECT ALL + NULLIF ( - 68, ( + - MAX( DISTINCT - 30 ) ) ) - CAST( - 28 AS SIGNED ) + - 57 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + NULLIF ( - 68, ( + - MAX ( DISTINCT - 30 ) ) ) - CAST ( - 28 AS INTEGER ) + - 57 AS col2
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT - 1 * CAST( 80 AS SIGNED ) col0
----
-80

skipif mysql # not compatible
query I rowsort label-5117
SELECT - 1 * CAST ( 80 AS INTEGER ) col0
----
-80

query I rowsort
SELECT - 72 + 73
----
1

query I rowsort
SELECT ALL COALESCE ( + 62, - - 48 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT - 26 * + SUM( DISTINCT 28 ) + - - 33 AS col2
----
-695

skipif mysql # not compatible
query I rowsort label-5120
SELECT - 26 * + SUM ( DISTINCT 28 ) + - - 33 AS col2
----
-695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5121
SELECT - MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL MIN( ALL - 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL MIN ( ALL - 12 ) AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT ALL CAST( NULL AS SIGNED ) * - + ( + + 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL CAST ( NULL AS INTEGER ) * - + ( + + 16 ) AS col0
----
NULL

query I rowsort
SELECT - 18 - + + 97 AS col1
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT DISTINCT COALESCE ( 50, CAST( - CASE + ( 37 ) WHEN CAST( NULL AS SIGNED ) THEN + + 75 / + 40 ELSE NULL END AS SIGNED ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT COALESCE ( 50, CAST ( - CASE + ( 37 ) WHEN CAST ( NULL AS INTEGER ) THEN + + 75 / + 40 ELSE NULL END AS INTEGER ) ) AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5126
SELECT - 94 + + 26 * - MIN( + CAST( + + 16 AS SIGNED ) ) AS col2
----
-510

skipif mysql # not compatible
query I rowsort label-5126
SELECT - 94 + + 26 * - MIN ( + CAST ( + + 16 AS INTEGER ) ) AS col2
----
-510

query I rowsort
SELECT ALL ( - 31 )
----
-31

query I rowsort
SELECT - 82 + 50 AS col2
----
-32

query I rowsort
SELECT - 99 * - 10
----
990

query I rowsort
SELECT - 56 + 25
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5131
SELECT ALL 43 AS col1, + COALESCE ( 61, COUNT( * ) * + - 61 + COUNT( * ) + - 74 * + - ( - ( MAX( 78 ) ) ) + - 31, - + SUM( + - 1 ) ) + + ( + - ( - - ( + 53 ) ) ) col2
----
43
8

skipif mysql # not compatible
query II rowsort label-5131
SELECT ALL 43 AS col1, + COALESCE ( 61, COUNT ( * ) * + - 61 + COUNT ( * ) + - 74 * + - ( - ( MAX ( 78 ) ) ) + - 31, - + SUM ( + - 1 ) ) + + ( + - ( - - ( + 53 ) ) ) col2
----
43
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL - - COUNT( * ) + - COUNT( - + 75 ) + + + 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL - - COUNT ( * ) + - COUNT ( - + 75 ) + + + 35 AS col2
----
35

query I rowsort
SELECT ALL + + 57 + - 41
----
16

query I rowsort
SELECT ALL - 16 + + 67 AS col1
----
51

query II rowsort
SELECT - 38 AS col0, - 93 AS col0
----
-38
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5136
SELECT DISTINCT + - 78 / - + CAST( NULL AS SIGNED ) * - 17 + COUNT( DISTINCT + 1 ) + CAST( + 44 AS SIGNED ) * - + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT + - 78 / - + CAST ( NULL AS INTEGER ) * - 17 + COUNT ( DISTINCT + 1 ) + CAST ( + 44 AS INTEGER ) * - + 28 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT + 65 DIV 53 + 42 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5137
SELECT + 65 / 53 + 42 AS col0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5138
SELECT + + 63, - COUNT( * ) AS col2
----
63
-1

skipif mysql # not compatible
query II rowsort label-5138
SELECT + + 63, - COUNT ( * ) AS col2
----
63
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5139
SELECT ALL COALESCE ( - 71, + - 65 ) DIV - + 99 + 10 * - 47 AS col0, + 84 AS col2
----
-470
84

skipif mysql # not compatible
query II rowsort label-5139
SELECT ALL COALESCE ( - 71, + - 65 ) / - + 99 + 10 * - 47 AS col0, + 84 AS col2
----
-470
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5140
SELECT - + 27 DIV + ( - - 77 ) + + NULLIF ( - 75, + AVG ( + 54 ) + - 65 ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-5140
SELECT - + 27 / + ( - - 77 ) + + NULLIF ( - 75, + AVG ( + 54 ) + - 65 ) / + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT + 68 + SUM( DISTINCT 91 ) + + + ( 52 ) + - SUM( + 91 )
----
120

skipif mysql # not compatible
query I rowsort label-5141
SELECT + 68 + SUM ( DISTINCT 91 ) + + + ( 52 ) + - SUM ( + 91 )
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT + 72 * + CAST( NULL AS SIGNED ) * - 11 + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT + 72 * + CAST ( NULL AS INTEGER ) * - 11 + - 12
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 13, + + 83 ) * + + 79
----
-1027

onlyif mysql # DIV for integer division: 
query II rowsort label-5144
SELECT ALL + - 25, 3 DIV + + 27 AS col1
----
-25
0

skipif mysql # not compatible
query II rowsort label-5144
SELECT ALL + - 25, 3 / + + 27 AS col1
----
-25
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5145
SELECT DISTINCT 29 * - + CAST( NULL AS SIGNED ) col0, 59 * - COUNT( * ) AS col1, - COUNT( * )
----
NULL
-59
-1

skipif mysql # not compatible
query III rowsort label-5145
SELECT DISTINCT 29 * - + CAST ( NULL AS INTEGER ) col0, 59 * - COUNT ( * ) AS col1, - COUNT ( * )
----
NULL
-59
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT DISTINCT CASE - COUNT( ALL + + 50 ) WHEN - 65 THEN + COUNT( * ) ELSE NULL END * 24 + 23 + NULLIF ( + - 89, - ( - CASE + COUNT( * ) WHEN 92 / - 20 * - 22 THEN - 93 ELSE NULL END ) ) / CASE + COALESCE ( + 2, + 62, 77 ) WHEN - COALESCE ( - COUNT( * ), - 98 ) - COUNT( * ) THEN + NULLIF ( SUM( DISTINCT + 99 ), - AVG ( ALL + + ( 22 ) ) ) WHEN 75 * + 78 + - 63 * 50 THEN NULL WHEN NULLIF ( 14, - 13 ) THEN NULL ELSE + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT CASE - COUNT ( ALL + + 50 ) WHEN - 65 THEN + COUNT ( * ) ELSE NULL END * 24 + 23 + NULLIF ( + - 89, - ( - CASE + COUNT ( * ) WHEN 92 / - 20 * - 22 THEN - 93 ELSE NULL END ) ) / CASE + COALESCE ( + 2, + 62, 77 ) WHEN - COALESCE ( - COUNT ( * ), - 98 ) - COUNT ( * ) THEN + NULLIF ( SUM ( DISTINCT + 99 ), - AVG ( ALL + + ( 22 ) ) ) WHEN 75 * + 78 + - 63 * 50 THEN NULL WHEN NULLIF ( 14, - 13 ) THEN NULL ELSE + 5 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5147
SELECT + - 26 / 45 + + COUNT( * ) + 45 / - CAST( NULL AS SIGNED ) * - 45 * 86 + - + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT + - 26 / 45 + + COUNT ( * ) + 45 / - CAST ( NULL AS INTEGER ) * - 45 * 86 + - + 32 AS col1
----
NULL

query I rowsort
SELECT ALL 40 * - 54 + - 97 - 15 col2
----
-2272

query II rowsort
SELECT ALL + + 91 AS col1, 55 + + - 57
----
91
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT DISTINCT - COUNT( * ) * ( - + 39 ) * + ( - 37 ) * - - 41 * - - AVG ( - 79 ) + + + 68 * + + CASE + + CASE + 81 WHEN + 57 + - 44 THEN NULL ELSE - 64 END WHEN - + 47 THEN + + 19 WHEN + CAST( + + 15 AS SIGNED ) * 18 + + + MAX( ALL - - 3 ) THEN NULL WHEN - - 55 THEN NULL ELSE NULL END * 22 + COUNT( * ) - + 88 * - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT - COUNT ( * ) * ( - + 39 ) * + ( - 37 ) * - - 41 * - - AVG ( - 79 ) + + + 68 * + + CASE + + CASE + 81 WHEN + 57 + - 44 THEN NULL ELSE - 64 END WHEN - + 47 THEN + + 19 WHEN + CAST ( + + 15 AS INTEGER ) * 18 + + + MAX ( ALL - - 3 ) THEN NULL WHEN - - 55 THEN NULL ELSE NULL END * 22 + COUNT ( * ) - + 88 * - 83 AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( - - 46, 48 + 75 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT + CAST( + + 40 AS SIGNED ) * COUNT( * ) + 25 + ( + 56 ) AS col0
----
121

skipif mysql # not compatible
query I rowsort label-5152
SELECT + CAST ( + + 40 AS INTEGER ) * COUNT ( * ) + 25 + ( + 56 ) AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - 1 * 8 * - 21 * - COUNT( * )
----
-168

skipif mysql # not compatible
query I rowsort label-5153
SELECT - 1 * 8 * - 21 * - COUNT ( * )
----
-168

query I rowsort
SELECT ALL ( - ( - + 21 ) ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT 90 * + COUNT( * ) + - 40 + + + 98 - + + MIN( 77 ) * 80 * - + 11 * - - ( 60 ) * - 70 * 1 AS col1
----
-284591852

skipif mysql # not compatible
query I rowsort label-5155
SELECT 90 * + COUNT ( * ) + - 40 + + + 98 - + + MIN ( 77 ) * 80 * - + 11 * - - ( 60 ) * - 70 * 1 AS col1
----
-284591852

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT DISTINCT CASE WHEN NOT - COUNT( DISTINCT - 40 ) <> + 31 THEN - 54 WHEN NULL NOT IN ( 50 * + + 24 * + - MAX( ALL 95 ), - 30, - COUNT( * ) ) AND NOT + 45 * COUNT( ALL + 42 ) <> - 68 * - 99 THEN + NULLIF ( + + AVG ( ALL + ( - - 72 ) ), - + 64 ) / + ( 32 ) + COUNT( + + 57 ) * - + COALESCE ( - 43, + 14 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT CASE WHEN NOT - COUNT ( DISTINCT - 40 ) <> + 31 THEN - 54 WHEN NULL NOT IN ( 50 * + + 24 * + - MAX ( ALL 95 ), - 30, - COUNT ( * ) ) AND NOT + 45 * COUNT ( ALL + 42 ) <> - 68 * - 99 THEN + NULLIF ( + + AVG ( ALL + ( - - 72 ) ), - + 64 ) / + ( 32 ) + COUNT ( + + 57 ) * - + COALESCE ( - 43, + 14 ) ELSE NULL END col1
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 5, 37 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT - CAST( - + 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-5158
SELECT - CAST ( - + 33 AS INTEGER )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT - COUNT( * ) * + 50 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-5159
SELECT - COUNT ( * ) * + 50 AS col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT DISTINCT + 82 * - 79 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT + 82 * - 79 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5161
SELECT ALL COALESCE ( 71, + 52 DIV SUM( 61 ) + - 43 + - 81 )
----
71

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL COALESCE ( 71, + 52 / SUM ( 61 ) + - 43 + - 81 )
----
71

query I rowsort
SELECT DISTINCT ( - 88 )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5163
SELECT DISTINCT CAST( - 94 AS SIGNED ) AS col1, + 33 * + + 98 col0
----
-94
3234

skipif mysql # not compatible
query II rowsort label-5163
SELECT DISTINCT CAST ( - 94 AS INTEGER ) AS col1, + 33 * + + 98 col0
----
-94
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT - COALESCE ( - ( 29 ), + 11, 16 + + 47 + - COUNT( * ) + + - 23 ) + 49
----
78

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT - COALESCE ( - ( 29 ), + 11, 16 + + 47 + - COUNT ( * ) + + - 23 ) + 49
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT - - 55 + - 17 * - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT - - 55 + - 17 * - COUNT ( * )
----
72

query I rowsort
SELECT ALL + 87 + - 25 + 77 * + + 0
----
62

query I rowsort
SELECT DISTINCT - 29 * + 73 + + - 33
----
-2150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5168
SELECT CASE + 55 WHEN - + 15 * + 3 * + 96 * - - 99 + - + 71 THEN + - 5 * - - 20 WHEN NULLIF ( + + CAST( + 45 AS SIGNED ), COUNT( * ) * + ( + + 56 ) ) THEN NULL WHEN + CAST( NULL AS SIGNED ) + - 0 THEN - MIN( + + 46 ) * - 24 + - + 11 ELSE NULL END * - 99 + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT CASE + 55 WHEN - + 15 * + 3 * + 96 * - - 99 + - + 71 THEN + - 5 * - - 20 WHEN NULLIF ( + + CAST ( + 45 AS INTEGER ), COUNT ( * ) * + ( + + 56 ) ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) + - 0 THEN - MIN ( + + 46 ) * - 24 + - + 11 ELSE NULL END * - 99 + 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT 0 * + - 77 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT 0 * + - 77 * COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5170
SELECT ALL + 66 + ( CAST( NULL AS SIGNED ) ) col2, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5170
SELECT ALL + 66 + ( CAST ( NULL AS INTEGER ) ) col2, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT - CAST( + 5 AS SIGNED ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5171
SELECT - CAST ( + 5 AS INTEGER ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL COUNT( * ) - + 77 - 40 + - 67 AS col1
----
-183

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL COUNT ( * ) - + 77 - 40 + - 67 AS col1
----
-183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5173
SELECT - 88 * - 5 - COUNT( * ) * + 54 DIV - 47 - - 93 AS col1
----
534

skipif mysql # not compatible
query I rowsort label-5173
SELECT - 88 * - 5 - COUNT ( * ) * + 54 / - 47 - - 93 AS col1
----
534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5174
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) * + 96 * 3 * + ( + - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 96 * 3 * + ( + - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT + 54 - - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-5175
SELECT + 54 - - COUNT ( * )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5176
SELECT CAST( NULL AS SIGNED ) * COUNT( 66 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT CAST ( NULL AS INTEGER ) * COUNT ( 66 ) AS col2
----
NULL

query I rowsort
SELECT ALL 84 * + 43
----
3612

query II rowsort
SELECT + 54, 39 col0
----
54
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5179
SELECT ALL - COALESCE ( + 42, COUNT( * ) ) AS col2, SUM( DISTINCT - - 52 ) AS col1
----
-42
52

skipif mysql # not compatible
query II rowsort label-5179
SELECT ALL - COALESCE ( + 42, COUNT ( * ) ) AS col2, SUM ( DISTINCT - - 52 ) AS col1
----
-42
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT - 3 - + 70 + - ( + COUNT( * ) )
----
-74

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT - 3 - + 70 + - ( + COUNT ( * ) )
----
-74

query I rowsort
SELECT ALL 36 * - 51 AS col2
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT ALL 48 * - COUNT( * ) * + 73
----
-3504

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL 48 * - COUNT ( * ) * + 73
----
-3504

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL - MAX( DISTINCT 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL - MAX ( DISTINCT 85 ) AS col2
----
-85

query I rowsort
SELECT ALL 0 * - 93
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5185
SELECT 44 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-5185
SELECT 44 / + 84
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5186
SELECT COALESCE ( CAST( - COUNT( * ) AS SIGNED ), + 59 ) + - + 41 + - - 7 AS col0, ( + - 5 ) AS col1
----
-35
-5

skipif mysql # not compatible
query II rowsort label-5186
SELECT COALESCE ( CAST ( - COUNT ( * ) AS INTEGER ), + 59 ) + - + 41 + - - 7 AS col0, ( + - 5 ) AS col1
----
-35
-5

query II rowsort
SELECT ALL 79 col2, + 82
----
79
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5188
SELECT 9, - 31 - - COUNT( * ) AS col1
----
9
-30

skipif mysql # not compatible
query II rowsort label-5188
SELECT 9, - 31 - - COUNT ( * ) AS col1
----
9
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT 34 DIV + 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5189
SELECT 34 / + 65 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5190
SELECT DISTINCT 38 AS col1, CASE + COUNT( * ) WHEN 10 - - 28 - - 64 THEN NULL WHEN + - 15 + + AVG ( + 89 ) / - NULLIF ( + + 48, + COUNT( * ) ) THEN - 64 * - - COUNT( * ) - ( 68 ) + - + ( + 34 ) + + 59 * - MAX( DISTINCT + ( - 42 ) ) * + MIN( DISTINCT + + 74 ) END AS col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-5190
SELECT DISTINCT 38 AS col1, CASE + COUNT ( * ) WHEN 10 - - 28 - - 64 THEN NULL WHEN + - 15 + + AVG ( + 89 ) / - NULLIF ( + + 48, + COUNT ( * ) ) THEN - 64 * - - COUNT ( * ) - ( 68 ) + - + ( + 34 ) + + 59 * - MAX ( DISTINCT + ( - 42 ) ) * + MIN ( DISTINCT + + 74 ) END AS col0
----
38
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5191
SELECT DISTINCT + 51 + + COALESCE ( - - NULLIF ( NULLIF ( + 60, COALESCE ( + 97, + 45 - + + MAX( DISTINCT + 0 ) / 64 * - 21 ) + + 40 + CAST( NULL AS SIGNED ) ), 65 ), + - 86 / - MAX( + 9 ) * 28 / - - NULLIF ( 7, + COUNT( * ) ) ) * - 30 - 51 + + + CASE 54 WHEN 76 + + 79 THEN - COALESCE ( - 2, + 3, - 8 ) + 50 / + 97 WHEN + 61 THEN NULL END + + 4 / 97 / 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + 51 + + COALESCE ( - - NULLIF ( NULLIF ( + 60, COALESCE ( + 97, + 45 - + + MAX ( DISTINCT + 0 ) / 64 * - 21 ) + + 40 + CAST ( NULL AS INTEGER ) ), 65 ), + - 86 / - MAX ( + 9 ) * 28 / - - NULLIF ( 7, + COUNT ( * ) ) ) * - 30 - 51 + + + CASE 54 WHEN 76 + + 79 THEN - COALESCE ( - 2, + 3, - 8 ) + 50 / + 97 WHEN + 61 THEN NULL END + + 4 / 97 / 76
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5192
SELECT ALL - 96 + 79 - + + 29 AS col0, + SUM( 26 ) DIV 35
----
-46
0

skipif mysql # not compatible
query II rowsort label-5192
SELECT ALL - 96 + 79 - + + 29 AS col0, + SUM ( 26 ) / 35
----
-46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT MAX( ALL 75 ) * + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-5193
SELECT MAX ( ALL 75 ) * + COUNT ( * )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5194
SELECT DISTINCT 21 + + 81 + + + CAST( NULL AS SIGNED ) + COUNT( * ) + + + 66 / - 78 * COUNT( * ) + + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT 21 + + 81 + + + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + + 66 / - 78 * COUNT ( * ) + + + 81
----
NULL

query I rowsort
SELECT ALL + - 57 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT - ( - COUNT( + 35 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5196
SELECT - ( - COUNT ( + 35 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT DISTINCT - MIN( ALL 27 ) + - + 4 - ( + 59 )
----
-90

skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT - MIN ( ALL 27 ) + - + 4 - ( + 59 )
----
-90

query I rowsort
SELECT ALL 44 + 65 col0
----
109

query II rowsort
SELECT - + 47 AS col0, - NULLIF ( - - 44, - - 3 )
----
-47
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5200
SELECT ALL - ( - 48 ) * NULLIF ( CAST( - - COUNT( * ) AS SIGNED ), - COUNT( * ) ) AS col0, 78 DIV - 79 * 66
----
48
0

skipif mysql # not compatible
query II rowsort label-5200
SELECT ALL - ( - 48 ) * NULLIF ( CAST ( - - COUNT ( * ) AS INTEGER ), - COUNT ( * ) ) AS col0, 78 / - 79 * 66
----
48
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5201
SELECT + CAST( 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-5201
SELECT + CAST ( 33 AS INTEGER )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT ALL + - 2 - - + MIN( ALL - 81 ) + - NULLIF ( + 46, - - 33 + - 36 ) AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL + - 2 - - + MIN ( ALL - 81 ) + - NULLIF ( + 46, - - 33 + - 36 ) AS col0
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT DISTINCT - - 40 DIV 27 * + 47 + + - 63 - - - 46 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT - - 40 / 27 * + 47 + + - 63 - - - 46 AS col2
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5204
SELECT ALL - + 73 DIV + 91 col0
----
0

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL - + 73 / + 91 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL + - COUNT( * ) - 15 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL + - COUNT ( * ) - 15 AS col2
----
-16

query I rowsort
SELECT + ( + - 72 ) AS col1
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5207
SELECT + + 89 DIV + - 86 + - CASE - 57 WHEN 52 THEN NULL ELSE - NULLIF ( - 63, - - 67 ) + + + 29 END + - 40 AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-5207
SELECT + + 89 / + - 86 + - CASE - 57 WHEN 52 THEN NULL ELSE - NULLIF ( - 63, - - 67 ) + + + 29 END + - 40 AS col1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT MIN( ALL - - 17 ) / - + 19 * + CASE 28 WHEN - ( 54 ) / + 59 THEN - 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT MIN ( ALL - - 17 ) / - + 19 * + CASE 28 WHEN - ( 54 ) / + 59 THEN - 1 END AS col0
----
NULL

query II rowsort
SELECT + 26 * - 71 - - 88 AS col2, + 24
----
-1758
24

query I rowsort
SELECT ALL - + ( + ( 21 ) ) * + 48
----
-1008

query II rowsort
SELECT 29 + + + 75 * - 18 AS col0, 87 AS col2
----
-1321
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT + 81 DIV 19 - + 1 + + - 27 + - - NULLIF ( 27, 65 * - - 24 ) + - 74 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5212
SELECT + 81 / 19 - + 1 + + - 27 + - - NULLIF ( 27, 65 * - - 24 ) + - 74 AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5213
SELECT NULLIF ( - - 12, - + COUNT( * ) * 55 ) * - + 67 * CASE - - COUNT( * ) WHEN - + 4 * + COALESCE ( ( + - COUNT( * ) ), 91 ) THEN ( + + 28 ) END * - ( NULLIF ( + CAST( NULL AS SIGNED ), + 96 ) ) + + 98 + 81 * - 29 - - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT NULLIF ( - - 12, - + COUNT ( * ) * 55 ) * - + 67 * CASE - - COUNT ( * ) WHEN - + 4 * + COALESCE ( ( + - COUNT ( * ) ), 91 ) THEN ( + + 28 ) END * - ( NULLIF ( + CAST ( NULL AS INTEGER ), + 96 ) ) + + 98 + 81 * - 29 - - 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT - COUNT( * ) * + 78 + + + 97
----
19

skipif mysql # not compatible
query I rowsort label-5214
SELECT - COUNT ( * ) * + 78 + + + 97
----
19

query I rowsort
SELECT ALL - ( + COALESCE ( - 50, - 16 ) ) AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5216
SELECT 12 DIV - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT 12 / - 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT DISTINCT - CASE + + COUNT( * ) WHEN 51 THEN 33 WHEN + 38 THEN NULL WHEN + - 50 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT - CASE + + COUNT ( * ) WHEN 51 THEN 33 WHEN + 38 THEN NULL WHEN + - 50 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 27 + + - 24 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT 11 * - 31 * + - COUNT( * ) col2
----
341

skipif mysql # not compatible
query I rowsort label-5219
SELECT 11 * - 31 * + - COUNT ( * ) col2
----
341

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT COUNT( * ) * + - 89 + + 37 col0
----
-52

skipif mysql # not compatible
query I rowsort label-5220
SELECT COUNT ( * ) * + - 89 + + 37 col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT DISTINCT ( + COUNT( 78 ) ) + - - 76 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT ( + COUNT ( 78 ) ) + - - 76 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT + MIN( - 22 ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-5222
SELECT + MIN ( - 22 ) col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5223
SELECT ALL ( + COUNT( * ) ) + 90 * + CAST( + 60 AS SIGNED ) - - 55 + + + 10 + - 50 * + 28 col2
----
4066

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL ( + COUNT ( * ) ) + 90 * + CAST ( + 60 AS INTEGER ) - - 55 + + + 10 + - 50 * + 28 col2
----
4066

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT + 13 * - 44 + 53 DIV - 70
----
-572

skipif mysql # not compatible
query I rowsort label-5224
SELECT + 13 * - 44 + 53 / - 70
----
-572

query I rowsort
SELECT ALL 29 * 32 col1
----
928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5226
SELECT 37 * 51 * + 26 * 88, - 24 * + CASE COUNT( + 16 ) WHEN 52 THEN + - 47 * 54 + + - CASE 91 WHEN 39 THEN - 94 * CAST( + - 26 AS SIGNED ) * + 29 * 91 * 24 END ELSE NULL END AS col2
----
4317456
NULL

skipif mysql # not compatible
query II rowsort label-5226
SELECT 37 * 51 * + 26 * 88, - 24 * + CASE COUNT ( + 16 ) WHEN 52 THEN + - 47 * 54 + + - CASE 91 WHEN 39 THEN - 94 * CAST ( + - 26 AS INTEGER ) * + 29 * 91 * 24 END ELSE NULL END AS col2
----
4317456
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT ALL - MIN( DISTINCT - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL - MIN ( DISTINCT - 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL 23 + - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL 23 + - COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT - - COUNT( DISTINCT + ( - - 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5229
SELECT - - COUNT ( DISTINCT + ( - - 11 ) )
----
1

query I rowsort
SELECT ALL + 59 + + 45 * 29 AS col1
----
1364

query I rowsort
SELECT + - 79 * 62 AS col0
----
-4898

onlyif mysql # aggregate syntax: 
query II rowsort label-5232
SELECT + 20 + - - MAX( ALL - ( + 32 ) ), 77 * 17 AS col0
----
-12
1309

skipif mysql # not compatible
query II rowsort label-5232
SELECT + 20 + - - MAX ( ALL - ( + 32 ) ), 77 * 17 AS col0
----
-12
1309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5233
SELECT + CAST( NULL AS SIGNED ) * ( 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5233
SELECT + CAST ( NULL AS INTEGER ) * ( 41 ) AS col1
----
NULL

query I rowsort
SELECT ALL CASE - 95 WHEN + 61 THEN + 16 + 3 WHEN + 70 * + - 0 - + + 63 THEN NULL END
----
NULL

query I rowsort
SELECT + 61 * 43 AS col2
----
2623

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5236
SELECT + + NULLIF ( - 75, - 70 ) + - 72, - CAST( 95 AS SIGNED ) col0
----
-147
-95

skipif mysql # not compatible
query II rowsort label-5236
SELECT + + NULLIF ( - 75, - 70 ) + - 72, - CAST ( 95 AS INTEGER ) col0
----
-147
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5237
SELECT + + ( + CAST( NULL AS SIGNED ) ) / + + MIN( ALL + 29 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT + + ( + CAST ( NULL AS INTEGER ) ) / + + MIN ( ALL + 29 ) AS col2
----
NULL

query I rowsort
SELECT - - 47 + - 57
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT + + 78 * - - 90 * - COUNT( * )
----
-7020

skipif mysql # not compatible
query I rowsort label-5239
SELECT + + 78 * - - 90 * - COUNT ( * )
----
-7020

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT + - 3 - - 42 DIV - 75 + 33 - - 86 * - 61 AS col1
----
-5216

skipif mysql # not compatible
query I rowsort label-5240
SELECT + - 3 - - 42 / - 75 + 33 - - 86 * - 61 AS col1
----
-5216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5241
SELECT DISTINCT - ( 56 ) * MAX( ALL - 90 ) * - COUNT( DISTINCT + + COALESCE ( CAST( NULL AS SIGNED ), - 69 ) )
----
-5040

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT - ( 56 ) * MAX ( ALL - 90 ) * - COUNT ( DISTINCT + + COALESCE ( CAST ( NULL AS INTEGER ), - 69 ) )
----
-5040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5242
SELECT + + 28 + - 6 DIV + COUNT( * ) - - 84 * 39 + + ( 62 ) - - - 90 + - + COALESCE ( - 91, + + 16 DIV 47 DIV - NULLIF ( + ( 19 ), - 94 ) )
----
3361

skipif mysql # not compatible
query I rowsort label-5242
SELECT + + 28 + - 6 / + COUNT ( * ) - - 84 * 39 + + ( 62 ) - - - 90 + - + COALESCE ( - 91, + + 16 / 47 / - NULLIF ( + ( 19 ), - 94 ) )
----
3361

query I rowsort
SELECT DISTINCT 72 * + 83 * - 79 AS col2
----
-472104

query I rowsort
SELECT ALL - 10 * + ( - 69 ) * - 1 + + 75 AS col2
----
-615

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT - 19 * + - CASE + - 85 WHEN + 67 THEN + - MAX( ALL - 9 ) + - + 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT - 19 * + - CASE + - 85 WHEN + 67 THEN + - MAX ( ALL - 9 ) + - + 68 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL + MAX( DISTINCT + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + MAX ( DISTINCT + 64 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT ALL - 82 * + CAST( NULL AS SIGNED ) * + 7 + - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL - 82 * + CAST ( NULL AS INTEGER ) * + 7 + - 28 AS col2
----
NULL

query I rowsort
SELECT + 7 - - 41
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5249
SELECT - CAST( NULL AS SIGNED ) * + 66 - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT - CAST ( NULL AS INTEGER ) * + 66 - - 48
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5250
SELECT COALESCE ( - - CAST( + - 47 AS SIGNED ), 46 * + + 76, - 4 * - 64 + ( 24 ) * 61 ) AS col1, - 37
----
-47
-37

skipif mysql # not compatible
query II rowsort label-5250
SELECT COALESCE ( - - CAST ( + - 47 AS INTEGER ), 46 * + + 76, - 4 * - 64 + ( 24 ) * 61 ) AS col1, - 37
----
-47
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5251
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 44 * + + 96 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 44 * + + 96 / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL + 83 * - 71 * - - COUNT( * ) + - - CASE - 19 WHEN + 99 + - AVG ( ALL 28 ) THEN 84 + - + 79 * - + 40 * - + 15 WHEN + 75 THEN NULL WHEN + 71 THEN + + 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL + 83 * - 71 * - - COUNT ( * ) + - - CASE - 19 WHEN + 99 + - AVG ( ALL 28 ) THEN 84 + - + 79 * - + 40 * - + 15 WHEN + 75 THEN NULL WHEN + 71 THEN + + 61 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5253
SELECT - 35 DIV - + 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-5253
SELECT - 35 / - + 82 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT - MIN( DISTINCT - 84 ) * + MAX( ALL 72 )
----
6048

skipif mysql # not compatible
query I rowsort label-5254
SELECT - MIN ( DISTINCT - 84 ) * + MAX ( ALL 72 )
----
6048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5255
SELECT ALL - COUNT( * ) * 52 + + 46 + - - MAX( 88 ) + 72 - + COUNT( + 53 ) * + - 81 DIV 51 AS col0
----
155

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL - COUNT ( * ) * 52 + + 46 + - - MAX ( 88 ) + 72 - + COUNT ( + 53 ) * + - 81 / 51 AS col0
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-5256
SELECT - 29 - - 57 + + NULLIF ( - - 74, 35 ) + + 82 DIV 75
----
103

skipif mysql # not compatible
query I rowsort label-5256
SELECT - 29 - - 57 + + NULLIF ( - - 74, 35 ) + + 82 / 75
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT ALL ( 73 ) * 55 + + - NULLIF ( + CAST( + 46 AS SIGNED ), + 48 )
----
3969

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL ( 73 ) * 55 + + - NULLIF ( + CAST ( + 46 AS INTEGER ), + 48 )
----
3969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5258
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), - 77 ) / - - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5258
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), - 77 ) / - - 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5259
SELECT ALL COUNT( * ) * COUNT( * ) DIV + - COUNT( * ) - + 88 * - 32
----
2815

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL COUNT ( * ) * COUNT ( * ) / + - COUNT ( * ) - + 88 * - 32
----
2815

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT COUNT( DISTINCT 99 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5260
SELECT COUNT ( DISTINCT 99 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT - 96 + + - 37 + - COUNT( * ) AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-5261
SELECT - 96 + + - 37 + - COUNT ( * ) AS col1
----
-134

query II rowsort
SELECT ALL + 28, - 38 AS col0
----
28
-38

query I rowsort
SELECT - + NULLIF ( 52, - 52 + 9 ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT - 23 + + 15 + + 87 - + 65 * - COUNT( * )
----
144

skipif mysql # not compatible
query I rowsort label-5264
SELECT - 23 + + 15 + + 87 - + 65 * - COUNT ( * )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT ALL - 48 - - + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL - 48 - - + COUNT ( * )
----
-47

query I rowsort
SELECT DISTINCT 67 * - - 70 col1
----
4690

query I rowsort
SELECT ALL + - 31 * + 10 + + 49 col2
----
-261

query I rowsort
SELECT ALL 85 * + - 44
----
-3740

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT + 45 * + ( - COUNT( * ) ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + 45 * + ( - COUNT ( * ) ) AS col2
----
-45

query I rowsort
SELECT ALL NULLIF ( + - 51, + 98 ) * ( - 56 ) AS col0
----
2856

query I rowsort
SELECT + 81 * + 15
----
1215

query II rowsort
SELECT DISTINCT + 53 AS col1, - 39
----
53
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5273
SELECT ALL AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5274
SELECT + + MAX( ALL - 41 ) * + 35, - MIN( DISTINCT - 58 ) AS col1
----
-1435
58

skipif mysql # not compatible
query II rowsort label-5274
SELECT + + MAX ( ALL - 41 ) * + 35, - MIN ( DISTINCT - 58 ) AS col1
----
-1435
58

query I rowsort
SELECT ALL - 60 + 61 AS col1
----
1

query I rowsort
SELECT DISTINCT - 2 + + 61 * - - 21
----
1279

query II rowsort
SELECT 82 AS col2, + 37 * - 22 * - 21 + - 37 + NULLIF ( - - ( - 85 ), + + 61 + 1 ) col2
----
82
16972

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT ALL ( + ( ( + 37 ) ) ) + - ( - - 54 ) + - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL ( + ( ( + 37 ) ) ) + - ( - - 54 ) + - COUNT ( * )
----
-18

query I rowsort
SELECT + 95 * - ( + 2 ) AS col0
----
-190

onlyif mysql # DIV for integer division: 
query I rowsort label-5280
SELECT ALL + 89 DIV + ( + 81 ) + + + ( + 68 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL + 89 / + ( + 81 ) + + + ( + 68 ) AS col0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5281
SELECT 63 DIV COUNT( * ) + - 57 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5281
SELECT 63 / COUNT ( * ) + - 57 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT + 59 + + - CASE + 24 WHEN + 88 THEN + 37 * - + 36 * 80 + - + 91 WHEN + + 57 + + 52 THEN COUNT( * ) WHEN COUNT( * ) * + - 69 / + COUNT( DISTINCT - 58 ) * 18 * + 80 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT + 59 + + - CASE + 24 WHEN + 88 THEN + 37 * - + 36 * 80 + - + 91 WHEN + + 57 + + 52 THEN COUNT ( * ) WHEN COUNT ( * ) * + - 69 / + COUNT ( DISTINCT - 58 ) * 18 * + 80 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5283
SELECT ALL + 72 DIV 50 + + 18 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL + 72 / 50 + + 18 AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT CAST( - 3 AS SIGNED ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5284
SELECT CAST ( - 3 AS INTEGER ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL ( + + 4 ) * + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL ( + + 4 ) * + + COUNT ( * ) AS col1
----
4

query I rowsort
SELECT - 5 + 33
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5287
SELECT ALL - 46 DIV + + 61 - - 95 - 88 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - 46 / + + 61 - - 95 - 88 AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5288
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) + 9
----
1
10

skipif mysql # not compatible
query II rowsort label-5288
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) + 9
----
1
10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5289
SELECT 72 + 61 + + ( + CAST( NULL AS DECIMAL ) ) * - - 26 * - CAST( NULL AS SIGNED ) AS col0, ( - 71 ) + - CAST( 95 AS SIGNED )
----
NULL
-166

skipif mysql # not compatible
query II rowsort label-5289
SELECT 72 + 61 + + ( + CAST ( NULL AS REAL ) ) * - - 26 * - CAST ( NULL AS INTEGER ) AS col0, ( - 71 ) + - CAST ( 95 AS INTEGER )
----
NULL
-166

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5290
SELECT CAST( NULL AS DECIMAL ) * - 78 AS col1, + 13 col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-5290
SELECT CAST ( NULL AS REAL ) * - 78 AS col1, + 13 col2
----
NULL
13

query II rowsort
SELECT + 40 AS col1, 77 + + - 14 AS col0
----
40
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5292
SELECT MAX( - - CASE 5 WHEN - 7 * - - 52 THEN 23 DIV + - 14 WHEN 76 THEN + 0 ELSE + 34 END ) * + 15 AS col1
----
510

skipif mysql # not compatible
query I rowsort label-5292
SELECT MAX ( - - CASE 5 WHEN - 7 * - - 52 THEN 23 / + - 14 WHEN 76 THEN + 0 ELSE + 34 END ) * + 15 AS col1
----
510

query I rowsort
SELECT ALL + 74 * + 19 AS col2
----
1406

query I rowsort
SELECT ALL + 52 * + 79 - - 20 AS col2
----
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL + + COUNT( ALL - 6 ) - + 30 + + 98 + - 48 + - 67 * - 54 + - 40 AS col1
----
3599

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL + + COUNT ( ALL - 6 ) - + 30 + + 98 + - 48 + - 67 * - 54 + - 40 AS col1
----
3599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT ALL - CAST( NULL AS SIGNED ) * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL - CAST ( NULL AS INTEGER ) * 3
----
NULL

query I rowsort
SELECT DISTINCT + 49 * 17
----
833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5298
SELECT ALL + CAST( - ( 96 ) AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL + CAST ( - ( 96 ) AS INTEGER )
----
-96

query I rowsort
SELECT - 82 * - 45
----
3690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5300
SELECT DISTINCT CAST( - COUNT( + 0 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT CAST ( - COUNT ( + 0 ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5301
SELECT ALL - ( + CASE + 64 WHEN + + 59 * + 66 THEN 84 * - 88 + - 83 + - CAST( NULL AS DECIMAL ) * + + 51 + 91 * 3 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL - ( + CASE + 64 WHEN + + 59 * + 66 THEN 84 * - 88 + - 83 + - CAST ( NULL AS REAL ) * + + 51 + 91 * 3 ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT 4 - + + 91 AS col1
----
-87

query II rowsort
SELECT - - 47 AS col1, - 74 AS col2
----
47
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT COUNT( * ) * 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5304
SELECT COUNT ( * ) * 73 AS col1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5305
SELECT - MIN( + 78 ), 29 - MAX( - + 84 ) AS col1
----
-78
113

skipif mysql # not compatible
query II rowsort label-5305
SELECT - MIN ( + 78 ), 29 - MAX ( - + 84 ) AS col1
----
-78
113

query II rowsort
SELECT ALL 88, 2 * 33 AS col2
----
88
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT COUNT( ALL 42 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5307
SELECT COUNT ( ALL 42 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5308
SELECT ALL - ( - 25 ) * COUNT( * ) * CAST( 83 AS SIGNED )
----
2075

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - ( - 25 ) * COUNT ( * ) * CAST ( 83 AS INTEGER )
----
2075

query I rowsort
SELECT 4 + - - ( + 0 ) col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT DISTINCT - 98 + + NULLIF ( - 54, - 42 ) * 41 + - MIN( 45 ) * - + 84
----
1468

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT - 98 + + NULLIF ( - 54, - 42 ) * 41 + - MIN ( 45 ) * - + 84
----
1468

query I rowsort
SELECT DISTINCT + 92 + + 56 AS col2
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT ( + 54 ) DIV + 11
----
4

skipif mysql # not compatible
query I rowsort label-5312
SELECT ( + 54 ) / + 11
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5313
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 48 AS col2, - 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5313
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 48 AS col2, - 0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL SUM( ALL - + 22 ) + + CASE - 61 WHEN - COUNT( * ) THEN NULL ELSE - 96 + 29 END
----
-89

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL SUM ( ALL - + 22 ) + + CASE - 61 WHEN - COUNT ( * ) THEN NULL ELSE - 96 + 29 END
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5315
SELECT DISTINCT 36 + + + SUM( 6 ) + - + CASE ( + + 8 ) WHEN AVG ( - 62 ) THEN - - 52 * 37 DIV + ( - 29 ) WHEN AVG ( + 48 ) THEN + 65 ELSE - - COUNT( * ) END + - - 5 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT 36 + + + SUM ( 6 ) + - + CASE ( + + 8 ) WHEN AVG ( - 62 ) THEN - - 52 * 37 / + ( - 29 ) WHEN AVG ( + 48 ) THEN + 65 ELSE - - COUNT ( * ) END + - - 5 AS col0
----
46

query I rowsort
SELECT 21 + ( - 36 ) - - 58
----
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5317
SELECT 27 DIV + - CAST( + 23 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5317
SELECT 27 / + - CAST ( + 23 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT 63 + - COUNT( * ) col2
----
62

skipif mysql # not compatible
query I rowsort label-5318
SELECT 63 + - COUNT ( * ) col2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5319
SELECT ALL 6 DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL 6 / + 22
----
0

query I rowsort
SELECT 47 * - 90 AS col2
----
-4230

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT 36 * - - COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5321
SELECT 36 * - - COUNT ( * ) AS col0
----
36

query I rowsort
SELECT 43 - + - 65
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-5323
SELECT 88 * - - 6 AS col2, ( - CASE 44 WHEN + + AVG ( ALL + 66 ) THEN + 68 + + 28 - - COUNT( * ) END ) AS col0
----
528
NULL

skipif mysql # not compatible
query II rowsort label-5323
SELECT 88 * - - 6 AS col2, ( - CASE 44 WHEN + + AVG ( ALL + 66 ) THEN + 68 + + 28 - - COUNT ( * ) END ) AS col0
----
528
NULL

query I rowsort
SELECT DISTINCT 99 * - + ( - 58 )
----
5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5325
SELECT ALL - NULLIF ( - COALESCE ( - CAST( NULL AS SIGNED ), + 46, - 88 DIV - NULLIF ( - 83, - + COALESCE ( - 12, 18 ) + + 83 ), 12 * - + 40 DIV 45 + - 33 + - 51, - 60 ), - COUNT( * ) DIV ( + - 91 ) - - 55 )
----
46

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL - NULLIF ( - COALESCE ( - CAST ( NULL AS INTEGER ), + 46, - 88 / - NULLIF ( - 83, - + COALESCE ( - 12, 18 ) + + 83 ), 12 * - + 40 / 45 + - 33 + - 51, - 60 ), - COUNT ( * ) / ( + - 91 ) - - 55 )
----
46

query II rowsort
SELECT 1 * 34 col0, 49
----
34
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT + 36 * - COUNT( * ) * + + MAX( 25 )
----
-900

skipif mysql # not compatible
query I rowsort label-5327
SELECT + 36 * - COUNT ( * ) * + + MAX ( 25 )
----
-900

query I rowsort
SELECT DISTINCT - + ( 17 ) AS col0
----
-17

query I rowsort
SELECT ALL - - 64 + 59
----
123

query I rowsort
SELECT + 68 * 49 + ( - 30 )
----
3302

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT SUM( + + 52 ) - + 49 - + 58 + 12 * - - ( 46 ) AS col0
----
497

skipif mysql # not compatible
query I rowsort label-5331
SELECT SUM ( + + 52 ) - + 49 - + 58 + 12 * - - ( 46 ) AS col0
----
497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5332
SELECT DISTINCT - - 89 + - 22 AS col0, MIN( DISTINCT + 14 ) + + 5 * - 46 * CAST( NULL AS SIGNED ) AS col1
----
67
NULL

skipif mysql # not compatible
query II rowsort label-5332
SELECT DISTINCT - - 89 + - 22 AS col0, MIN ( DISTINCT + 14 ) + + 5 * - 46 * CAST ( NULL AS INTEGER ) AS col1
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT + NULLIF ( - 60, - + COUNT( * ) ) + - + 17 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5333
SELECT + NULLIF ( - 60, - + COUNT ( * ) ) + - + 17 AS col2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5334
SELECT ALL - ( - 37 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL - ( - 37 ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5335
SELECT ALL + CAST( + 42 AS SIGNED ) + + - MAX( - + 0 )
----
42

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL + CAST ( + 42 AS INTEGER ) + + - MAX ( - + 0 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT 41 + - + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-5336
SELECT 41 + - + COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL + + 59 * + 50 - + + SUM( 33 ) AS col2
----
2917

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL + + 59 * + 50 - + + SUM ( 33 ) AS col2
----
2917

query I rowsort
SELECT + ( + ( - + 4 ) ) * - 58 * - - 57
----
13224

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT 88 + - 12 * - ( - COUNT( * ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5339
SELECT 88 + - 12 * - ( - COUNT ( * ) ) AS col1
----
76

query I rowsort
SELECT 18 + - 82
----
-64

query I rowsort
SELECT 31 * 99
----
3069

query I rowsort
SELECT ALL NULLIF ( - 35, 89 ) AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5343
SELECT 53 - + ( 83 ) AS col1, COUNT( * ) - + CAST( + - 2 AS SIGNED ) - - 6
----
-30
9

skipif mysql # not compatible
query II rowsort label-5343
SELECT 53 - + ( 83 ) AS col1, COUNT ( * ) - + CAST ( + - 2 AS INTEGER ) - - 6
----
-30
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT DISTINCT + SUM( - 51 ) - - 96 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT + SUM ( - 51 ) - - 96 AS col0
----
45

query I rowsort
SELECT 62 + - - 52 + - 17 col1
----
97

query I rowsort
SELECT DISTINCT - 92 * 45
----
-4140

query I rowsort
SELECT + 58 * 84 AS col1
----
4872

onlyif mysql # aggregate syntax: 
query II rowsort label-5348
SELECT - 70 + - 21 + 5 AS col1, + MAX( - 8 ) * 46 col2
----
-86
-368

skipif mysql # not compatible
query II rowsort label-5348
SELECT - 70 + - 21 + 5 AS col1, + MAX ( - 8 ) * 46 col2
----
-86
-368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5349
SELECT ( + 4 ) * - + 58 - + CAST( + 29 AS SIGNED ) AS col2
----
-261

skipif mysql # not compatible
query I rowsort label-5349
SELECT ( + 4 ) * - + 58 - + CAST ( + 29 AS INTEGER ) AS col2
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT - COALESCE ( - NULLIF ( + + 7, + - NULLIF ( - 24, - + 34 * - 12 ) ), MIN( ALL + 68 ) * + 41 * + 49 * 24 + + 28 - 40 + + 62 ) + - - 27
----
34

skipif mysql # not compatible
query I rowsort label-5350
SELECT - COALESCE ( - NULLIF ( + + 7, + - NULLIF ( - 24, - + 34 * - 12 ) ), MIN ( ALL + 68 ) * + 41 * + 49 * 24 + + 28 - 40 + + 62 ) + - - 27
----
34

query I rowsort
SELECT + 23 * 64
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT + COUNT( ALL + 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5352
SELECT + COUNT ( ALL + 73 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5353
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN - 34 + + 44 - + 7 THEN 93 / + 36 * + COUNT( * ) - - 20 / + - 35 END * + + 74 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN - 34 + + 44 - + 7 THEN 93 / + 36 * + COUNT ( * ) - - 20 / + - 35 END * + + 74 + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + CASE - - 73 WHEN + 39 THEN COALESCE ( + 60, + 98 ) / - 22 / - 18 * - 17 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5355
SELECT ALL ( - + 91 ) DIV + COUNT( * ) + + COUNT( * ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL ( - + 91 ) / + COUNT ( * ) + + COUNT ( * ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT + - 80 + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-5356
SELECT + - 80 + COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT - - COUNT( * ) * + 92
----
92

skipif mysql # not compatible
query I rowsort label-5357
SELECT - - COUNT ( * ) * + 92
----
92

query I rowsort
SELECT + + 5 + + 30 AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5359
SELECT + - CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5359
SELECT + - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT - COUNT( * ) * - 82 + + 17 + - COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT - COUNT ( * ) * - 82 + + 17 + - COUNT ( * ) AS col2
----
98

query I rowsort
SELECT + ( + 70 ) * + ( + 69 ) AS col2
----
4830

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT + 75 * COUNT( * ) + + - 60
----
15

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT + 75 * COUNT ( * ) + + - 60
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT ALL - MAX( + 56 ) + 77 * - - 54 AS col1
----
4102

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL - MAX ( + 56 ) + 77 * - - 54 AS col1
----
4102

query I rowsort
SELECT + - 78 * + ( - 32 ) - 15 AS col0
----
2481

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT COUNT( - 72 )
----
1

skipif mysql # not compatible
query I rowsort label-5365
SELECT COUNT ( - 72 )
----
1

query I rowsort
SELECT - - 29 * + 80 * - + 87 - - + ( 24 ) * ( 33 ) * + 31 AS col2
----
-177288

query I rowsort
SELECT ALL - 23 + + + 51 col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT + - CAST( NULL AS SIGNED ) * - - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT + - CAST ( NULL AS INTEGER ) * - - 59 col2
----
NULL

query I rowsort
SELECT ALL + + 57 + - + 36
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5370
SELECT + COUNT( * ) - + + CAST( + - 44 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-5370
SELECT + COUNT ( * ) - + + CAST ( + - 44 AS INTEGER )
----
45

query II rowsort
SELECT - 96 AS col1, 54
----
-96
54

query I rowsort
SELECT - ( - 58 ) AS col2
----
58

query I rowsort
SELECT + 36 * - 43
----
-1548

query I rowsort
SELECT ALL - 68 * + - 11
----
748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5375
SELECT ALL NULLIF ( + + 15, 53 + - + SUM( DISTINCT 23 ) + CAST( + - 32 AS SIGNED ) )
----
15

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL NULLIF ( + + 15, 53 + - + SUM ( DISTINCT 23 ) + CAST ( + - 32 AS INTEGER ) )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5376
SELECT - 65 - + MIN( DISTINCT - 19 ) + - SUM( + NULLIF ( 3, + - 68 * + + 23 ) ) + + - CAST( - 33 AS SIGNED ), 7 * + + 17 AS col2
----
-16
119

skipif mysql # not compatible
query II rowsort label-5376
SELECT - 65 - + MIN ( DISTINCT - 19 ) + - SUM ( + NULLIF ( 3, + - 68 * + + 23 ) ) + + - CAST ( - 33 AS INTEGER ), 7 * + + 17 AS col2
----
-16
119

query I rowsort
SELECT DISTINCT ( - 73 ) AS col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5378
SELECT - 29 + - COUNT( * ) + 97 * 26 + - 95 * - CASE ( - + CAST( - NULLIF ( - + 89, - 3 ) AS DECIMAL ) ) WHEN 15 THEN NULL WHEN + 96 THEN NULL ELSE NULLIF ( 92, - - 33 ) END * - - CAST( ( - 29 ) AS SIGNED ) * + 56 - - COUNT( * )
----
-14191267

skipif mysql # not compatible
query I rowsort label-5378
SELECT - 29 + - COUNT ( * ) + 97 * 26 + - 95 * - CASE ( - + CAST ( - NULLIF ( - + 89, - 3 ) AS REAL ) ) WHEN 15 THEN NULL WHEN + 96 THEN NULL ELSE NULLIF ( 92, - - 33 ) END * - - CAST ( ( - 29 ) AS INTEGER ) * + 56 - - COUNT ( * )
----
-14191267

query I rowsort
SELECT - 35 * + 64 col2
----
-2240

query I rowsort
SELECT ALL ( - - ( - 35 ) ) AS col0
----
-35

query I rowsort
SELECT ALL + ( + 18 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT DISTINCT + NULLIF ( - 55, - COUNT( * ) * - COALESCE ( - 72, 17 * + MAX( + ( - 89 ) ), + COUNT( * ) * + ( - 78 ) ) )
----
-55

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT + NULLIF ( - 55, - COUNT ( * ) * - COALESCE ( - 72, 17 * + MAX ( + ( - 89 ) ), + COUNT ( * ) * + ( - 78 ) ) )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5383
SELECT ALL + ( + 89 ), 35 * + + CAST( - 25 AS SIGNED ) * ( + NULLIF ( + ( - ( 72 ) ), + - 64 - CAST( + COUNT( * ) AS SIGNED ) ) ) AS col0
----
89
63000

skipif mysql # not compatible
query II rowsort label-5383
SELECT ALL + ( + 89 ), 35 * + + CAST ( - 25 AS INTEGER ) * ( + NULLIF ( + ( - ( 72 ) ), + - 64 - CAST ( + COUNT ( * ) AS INTEGER ) ) ) AS col0
----
89
63000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5384
SELECT DISTINCT 35 DIV + 84 + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT 35 / + 84 + + - COUNT ( * )
----
-1

query I rowsort
SELECT - + 40 * - + 98 + 63 + 57
----
4040

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT + - 34 * + - COUNT( * ) * - 4 * 43
----
-5848

skipif mysql # not compatible
query I rowsort label-5386
SELECT + - 34 * + - COUNT ( * ) * - 4 * 43
----
-5848

query I rowsort
SELECT - 49 - 70
----
-119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5388
SELECT + COALESCE ( - - 47, 69 * + 89 * + 42 DIV + 95 + 82 + + COUNT( * ) + - 64 * 0, - CASE + + COALESCE ( - 35, 24 * - ( + 65 ) ) WHEN - ( + - SUM( + - 22 ) ) * + - 92 DIV + COUNT( * ) * - - 46 THEN NULL WHEN + CASE - 7 WHEN 67 * + 78 THEN + 69 + - - 86 END DIV + 9 DIV + COUNT( * ) THEN + + 61 WHEN + COUNT( * ) * - COUNT( * ) THEN - + COUNT( * ) ELSE - 96 * + - 81 END )
----
47

skipif mysql # not compatible
query I rowsort label-5388
SELECT + COALESCE ( - - 47, 69 * + 89 * + 42 / + 95 + 82 + + COUNT ( * ) + - 64 * 0, - CASE + + COALESCE ( - 35, 24 * - ( + 65 ) ) WHEN - ( + - SUM ( + - 22 ) ) * + - 92 / + COUNT ( * ) * - - 46 THEN NULL WHEN + CASE - 7 WHEN 67 * + 78 THEN + 69 + - - 86 END / + 9 / + COUNT ( * ) THEN + + 61 WHEN + COUNT ( * ) * - COUNT ( * ) THEN - + COUNT ( * ) ELSE - 96 * + - 81 END )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5389
SELECT - MAX( 64 ) * + 2 - - 55 AS col0, + 68 * + 8 col1
----
-73
544

skipif mysql # not compatible
query II rowsort label-5389
SELECT - MAX ( 64 ) * + 2 - - 55 AS col0, + 68 * + 8 col1
----
-73
544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5390
SELECT ALL - CAST( + + MIN( ALL 93 ) AS SIGNED ) * - CASE 56 WHEN - - 74 THEN + 6 WHEN + 85 THEN CAST( + + CASE - + 52 WHEN MAX( ALL + 18 ) * + + 10 * + 68 + - 32 THEN - CAST( - 76 AS SIGNED ) + ( - + 63 ) END AS SIGNED ) * + - 71 + - 38 - - COUNT( * ) * - 5 / + 67 END + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL - CAST ( + + MIN ( ALL 93 ) AS INTEGER ) * - CASE 56 WHEN - - 74 THEN + 6 WHEN + 85 THEN CAST ( + + CASE - + 52 WHEN MAX ( ALL + 18 ) * + + 10 * + 68 + - 32 THEN - CAST ( - 76 AS INTEGER ) + ( - + 63 ) END AS INTEGER ) * + - 71 + - 38 - - COUNT ( * ) * - 5 / + 67 END + 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5391
SELECT ALL - CASE + 37 WHEN - - 57 THEN + 66 WHEN + 53 / + - 96 + + + 47 + + + 24 THEN NULL ELSE NULL END * + COUNT( * ) + - 90 * + 62 * + 51, - 53 AS col2
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-5391
SELECT ALL - CASE + 37 WHEN - - 57 THEN + 66 WHEN + 53 / + - 96 + + + 47 + + + 24 THEN NULL ELSE NULL END * + COUNT ( * ) + - 90 * + 62 * + 51, - 53 AS col2
----
NULL
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-5392
SELECT + + CASE - - 1 WHEN COUNT( * ) * + 53 * + - COUNT( * ) * 3 + - - 36 THEN NULL ELSE + 9 + + 65 END, + 9 AS col0
----
74
9

skipif mysql # not compatible
query II rowsort label-5392
SELECT + + CASE - - 1 WHEN COUNT ( * ) * + 53 * + - COUNT ( * ) * 3 + - - 36 THEN NULL ELSE + 9 + + 65 END, + 9 AS col0
----
74
9

query II rowsort
SELECT DISTINCT + 35 * + + 37 + - ( + 87 ), 37 AS col1
----
1208
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT ALL - CAST( 93 AS SIGNED ) * ( - AVG ( ALL + 10 ) ) + - 62 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL - CAST ( 93 AS INTEGER ) * ( - AVG ( ALL + 10 ) ) + - 62 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + + 68 col2
----
68

query I rowsort
SELECT + + 7 - 0 col0
----
7

query I rowsort
SELECT ALL ( 88 ) * 15 + - 56 * 39
----
-864

query I rowsort
SELECT DISTINCT - + 64 * + 28 + 64 * + 55 AS col2
----
1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5399
SELECT ALL + 63 * - - 51 * - 46 * CAST( NULL AS SIGNED ) - + NULLIF ( - 91, 1 + - + 95 + + + 72 + 38 * - + 30 / 61 ) * 53 * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL + 63 * - - 51 * - 46 * CAST ( NULL AS INTEGER ) - + NULLIF ( - 91, 1 + - + 95 + + + 72 + 38 * - + 30 / 61 ) * 53 * + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT - CASE + - NULLIF ( 41, 94 + 46 + + 3 ) WHEN - - NULLIF ( COUNT( * ), 77 * - 8 + + 83 * - 74 ) THEN SUM( ALL 78 ) * + - 93 END + + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5400
SELECT - CASE + - NULLIF ( 41, 94 + 46 + + 3 ) WHEN - - NULLIF ( COUNT ( * ), 77 * - 8 + + 83 * - 74 ) THEN SUM ( ALL 78 ) * + - 93 END + + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT + 48 * 27 + + ( - CAST( - 45 AS SIGNED ) ) + - - 86 AS col2
----
1427

skipif mysql # not compatible
query I rowsort label-5401
SELECT + 48 * 27 + + ( - CAST ( - 45 AS INTEGER ) ) + - - 86 AS col2
----
1427

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT + 92 + + ( + ( + COUNT( * ) ) )
----
93

skipif mysql # not compatible
query I rowsort label-5402
SELECT + 92 + + ( + ( + COUNT ( * ) ) )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5403
SELECT + 61 * - - 65 DIV + - COUNT( + ( - 51 ) ), - 22 DIV 55 AS col1
----
-3965
0

skipif mysql # not compatible
query II rowsort label-5403
SELECT + 61 * - - 65 / + - COUNT ( + ( - 51 ) ), - 22 / 55 AS col1
----
-3965
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL + COUNT( DISTINCT 14 ) * + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + COUNT ( DISTINCT 14 ) * + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5405
SELECT - - 91 * - + 59 + + SUM( + - 71 ) AS col1, 19 - - + ( COUNT( * ) )
----
-5440
20

skipif mysql # not compatible
query II rowsort label-5405
SELECT - - 91 * - + 59 + + SUM ( + - 71 ) AS col1, 19 - - + ( COUNT ( * ) )
----
-5440
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL - + 79 * + + COALESCE ( + 26, - COUNT( * ) ) - + 94 AS col1
----
-2148

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - + 79 * + + COALESCE ( + 26, - COUNT ( * ) ) - + 94 AS col1
----
-2148

onlyif mysql # aggregate syntax: 
query II rowsort label-5407
SELECT DISTINCT COUNT( * ), 99 AS col1
----
1
99

skipif mysql # not compatible
query II rowsort label-5407
SELECT DISTINCT COUNT ( * ), 99 AS col1
----
1
99

query I rowsort
SELECT + 13 * 58
----
754

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT COUNT( * ) * - 39 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-5409
SELECT COUNT ( * ) * - 39 AS col1
----
-39

query II rowsort
SELECT ALL 58, - 73 AS col0
----
58
-73

query II rowsort
SELECT - 12 AS col0, - ( + 46 )
----
-12
-46

query II rowsort
SELECT - 65 AS col0, ( 85 ) AS col1
----
-65
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT 91 DIV + 30
----
3

skipif mysql # not compatible
query I rowsort label-5413
SELECT 91 / + 30
----
3

query I rowsort
SELECT ALL 41 * - 78 * COALESCE ( 20, 95 * 93 )
----
-63960

query II rowsort
SELECT - 23 AS col2, - 12 AS col1
----
-23
-12

query I rowsort
SELECT ALL 5 * 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5417
SELECT 87 + + ( + + ( - 71 ) ) + + - CAST( + 20 AS SIGNED ) * - 72 * + 37 AS col2, - COUNT( * ) * + 66 * + MIN( + 37 ) col1
----
53296
-2442

skipif mysql # not compatible
query II rowsort label-5417
SELECT 87 + + ( + + ( - 71 ) ) + + - CAST ( + 20 AS INTEGER ) * - 72 * + 37 AS col2, - COUNT ( * ) * + 66 * + MIN ( + 37 ) col1
----
53296
-2442

query I rowsort
SELECT 97 + 92 AS col1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT ALL 99 + MAX( - NULLIF ( - 63, + 59 ) ) AS col2
----
162

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL 99 + MAX ( - NULLIF ( - 63, + 59 ) ) AS col2
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5420
SELECT 6 DIV - + MIN( 8 ) * - 12 * 72 + + 92
----
92

skipif mysql # not compatible
query I rowsort label-5420
SELECT 6 / - + MIN ( 8 ) * - 12 * 72 + + 92
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5421
SELECT + 24 DIV + - 95 * COALESCE ( - 72, + 27 - - 65 ) + + 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-5421
SELECT + 24 / + - 95 * COALESCE ( - 72, + 27 - - 65 ) + + 78 AS col2
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-5422
SELECT + 16 AS col1, 79 DIV - - 81 col1
----
16
0

skipif mysql # not compatible
query II rowsort label-5422
SELECT + 16 AS col1, 79 / - - 81 col1
----
16
0

query I rowsort
SELECT 78 + - 59 + 10 * - + 35 + + 75
----
-256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5424
SELECT - 28 DIV 71 - + CAST( ( + 40 ) AS SIGNED ) AS col2, COUNT( * )
----
-40
1

skipif mysql # not compatible
query II rowsort label-5424
SELECT - 28 / 71 - + CAST ( ( + 40 ) AS INTEGER ) AS col2, COUNT ( * )
----
-40
1

query I rowsort
SELECT ALL - - ( - - 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - 49 * + - 25 + - COUNT( DISTINCT 6 ) AS col1
----
1224

skipif mysql # not compatible
query I rowsort label-5426
SELECT - 49 * + - 25 + - COUNT ( DISTINCT 6 ) AS col1
----
1224

query I rowsort
SELECT ALL - 97 + - 82
----
-179

query I rowsort
SELECT + ( + 97 )
----
97

query I rowsort
SELECT ALL + + 44 + - + 70
----
-26

query II rowsort
SELECT ALL - + 57, - ( 24 ) AS col1
----
-57
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5431
SELECT NULLIF ( + 43, + COUNT( * ) ) DIV + + 63 * 33 + - 99 * + 50 + 95
----
-4855

skipif mysql # not compatible
query I rowsort label-5431
SELECT NULLIF ( + 43, + COUNT ( * ) ) / + + 63 * 33 + - 99 * + 50 + 95
----
-4855

query I rowsort
SELECT 93 + + 51
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5433
SELECT - CAST( NULL AS SIGNED ) * - 93 * - - 40 / + + COUNT( * ) - - 88 AS col1, 32 AS col1
----
NULL
32

skipif mysql # not compatible
query II rowsort label-5433
SELECT - CAST ( NULL AS INTEGER ) * - 93 * - - 40 / + + COUNT ( * ) - - 88 AS col1, 32 AS col1
----
NULL
32

query II rowsort
SELECT 87 * + 32 + + - 89, + 66 AS col2
----
2695
66

query I rowsort
SELECT DISTINCT + + 2 * + 13
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT ALL - NULLIF ( 28, COUNT( * ) )
----
-28

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL - NULLIF ( 28, COUNT ( * ) )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5437
SELECT + ( - + COUNT( * ) ) DIV 82 + + 66
----
66

skipif mysql # not compatible
query I rowsort label-5437
SELECT + ( - + COUNT ( * ) ) / 82 + + 66
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5438
SELECT - CAST( NULL AS DECIMAL ) * - 44 + AVG ( - - 25 ) / + - MIN( ALL - ( - 41 ) ) + + MIN( ALL + + 18 ) * - + 24 * ( + 88 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT - CAST ( NULL AS REAL ) * - 44 + AVG ( - - 25 ) / + - MIN ( ALL - ( - 41 ) ) + + MIN ( ALL + + 18 ) * - + 24 * ( + 88 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5439
SELECT DISTINCT - - COALESCE ( - 69, - 62, - - 95 * - 11 * - CAST( NULL AS SIGNED ) + + COALESCE ( 94, + MAX( - 22 ) ) - + - 57 + + 15 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT - - COALESCE ( - 69, - 62, - - 95 * - 11 * - CAST ( NULL AS INTEGER ) + + COALESCE ( 94, + MAX ( - 22 ) ) - + - 57 + + 15 ) AS col0
----
-69

query I rowsort
SELECT + - ( 18 ) AS col0
----
-18

query II rowsort
SELECT - 43 AS col0, 99 + + 87
----
-43
186

query I rowsort
SELECT 41 * + 85 + + 26 - 60 AS col2
----
3451

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT ALL + 51 DIV + ( + 13 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL + 51 / + ( + 13 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5444
SELECT - 52 AS col0, - SUM( + 83 ) col2
----
-52
-83

skipif mysql # not compatible
query II rowsort label-5444
SELECT - 52 AS col0, - SUM ( + 83 ) col2
----
-52
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-5445
SELECT ALL 56, + 70 * + 50 * COUNT( * ) AS col0
----
56
3500

skipif mysql # not compatible
query II rowsort label-5445
SELECT ALL 56, + 70 * + 50 * COUNT ( * ) AS col0
----
56
3500

onlyif mysql # aggregate syntax: 
query II rowsort label-5446
SELECT 56 - + COUNT( * ) AS col0, 73 AS col1
----
55
73

skipif mysql # not compatible
query II rowsort label-5446
SELECT 56 - + COUNT ( * ) AS col0, 73 AS col1
----
55
73

query II rowsort
SELECT - 12 AS col2, 54 AS col1
----
-12
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT MAX( - 66 ) * 25 AS col2
----
-1650

skipif mysql # not compatible
query I rowsort label-5448
SELECT MAX ( - 66 ) * 25 AS col2
----
-1650

query II rowsort
SELECT - 21 AS col0, + ( 76 ) AS col1
----
-21
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT DISTINCT 64 + COUNT( * ) * + 99
----
163

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT 64 + COUNT ( * ) * + 99
----
163

query I rowsort
SELECT ( + - 7 ) * - 24 * + 17 AS col0
----
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL 99 + - - MAX( ALL - 21 )
----
78

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL 99 + - - MAX ( ALL - 21 )
----
78

query II rowsort
SELECT ALL 31, - 92 AS col1
----
31
-92

query II rowsort
SELECT 61, - 92 AS col2
----
61
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ( - COUNT( * ) ) * + - 61 * + + 22
----
1342

skipif mysql # not compatible
query I rowsort label-5455
SELECT ( - COUNT ( * ) ) * + - 61 * + + 22
----
1342

query I rowsort
SELECT 22 + - + 47 AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5457
SELECT ALL COUNT( * ), NULLIF ( - + ( 77 ), - + COUNT( - 68 ) ) + COALESCE ( - 85, 46 * + - 71 + 72 + + COUNT( - ( + 75 ) ) * + MAX( + COALESCE ( CASE + + 97 WHEN + CAST( 51 AS SIGNED ) - 95 + 83 * + - 7 THEN - 33 + 6 END, - 49 ) ) * + 63 ) AS col1
----
1
-162

skipif mysql # not compatible
query II rowsort label-5457
SELECT ALL COUNT ( * ), NULLIF ( - + ( 77 ), - + COUNT ( - 68 ) ) + COALESCE ( - 85, 46 * + - 71 + 72 + + COUNT ( - ( + 75 ) ) * + MAX ( + COALESCE ( CASE + + 97 WHEN + CAST ( 51 AS INTEGER ) - 95 + 83 * + - 7 THEN - 33 + 6 END, - 49 ) ) * + 63 ) AS col1
----
1
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT DISTINCT SUM( ALL + + ( + 6 ) ) + - CASE + 86 WHEN - + 34 THEN 32 + - 51 + - 38 * + COUNT( * ) ELSE NULL END + - 71 * 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT SUM ( ALL + + ( + 6 ) ) + - CASE + 86 WHEN - + 34 THEN 32 + - 51 + - 38 * + COUNT ( * ) ELSE NULL END + - 71 * 1 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT DISTINCT - - ( + CAST( - + 41 AS SIGNED ) )
----
-41

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT - - ( + CAST ( - + 41 AS INTEGER ) )
----
-41

query I rowsort
SELECT DISTINCT - + 80 * 51 * + 70 * + + NULLIF ( 89, - 38 )
----
-25418400

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT DISTINCT + 5 * + ( + + 13 ) * - + COUNT( * ) + 60 - + - 39 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT + 5 * + ( + + 13 ) * - + COUNT ( * ) + 60 - + - 39 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT SUM( 56 )
----
56

skipif mysql # not compatible
query I rowsort label-5462
SELECT SUM ( 56 )
----
56

query I rowsort
SELECT + 21 * + 14
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT ALL - + MAX( 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL - + MAX ( 79 )
----
-79

query I rowsort
SELECT - 29 * - + 36 * - - 72 + - 0 AS col2
----
75168

onlyif mysql # DIV for integer division: 
query I rowsort label-5466
SELECT + NULLIF ( - 4, + 44 ) DIV 49 + + 5 col0
----
5

skipif mysql # not compatible
query I rowsort label-5466
SELECT + NULLIF ( - 4, + 44 ) / 49 + + 5 col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5467
SELECT - + 83 DIV 71 + 54
----
53

skipif mysql # not compatible
query I rowsort label-5467
SELECT - + 83 / 71 + 54
----
53

query I rowsort
SELECT 18 * - 90 AS col1
----
-1620

query II rowsort
SELECT DISTINCT - 62 AS col1, 67 AS col1
----
-62
67

query I rowsort
SELECT DISTINCT + - 75 * 74 AS col1
----
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL + + COUNT( * ) * + + MAX( ALL - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + + COUNT ( * ) * + + MAX ( ALL - 56 )
----
-56

query I rowsort
SELECT + 60 + - 76 AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5473
SELECT DISTINCT + 64 * COALESCE ( - 97, 7 + + COALESCE ( + COUNT( * ), + ( + + CAST( NULL AS SIGNED ) ) ) ) * + 75 AS col2
----
-465600

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT + 64 * COALESCE ( - 97, 7 + + COALESCE ( + COUNT ( * ), + ( + + CAST ( NULL AS INTEGER ) ) ) ) * + 75 AS col2
----
-465600

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL - 46 * + + COALESCE ( 13, COUNT( * ) )
----
-598

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL - 46 * + + COALESCE ( 13, COUNT ( * ) )
----
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT - COUNT( * ) + + 90 + + + 86 * 38
----
3357

skipif mysql # not compatible
query I rowsort label-5475
SELECT - COUNT ( * ) + + 90 + + + 86 * 38
----
3357

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT 92 * + COUNT( + 74 ) * - 92 + + COUNT( * ) AS col0
----
-8463

skipif mysql # not compatible
query I rowsort label-5476
SELECT 92 * + COUNT ( + 74 ) * - 92 + + COUNT ( * ) AS col0
----
-8463

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL NULLIF ( - 47, - COUNT( * ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL NULLIF ( - 47, - COUNT ( * ) ) AS col1
----
-47

query I rowsort
SELECT ALL - 47 + + 31 col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL MIN( - 44 ) + - CASE - 86 WHEN 25 THEN - - 2 / 85 - - + COUNT( * ) * - - 22 - COUNT( * ) * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL MIN ( - 44 ) + - CASE - 86 WHEN 25 THEN - - 2 / 85 - - + COUNT ( * ) * - - 22 - COUNT ( * ) * + COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5480
SELECT DISTINCT 53 DIV 1 AS col2, 97 * - ( - 99 )
----
53
9603

skipif mysql # not compatible
query II rowsort label-5480
SELECT DISTINCT 53 / 1 AS col2, 97 * - ( - 99 )
----
53
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL COUNT( * ) + - ( 26 ) + + + ( + 26 ) + 75
----
76

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL COUNT ( * ) + - ( 26 ) + + + ( + 26 ) + 75
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5482
SELECT + 94 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-5482
SELECT + 94 / - 49
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ALL + 57 + - ( + + COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL + 57 + - ( + + COUNT ( * ) )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT DISTINCT - 2 DIV COALESCE ( + 4, 64 )
----
0

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT - 2 / COALESCE ( + 4, 64 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT - 40 * + - MIN( DISTINCT - 49 )
----
-1960

skipif mysql # not compatible
query I rowsort label-5485
SELECT - 40 * + - MIN ( DISTINCT - 49 )
----
-1960

query I rowsort
SELECT ALL 52 * + - 37
----
-1924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5487
SELECT - CAST( NULL AS SIGNED ) + CASE 70 WHEN - 8 THEN 26 ELSE NULL END + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT - CAST ( NULL AS INTEGER ) + CASE 70 WHEN - 8 THEN 26 ELSE NULL END + - 95
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5488
SELECT ALL - 89 - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL - 89 - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT - - 9 + - + SUM( + 25 ) + 64 col1
----
48

skipif mysql # not compatible
query I rowsort label-5489
SELECT - - 9 + - + SUM ( + 25 ) + 64 col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5490
SELECT + 77 / + CAST( NULL AS SIGNED ) + - CASE + - 77 WHEN + 94 THEN + + 49 * + MAX( + 43 ) * - 64 * COALESCE ( + - 2, - + 99 * + 5 ) WHEN - + 64 * - + 93 THEN 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT + 77 / + CAST ( NULL AS INTEGER ) + - CASE + - 77 WHEN + 94 THEN + + 49 * + MAX ( + 43 ) * - 64 * COALESCE ( + - 2, - + 99 * + 5 ) WHEN - + 64 * - + 93 THEN 4 ELSE NULL END
----
NULL

query I rowsort
SELECT + 1 * 1 + - + 72 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT + CASE + + MIN( 11 ) WHEN - AVG ( - 96 ) THEN - + 60 ELSE 5 END AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5492
SELECT + CASE + + MIN ( 11 ) WHEN - AVG ( - 96 ) THEN - + 60 ELSE 5 END AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5493
SELECT + + ( CASE + - SUM( DISTINCT - - NULLIF ( + - 13, - CAST( NULL AS SIGNED ) ) ) WHEN + - CAST( NULL AS DECIMAL ) * 21 * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) THEN 17 WHEN - 58 THEN NULL ELSE - - 94 END ) DIV + 1 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5493
SELECT + + ( CASE + - SUM ( DISTINCT - - NULLIF ( + - 13, - CAST ( NULL AS INTEGER ) ) ) WHEN + - CAST ( NULL AS REAL ) * 21 * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) THEN 17 WHEN - 58 THEN NULL ELSE - - 94 END ) / + 1 AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5494
SELECT - CAST( - + 17 AS SIGNED ) * + + 92 * + 40 * COUNT( DISTINCT 77 ) + - 74 AS col2
----
62486

skipif mysql # not compatible
query I rowsort label-5494
SELECT - CAST ( - + 17 AS INTEGER ) * + + 92 * + 40 * COUNT ( DISTINCT 77 ) + - 74 AS col2
----
62486

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT + MAX( 47 ) * - 3
----
-141

skipif mysql # not compatible
query I rowsort label-5495
SELECT + MAX ( 47 ) * - 3
----
-141

query I rowsort
SELECT ALL + NULLIF ( - 47, + - ( 84 ) * - - 63 * + 77 )
----
-47

query II rowsort
SELECT ALL - 13 * + + 11 AS col2, 22
----
-143
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT + - 7 DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-5498
SELECT + - 7 / - - 96
----
0

query I rowsort
SELECT - - 44 + - 2 + - + 63
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5500
SELECT DISTINCT 81 * COUNT( * ) + + - 68 * + + CAST( NULL AS SIGNED ) + + - MAX( DISTINCT - 64 ) + + 99 + + CASE - - 69 WHEN + 84 + - + 14 THEN 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT 81 * COUNT ( * ) + + - 68 * + + CAST ( NULL AS INTEGER ) + + - MAX ( DISTINCT - 64 ) + + 99 + + CASE - - 69 WHEN + 84 + - + 14 THEN 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT NULLIF ( + 63, + SUM( ALL + 61 ) * - + 12 + - 55 * - - COUNT( * ) ) col2
----
63

skipif mysql # not compatible
query I rowsort label-5501
SELECT NULLIF ( + 63, + SUM ( ALL + 61 ) * - + 12 + - 55 * - - COUNT ( * ) ) col2
----
63

query I rowsort
SELECT ALL 95 * + 85 + 48 AS col0
----
8123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5503
SELECT + ( + + COUNT( * ) ) * + 91 AS col0, - NULLIF ( 26, CAST( NULL AS SIGNED ) / COUNT( * ) ) AS col0
----
91
-26

skipif mysql # not compatible
query II rowsort label-5503
SELECT + ( + + COUNT ( * ) ) * + 91 AS col0, - NULLIF ( 26, CAST ( NULL AS INTEGER ) / COUNT ( * ) ) AS col0
----
91
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5504
SELECT + COUNT( * ) DIV - 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5504
SELECT + COUNT ( * ) / - 15 AS col1
----
0

query I rowsort
SELECT CASE + - 5 WHEN + 90 THEN 3 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL - 15 * - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL - 15 * - COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5507
SELECT ALL + COUNT( * ) * + 22 + + 42 + 63, ( - 61 ) * + 40 AS col2
----
127
-2440

skipif mysql # not compatible
query II rowsort label-5507
SELECT ALL + COUNT ( * ) * + 22 + + 42 + 63, ( - 61 ) * + 40 AS col2
----
127
-2440

onlyif mysql # aggregate syntax: 
query II rowsort label-5508
SELECT - 62 AS col1, COUNT( * ) AS col0
----
-62
1

skipif mysql # not compatible
query II rowsort label-5508
SELECT - 62 AS col1, COUNT ( * ) AS col0
----
-62
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT SUM( DISTINCT - 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5509
SELECT SUM ( DISTINCT - 7 ) AS col0
----
-7

query I rowsort
SELECT + 1 * - 46 + - 27
----
-73

query I rowsort
SELECT - 53 * + 28
----
-1484

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL - COUNT( * ) * MIN( ALL 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL - COUNT ( * ) * MIN ( ALL 22 )
----
-22

query I rowsort
SELECT DISTINCT - 98 + - 67 AS col2
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT - 17 - + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-5514
SELECT - 17 - + COUNT ( * )
----
-18

query I rowsort
SELECT - 23 * 51
----
-1173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT ALL CAST( 57 AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL CAST ( 57 AS INTEGER ) AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5517
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-5517
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 41
----
NULL
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT ALL + 29 DIV 10
----
2

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL + 29 / 10
----
2

query I rowsort
SELECT DISTINCT + COALESCE ( + + 75, + - 78 + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT - - SUM( ALL - - 60 ) - + COUNT( * ) * - 94
----
154

skipif mysql # not compatible
query I rowsort label-5520
SELECT - - SUM ( ALL - - 60 ) - + COUNT ( * ) * - 94
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5521
SELECT - + SUM( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5521
SELECT - + SUM ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5522
SELECT - + 80 * + MAX( DISTINCT - 1 ) AS col0, 75
----
80
75

skipif mysql # not compatible
query II rowsort label-5522
SELECT - + 80 * + MAX ( DISTINCT - 1 ) AS col0, 75
----
80
75

query II rowsort
SELECT - 64 AS col1, 63 + + + 34 AS col2
----
-64
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT + 99 + + 76 + + CASE - 28 WHEN - + 58 THEN - 44 + + CAST( NULL AS SIGNED ) WHEN + + 19 + - 47 * - NULLIF ( + - 16, - + ( - 95 ) * NULLIF ( - + 45, + - 86 ) - + 85 ) THEN + 2 ELSE NULL END * + - AVG ( - + 87 ) * 99 + + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5524
SELECT + 99 + + 76 + + CASE - 28 WHEN - + 58 THEN - 44 + + CAST ( NULL AS INTEGER ) WHEN + + 19 + - 47 * - NULLIF ( + - 16, - + ( - 95 ) * NULLIF ( - + 45, + - 86 ) - + 85 ) THEN + 2 ELSE NULL END * + - AVG ( - + 87 ) * 99 + + + 85
----
NULL

query I rowsort
SELECT - 42 * - 41 + - 32 * - - 29 + + 81 * - 21 + 62
----
-845

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL - - 66 * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL - - 66 * - COUNT ( * )
----
-66

query II rowsort
SELECT 86 AS col0, - 14 + - + 87 AS col2
----
86
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5528
SELECT + + 17 col1, COUNT( * ) * 42 DIV + - 79 DIV - COUNT( * )
----
17
0

skipif mysql # not compatible
query II rowsort label-5528
SELECT + + 17 col1, COUNT ( * ) * 42 / + - 79 / - COUNT ( * )
----
17
0

query I rowsort
SELECT ALL - 53 + + - ( - - 69 ) AS col0
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5530
SELECT CAST( - NULLIF ( - + ( 60 ), - 73 * + 88 ) AS SIGNED ) + 5 * 99 + + CASE - 45 WHEN + + 57 * - + 92 * - 19 + + - 53 THEN NULL WHEN + + 96 * + COUNT( 11 ) * + - 95 * + 53 + - + CASE ( - COUNT( * ) ) WHEN - 18 * - SUM( + 20 ) THEN CASE - 7 WHEN 11 + - + 18 / COALESCE ( + COUNT( DISTINCT - 51 ), 41 ) THEN + 36 WHEN + 1 + - + 32 * - + 73 * + COALESCE ( 71, + 48 + CAST( 13 AS SIGNED ), 51, - ( 74 ) * 2 ) THEN NULL END / CAST( NULL AS SIGNED ) + 64 WHEN 81 * 77 - 49 * - 54 THEN NULL END * COALESCE ( - 57 - - 33 * - 9, + 33 ) THEN + CASE 64 WHEN + MAX( DISTINCT ( 76 ) ) - 56 / + 46 THEN + 29 END WHEN ( COUNT( * ) ) THEN NULL ELSE - 87 END
----
468

skipif mysql # not compatible
query I rowsort label-5530
SELECT CAST ( - NULLIF ( - + ( 60 ), - 73 * + 88 ) AS INTEGER ) + 5 * 99 + + CASE - 45 WHEN + + 57 * - + 92 * - 19 + + - 53 THEN NULL WHEN + + 96 * + COUNT ( 11 ) * + - 95 * + 53 + - + CASE ( - COUNT ( * ) ) WHEN - 18 * - SUM ( + 20 ) THEN CASE - 7 WHEN 11 + - + 18 / COALESCE ( + COUNT ( DISTINCT - 51 ), 41 ) THEN + 36 WHEN + 1 + - + 32 * - + 73 * + COALESCE ( 71, + 48 + CAST ( 13 AS INTEGER ), 51, - ( 74 ) * 2 ) THEN NULL END / CAST ( NULL AS INTEGER ) + 64 WHEN 81 * 77 - 49 * - 54 THEN NULL END * COALESCE ( - 57 - - 33 * - 9, + 33 ) THEN + CASE 64 WHEN + MAX ( DISTINCT ( 76 ) ) - 56 / + 46 THEN + 29 END WHEN ( COUNT ( * ) ) THEN NULL ELSE - 87 END
----
468

query I rowsort
SELECT + ( - 42 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT 92 * + COUNT( - 2 ) + 43 + COUNT( * ) * - 69
----
66

skipif mysql # not compatible
query I rowsort label-5532
SELECT 92 * + COUNT ( - 2 ) + 43 + COUNT ( * ) * - 69
----
66

query I rowsort
SELECT DISTINCT - COALESCE ( + ( 58 ), + + 37 * - 16 * + 66 * - 60 - + - 4 ) + 49 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5534
SELECT ALL 12 * - + 2 col1, COUNT( * ) AS col2
----
-24
1

skipif mysql # not compatible
query II rowsort label-5534
SELECT ALL 12 * - + 2 col1, COUNT ( * ) AS col2
----
-24
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5535
SELECT ALL - COUNT( * ) + - ( 79 ) DIV + 67 AS col2, - 45 * - COALESCE ( 20, 54 * - - 87 + + + 56 + - 49 + - 48 * + COUNT( * ) )
----
-2
900

skipif mysql # not compatible
query II rowsort label-5535
SELECT ALL - COUNT ( * ) + - ( 79 ) / + 67 AS col2, - 45 * - COALESCE ( 20, 54 * - - 87 + + + 56 + - 49 + - 48 * + COUNT ( * ) )
----
-2
900

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ( + 1 ) * 55 * 51 + COUNT( - 10 ) * + 56 - 90
----
2771

skipif mysql # not compatible
query I rowsort label-5536
SELECT ( + 1 ) * 55 * 51 + COUNT ( - 10 ) * + 56 - 90
----
2771

query I rowsort
SELECT DISTINCT 41 * 25 col2
----
1025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5538
SELECT SUM( ALL 39 ) * 72 * - MIN( ALL - + 26 ) AS col2, CAST( NULL AS SIGNED )
----
73008
NULL

skipif mysql # not compatible
query II rowsort label-5538
SELECT SUM ( ALL 39 ) * 72 * - MIN ( ALL - + 26 ) AS col2, CAST ( NULL AS INTEGER )
----
73008
NULL

query II rowsort
SELECT 10 + 11 col0, ( - - 82 ) AS col2
----
21
82

query I rowsort
SELECT ALL 35 - + 53 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT 81 + - COUNT( * ) * - 85 AS col1
----
166

skipif mysql # not compatible
query I rowsort label-5541
SELECT 81 + - COUNT ( * ) * - 85 AS col1
----
166

query I rowsort
SELECT + 34 * + - 92 + + 66
----
-3062

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT 0 + + 66 * + 43 - - + COUNT( * )
----
2839

skipif mysql # not compatible
query I rowsort label-5543
SELECT 0 + + 66 * + 43 - - + COUNT ( * )
----
2839

query II rowsort
SELECT DISTINCT 34 - 39 col2, - 6
----
-5
-6

query I rowsort
SELECT - 77 * - 73 * - 92
----
-517132

onlyif mysql # aggregate syntax: 
query II rowsort label-5546
SELECT NULLIF ( - COUNT( * ), + 96 * - 30 ) col0, + 16 * - 61
----
-1
-976

skipif mysql # not compatible
query II rowsort label-5546
SELECT NULLIF ( - COUNT ( * ), + 96 * - 30 ) col0, + 16 * - 61
----
-1
-976

onlyif mysql # DIV for integer division: 
query I rowsort label-5547
SELECT + 0 + + 17 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-5547
SELECT + 0 + + 17 / + 96
----
0

query I rowsort
SELECT - ( + - ( - 76 ) ) * - 0
----
0

query I rowsort
SELECT 47 + + 35 AS col1
----
82

query I rowsort
SELECT DISTINCT + 7 * - + 74 * - + 27 * 8 + - - 80 - - 64 + - 31 + - 90 * - 91 AS col0
----
120191

onlyif mysql # aggregate syntax: 
query II rowsort label-5551
SELECT + ( 86 ) + - 95 - + 66, + 31 + COUNT( * ) + - COUNT( * ) + - ( - - ( + 43 ) ) * + 78 AS col0
----
-75
-3323

skipif mysql # not compatible
query II rowsort label-5551
SELECT + ( 86 ) + - 95 - + 66, + 31 + COUNT ( * ) + - COUNT ( * ) + - ( - - ( + 43 ) ) * + 78 AS col0
----
-75
-3323

onlyif mysql # aggregate syntax: 
query II rowsort label-5552
SELECT + 40 * - - 96 col2, + 93 * 26 * + + COUNT( * ) + + 96 + 92 AS col0
----
3840
2606

skipif mysql # not compatible
query II rowsort label-5552
SELECT + 40 * - - 96 col2, + 93 * 26 * + + COUNT ( * ) + + 96 + 92 AS col0
----
3840
2606

query I rowsort
SELECT ALL + 57 + + 6 AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5554
SELECT ALL - + CAST( NULL AS DECIMAL ) + - MIN( 35 ) + + - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL - + CAST ( NULL AS REAL ) + - MIN ( 35 ) + + - 45 AS col2
----
NULL

query I rowsort
SELECT 16 + - ( 36 ) * - 5 AS col2
----
196

onlyif mysql # DIV for integer division: 
query I rowsort label-5556
SELECT - 7 DIV - 94 + - ( 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5556
SELECT - 7 / - 94 + - ( 47 ) AS col1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT 27 DIV 10 + + 2 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5557
SELECT 27 / 10 + + 2 AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT 16 DIV - 96 * - - 76 + - 63 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-5558
SELECT 16 / - 96 * - - 76 + - 63 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT + COUNT( * ) + + - 86 + - 60 * + 30 * - NULLIF ( 38, - 28 ) * 28 * + NULLIF ( + COUNT( * ), + 22 ) + - + 75 + 12 * + + ( - - 14 )
----
1915208

skipif mysql # not compatible
query I rowsort label-5559
SELECT + COUNT ( * ) + + - 86 + - 60 * + 30 * - NULLIF ( 38, - 28 ) * 28 * + NULLIF ( + COUNT ( * ), + 22 ) + - + 75 + 12 * + + ( - - 14 )
----
1915208

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL + 30 * - COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + 30 * - COUNT ( * ) AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5561
SELECT + 56 * + 54 * 23 + - + 14 + + 56 * - CAST( 26 AS SIGNED )
----
68082

skipif mysql # not compatible
query I rowsort label-5561
SELECT + 56 * + 54 * 23 + - + 14 + + 56 * - CAST ( 26 AS INTEGER )
----
68082

query I rowsort
SELECT DISTINCT 36 * 1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5563
SELECT + 12 * 33 + CAST( NULL AS SIGNED ) * + 60 - 9, + 6 AS col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-5563
SELECT + 12 * 33 + CAST ( NULL AS INTEGER ) * + 60 - 9, + 6 AS col1
----
NULL
6

query I rowsort
SELECT ALL 71 + + 50
----
121

query II rowsort
SELECT DISTINCT - 29, 2 col0
----
-29
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT - NULLIF ( - + 8, - MIN( DISTINCT 22 ) )
----
8

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT - NULLIF ( - + 8, - MIN ( DISTINCT 22 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL - ( + SUM( - 20 ) ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL - ( + SUM ( - 20 ) ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT NULLIF ( + - 59, + - 26 ) * - + 6 * COUNT( 66 ) AS col1
----
354

skipif mysql # not compatible
query I rowsort label-5568
SELECT NULLIF ( + - 59, + - 26 ) * - + 6 * COUNT ( 66 ) AS col1
----
354

query I rowsort
SELECT DISTINCT ( + 75 ) * - - 39 AS col2
----
2925

onlyif mysql # aggregate syntax: 
query II rowsort label-5570
SELECT DISTINCT COUNT( * ) - + COUNT( * ) * 73 AS col1, - 55 * + 31 + CASE 14 WHEN - 79 THEN NULL WHEN - - 90 / 23 + - + 88 THEN NULL ELSE - - 8 END
----
-72
-1697

skipif mysql # not compatible
query II rowsort label-5570
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) * 73 AS col1, - 55 * + 31 + CASE 14 WHEN - 79 THEN NULL WHEN - - 90 / 23 + - + 88 THEN NULL ELSE - - 8 END
----
-72
-1697

query I rowsort
SELECT 22 + - 85
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-5572
SELECT SUM( + + NULLIF ( 55, + - 58 ) ) * - - 2, 70 AS col2
----
110
70

skipif mysql # not compatible
query II rowsort label-5572
SELECT SUM ( + + NULLIF ( 55, + - 58 ) ) * - - 2, 70 AS col2
----
110
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT MAX( DISTINCT 44 )
----
44

skipif mysql # not compatible
query I rowsort label-5573
SELECT MAX ( DISTINCT 44 )
----
44

query I rowsort
SELECT + 97 * ( 82 ) + 14 + CASE 64 WHEN + 2 + - 25 THEN - + 80 ELSE 2 END + 54 AS col0
----
8024

query I rowsort
SELECT ALL NULLIF ( 63, + 34 + 28 * + - 64 ) AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5576
SELECT ALL 81 + - CAST( NULL AS SIGNED ) * + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL 81 + - CAST ( NULL AS INTEGER ) * + 29 AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 88, - 16 * + 44 )
----
-88

query I rowsort
SELECT - 52 - 49 AS col1
----
-101

query I rowsort
SELECT DISTINCT - 84 + + + 49
----
-35

query II rowsort
SELECT ALL - 26 + + + 11 + 99 AS col1, 11 AS col2
----
84
11

query II rowsort
SELECT + CASE COALESCE ( - + ( + 78 ), 90 ) WHEN - - 2 + 32 + + 63 THEN - 75 WHEN + + 95 + 44 + + 77 * + 40 + 34 THEN - + ( + 96 ) * - ( 38 ) ELSE NULL END AS col0, + 46
----
NULL
46

query I rowsort
SELECT DISTINCT - 32 + NULLIF ( - 9, 38 * - - 30 * + + 14 * - 61 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL 27 * + + 39 + + - 95 + MAX( - 69 ) AS col1
----
889

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL 27 * + + 39 + + - 95 + MAX ( - 69 ) AS col1
----
889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5584
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, - COALESCE ( - 16, + - ( - 58 ) ) - - COUNT( * ) - - 7 + - 24 col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5584
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - COALESCE ( - 16, + - ( - 58 ) ) - - COUNT ( * ) - - 7 + - 24 col0
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5585
SELECT - CAST( NULLIF ( ( NULLIF ( - - COUNT( * ), + - 7 * - 80 - + + 2 ) ), + - 73 ) AS SIGNED ) * + 49 - + 98 AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-5585
SELECT - CAST ( NULLIF ( ( NULLIF ( - - COUNT ( * ), + - 7 * - 80 - + + 2 ) ), + - 73 ) AS INTEGER ) * + 49 - + 98 AS col1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT ALL + COALESCE ( 73, - - COALESCE ( - 22, - 9 * - MIN( + 19 ) * + 86 ) )
----
73

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL + COALESCE ( 73, - - COALESCE ( - 22, - 9 * - MIN ( + 19 ) * + 86 ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT + COUNT( * ) + + + 88 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5587
SELECT + COUNT ( * ) + + + 88 AS col1
----
89

query I rowsort
SELECT ALL 64 * + 6 - + 84 AS col0
----
300

onlyif mysql # aggregate syntax: 
query II rowsort label-5589
SELECT - COUNT( DISTINCT 5 ) + - 14 * - + 75 AS col1, - 7 * - 90 AS col1
----
1049
630

skipif mysql # not compatible
query II rowsort label-5589
SELECT - COUNT ( DISTINCT 5 ) + - 14 * - + 75 AS col1, - 7 * - 90 AS col1
----
1049
630

query II rowsort
SELECT + 51, + 55 + - + 67 AS col0
----
51
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5591
SELECT NULLIF ( - + 42, CAST( - 78 AS SIGNED ) ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-5591
SELECT NULLIF ( - + 42, CAST ( - 78 AS INTEGER ) ) col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-5592
SELECT - 47 DIV + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5592
SELECT - 47 / + 70 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5593
SELECT + 88 * - 12 + COUNT( * ) + - 37 + - CASE + - 49 WHEN 21 * COUNT( + 91 ) THEN NULL WHEN 97 THEN NULL ELSE + - COUNT( * ) * - + 22 + + 80 - - ( - 75 ) END + 62 + + + CAST( NULL AS DECIMAL ) / + ( + - 20 ) + - - ( + - ( + ( - 78 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT + 88 * - 12 + COUNT ( * ) + - 37 + - CASE + - 49 WHEN 21 * COUNT ( + 91 ) THEN NULL WHEN 97 THEN NULL ELSE + - COUNT ( * ) * - + 22 + + 80 - - ( - 75 ) END + 62 + + + CAST ( NULL AS REAL ) / + ( + - 20 ) + - - ( + - ( + ( - 78 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT - ( + COUNT( * ) ) * - 91
----
91

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT - ( + COUNT ( * ) ) * - 91
----
91

query I rowsort
SELECT - 94 + 94 + + 86
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5596
SELECT ALL - 66 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL - 66 / 78
----
0

query I rowsort
SELECT - 87 - 85
----
-172

query II rowsort
SELECT DISTINCT + 54 AS col1, - 54
----
54
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5599
SELECT NULLIF ( - - CAST( - + 21 AS SIGNED ), + + 48 ) * + - 53 + + 13 - + + 27 * - + 10 + - 57 AS col2, - 49 + 63 * COUNT( * ) AS col0
----
1339
14

skipif mysql # not compatible
query II rowsort label-5599
SELECT NULLIF ( - - CAST ( - + 21 AS INTEGER ), + + 48 ) * + - 53 + + 13 - + + 27 * - + 10 + - 57 AS col2, - 49 + 63 * COUNT ( * ) AS col0
----
1339
14

query I rowsort
SELECT 67 * 20 + 54 * NULLIF ( - 75, 73 )
----
-2710

onlyif mysql # aggregate syntax: 
query II rowsort label-5601
SELECT DISTINCT + 67 AS col0, 75 * + - 80 + - 77 - - 0 - + 43 + + COUNT( * ) * + 34 * - - 50 + + 65 AS col2
----
67
-4355

skipif mysql # not compatible
query II rowsort label-5601
SELECT DISTINCT + 67 AS col0, 75 * + - 80 + - 77 - - 0 - + 43 + + COUNT ( * ) * + 34 * - - 50 + + 65 AS col2
----
67
-4355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5602
SELECT ALL + CAST( + - CASE + 58 WHEN + 33 * - - CAST( NULL AS SIGNED ) + + + COUNT( * ) * 53 + - - 25 + - + NULLIF ( + 68, + AVG ( 24 ) * 64 ) + + ( - 28 ) + - 58 - - 44 THEN + 4 + - 41 + - 78 - + 1 + CAST( NULL AS SIGNED ) * - COUNT( * ) * - COALESCE ( 77, 46, 66 * + 21 + - 19 ) / - NULLIF ( COUNT( * ), + - 61 ) * + - COUNT( * ) ELSE NULL END AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL + CAST ( + - CASE + 58 WHEN + 33 * - - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * 53 + - - 25 + - + NULLIF ( + 68, + AVG ( 24 ) * 64 ) + + ( - 28 ) + - 58 - - 44 THEN + 4 + - 41 + - 78 - + 1 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - COALESCE ( 77, 46, 66 * + 21 + - 19 ) / - NULLIF ( COUNT ( * ), + - 61 ) * + - COUNT ( * ) ELSE NULL END AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5603
SELECT COUNT( * ) AS col0, 68 DIV - - 25 AS col1
----
1
2

skipif mysql # not compatible
query II rowsort label-5603
SELECT COUNT ( * ) AS col0, 68 / - - 25 AS col1
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT + COUNT( DISTINCT - + 53 ) * - 4 * + + ( 43 ) * + 2 - 41 + - COUNT( * ) + + + 88 * + 8
----
318

skipif mysql # not compatible
query I rowsort label-5604
SELECT + COUNT ( DISTINCT - + 53 ) * - 4 * + + ( 43 ) * + 2 - 41 + - COUNT ( * ) + + + 88 * + 8
----
318

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT MAX( ALL - + ( - + 85 ) )
----
85

skipif mysql # not compatible
query I rowsort label-5605
SELECT MAX ( ALL - + ( - + 85 ) )
----
85

onlyif mysql # DIV for integer division: 
query II rowsort label-5606
SELECT ALL + - 12 AS col1, 18 DIV + 86 col1
----
-12
0

skipif mysql # not compatible
query II rowsort label-5606
SELECT ALL + - 12 AS col1, 18 / + 86 col1
----
-12
0

query II rowsort
SELECT 18, 64 * 0 AS col0
----
18
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5608
SELECT DISTINCT + + 37 * 5 + + 2 + + - 18, COUNT( * ) AS col0
----
169
1

skipif mysql # not compatible
query II rowsort label-5608
SELECT DISTINCT + + 37 * 5 + + 2 + + - 18, COUNT ( * ) AS col0
----
169
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5609
SELECT DISTINCT COUNT( * ), - 87 AS col0, - - 90 * - - 69 + - + 37 DIV - COUNT( ALL - 76 ) + 81 * - + 26 + 37 AS col1
----
1
-87
4178

skipif mysql # not compatible
query III rowsort label-5609
SELECT DISTINCT COUNT ( * ), - 87 AS col0, - - 90 * - - 69 + - + 37 / - COUNT ( ALL - 76 ) + 81 * - + 26 + 37 AS col1
----
1
-87
4178

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT + 36 + - - MIN( - - 45 ) - 59 * 99
----
-5760

skipif mysql # not compatible
query I rowsort label-5610
SELECT + 36 + - - MIN ( - - 45 ) - 59 * 99
----
-5760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT + CAST( + 44 AS SIGNED ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-5611
SELECT + CAST ( + 44 AS INTEGER ) AS col2
----
44

query I rowsort
SELECT ALL + 55 + - 1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL + 96 + - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL + 96 + - COUNT ( * )
----
95

query I rowsort
SELECT + 98 + 65 * 14 + - 98 + - 4 AS col1
----
906

query I rowsort
SELECT - ( CASE - + ( + 74 ) WHEN 32 THEN + 57 WHEN + + 80 + 48 THEN NULL END )
----
NULL

query I rowsort
SELECT ALL + 94 + + - 34 - 31 AS col0
----
29

query I rowsort
SELECT + 25 + - + 78
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT ALL 64 + + - 5 + NULLIF ( - ( + + 67 ), COUNT( * ) )
----
-8

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL 64 + + - 5 + NULLIF ( - ( + + 67 ), COUNT ( * ) )
----
-8

query I rowsort
SELECT DISTINCT ( + - 5 )
----
-5

query I rowsort
SELECT + - 33 + - 55
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-5621
SELECT + 40, - COUNT( * ) AS col2
----
40
-1

skipif mysql # not compatible
query II rowsort label-5621
SELECT + 40, - COUNT ( * ) AS col2
----
40
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT + + SUM( DISTINCT + 88 ) + 90 AS col1
----
178

skipif mysql # not compatible
query I rowsort label-5622
SELECT + + SUM ( DISTINCT + 88 ) + 90 AS col1
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5623
SELECT ALL MAX( DISTINCT - + CAST( + + 26 AS SIGNED ) ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL MAX ( DISTINCT - + CAST ( + + 26 AS INTEGER ) ) AS col2
----
-26

query I rowsort
SELECT + ( - 89 ) * - ( + 60 ) AS col1
----
5340

query I rowsort
SELECT - 71 * + 45 AS col0
----
-3195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5626
SELECT - 30 + - + 58 * - ( 94 ) * NULLIF ( + 35, - 5 + - + CAST( - - 40 AS SIGNED ) ) * - 95 * 41 + - + 71 * ( - CAST( NULL AS SIGNED ) ) * + AVG ( + 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT - 30 + - + 58 * - ( 94 ) * NULLIF ( + 35, - 5 + - + CAST ( - - 40 AS INTEGER ) ) * - 95 * 41 + - + 71 * ( - CAST ( NULL AS INTEGER ) ) * + AVG ( + 91 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5627
SELECT 61 * SUM( ALL - 30 ) DIV 21 + - ( 63 ) + - NULLIF ( 14, - 53 + - ( + COUNT( * ) ) + - - 47 ) * + 9 * - 62
----
7662

skipif mysql # not compatible
query I rowsort label-5627
SELECT 61 * SUM ( ALL - 30 ) / 21 + - ( 63 ) + - NULLIF ( 14, - 53 + - ( + COUNT ( * ) ) + - - 47 ) * + 9 * - 62
----
7662

query I rowsort
SELECT - 6 * 74 AS col1
----
-444

onlyif mysql # aggregate syntax: 
query II rowsort label-5629
SELECT ALL - 71 * 17 AS col2, COUNT( * ) col2
----
-1207
1

skipif mysql # not compatible
query II rowsort label-5629
SELECT ALL - 71 * 17 AS col2, COUNT ( * ) col2
----
-1207
1

query I rowsort
SELECT ALL 24 * - - 45
----
1080

query I rowsort
SELECT + 35 * ( - + 7 )
----
-245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5632
SELECT - 70 * CASE - - COUNT( * ) WHEN + 68 DIV + 52 THEN - - 99 WHEN + 94 + - + 64 + + 91 * 13 * 59 * 60 THEN NULL WHEN - 47 - - 72 * - 96 THEN - - ( + 2 ) * - COUNT( * ) * - 97 ELSE + 52 * 64 + - 92 END * - + 97 - 86
----
672124

skipif mysql # not compatible
query I rowsort label-5632
SELECT - 70 * CASE - - COUNT ( * ) WHEN + 68 / + 52 THEN - - 99 WHEN + 94 + - + 64 + + 91 * 13 * 59 * 60 THEN NULL WHEN - 47 - - 72 * - 96 THEN - - ( + 2 ) * - COUNT ( * ) * - 97 ELSE + 52 * 64 + - 92 END * - + 97 - 86
----
672124

onlyif mysql # aggregate syntax: 
query II rowsort label-5633
SELECT DISTINCT + CASE - 87 WHEN - 53 - + 2 THEN - 29 * + 19 + + COUNT( * ) END, - CASE - - COALESCE ( + - 9, - COUNT( * ) + + 31, 98 ) WHEN - 95 + + AVG ( DISTINCT + - ( - + 56 ) ) THEN + - ( - + 21 ) ELSE NULL END + COUNT( * ) + - - COUNT( + 67 ) / + - 42 - + 21 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5633
SELECT DISTINCT + CASE - 87 WHEN - 53 - + 2 THEN - 29 * + 19 + + COUNT ( * ) END, - CASE - - COALESCE ( + - 9, - COUNT ( * ) + + 31, 98 ) WHEN - 95 + + AVG ( DISTINCT + - ( - + 56 ) ) THEN + - ( - + 21 ) ELSE NULL END + COUNT ( * ) + - - COUNT ( + 67 ) / + - 42 - + 21 AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5634
SELECT ALL + MIN( + 45 ), ( CAST( NULL AS SIGNED ) ) AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-5634
SELECT ALL + MIN ( + 45 ), ( CAST ( NULL AS INTEGER ) ) AS col2
----
45
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5635
SELECT CAST( - 75 AS SIGNED ), COUNT( * ) * + + COUNT( * ) AS col1
----
-75
1

skipif mysql # not compatible
query II rowsort label-5635
SELECT CAST ( - 75 AS INTEGER ), COUNT ( * ) * + + COUNT ( * ) AS col1
----
-75
1

query I rowsort
SELECT + 34 * 35
----
1190

query I rowsort
SELECT - 40 * + 2
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-5638
SELECT + MIN( 55 ) AS col2, - 84 * - 46 * 60
----
55
231840

skipif mysql # not compatible
query II rowsort label-5638
SELECT + MIN ( 55 ) AS col2, - 84 * - 46 * 60
----
55
231840

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT ALL + ( + SUM( + - 92 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL + ( + SUM ( + - 92 ) ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT - 46 * + + 36 * - CASE 2 WHEN 34 + COUNT( * ) THEN - + 85 WHEN - 33 THEN NULL ELSE NULL END * + - 16 * + 77 + 99 + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT - 46 * + + 36 * - CASE 2 WHEN 34 + COUNT ( * ) THEN - + 85 WHEN - 33 THEN NULL ELSE NULL END * + - 16 * + 77 + 99 + 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT ALL 10 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL 10 / 94
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5642
SELECT + MAX( + 51 ) DIV + 26 + CAST( + + 71 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-5642
SELECT + MAX ( + 51 ) / + 26 + CAST ( + + 71 AS INTEGER )
----
72

query I rowsort
SELECT DISTINCT - + 87 + - 87
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT ALL + - 24 + - COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL + - 24 + - COUNT ( * ) AS col0
----
-25

query I rowsort
SELECT 91 * - 83 AS col0
----
-7553

query I rowsort
SELECT ALL - + COALESCE ( 27, ( - + 19 ) - + 22 ) col1
----
-27

query I rowsort
SELECT - 3 * - - 72 + + 23
----
-193

query I rowsort
SELECT - 29 + - 85 AS col2
----
-114

query I rowsort
SELECT ALL + - 44 + + 1 * 91 * + 42
----
3778

query II rowsort
SELECT - 86 - 50 AS col0, - 96
----
-136
-96

query I rowsort
SELECT 63 + - + 48
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL COUNT( DISTINCT + 5 ) * 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL COUNT ( DISTINCT + 5 ) * 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5653
SELECT ALL - COUNT( ALL - 82 ) AS col0, - 5 * + 95 AS col2
----
-1
-475

skipif mysql # not compatible
query II rowsort label-5653
SELECT ALL - COUNT ( ALL - 82 ) AS col0, - 5 * + 95 AS col2
----
-1
-475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5654
SELECT CAST( MIN( DISTINCT + 92 ) AS SIGNED ) DIV 41 * - + 64
----
-128

skipif mysql # not compatible
query I rowsort label-5654
SELECT CAST ( MIN ( DISTINCT + 92 ) AS INTEGER ) / 41 * - + 64
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT DISTINCT - 40 * - - COALESCE ( - COUNT( * ), + 10 * 9, - 9 ) * + 17 * 1 + + ( + 8 ) + + - 92
----
596

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT - 40 * - - COALESCE ( - COUNT ( * ), + 10 * 9, - 9 ) * + 17 * 1 + + ( + 8 ) + + - 92
----
596

query I rowsort
SELECT ALL + 82 - + 53
----
29

query I rowsort
SELECT ( + 45 ) * - 37
----
-1665

query I rowsort
SELECT 71 - 56
----
15

query II rowsort
SELECT DISTINCT 77 * + + 20 * + - 63 AS col0, 31 AS col1
----
-97020
31

query II rowsort
SELECT - 91 AS col1, - 58 * - 9
----
-91
522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5661
SELECT CAST( NULL AS SIGNED ) * + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT CAST ( NULL AS INTEGER ) * + + 66
----
NULL

query I rowsort
SELECT ALL - 66 * - 35
----
2310

query I rowsort
SELECT DISTINCT + 57 * - - 20 col2
----
1140

onlyif mysql # aggregate syntax: 
query II rowsort label-5664
SELECT ALL 2 AS col2, 49 * - 76 * + COUNT( * ) + - 20 * 15 + + + 1 + - 76 + - 54 - + COUNT( * ) AS col0
----
2
-4154

skipif mysql # not compatible
query II rowsort label-5664
SELECT ALL 2 AS col2, 49 * - 76 * + COUNT ( * ) + - 20 * 15 + + + 1 + - 76 + - 54 - + COUNT ( * ) AS col0
----
2
-4154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5665
SELECT COUNT( * ) DIV + CAST( - 44 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5665
SELECT COUNT ( * ) / + CAST ( - 44 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5666
SELECT - ( - + 61 ) * 21 - - - CAST( - - 50 AS SIGNED ) + + - 19
----
1212

skipif mysql # not compatible
query I rowsort label-5666
SELECT - ( - + 61 ) * 21 - - - CAST ( - - 50 AS INTEGER ) + + - 19
----
1212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5667
SELECT DISTINCT COALESCE ( 65, - 51 DIV - + ( + 70 ) * 56 * - - ( + + ( + - COALESCE ( CAST( NULL AS SIGNED ), - 68 + + COUNT( * ), + - 84 ) ) ) ) * 17 + 28
----
1133

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT COALESCE ( 65, - 51 / - + ( + 70 ) * 56 * - - ( + + ( + - COALESCE ( CAST ( NULL AS INTEGER ), - 68 + + COUNT ( * ), + - 84 ) ) ) ) * 17 + 28
----
1133

query I rowsort
SELECT 90 + + + 76 col1
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5669
SELECT MAX( DISTINCT + + 68 ) + + 51 * CAST( NULL AS SIGNED ) * + 97 * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5669
SELECT MAX ( DISTINCT + + 68 ) + + 51 * CAST ( NULL AS INTEGER ) * + 97 * - 65
----
NULL

query I rowsort
SELECT 4 * + 82 + - 44 AS col0
----
284

onlyif mysql # DIV for integer division: 
query II rowsort label-5671
SELECT ALL NULLIF ( - + 47, + 22 * 76 + + + 72 + + 87 * 13 + + 90 ) + - ( - 20 ) DIV - 76 AS col0, 87
----
-47
87

skipif mysql # not compatible
query II rowsort label-5671
SELECT ALL NULLIF ( - + 47, + 22 * 76 + + + 72 + + 87 * 13 + + 90 ) + - ( - 20 ) / - 76 AS col0, 87
----
-47
87

query I rowsort
SELECT DISTINCT 69 * 50 col1
----
3450

query I rowsort
SELECT ALL - 4 + - + 33 - - + 10 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL + COUNT( * ) + - 96 - 6
----
-101

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL + COUNT ( * ) + - 96 - 6
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5675
SELECT + 35 DIV + COUNT( DISTINCT - - 66 )
----
35

skipif mysql # not compatible
query I rowsort label-5675
SELECT + 35 / + COUNT ( DISTINCT - - 66 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT CASE - 86 WHEN - COUNT( * ) * ( + 44 ) + - COUNT( 14 ) + - - ( - 62 ) + - + 18 + - COUNT( * ) THEN NULL WHEN + + 95 THEN NULL ELSE + 24 END AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5676
SELECT CASE - 86 WHEN - COUNT ( * ) * ( + 44 ) + - COUNT ( 14 ) + - - ( - 62 ) + - + 18 + - COUNT ( * ) THEN NULL WHEN + + 95 THEN NULL ELSE + 24 END AS col1
----
24

query I rowsort
SELECT 86 + + - 48 * + - 9 + 96 AS col0
----
614

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT COUNT( * ) * COUNT( * ) * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5678
SELECT COUNT ( * ) * COUNT ( * ) * + + COUNT ( * )
----
1

query II rowsort
SELECT - 1, - 73 + + 72 AS col1
----
-1
-1

query II rowsort
SELECT 0 * 83 + 11 + - 78 * - - 92 * - + 67 AS col1, CASE 29 WHEN - 45 / - 60 THEN NULL ELSE + 22 * - + 57 END
----
480803
-1254

query I rowsort
SELECT ALL + + 17 * 61
----
1037

query I rowsort
SELECT 9 * - 62
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT ALL + COUNT( * ) * ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL + COUNT ( * ) * ( + COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5684
SELECT DISTINCT 30 AS col1, 38 + - 12 - - CAST( CASE + 22 WHEN + COUNT( * ) THEN + COUNT( * ) WHEN + 16 THEN + COUNT( * ) / - + 88 WHEN - 82 THEN NULL ELSE + 83 END AS SIGNED ) * - + 57
----
30
-4705

skipif mysql # not compatible
query II rowsort label-5684
SELECT DISTINCT 30 AS col1, 38 + - 12 - - CAST ( CASE + 22 WHEN + COUNT ( * ) THEN + COUNT ( * ) WHEN + 16 THEN + COUNT ( * ) / - + 88 WHEN - 82 THEN NULL ELSE + 83 END AS INTEGER ) * - + 57
----
30
-4705

query I rowsort
SELECT ALL - - 87 * 86
----
7482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT + 82 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT + 82 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT MIN( ALL 13 ) * - - 45 * + 82 * + COUNT( * )
----
47970

skipif mysql # not compatible
query I rowsort label-5687
SELECT MIN ( ALL 13 ) * - - 45 * + 82 * + COUNT ( * )
----
47970

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL MAX( + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL MAX ( + 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT 90 + + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-5689
SELECT 90 + + + COUNT ( * )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5690
SELECT ALL SUM( - 76 ), ( - + ( - - 43 ) ) * + CASE - 46 WHEN + + 1 - + COUNT( * ) THEN - 88 / - 10 / + + 2 WHEN - + 83 - + 84 + - + 64 * - 65 * + + 50 * + + 50 THEN NULL END * - CAST( NULL AS SIGNED ) - + + 17 + - SUM( 44 ) * + 19 AS col1
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-5690
SELECT ALL SUM ( - 76 ), ( - + ( - - 43 ) ) * + CASE - 46 WHEN + + 1 - + COUNT ( * ) THEN - 88 / - 10 / + + 2 WHEN - + 83 - + 84 + - + 64 * - 65 * + + 50 * + + 50 THEN NULL END * - CAST ( NULL AS INTEGER ) - + + 17 + - SUM ( 44 ) * + 19 AS col1
----
-76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT 6 + - CASE - 96 WHEN - 33 + 15 + COUNT( * ) THEN NULL ELSE + + 50 END + - SUM( ( - 22 ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-5691
SELECT 6 + - CASE - 96 WHEN - 33 + 15 + COUNT ( * ) THEN NULL ELSE + + 50 END + - SUM ( ( - 22 ) ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT DISTINCT MIN( + - 41 ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT MIN ( + - 41 ) col2
----
-41

query I rowsort
SELECT 90 * - 79 AS col1
----
-7110

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT COUNT( * ) + + - 77 * + ( - COALESCE ( 21, - - ( + - 34 ) ) ) - - 20 * COALESCE ( + + 7, - + 29 )
----
1758

skipif mysql # not compatible
query I rowsort label-5694
SELECT COUNT ( * ) + + - 77 * + ( - COALESCE ( 21, - - ( + - 34 ) ) ) - - 20 * COALESCE ( + + 7, - + 29 )
----
1758

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5695
SELECT ALL + NULLIF ( - 64, + 11 ) * 0 * + - CAST( NULL AS DECIMAL ) * 7 + + - 96 / - 36 * - + 83 + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + NULLIF ( - 64, + 11 ) * 0 * + - CAST ( NULL AS REAL ) * 7 + + - 96 / - 36 * - + 83 + - 35
----
NULL

query I rowsort
SELECT ALL COALESCE ( 70, - ( - 54 ) + 93 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT 35 + MAX( - 79 )
----
-44

skipif mysql # not compatible
query I rowsort label-5697
SELECT 35 + MAX ( - 79 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT NULLIF ( + + 47, - 55 + - - 14 ) + 1 + ( - SUM( ALL + 99 ) ) * - 29 * - + 4 * + 23 AS col1
----
-264084

skipif mysql # not compatible
query I rowsort label-5698
SELECT NULLIF ( + + 47, - 55 + - - 14 ) + 1 + ( - SUM ( ALL + 99 ) ) * - 29 * - + 4 * + 23 AS col1
----
-264084

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL - 55 * 21 * - 15 + + + 5 * + 44 + + COUNT( * )
----
17546

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL - 55 * 21 * - 15 + + + 5 * + 44 + + COUNT ( * )
----
17546

query I rowsort
SELECT 15 * 98 * + 49
----
72030

onlyif mysql # DIV for integer division: 
query I rowsort label-5701
SELECT + 76 DIV - 86 + - 93 * 72 AS col1
----
-6696

skipif mysql # not compatible
query I rowsort label-5701
SELECT + 76 / - 86 + - 93 * 72 AS col1
----
-6696

query I rowsort
SELECT CASE 62 WHEN 75 / 92 * - 65 - - - ( + 0 ) THEN ( + - 75 ) WHEN - - 37 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 63 * 72 AS col0
----
-4536

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT DISTINCT 10 DIV - 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT 10 / - 43 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5705
SELECT - 19 / + 15 * NULLIF ( + - COUNT( * ), - 78 ) / + CAST( NULL AS SIGNED ) * + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT - 19 / + 15 * NULLIF ( + - COUNT ( * ), - 78 ) / + CAST ( NULL AS INTEGER ) * + 75 AS col2
----
NULL

query I rowsort
SELECT + + 78 * - + 53 AS col2
----
-4134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5707
SELECT ALL + CAST( - 4 AS SIGNED ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL + CAST ( - 4 AS INTEGER ) AS col2
----
-4

query I rowsort
SELECT + COALESCE ( 60, + 89 * + 48 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT ALL 47 * COUNT( - + 98 )
----
47

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL 47 * COUNT ( - + 98 )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5710
SELECT ALL + MAX( 77 ), + 65 AS col1
----
77
65

skipif mysql # not compatible
query II rowsort label-5710
SELECT ALL + MAX ( 77 ), + 65 AS col1
----
77
65

query I rowsort
SELECT DISTINCT + 84 * 96 - - - 89 AS col1
----
7975

query I rowsort
SELECT + 44 * + 76 * + 39 * + - 77 + + 68
----
-10041964

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT - MIN( DISTINCT - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-5713
SELECT - MIN ( DISTINCT - 30 )
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-5714
SELECT + - 2 DIV + 81 AS col2, + 15
----
0
15

skipif mysql # not compatible
query II rowsort label-5714
SELECT + - 2 / + 81 AS col2, + 15
----
0
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT - - 96 * - + MIN( ALL - 72 ) * + COUNT( * ) + + 78
----
6990

skipif mysql # not compatible
query I rowsort label-5715
SELECT - - 96 * - + MIN ( ALL - 72 ) * + COUNT ( * ) + + 78
----
6990

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL COUNT( + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL COUNT ( + 52 )
----
1

query I rowsort
SELECT ALL + ( ( + 73 ) ) * 55
----
4015

onlyif mysql # DIV for integer division: 
query I rowsort label-5718
SELECT - 95 DIV - + 71 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5718
SELECT - 95 / - + 71 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT ALL COUNT( * ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL COUNT ( * ) + + 76
----
77

query I rowsort
SELECT - 71 * - 28 AS col0
----
1988

query I rowsort
SELECT - 65 * + 34
----
-2210

query I rowsort
SELECT ALL + 49 * 3 AS col1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT ALL - 76 + - SUM( DISTINCT - NULLIF ( + 98, 47 ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL - 76 + - SUM ( DISTINCT - NULLIF ( + 98, 47 ) ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL MIN( DISTINCT - 7 ) * MAX( ALL - - 43 ) + - 0
----
-301

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL MIN ( DISTINCT - 7 ) * MAX ( ALL - - 43 ) + - 0
----
-301

onlyif mysql # aggregate syntax: 
query II rowsort label-5725
SELECT DISTINCT - MIN( ALL 42 ) + + 98 + NULLIF ( + 21, 96 * + + 81 * - 31 + 15 * 38 ) * - 67, 21 + + 8 * + COUNT( * ) AS col0
----
-1351
29

skipif mysql # not compatible
query II rowsort label-5725
SELECT DISTINCT - MIN ( ALL 42 ) + + 98 + NULLIF ( + 21, 96 * + + 81 * - 31 + 15 * 38 ) * - 67, 21 + + 8 * + COUNT ( * ) AS col0
----
-1351
29

query I rowsort
SELECT ALL + 4 + + 48
----
52

query I rowsort
SELECT ALL ( 3 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT DISTINCT + COUNT( * ) + + ( - - 44 ) + - 39 * + + COUNT( + 95 )
----
6

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT + COUNT ( * ) + + ( - - 44 ) + - 39 * + + COUNT ( + 95 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5729
SELECT + COUNT( * ) * - 48 - - ( + ( + + 99 ) ) AS col2, + COUNT( * ) + + 91 * 2 AS col2
----
51
183

skipif mysql # not compatible
query II rowsort label-5729
SELECT + COUNT ( * ) * - 48 - - ( + ( + + 99 ) ) AS col2, + COUNT ( * ) + + 91 * 2 AS col2
----
51
183

query I rowsort
SELECT - 45 + 63
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT DISTINCT + 87 * + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT + 87 * + COUNT ( * ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT - 46 * - - 46 + - MIN( + 72 ) + - + 14 AS col1
----
-2202

skipif mysql # not compatible
query I rowsort label-5732
SELECT - 46 * - - 46 + - MIN ( + 72 ) + - + 14 AS col1
----
-2202

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT - COUNT( * ) + 52 * 54
----
2807

skipif mysql # not compatible
query I rowsort label-5733
SELECT - COUNT ( * ) + 52 * 54
----
2807

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT + ( - 12 ) * MIN( DISTINCT 29 * + 16 )
----
-5568

skipif mysql # not compatible
query I rowsort label-5734
SELECT + ( - 12 ) * MIN ( DISTINCT 29 * + 16 )
----
-5568

query I rowsort
SELECT 78 * + 33 + 7
----
2581

query I rowsort
SELECT ( ( 64 ) )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5737
SELECT DISTINCT + CAST( + 49 AS SIGNED ) * - COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT + CAST ( + 49 AS INTEGER ) * - COUNT ( * ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT + MAX( - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT + MAX ( - 44 )
----
-44

query I rowsort
SELECT - 9 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT ALL - 69 * COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL - 69 * COUNT ( * )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT ALL 56 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL 56 / 48
----
1

query I rowsort
SELECT + 61 + + 94 * + 38 AS col0
----
3633

query I rowsort
SELECT - 73 * ( + 32 ) AS col1
----
-2336

query I rowsort
SELECT + 79 * + 98 AS col1
----
7742

query I rowsort
SELECT + 51 * 17 + + 84 AS col1
----
951

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT - NULLIF ( 89, COUNT( * ) * + 40 ) * 26
----
-2314

skipif mysql # not compatible
query I rowsort label-5746
SELECT - NULLIF ( 89, COUNT ( * ) * + 40 ) * 26
----
-2314

query I rowsort
SELECT + 14 + + 66
----
80

query I rowsort
SELECT + 43 + 14
----
57

query I rowsort
SELECT + ( - 43 ) * + 40
----
-1720

query I rowsort
SELECT ALL 38 * + 29 + - 64
----
1038

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5751
SELECT ALL 44 * 59 + ( CAST( 21 AS SIGNED ) )
----
2617

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL 44 * 59 + ( CAST ( 21 AS INTEGER ) )
----
2617

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT ALL COUNT( * ) * COUNT( * ) + - 29 * 46 AS col2
----
-1333

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL COUNT ( * ) * COUNT ( * ) + - 29 * 46 AS col2
----
-1333

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT COUNT( NULLIF ( - 62, 86 + 35 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5753
SELECT COUNT ( NULLIF ( - 62, 86 + 35 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT ALL + 93 * COUNT( * ) + 9
----
102

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL + 93 * COUNT ( * ) + 9
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT - ( 9 ) * 33 - - COUNT( * ) AS col1
----
-296

skipif mysql # not compatible
query I rowsort label-5755
SELECT - ( 9 ) * 33 - - COUNT ( * ) AS col1
----
-296

query I rowsort
SELECT - ( - 70 ) AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5757
SELECT - COUNT( * ) DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-5757
SELECT - COUNT ( * ) / 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT + 53 + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-5758
SELECT + 53 + COUNT ( * )
----
54

query I rowsort
SELECT - 35 - - 49 AS col2
----
14

query I rowsort
SELECT 25 + 7 AS col2
----
32

query I rowsort
SELECT ALL 11 + ( - 52 + + 87 ) col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT - 63 * + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT - 63 * + COUNT ( * )
----
-63

query I rowsort
SELECT DISTINCT 46 + NULLIF ( 71, 20 )
----
117

query I rowsort
SELECT ALL 81 * + 13 AS col1
----
1053

query I rowsort
SELECT ( + 5 ) * 5
----
25

query I rowsort
SELECT 34 * 52
----
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT 69 + + COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-5767
SELECT 69 + + COUNT ( * ) AS col2
----
70

query I rowsort
SELECT ALL - - CASE + 76 WHEN 59 THEN + 56 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 40 * + 35
----
1400

query I rowsort
SELECT - COALESCE ( ( 7 ), + 41 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT DISTINCT - COUNT( DISTINCT 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT - COUNT ( DISTINCT 41 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT COALESCE ( - COUNT( * ), + 12 * 9 ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5772
SELECT COALESCE ( - COUNT ( * ), + 12 * 9 ) * + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT ALL - + COALESCE ( COUNT( * ), + 28 * 35, 62 * 21 + + 60 * + 47 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL - + COALESCE ( COUNT ( * ), + 28 * 35, 62 * 21 + + 60 * + 47 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5774
SELECT 94 DIV COUNT( ALL + 1 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5774
SELECT 94 / COUNT ( ALL + 1 ) AS col0
----
94

query I rowsort
SELECT - 96 * 86
----
-8256

query I rowsort
SELECT DISTINCT - COALESCE ( + 31, - 8 ) * 66
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT ALL - + SUM( - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL - + SUM ( - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT + - SUM( DISTINCT + 96 ) * 62 + 43 * + COALESCE ( - 31, - 69 )
----
-7285

skipif mysql # not compatible
query I rowsort label-5778
SELECT + - SUM ( DISTINCT + 96 ) * 62 + 43 * + COALESCE ( - 31, - 69 )
----
-7285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5779
SELECT - CAST( - 77 AS SIGNED ) - 54 DIV COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5779
SELECT - CAST ( - 77 AS INTEGER ) - 54 / COUNT ( * ) AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5780
SELECT + 62 DIV + ( 66 )
----
0

skipif mysql # not compatible
query I rowsort label-5780
SELECT + 62 / + ( 66 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL - 63 + - MAX( DISTINCT + 50 ) AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL - 63 + - MAX ( DISTINCT + 50 ) AS col2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT DISTINCT COUNT( * ) + 17
----
18

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT COUNT ( * ) + 17
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5783
SELECT ALL + 83 + CAST( NULL AS SIGNED ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL + 83 + CAST ( NULL AS INTEGER ) * 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT ALL - MIN( 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-5784
SELECT ALL - MIN ( 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT ALL + 50 + - CAST( + 89 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL + 50 + - CAST ( + 89 AS INTEGER )
----
-39

query I rowsort
SELECT - - 67 * + 25 - + 11 * 42
----
1213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5787
SELECT ALL - CAST( - + 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL - CAST ( - + 98 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5788
SELECT DISTINCT - 94 + MAX( ALL + 48 ) + COUNT( * ) DIV 55 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT - 94 + MAX ( ALL + 48 ) + COUNT ( * ) / 55 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL COUNT( * ) + + 35 + - 28
----
8

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL COUNT ( * ) + + 35 + - 28
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL ( + COUNT( * ) ) + + 97 * - ( MIN( 80 ) + 93 * 64 )
----
-585103

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL ( + COUNT ( * ) ) + + 97 * - ( MIN ( 80 ) + 93 * 64 )
----
-585103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5791
SELECT NULLIF ( - + 79, - ( + 54 ) - 46 * - COALESCE ( - 14 * 77 + 42, + 87 / 53 ) ) * CAST( MAX( CASE - ( 19 ) WHEN + 70 THEN + 96 END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT NULLIF ( - + 79, - ( + 54 ) - 46 * - COALESCE ( - 14 * 77 + 42, + 87 / 53 ) ) * CAST ( MAX ( CASE - ( 19 ) WHEN + 70 THEN + 96 END ) AS INTEGER )
----
NULL

query I rowsort
SELECT 19 + - 71 + - 45
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT ALL + 77 + - 36 * + COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL + 77 + - 36 * + COUNT ( * ) AS col2
----
41

query I rowsort
SELECT ALL - NULLIF ( - + 82, + 87 ) + ( - 86 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT ALL 94 - + 87 * COALESCE ( + COUNT( * ) + + 62, 55 * 12 ) col2
----
-5387

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL 94 - + 87 * COALESCE ( + COUNT ( * ) + + 62, 55 * 12 ) col2
----
-5387

query I rowsort
SELECT 41 * - 87
----
-3567

query I rowsort
SELECT DISTINCT 5 * - 11
----
-55

query I rowsort
SELECT 54 * NULLIF ( - 38, 22 ) AS col0
----
-2052

query I rowsort
SELECT ALL 40 * + + 14
----
560

query I rowsort
SELECT ALL 58 - - - 21 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT 31 * - + COUNT( * ) * + 76 col2
----
-2356

skipif mysql # not compatible
query I rowsort label-5801
SELECT 31 * - + COUNT ( * ) * + 76 col2
----
-2356

query I rowsort
SELECT 44 * - 2 AS col1
----
-88

query I rowsort
SELECT 79 * + NULLIF ( - 85, ( + CASE 81 WHEN 69 + - 52 THEN + 78 END ) ) * 84
----
-564060

query I rowsort
SELECT 50 - + 31 + 54 col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5805
SELECT ALL 28 DIV - 28 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL 28 / - 28 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT ALL - COUNT( * ) * - 26 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL - COUNT ( * ) * - 26 AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT ALL 14 DIV 84 + + 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL 14 / 84 + + 66 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT + MIN( - 62 ) * - COUNT( DISTINCT + 83 * 51 + 93 ) - + 3
----
59

skipif mysql # not compatible
query I rowsort label-5808
SELECT + MIN ( - 62 ) * - COUNT ( DISTINCT + 83 * 51 + 93 ) - + 3
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT 16 * - COALESCE ( 73, + MAX( 43 ) )
----
-1168

skipif mysql # not compatible
query I rowsort label-5809
SELECT 16 * - COALESCE ( 73, + MAX ( 43 ) )
----
-1168

onlyif mysql # DIV for integer division: 
query I rowsort label-5810
SELECT + 1 + + 18 DIV 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5810
SELECT + 1 + + 18 / 62 AS col1
----
1

query I rowsort
SELECT - 71 * + 6
----
-426

query I rowsort
SELECT ALL 41 * + 11 * - 89
----
-40139

onlyif mysql # DIV for integer division: 
query I rowsort label-5813
SELECT 6 DIV + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5813
SELECT 6 / + 86 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5814
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) * + 51 + ( 12 + - COUNT( + 85 + 20 * 58 ) )
----
62

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) * + 51 + ( 12 + - COUNT ( + 85 + 20 * 58 ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT DISTINCT - 85 * - + 62 + + MAX( 63 ) * 75
----
9995

skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT - 85 * - + 62 + + MAX ( 63 ) * 75
----
9995

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT + COUNT( - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-5816
SELECT + COUNT ( - 16 )
----
1

query I rowsort
SELECT DISTINCT 49 * + + 57 + + 56
----
2849

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5818
SELECT ALL 87 * 93 DIV ( 66 * + NULLIF ( + ( - COUNT( * ) ), - 31 + - NULLIF ( 10 + - 80 DIV - 44, ( ( + 72 ) ) + 93 ) * + 67 ) ) + 34 * 52
----
1646

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL 87 * 93 / ( 66 * + NULLIF ( + ( - COUNT ( * ) ), - 31 + - NULLIF ( 10 + - 80 / - 44, ( ( + 72 ) ) + 93 ) * + 67 ) ) + 34 * 52
----
1646

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT DISTINCT - - 68 * - - 40 * COALESCE ( COUNT( * ), + 63 ) + 86 + 57 * NULLIF ( + 36, + 27 )
----
4858

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT - - 68 * - - 40 * COALESCE ( COUNT ( * ), + 63 ) + 86 + 57 * NULLIF ( + 36, + 27 )
----
4858

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT ALL + CASE + 20 WHEN - ( NULLIF ( - 95, 46 / - 33 + - 6 * 30 ) ) * - 53 THEN + 65 + + 70 END * 0 + + COUNT( * ) / ( 13 * - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL + CASE + 20 WHEN - ( NULLIF ( - 95, 46 / - 33 + - 6 * 30 ) ) * - 53 THEN + 65 + + 70 END * 0 + + COUNT ( * ) / ( 13 * - 25 )
----
NULL

query I rowsort
SELECT DISTINCT - 85 + + 6 AS col1
----
-79

query I rowsort
SELECT + 17 * - - 35 col0
----
595

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT - + CASE ( - COUNT( * ) ) WHEN MAX( ALL 11 ) THEN 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT - + CASE ( - COUNT ( * ) ) WHEN MAX ( ALL 11 ) THEN 61 END
----
NULL

query I rowsort
SELECT ALL - 90 + + 99 col0
----
9

query I rowsort
SELECT 9 * - 72
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT - 30 + - SUM( DISTINCT 95 ) + 11 AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-5826
SELECT - 30 + - SUM ( DISTINCT 95 ) + 11 AS col0
----
-114

query I rowsort
SELECT DISTINCT - 8 - - - 99 + + 26 - 95
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5828
SELECT ALL - CASE + + 75 WHEN CAST( + COUNT( * ) AS SIGNED ) * + 20 + COUNT( * ) THEN + CAST( NULL AS SIGNED ) + 88 WHEN 90 THEN NULL WHEN 89 + + COALESCE ( - AVG ( DISTINCT + 4 ), 61 + + COUNT( * ), 9 ) THEN 91 + COUNT( * ) END - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL - CASE + + 75 WHEN CAST ( + COUNT ( * ) AS INTEGER ) * + 20 + COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) + 88 WHEN 90 THEN NULL WHEN 89 + + COALESCE ( - AVG ( DISTINCT + 4 ), 61 + + COUNT ( * ), 9 ) THEN 91 + COUNT ( * ) END - 40
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT ALL 53 - + 32 DIV + + 90 * - 11 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL 53 - + 32 / + + 90 * - 11 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT DISTINCT CASE 67 WHEN - + 5 * - 15 THEN - SUM( ALL 30 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT CASE 67 WHEN - + 5 * - 15 THEN - SUM ( ALL 30 ) END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5831
SELECT + COUNT( * ) DIV + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5831
SELECT + COUNT ( * ) / + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 46 * - 62
----
2852

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5833
SELECT ALL + NULLIF ( - 26, - CAST( + 50 AS SIGNED ) ) DIV + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL + NULLIF ( - 26, - CAST ( + 50 AS INTEGER ) ) / + 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT ALL COALESCE ( + COALESCE ( - - COUNT( * ), COUNT( DISTINCT 86 ) + 0 ), 57 )
----
1

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL COALESCE ( + COALESCE ( - - COUNT ( * ), COUNT ( DISTINCT 86 ) + 0 ), 57 )
----
1

query I rowsort
SELECT - 40 + + 98 - - + 53 - - 4 * 36 AS col0
----
255

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5836
SELECT DISTINCT 21, NULLIF ( + 83, CAST( NULL AS DECIMAL ) ) DIV + 30 AS col2
----
21
2

skipif mysql # not compatible
query II rowsort label-5836
SELECT DISTINCT 21, NULLIF ( + 83, CAST ( NULL AS REAL ) ) / + 30 AS col2
----
21
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT - COUNT( * ) + - - CASE WHEN ( - 15 ) IS NULL THEN 36 * 69 WHEN 80 = 34 THEN NULL END * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT - COUNT ( * ) + - - CASE WHEN ( - 15 ) IS NULL THEN 36 * 69 WHEN 80 = 34 THEN NULL END * 15
----
NULL

query I rowsort
SELECT ALL 87 * + 8 AS col2
----
696

query I rowsort
SELECT ALL COALESCE ( - 42, - + 66 * 79 ) AS col0
----
-42

query I rowsort
SELECT DISTINCT NULLIF ( - 16, 11 * 71 - + 72 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT + COUNT( * ) + + 78 + + 82
----
161

skipif mysql # not compatible
query I rowsort label-5841
SELECT + COUNT ( * ) + + 78 + + 82
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT ALL - COUNT( + 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL - COUNT ( + 47 )
----
-1

query I rowsort
SELECT ALL 2 * - - 17 * + 67
----
2278

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT + COUNT( * ) + + 65 + - 62 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5844
SELECT + COUNT ( * ) + + 65 + - 62 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT DISTINCT + 57 + + ( + COUNT( * ) ) * 42
----
99

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT + 57 + + ( + COUNT ( * ) ) * 42
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT ALL COUNT( - ( + 39 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL COUNT ( - ( + 39 ) )
----
1

query II rowsort
SELECT 70, 92 AS col2
----
70
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT + MAX( - 73 ) + + 88 * - 53
----
-4737

skipif mysql # not compatible
query I rowsort label-5848
SELECT + MAX ( - 73 ) + + 88 * - 53
----
-4737

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT - CASE + COUNT( * ) WHEN - - 64 THEN + 4 * 63 ELSE - 81 END
----
81

skipif mysql # not compatible
query I rowsort label-5849
SELECT - CASE + COUNT ( * ) WHEN - - 64 THEN + 4 * 63 ELSE - 81 END
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5850
SELECT - + COUNT( * ) AS col2, 92 AS col0
----
-1
92

skipif mysql # not compatible
query II rowsort label-5850
SELECT - + COUNT ( * ) AS col2, 92 AS col0
----
-1
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5851
SELECT DISTINCT + + CAST( + ( + 24 ) AS SIGNED ) + 84 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT + + CAST ( + ( + 24 ) AS INTEGER ) + 84 AS col2
----
108

query I rowsort
SELECT + + 69 * - 70 * 69 * - 37 AS col0
----
12330990

onlyif mysql # aggregate syntax: 
query II rowsort label-5853
SELECT DISTINCT + + 9, - ( - COUNT( ALL 48 ) ) AS col2
----
9
1

skipif mysql # not compatible
query II rowsort label-5853
SELECT DISTINCT + + 9, - ( - COUNT ( ALL 48 ) ) AS col2
----
9
1

query I rowsort
SELECT + - 94 * - + 62 AS col2
----
5828

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT ALL + + 25 * + COUNT( * ) + - 36 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL + + 25 * + COUNT ( * ) + - 36 AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5856
SELECT DISTINCT + 25 * + - 96 + + CAST( 41 AS SIGNED )
----
-2359

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT + 25 * + - 96 + + CAST ( 41 AS INTEGER )
----
-2359

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5857
SELECT ALL 32 DIV COUNT( * ) * 39 + + 14 AS col2
----
1262

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL 32 / COUNT ( * ) * 39 + + 14 AS col2
----
1262

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5858
SELECT + COUNT( * ) DIV + ( + + 98 )
----
0

skipif mysql # not compatible
query I rowsort label-5858
SELECT + COUNT ( * ) / + ( + + 98 )
----
0

query II rowsort
SELECT + 12 AS col1, - 60 - 16 AS col2
----
12
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5860
SELECT - ( - 31 ) / - ( - CAST( NULL AS SIGNED ) ) - + 63 + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT - ( - 31 ) / - ( - CAST ( NULL AS INTEGER ) ) - + 63 + 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5861
SELECT DISTINCT + + 71 * NULLIF ( + - NULLIF ( 27, 30 ), 23 * - 82 ) DIV 44 + - 93 AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT + + 71 * NULLIF ( + - NULLIF ( 27, 30 ), 23 * - 82 ) / 44 + - 93 AS col1
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL - - NULLIF ( + + COUNT( * ), - 69 + 22 ) * 43 + 25 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL - - NULLIF ( + + COUNT ( * ), - 69 + 22 ) * 43 + 25 AS col2
----
68

query II rowsort
SELECT 69 col0, 82 + + 23 + - 82 AS col0
----
69
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT + COUNT( DISTINCT - - 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5864
SELECT + COUNT ( DISTINCT - - 45 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5865
SELECT - - 30 DIV + 54 + - 28 - 24
----
-52

skipif mysql # not compatible
query I rowsort label-5865
SELECT - - 30 / + 54 + - 28 - 24
----
-52

query I rowsort
SELECT DISTINCT - 57 * + 68 - + 38
----
-3914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5867
SELECT ALL 95 * + CASE - 89 WHEN + 4 THEN + 65 DIV 92 WHEN - COALESCE ( - NULLIF ( 33, + 1 * + 11 ), 20 * 25 ) + + 14 THEN NULL ELSE ( + COALESCE ( + 12, + CASE 52 WHEN + 92 THEN NULL WHEN ( 31 ) - + 66 THEN 79 * + 63 - 39 ELSE NULL END + + COUNT( * ) ) ) + + 39 END
----
4845

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL 95 * + CASE - 89 WHEN + 4 THEN + 65 / 92 WHEN - COALESCE ( - NULLIF ( 33, + 1 * + 11 ), 20 * 25 ) + + 14 THEN NULL ELSE ( + COALESCE ( + 12, + CASE 52 WHEN + 92 THEN NULL WHEN ( 31 ) - + 66 THEN 79 * + 63 - 39 ELSE NULL END + + COUNT ( * ) ) ) + + 39 END
----
4845

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5868
SELECT + CAST( + - 81 AS SIGNED ), - COALESCE ( - + COALESCE ( - 21, 29 ), 37 * 9 ) + CAST( NULL AS SIGNED ) * 23 AS col2
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-5868
SELECT + CAST ( + - 81 AS INTEGER ), - COALESCE ( - + COALESCE ( - 21, 29 ), 37 * 9 ) + CAST ( NULL AS INTEGER ) * 23 AS col2
----
-81
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5869
SELECT DISTINCT COUNT( * ) * 20 AS col0, - 59 + - 36 AS col0
----
20
-95

skipif mysql # not compatible
query II rowsort label-5869
SELECT DISTINCT COUNT ( * ) * 20 AS col0, - 59 + - 36 AS col0
----
20
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL + COUNT( + ( + 69 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL + COUNT ( + ( + 69 ) ) col2
----
1

query I rowsort
SELECT - 59 * 80 * - - 90 AS col0
----
-424800

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT + 55 * COUNT( * ) * - + 13 + + COUNT( * )
----
-714

skipif mysql # not compatible
query I rowsort label-5872
SELECT + 55 * COUNT ( * ) * - + 13 + + COUNT ( * )
----
-714

query I rowsort
SELECT - 35 - 65
----
-100

query I rowsort
SELECT CASE 27 WHEN ( + + 8 ) - 80 THEN NULL ELSE ( 77 ) END AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5875
SELECT ALL + 59 DIV + COALESCE ( CASE NULLIF ( 93, + 67 ) WHEN CAST( + ( ( 27 ) ) AS SIGNED ) * ( + 47 ) + 98 THEN NULL WHEN 34 THEN 81 END, - 62 ) * MIN( ALL 77 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + 59 / + COALESCE ( CASE NULLIF ( 93, + 67 ) WHEN CAST ( + ( ( 27 ) ) AS INTEGER ) * ( + 47 ) + 98 THEN NULL WHEN 34 THEN 81 END, - 62 ) * MIN ( ALL 77 ) AS col2
----
0

query I rowsort
SELECT + 23 * 46
----
1058

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT - COUNT( * ) * + + 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-5877
SELECT - COUNT ( * ) * + + 40 AS col1
----
-40

query I rowsort
SELECT DISTINCT + 41 * 82 AS col0
----
3362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5879
SELECT ALL + CAST( - 12 AS SIGNED ) * + + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL + CAST ( - 12 AS INTEGER ) * + + COUNT ( * ) AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5880
SELECT ALL CAST( + 55 AS SIGNED ), - 73 + + COUNT( * ) + ( - 4 ) AS col1
----
55
-76

skipif mysql # not compatible
query II rowsort label-5880
SELECT ALL CAST ( + 55 AS INTEGER ), - 73 + + COUNT ( * ) + ( - 4 ) AS col1
----
55
-76

query I rowsort
SELECT DISTINCT + 42 * + + 73 AS col2
----
3066

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT ALL - 87 + - COUNT( ALL + 30 ) - 48
----
-136

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL - 87 + - COUNT ( ALL + 30 ) - 48
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT - SUM( ( + 70 ) ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5883
SELECT - SUM ( ( + 70 ) ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT - COUNT( + ( 25 ) ) + + 29 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5884
SELECT - COUNT ( + ( 25 ) ) + + 29 AS col1
----
28

query I rowsort
SELECT - + 8 * - ( - + 42 ) * - 42 + + 90 AS col0
----
14202

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT ALL - ( - NULLIF ( - - MIN( - - 81 ), 73 + + 3 ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL - ( - NULLIF ( - - MIN ( - - 81 ), 73 + + 3 ) ) AS col0
----
81

query I rowsort
SELECT - 70 * - 50 AS col2
----
3500

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT - NULLIF ( - + NULLIF ( 34, - 82 ), 71 + + COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-5888
SELECT - NULLIF ( - + NULLIF ( 34, - 82 ), 71 + + COUNT ( * ) )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5889
SELECT ALL - 28 + 87 * - ( - CAST( NULL AS SIGNED ) ) * + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL - 28 + 87 * - ( - CAST ( NULL AS INTEGER ) ) * + 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT - + 22 - - COUNT( DISTINCT + + 10 )
----
-21

skipif mysql # not compatible
query I rowsort label-5890
SELECT - + 22 - - COUNT ( DISTINCT + + 10 )
----
-21

query I rowsort
SELECT - - COALESCE ( + 31, + 30 + + 15 ) - 57 AS col2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5892
SELECT + 62 * 49 DIV - ( + 33 ) + - 88 * 43 AS col1
----
-3876

skipif mysql # not compatible
query I rowsort label-5892
SELECT + 62 * 49 / - ( + 33 ) + - 88 * 43 AS col1
----
-3876

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT DISTINCT + 37 DIV + + 19
----
1

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT + 37 / + + 19
----
1

query I rowsort
SELECT ALL + 78 + - + 61
----
17

query I rowsort
SELECT DISTINCT + ( + 91 )
----
91

query I rowsort
SELECT DISTINCT - 45 + + 72 + + 44
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT ALL 59 + - CASE + 61 WHEN + - NULLIF ( 9, - 72 ) THEN 69 WHEN + 15 - - 38 * 62 THEN 74 END - 56 / + ( + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL 59 + - CASE + 61 WHEN + - NULLIF ( 9, - 72 ) THEN 69 WHEN + 15 - - 38 * 62 THEN 74 END - 56 / + ( + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5898
SELECT + 42 - CAST( + 43 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5898
SELECT + 42 - CAST ( + 43 AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT - 86 + - 47 + - 62 * - + 16 AS col2
----
859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5900
SELECT + - COALESCE ( + 63, - + 71, - 85 * CAST( NULL AS SIGNED ) + + COUNT( * ) ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-5900
SELECT + - COALESCE ( + 63, - + 71, - 85 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) ) col2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5901
SELECT - COUNT( * ) DIV - 42 * + COUNT( * ) * + 49 * + 22 - MIN( ALL 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-5901
SELECT - COUNT ( * ) / - 42 * + COUNT ( * ) * + 49 * + 22 - MIN ( ALL 47 )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5902
SELECT ALL - 40 DIV COUNT( * ) - 47 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL - 40 / COUNT ( * ) - 47 AS col0
----
-87

query I rowsort
SELECT - - 46 * 91 AS col1
----
4186

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT DISTINCT - MIN( + 69 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT - MIN ( + 69 ) AS col1
----
-69

query I rowsort
SELECT 28 + ( + 9 ) * - 86 * - 92
----
71236

onlyif mysql # aggregate syntax: 
query II rowsort label-5906
SELECT DISTINCT - 67, CASE + 26 WHEN + - 20 * - - 57 THEN NULL WHEN + 66 * + ( + 30 ) THEN - 50 WHEN CASE - 48 WHEN 89 - 15 THEN 55 WHEN 26 THEN 32 * 73 WHEN 0 + - 24 THEN NULL END + COUNT( * ) THEN NULL ELSE NULL END * 81 col2
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-5906
SELECT DISTINCT - 67, CASE + 26 WHEN + - 20 * - - 57 THEN NULL WHEN + 66 * + ( + 30 ) THEN - 50 WHEN CASE - 48 WHEN 89 - 15 THEN 55 WHEN 26 THEN 32 * 73 WHEN 0 + - 24 THEN NULL END + COUNT ( * ) THEN NULL ELSE NULL END * 81 col2
----
-67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT - 70 * + - 16 + - COUNT( 19 )
----
1119

skipif mysql # not compatible
query I rowsort label-5907
SELECT - 70 * + - 16 + - COUNT ( 19 )
----
1119

onlyif mysql # aggregate syntax: 
query II rowsort label-5908
SELECT 87 AS col2, + NULLIF ( - 55, + COUNT( * ) )
----
87
-55

skipif mysql # not compatible
query II rowsort label-5908
SELECT 87 AS col2, + NULLIF ( - 55, + COUNT ( * ) )
----
87
-55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5909
SELECT DISTINCT CAST( + 49 AS SIGNED ) DIV ( - 1 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT CAST ( + 49 AS INTEGER ) / ( - 1 ) AS col1
----
-49

query II rowsort
SELECT ALL - 89, + 29 AS col1
----
-89
29

query I rowsort
SELECT ALL 17 * + 55 AS col0
----
935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5912
SELECT 34 DIV COUNT( * ) DIV 21 col0
----
1

skipif mysql # not compatible
query I rowsort label-5912
SELECT 34 / COUNT ( * ) / 21 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5913
SELECT 70 DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5913
SELECT 70 / 96 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5914
SELECT ALL 35 * 61 * + + CASE 67 WHEN - CAST( + 30 AS SIGNED ) THEN - 89 ELSE - COUNT( ALL - 72 ) + + COUNT( * ) END * - 33
----
0

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL 35 * 61 * + + CASE 67 WHEN - CAST ( + 30 AS INTEGER ) THEN - 89 ELSE - COUNT ( ALL - 72 ) + + COUNT ( * ) END * - 33
----
0

query I rowsort
SELECT 40 + 69 * 99 AS col0
----
6871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5916
SELECT ALL 11 * - COUNT( * ) DIV - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL 11 * - COUNT ( * ) / - 42 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5917
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), + + 81 ) * - 88 DIV - 87 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), + + 81 ) * - 88 / - 87 AS col2
----
81

query I rowsort
SELECT ALL 75 + - 27
----
48

query II rowsort
SELECT DISTINCT 34 + - + 25 + 84 AS col0, 16 * - + 58 AS col2
----
93
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT DISTINCT 10 + 98 + + COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT 10 + 98 + + COUNT ( * )
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5921
SELECT ALL 69 + - + NULLIF ( - - COUNT( * ), 89 + + 23 ) DIV + 22 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL 69 + - + NULLIF ( - - COUNT ( * ), 89 + + 23 ) / + 22 AS col0
----
69

query I rowsort
SELECT ( ( + 63 ) ) * - 17 AS col1
----
-1071

query I rowsort
SELECT 94 + + - 33
----
61

query I rowsort
SELECT - 63 + + 22 + + 58
----
17

query I rowsort
SELECT ALL - + 59 + 69
----
10

query I rowsort
SELECT 14 + + - 1 + + - 33 * - + 32
----
1069

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5927
SELECT - COALESCE ( + - 5, + - 13 DIV + CAST( - + CASE WHEN - 60 BETWEEN 81 AND + 96 THEN ( + ( + 95 ) ) ELSE NULL END AS SIGNED ) - + 60 ) - - 63 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5927
SELECT - COALESCE ( + - 5, + - 13 / + CAST ( - + CASE WHEN - 60 BETWEEN 81 AND + 96 THEN ( + ( + 95 ) ) ELSE NULL END AS INTEGER ) - + 60 ) - - 63 AS col0
----
68

query I rowsort
SELECT ALL + 7 * - 80 col1
----
-560

query I rowsort
SELECT ALL + 91 * 37 AS col0
----
3367

query II rowsort
SELECT DISTINCT + 80 * + 60 * - 58, + 51 * + 91 AS col1
----
-278400
4641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5931
SELECT CAST( + - 10 AS SIGNED ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5931
SELECT CAST ( + - 10 AS INTEGER ) AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5932
SELECT ALL - CAST( NULL AS DECIMAL ) * + 67 / - ( ( - - ( + 80 ) ) ) * ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL - CAST ( NULL AS REAL ) * + 67 / - ( ( - - ( + 80 ) ) ) * ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT DISTINCT + 88 + - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT + 88 + - COUNT ( * )
----
87

query I rowsort
SELECT - ( ( + 33 ) ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL + 55 - + 59 + - COALESCE ( COALESCE ( - 47, 50 ), + 73, - 99 * 39 + - ( + 56 + - 57 ) ) + - COUNT( ALL 38 - - 76 ) * + 47 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL + 55 - + 59 + - COALESCE ( COALESCE ( - 47, 50 ), + 73, - 99 * 39 + - ( + 56 + - 57 ) ) + - COUNT ( ALL 38 - - 76 ) * + 47 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT + COUNT( ALL + - 93 ) + + COUNT( DISTINCT COALESCE ( - 23, - 34 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5936
SELECT + COUNT ( ALL + - 93 ) + + COUNT ( DISTINCT COALESCE ( - 23, - 34 ) ) AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5937
SELECT 63 DIV + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-5937
SELECT 63 / + COUNT ( * )
----
63

query I rowsort
SELECT - 62 * + - 5
----
310

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5939
SELECT DISTINCT - + 54 / - NULLIF ( - + 20, + + 5 ) * - CASE 81 WHEN CAST( - 62 AS SIGNED ) THEN + CAST( NULL AS DECIMAL ) + 41 * + 5 ELSE NULL END * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT - + 54 / - NULLIF ( - + 20, + + 5 ) * - CASE 81 WHEN CAST ( - 62 AS INTEGER ) THEN + CAST ( NULL AS REAL ) + 41 * + 5 ELSE NULL END * 6
----
NULL

query I rowsort
SELECT - 6 * 77
----
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT ALL - - 4 DIV + 50 + - 43 * 24 DIV + - 57 + + 20
----
38

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL - - 4 / + 50 + - 43 * 24 / + - 57 + + 20
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5942
SELECT DISTINCT - + 55 AS col2, + 27 - 30 * 1 + 96 + + NULLIF ( CAST( NULL AS SIGNED ), + 72 )
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-5942
SELECT DISTINCT - + 55 AS col2, + 27 - 30 * 1 + 96 + + NULLIF ( CAST ( NULL AS INTEGER ), + 72 )
----
-55
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5943
SELECT ALL - COALESCE ( + + CASE 16 WHEN - 21 * - CASE WHEN NULL NOT BETWEEN - MAX( DISTINCT + 50 ) AND ( + 9 - - CAST( + 27 AS SIGNED ) * + CAST( + 22 AS DECIMAL ) ) THEN + NULLIF ( + 79, NULLIF ( - COUNT( * ), 12 - - AVG ( + 52 + 30 ) ) ) WHEN NOT 21 IS NULL THEN - 38 END THEN CAST( 92 AS SIGNED ) ELSE NULL END, 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL - COALESCE ( + + CASE 16 WHEN - 21 * - CASE WHEN NULL NOT BETWEEN - MAX ( DISTINCT + 50 ) AND ( + 9 - - CAST ( + 27 AS INTEGER ) * + CAST ( + 22 AS REAL ) ) THEN + NULLIF ( + 79, NULLIF ( - COUNT ( * ), 12 - - AVG ( + 52 + 30 ) ) ) WHEN NOT 21 IS NULL THEN - 38 END THEN CAST ( 92 AS INTEGER ) ELSE NULL END, 84 ) AS col2
----
-84

query I rowsort
SELECT ALL - ( - NULLIF ( + + ( + 44 ), 1 * 25 + 40 ) ) - - 45
----
89

query II rowsort
SELECT ALL - ( - 44 ) AS col0, 43 + 2 AS col2
----
44
45

query I rowsort
SELECT DISTINCT + 77 * - 95
----
-7315

query II rowsort
SELECT 59 AS col2, - 89 col1
----
59
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5948
SELECT ALL + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * - - 4 col2
----
0

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * - - 4 col2
----
0

query I rowsort
SELECT 25 * ( - - 32 )
----
800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5950
SELECT + COALESCE ( + 17, - 94 + - COALESCE ( + - 73, 56, 47, COUNT( * ) + + 53 ) ) DIV 54 + - 49 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5950
SELECT + COALESCE ( + 17, - 94 + - COALESCE ( + - 73, 56, 47, COUNT ( * ) + + 53 ) ) / 54 + - 49 AS col1
----
-49

query II rowsort
SELECT + 2 AS col0, + 11 * 56 AS col1
----
2
616

query I rowsort
SELECT 50 * 20 AS col0
----
1000

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT SUM( + 66 ) - - 16 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5953
SELECT SUM ( + 66 ) - - 16 AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5954
SELECT 59 col0, COUNT( + NULLIF ( 56, + 28 ) ) AS col1
----
59
1

skipif mysql # not compatible
query II rowsort label-5954
SELECT 59 col0, COUNT ( + NULLIF ( 56, + 28 ) ) AS col1
----
59
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5955
SELECT ALL 64 DIV + NULLIF ( + - CAST( - 72 AS SIGNED ), + 40 * 31 * + CASE 24 WHEN COUNT( * ) DIV - 68 + SUM( 99 ) * - 69 THEN 88 DIV + 16 WHEN 76 THEN 82 DIV + 2 WHEN 31 THEN NULL ELSE - 22 + 39 * + 87 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL 64 / + NULLIF ( + - CAST ( - 72 AS INTEGER ), + 40 * 31 * + CASE 24 WHEN COUNT ( * ) / - 68 + SUM ( 99 ) * - 69 THEN 88 / + 16 WHEN 76 THEN 82 / + 2 WHEN 31 THEN NULL ELSE - 22 + 39 * + 87 END ) AS col2
----
0

query II rowsort
SELECT 67, - 35 * - + 76 col2
----
67
2660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5957
SELECT DISTINCT 34 + + ( COUNT( * ) ) + + NULLIF ( + + 1, 70 ) + + 46 DIV - 36
----
35

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT 34 + + ( COUNT ( * ) ) + + NULLIF ( + + 1, 70 ) + + 46 / - 36
----
35

query II rowsort
SELECT 45 AS col0, - 72 * + 64
----
45
-4608

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT + COALESCE ( - 34, + 15 * - - NULLIF ( - - ( - 86 ), 36 ), - COUNT( * ) ) * - COUNT( * ) + 61 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5959
SELECT + COALESCE ( - 34, + 15 * - - NULLIF ( - - ( - 86 ), 36 ), - COUNT ( * ) ) * - COUNT ( * ) + 61 AS col1
----
95

query I rowsort
SELECT ALL 28 * + 90
----
2520

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5961
SELECT DISTINCT - 27 AS col1, - 61 - - 7 * - 38 + - + CAST( NULL AS SIGNED ) AS col1
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-5961
SELECT DISTINCT - 27 AS col1, - 61 - - 7 * - 38 + - + CAST ( NULL AS INTEGER ) AS col1
----
-27
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5962
SELECT + 78 AS col0, + ( CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
78
1

skipif mysql # not compatible
query II rowsort label-5962
SELECT + 78 AS col0, + ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT ALL COUNT( * ) + - 28 + 90
----
63

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL COUNT ( * ) + - 28 + 90
----
63

query I rowsort
SELECT 98 * - 39 AS col2
----
-3822

query I rowsort
SELECT ALL 35 * - 95
----
-3325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5966
SELECT COUNT( * ) DIV - 13
----
0

skipif mysql # not compatible
query I rowsort label-5966
SELECT COUNT ( * ) / - 13
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5967
SELECT DISTINCT + 20 + - + 68 + + - 52 + + 51 - + - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT + 20 + - + 68 + + - 52 + + 51 - + - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 32, - 56 * + + 71 col2
----
32
-3976

query I rowsort
SELECT ALL - 51 + - 30
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT CASE - - 24 WHEN 93 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT CASE - - 24 WHEN 93 THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT CASE + + CAST( NULL AS SIGNED ) WHEN + + COALESCE ( - 13, 88, 37 ) THEN 23 + + 68 / 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT CASE + + CAST ( NULL AS INTEGER ) WHEN + + COALESCE ( - 13, 88, 37 ) THEN 23 + + 68 / 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT ALL + ( - NULLIF ( + 49, 98 + + + 69 + + - COUNT( * ) ) )
----
-49

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL + ( - NULLIF ( + 49, 98 + + + 69 + + - COUNT ( * ) ) )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT DISTINCT 76 - - SUM( DISTINCT - 64 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT 76 - - SUM ( DISTINCT - 64 ) AS col0
----
12

query II rowsort
SELECT ALL + 96 AS col1, 74 * NULLIF ( + 46, + 63 ) AS col0
----
96
3404

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5975
SELECT + 54 + 0 * + 51 DIV + - 31 col2, 28 * + ( 18 ) * COUNT( * )
----
54
504

skipif mysql # not compatible
query II rowsort label-5975
SELECT + 54 + 0 * + 51 / + - 31 col2, 28 * + ( 18 ) * COUNT ( * )
----
54
504

query II rowsort
SELECT - - 98, 8 + - - 44 + - 55 + ( 1 ) * + 93 AS col2
----
98
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT - ( + NULLIF ( + 30, - 46 + - 74 + 43 / COUNT( * ) ) ) * - 86 AS col1
----
2580

skipif mysql # not compatible
query I rowsort label-5977
SELECT - ( + NULLIF ( + 30, - 46 + - 74 + 43 / COUNT ( * ) ) ) * - 86 AS col1
----
2580

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5978
SELECT + 81 * 61 col0, COUNT( * ) DIV - 76 + + 15 AS col1
----
4941
15

skipif mysql # not compatible
query II rowsort label-5978
SELECT + 81 * 61 col0, COUNT ( * ) / - 76 + + 15 AS col1
----
4941
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5979
SELECT 20 AS col1, + ( - ( + CAST( 52 AS SIGNED ) ) ) DIV 79
----
20
0

skipif mysql # not compatible
query II rowsort label-5979
SELECT 20 AS col1, + ( - ( + CAST ( 52 AS INTEGER ) ) ) / 79
----
20
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT ALL - - 52 * 27 + 82 * + CASE 40 WHEN + 91 * 42 THEN COUNT( * ) + - 70 * 29 ELSE 84 END * 86 col0
----
593772

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - - 52 * 27 + 82 * + CASE 40 WHEN + 91 * 42 THEN COUNT ( * ) + - 70 * 29 ELSE 84 END * 86 col0
----
593772

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT + ( 84 ) - 0 * - SUM( + 79 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5981
SELECT + ( 84 ) - 0 * - SUM ( + 79 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5982
SELECT ALL - 37 AS col2, - 0 * - COUNT( * )
----
-37
0

skipif mysql # not compatible
query II rowsort label-5982
SELECT ALL - 37 AS col2, - 0 * - COUNT ( * )
----
-37
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT - + 80 + - + 81 + + CAST( 8 AS SIGNED ) * + ( + + 76 ) * + 11 AS col2
----
6527

skipif mysql # not compatible
query I rowsort label-5983
SELECT - + 80 + - + 81 + + CAST ( 8 AS INTEGER ) * + ( + + 76 ) * + 11 AS col2
----
6527

onlyif mysql # DIV for integer division: 
query I rowsort label-5984
SELECT - - 63 DIV 55 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5984
SELECT - - 63 / 55 AS col2
----
1

query I rowsort
SELECT DISTINCT - + 10 * + 1 AS col2
----
-10

query I rowsort
SELECT + 30 + - 23 + + 79
----
86

query I rowsort
SELECT 63 * + 36 - + 17
----
2251

onlyif mysql # DIV for integer division: 
query I rowsort label-5988
SELECT + 48 DIV - + 96
----
0

skipif mysql # not compatible
query I rowsort label-5988
SELECT + 48 / - + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT - 53 * - 21 * - + 2 * - COUNT( * )
----
2226

skipif mysql # not compatible
query I rowsort label-5989
SELECT - 53 * - 21 * - + 2 * - COUNT ( * )
----
2226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5990
SELECT + 12 DIV - NULLIF ( 54, - 30 + - 37 + 89 ) * + COUNT( * ) + 91 + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-5990
SELECT + 12 / - NULLIF ( 54, - 30 + - 37 + 89 ) * + COUNT ( * ) + 91 + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT - ( - MIN( - + 67 ) ) * - 24 AS col0
----
1608

skipif mysql # not compatible
query I rowsort label-5991
SELECT - ( - MIN ( - + 67 ) ) * - 24 AS col0
----
1608

query I rowsort
SELECT ALL 31 * 6 * - ( + 21 ) + + 54 * 17
----
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ALL + COALESCE ( + + COUNT( * ), + 3 ) * 88 + COUNT( * ) * 32 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL + COALESCE ( + + COUNT ( * ), + 3 ) * 88 + COUNT ( * ) * 32 AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT ALL + 49 * - COALESCE ( - 51, 61 * - 31, - ( - MIN( 21 ) ) + + 75 ) * 74 + - 27 * SUM( ALL - 7 + 14 ) col2
----
184737

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL + 49 * - COALESCE ( - 51, 61 * - 31, - ( - MIN ( 21 ) ) + + 75 ) * 74 + - 27 * SUM ( ALL - 7 + 14 ) col2
----
184737

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5995
SELECT COALESCE ( + - COUNT( * ), + + 5 * - COUNT( * ) DIV + NULLIF ( + 63, - 91 ) + 8 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5995
SELECT COALESCE ( + - COUNT ( * ), + + 5 * - COUNT ( * ) / + NULLIF ( + 63, - 91 ) + 8 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5996
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 6 + + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 6 + + 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT MAX( - + 63 ) * - 30 + COUNT( * ) col1
----
1891

skipif mysql # not compatible
query I rowsort label-5997
SELECT MAX ( - + 63 ) * - 30 + COUNT ( * ) col1
----
1891

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5998
SELECT + 64 * - - 56 DIV - COUNT( ALL - - 85 )
----
-3584

skipif mysql # not compatible
query I rowsort label-5998
SELECT + 64 * - - 56 / - COUNT ( ALL - - 85 )
----
-3584

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT + 5 * + - COUNT( * ) + - 55 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-5999
SELECT + 5 * + - COUNT ( * ) + - 55 AS col0
----
-60

query I rowsort
SELECT DISTINCT - 10 * - 23 AS col1
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT NULLIF ( - COUNT( * ), 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-6001
SELECT NULLIF ( - COUNT ( * ), 74 )
----
-1

query I rowsort
SELECT + NULLIF ( ( - - ( + + 21 ) ), - ( - + 30 ) * - 26 + 41 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT - 28 + COUNT( * ) * - 7 * - 49
----
315

skipif mysql # not compatible
query I rowsort label-6003
SELECT - 28 + COUNT ( * ) * - 7 * - 49
----
315

query I rowsort
SELECT DISTINCT - 11 * 12 col0
----
-132

query I rowsort
SELECT DISTINCT - - 13 * + - 4 + + + 32 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT - ( + MIN( 60 ) ) * - 15 + + 43 * + + 44 + + 45 * - 65
----
-133

skipif mysql # not compatible
query I rowsort label-6006
SELECT - ( + MIN ( 60 ) ) * - 15 + + 43 * + + 44 + + 45 * - 65
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT DISTINCT 25 * MAX( 68 ) - - + 86 * 93
----
9698

skipif mysql # not compatible
query I rowsort label-6007
SELECT DISTINCT 25 * MAX ( 68 ) - - + 86 * 93
----
9698

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT MAX( DISTINCT + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-6008
SELECT MAX ( DISTINCT + 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT DISTINCT CASE - 28 WHEN + + 60 THEN + - CASE 11 WHEN 83 THEN 49 - - 80 / COUNT( * ) WHEN + COALESCE ( - 85, COUNT( DISTINCT 55 ) ) * 59 THEN NULL ELSE NULL END / + 56 WHEN 23 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT CASE - 28 WHEN + + 60 THEN + - CASE 11 WHEN 83 THEN 49 - - 80 / COUNT ( * ) WHEN + COALESCE ( - 85, COUNT ( DISTINCT 55 ) ) * 59 THEN NULL ELSE NULL END / + 56 WHEN 23 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT DISTINCT - SUM( DISTINCT + - ( NULLIF ( - 72, COALESCE ( + 89, - 63 ) * 19 ) ) )
----
-72

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT - SUM ( DISTINCT + - ( NULLIF ( - 72, COALESCE ( + 89, - 63 ) * 19 ) ) )
----
-72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6011
SELECT ALL CAST( + 3 AS SIGNED ) DIV ( + 92 )
----
0

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL CAST ( + 3 AS INTEGER ) / ( + 92 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6012
SELECT DISTINCT + SUM( + CAST( + - 58 AS SIGNED ) ) * 6 + + NULLIF ( - 51, 48 ) + + 0
----
-399

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT + SUM ( + CAST ( + - 58 AS INTEGER ) ) * 6 + + NULLIF ( - 51, 48 ) + + 0
----
-399

query I rowsort
SELECT + + 33 + + + 37
----
70

query I rowsort
SELECT + 66 * - 11 AS col0
----
-726

query I rowsort
SELECT + 35 + - 6
----
29

query I rowsort
SELECT ALL - 64 * - 61 - + 99 AS col1
----
3805

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL + COUNT( DISTINCT + + 40 ) - + 45 * + COALESCE ( - - 10, - ( - + 7 ) + SUM( 87 ), 71 * - 89 ) * + 34
----
-15299

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL + COUNT ( DISTINCT + + 40 ) - + 45 * + COALESCE ( - - 10, - ( - + 7 ) + SUM ( 87 ), 71 * - 89 ) * + 34
----
-15299

query I rowsort
SELECT DISTINCT 67 * + NULLIF ( + 79, - 60 ) * - 57 + - + 42
----
-301743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6019
SELECT + + 34 * - 37 - COUNT( * ) DIV 43 AS col1
----
-1258

skipif mysql # not compatible
query I rowsort label-6019
SELECT + + 34 * - 37 - COUNT ( * ) / 43 AS col1
----
-1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6020
SELECT + 24 + - CASE + + 54 WHEN - - CAST( NULL AS SIGNED ) THEN + 17 WHEN + + 88 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT + 24 + - CASE + + 54 WHEN - - CAST ( NULL AS INTEGER ) THEN + 17 WHEN + + 88 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - 37, 46 ) + - 86
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT + 7 * + CASE 63 WHEN + 50 THEN + 97 WHEN + 7 THEN 88 + + 18 WHEN - 50 THEN + COALESCE ( - COUNT( DISTINCT + 68 ), - COUNT( * ) / + 35 ) - + 86 ELSE NULL END * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT + 7 * + CASE 63 WHEN + 50 THEN + 97 WHEN + 7 THEN 88 + + 18 WHEN - 50 THEN + COALESCE ( - COUNT ( DISTINCT + 68 ), - COUNT ( * ) / + 35 ) - + 86 ELSE NULL END * + 52
----
NULL

query I rowsort
SELECT - 12 + 12 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT ALL COUNT( * ) + COALESCE ( + 38, - 51 * - - 47 * 92 + 28 )
----
39

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL COUNT ( * ) + COALESCE ( + 38, - 51 * - - 47 * 92 + 28 )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6025
SELECT - 86 AS col1, 10 + + MAX( ALL + 67 ) + + 80
----
-86
157

skipif mysql # not compatible
query II rowsort label-6025
SELECT - 86 AS col1, 10 + + MAX ( ALL + 67 ) + + 80
----
-86
157

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT ALL 94 + COUNT( * ) + + + 57 * + 83
----
4826

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL 94 + COUNT ( * ) + + + 57 * + 83
----
4826

query II rowsort
SELECT 84 AS col0, + 73 col1
----
84
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6028
SELECT CAST( - 82 AS SIGNED ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-6028
SELECT CAST ( - 82 AS INTEGER ) AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6029
SELECT DISTINCT 39 DIV + 83 + + 51
----
51

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT 39 / + 83 + + 51
----
51

query I rowsort
SELECT DISTINCT 17 * + COALESCE ( - + 59, - 66 )
----
-1003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6031
SELECT ALL 45 DIV + - 85 + + NULLIF ( + SUM( 92 ), + 65 ), - CASE + 46 WHEN COUNT( ALL 59 ) + + 92 * ( + CAST( NULL AS SIGNED ) ) THEN 16 WHEN + COUNT( * ) THEN NULL ELSE COUNT( * ) - 56 END * + ( 61 ) + 45 AS col0
----
92
3400

skipif mysql # not compatible
query II rowsort label-6031
SELECT ALL 45 / + - 85 + + NULLIF ( + SUM ( 92 ), + 65 ), - CASE + 46 WHEN COUNT ( ALL 59 ) + + 92 * ( + CAST ( NULL AS INTEGER ) ) THEN 16 WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( * ) - 56 END * + ( 61 ) + 45 AS col0
----
92
3400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6032
SELECT ALL 14 DIV + 87 + COUNT( - 94 )
----
1

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL 14 / + 87 + COUNT ( - 94 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6033
SELECT - NULLIF ( - 96, + ( 2 ) ) * 63 * - ( + 16 ) * + 23 * + COUNT( * ) + + NULLIF ( 61 + + 68, - 33 - 32 * - 11 ) / - CAST( NULL AS SIGNED ) + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT - NULLIF ( - 96, + ( 2 ) ) * 63 * - ( + 16 ) * + 23 * + COUNT ( * ) + + NULLIF ( 61 + + 68, - 33 - 32 * - 11 ) / - CAST ( NULL AS INTEGER ) + 28 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT ALL 52 * - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL 52 * - COUNT ( * )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT CAST( + 88 AS SIGNED ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6035
SELECT CAST ( + 88 AS INTEGER ) AS col1
----
88

query I rowsort
SELECT + 63 * ( + - 1 ) + + 92
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6037
SELECT CAST( - - 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-6037
SELECT CAST ( - - 33 AS INTEGER )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6038
SELECT - 40 + + - CASE - NULLIF ( + + ( + 84 ), CASE - - 44 WHEN + 25 * CASE 45 WHEN 99 THEN 23 - 5 END + + CAST( NULL AS SIGNED ) THEN + 97 + 89 WHEN + 72 THEN - 83 * 51 WHEN 85 THEN NULL WHEN - 69 + - 93 THEN NULL END ) WHEN 67 + + 47 * CASE - 58 * + 46 WHEN + 89 + + 78 THEN NULL ELSE + 94 - 32 END THEN + 74 * CASE - COUNT( * ) WHEN 90 + - 79 THEN 88 + 2 * 60 WHEN + 29 * 78 THEN + 41 * 70 ELSE 51 + - 71 END WHEN - CAST( NULL AS SIGNED ) THEN NULL END * - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT - 40 + + - CASE - NULLIF ( + + ( + 84 ), CASE - - 44 WHEN + 25 * CASE 45 WHEN 99 THEN 23 - 5 END + + CAST ( NULL AS INTEGER ) THEN + 97 + 89 WHEN + 72 THEN - 83 * 51 WHEN 85 THEN NULL WHEN - 69 + - 93 THEN NULL END ) WHEN 67 + + 47 * CASE - 58 * + 46 WHEN + 89 + + 78 THEN NULL ELSE + 94 - 32 END THEN + 74 * CASE - COUNT ( * ) WHEN 90 + - 79 THEN 88 + 2 * 60 WHEN + 29 * 78 THEN + 41 * 70 ELSE 51 + - 71 END WHEN - CAST ( NULL AS INTEGER ) THEN NULL END * - 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6039
SELECT ALL 82 DIV - - 55 + - COUNT( * ) + - - 64
----
64

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL 82 / - - 55 + - COUNT ( * ) + - - 64
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6040
SELECT ALL 51 DIV - 93 + - NULLIF ( 0, + 64 + - 87 ) * - 59 + + ( CAST( - 13 AS SIGNED ) )
----
-13

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL 51 / - 93 + - NULLIF ( 0, + 64 + - 87 ) * - 59 + + ( CAST ( - 13 AS INTEGER ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT - ( 57 ) - - + MAX( - 85 )
----
-142

skipif mysql # not compatible
query I rowsort label-6041
SELECT - ( 57 ) - - + MAX ( - 85 )
----
-142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6042
SELECT ALL + CAST( - - 12 AS SIGNED ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL + CAST ( - - 12 AS INTEGER ) AS col2
----
12

query I rowsort
SELECT ALL 9 * 97 AS col1
----
873

query II rowsort
SELECT 56, + 31 AS col1
----
56
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6045
SELECT - CASE + COUNT( * ) WHEN + CASE + 66 WHEN + CASE - 77 WHEN COUNT( ALL 72 ) + + 96 THEN NULL WHEN 66 THEN NULL ELSE - 2 END * - 19 THEN 39 END THEN + CAST( - 75 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6045
SELECT - CASE + COUNT ( * ) WHEN + CASE + 66 WHEN + CASE - 77 WHEN COUNT ( ALL 72 ) + + 96 THEN NULL WHEN 66 THEN NULL ELSE - 2 END * - 19 THEN 39 END THEN + CAST ( - 75 AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT + + COALESCE ( - - 21, + + 54, + 42 + - 27 - - 77 DIV - 89 + + 86 + 26 )
----
21

skipif mysql # not compatible
query I rowsort label-6046
SELECT + + COALESCE ( - - 21, + + 54, + 42 + - 27 - - 77 / - 89 + + 86 + 26 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT 38 * + 63 + - - NULLIF ( + - COALESCE ( - - MIN( ALL + + 88 ), 46 ), 84 * 61 ) * - 54 AS col1
----
7146

skipif mysql # not compatible
query I rowsort label-6047
SELECT 38 * + 63 + - - NULLIF ( + - COALESCE ( - - MIN ( ALL + + 88 ), 46 ), 84 * 61 ) * - 54 AS col1
----
7146

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL - 68 * - - SUM( ALL - 94 ) * - 20
----
-127840

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL - 68 * - - SUM ( ALL - 94 ) * - 20
----
-127840

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT + + MIN( + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-6049
SELECT + + MIN ( + 22 )
----
22

query II rowsort
SELECT 74 AS col2, + 34 AS col1
----
74
34

query I rowsort
SELECT - ( - + 52 ) AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6052
SELECT 30 DIV - 24 * + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6052
SELECT 30 / - 24 * + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL + 24 * + + 24
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT ALL + - 68 * + 46 * - COUNT( DISTINCT - - 83 ) col1
----
3128

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL + - 68 * + 46 * - COUNT ( DISTINCT - - 83 ) col1
----
3128

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6055
SELECT 11 AS col1, + 72 * + COALESCE ( + 0, + 94 * + CAST( + + 48 AS SIGNED ) * - - COALESCE ( 13, + 67 DIV 71 ) * 77 )
----
11
0

skipif mysql # not compatible
query II rowsort label-6055
SELECT 11 AS col1, + 72 * + COALESCE ( + 0, + 94 * + CAST ( + + 48 AS INTEGER ) * - - COALESCE ( 13, + 67 / 71 ) * 77 )
----
11
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6056
SELECT 49, 31 + CASE 58 WHEN - 4 * - 66 THEN + 5 * 2 + - COUNT( * ) ELSE NULL END AS col1
----
49
NULL

skipif mysql # not compatible
query II rowsort label-6056
SELECT 49, 31 + CASE 58 WHEN - 4 * - 66 THEN + 5 * 2 + - COUNT ( * ) ELSE NULL END AS col1
----
49
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6057
SELECT DISTINCT + 81 AS col0, NULLIF ( + 8, - CAST( + + 92 AS SIGNED ) ) AS col0
----
81
8

skipif mysql # not compatible
query II rowsort label-6057
SELECT DISTINCT + 81 AS col0, NULLIF ( + 8, - CAST ( + + 92 AS INTEGER ) ) AS col0
----
81
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT ALL 39 + - 28 * 30 * + SUM( ALL - - ( + 75 ) ) + - 38
----
-62999

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL 39 + - 28 * 30 * + SUM ( ALL - - ( + 75 ) ) + - 38
----
-62999

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT SUM( ALL - 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6059
SELECT SUM ( ALL - 1 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6060
SELECT 87 + - - 15 * - COALESCE ( - + CAST( NULL AS SIGNED ), - 57 + + COUNT( * ) + - 5 ) * CAST( NULL AS SIGNED ) + - 86 * + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT 87 + - - 15 * - COALESCE ( - + CAST ( NULL AS INTEGER ), - 57 + + COUNT ( * ) + - 5 ) * CAST ( NULL AS INTEGER ) + - 86 * + 69 AS col2
----
NULL

query II rowsort
SELECT - 49, 98 AS col1
----
-49
98

query I rowsort
SELECT + 49 * - ( - NULLIF ( 27, - 80 / - ( + + 2 ) ) ) AS col0
----
1323

query I rowsort
SELECT 44 + - 47
----
-3

query I rowsort
SELECT ALL 12 * 39 AS col0
----
468

onlyif mysql # DIV for integer division: 
query I rowsort label-6065
SELECT ALL 71 + - 67 DIV 4
----
55

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL 71 + - 67 / 4
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6066
SELECT MIN( ALL 20 ) + + CAST( NULL AS SIGNED ) / + 80 AS col2, ( + CAST( ( + 86 ) AS SIGNED ) ) + CASE - 50 WHEN - COUNT( * ) THEN NULL WHEN 22 + - 12 THEN 63 + - 40 END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6066
SELECT MIN ( ALL 20 ) + + CAST ( NULL AS INTEGER ) / + 80 AS col2, ( + CAST ( ( + 86 ) AS INTEGER ) ) + CASE - 50 WHEN - COUNT ( * ) THEN NULL WHEN 22 + - 12 THEN 63 + - 40 END AS col0
----
NULL
NULL

query I rowsort
SELECT ALL 65 + + ( - 89 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT NULLIF ( - - MIN( - 69 ), - COUNT( + - 20 ) ) + - 3 * - 40 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-6068
SELECT NULLIF ( - - MIN ( - 69 ), - COUNT ( + - 20 ) ) + - 3 * - 40 AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6069
SELECT 98 + + + COALESCE ( + COUNT( * ), 56 ) DIV + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-6069
SELECT 98 + + + COALESCE ( + COUNT ( * ), 56 ) / + - COUNT ( * )
----
97

query I rowsort
SELECT ALL 5 - - 96
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT ALL SUM( + - 13 ) * - + 60 - - - 80 + + 55 AS col2
----
755

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL SUM ( + - 13 ) * - + 60 - - - 80 + + 55 AS col2
----
755

query I rowsort
SELECT ALL 69 - + 2 col2
----
67

query I rowsort
SELECT ALL 45 * - 75
----
-3375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6074
SELECT CAST( NULL AS SIGNED ) * - AVG ( ALL + 38 ) * + 72 + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT CAST ( NULL AS INTEGER ) * - AVG ( ALL + 38 ) * + 72 + 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT 83 * 26 + + + 3 + + 3 * + MIN( DISTINCT - 42 ) + + - 56 AS col0
----
1979

skipif mysql # not compatible
query I rowsort label-6075
SELECT 83 * 26 + + + 3 + + 3 * + MIN ( DISTINCT - 42 ) + + - 56 AS col0
----
1979

query I rowsort
SELECT - 54 * + COALESCE ( - + 5, + 66 ) + - 28 AS col0
----
242

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6077
SELECT 53 * 73 * - 56 * 65 AS col0, 43 * - NULLIF ( 21, 28 + CAST( NULL AS SIGNED ) ) * - 69 + + 9 * 75
----
-14083160
62982

skipif mysql # not compatible
query II rowsort label-6077
SELECT 53 * 73 * - 56 * 65 AS col0, 43 * - NULLIF ( 21, 28 + CAST ( NULL AS INTEGER ) ) * - 69 + + 9 * 75
----
-14083160
62982

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6078
SELECT + + ( + - 39 ) col2, 21 DIV SUM( ALL - 24 ) * + 44 AS col1
----
-39
0

skipif mysql # not compatible
query II rowsort label-6078
SELECT + + ( + - 39 ) col2, 21 / SUM ( ALL - 24 ) * + 44 AS col1
----
-39
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6079
SELECT ALL + + COUNT( * ) DIV - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL + + COUNT ( * ) / - ( + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT - MIN( + - 79 ) + + 11 col1
----
90

skipif mysql # not compatible
query I rowsort label-6080
SELECT - MIN ( + - 79 ) + + 11 col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT - + MAX( ALL 43 ) * 36 + MAX( DISTINCT - 62 ) + 41 * - 40 + - + 40
----
-3290

skipif mysql # not compatible
query I rowsort label-6081
SELECT - + MAX ( ALL 43 ) * 36 + MAX ( DISTINCT - 62 ) + 41 * - 40 + - + 40
----
-3290

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT ALL - CASE - CASE + 41 WHEN - 62 THEN NULL ELSE - - COALESCE ( - COUNT( * ), - 77 ) + 61 END WHEN 7 THEN 59 * + 82 + + COALESCE ( - 81, + 71, + 35 / + 16 + - ( - ( ( + 70 ) ) ) ) * 30 WHEN 70 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL - CASE - CASE + 41 WHEN - 62 THEN NULL ELSE - - COALESCE ( - COUNT ( * ), - 77 ) + 61 END WHEN 7 THEN 59 * + 82 + + COALESCE ( - 81, + 71, + 35 / + 16 + - ( - ( ( + 70 ) ) ) ) * 30 WHEN 70 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - - ( - 30 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ALL - MIN( 69 ) + + 77 * COUNT( * ) + - SUM( DISTINCT + 32 ) * + 36 + + 63 AS col2
----
-1081

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL - MIN ( 69 ) + + 77 * COUNT ( * ) + - SUM ( DISTINCT + 32 ) * + 36 + + 63 AS col2
----
-1081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6085
SELECT + CAST( NULL AS SIGNED ) + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6085
SELECT + CAST ( NULL AS INTEGER ) + - 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6086
SELECT COUNT( * ) + + + 14 AS col1, 8 + ( - NULLIF ( + CAST( + 22 AS SIGNED ), - + 23 / + 50 ) )
----
15
-14

skipif mysql # not compatible
query II rowsort label-6086
SELECT COUNT ( * ) + + + 14 AS col1, 8 + ( - NULLIF ( + CAST ( + 22 AS INTEGER ), - + 23 / + 50 ) )
----
15
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6087
SELECT ALL - CAST( NULL AS SIGNED ) + 78 * + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL - CAST ( NULL AS INTEGER ) + 78 * + + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT 91 + + COUNT( ALL 85 )
----
92

skipif mysql # not compatible
query I rowsort label-6088
SELECT 91 + + COUNT ( ALL 85 )
----
92

query I rowsort
SELECT ALL COALESCE ( + 56, - + 65 ) AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6090
SELECT DISTINCT 6 + - CASE - 2 WHEN - 72 * + 93 THEN COUNT( * ) WHEN - 57 + + 61 * + CAST( - COUNT( * ) AS SIGNED ) * + 65 THEN 3 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT 6 + - CASE - 2 WHEN - 72 * + 93 THEN COUNT ( * ) WHEN - 57 + + 61 * + CAST ( - COUNT ( * ) AS INTEGER ) * + 65 THEN 3 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT ALL SUM( ALL + 37 ) + - 59
----
-22

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL SUM ( ALL + 37 ) + - 59
----
-22

query I rowsort
SELECT 79 + + + 93 AS col2
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT ( - COUNT( * ) ) + + - 88
----
-89

skipif mysql # not compatible
query I rowsort label-6093
SELECT ( - COUNT ( * ) ) + + - 88
----
-89

query I rowsort
SELECT ALL + 69 - - 17 * - + 92
----
-1495

onlyif mysql # aggregate syntax: 
query II rowsort label-6095
SELECT - 50 col2, - 50 * + - MAX( - 32 )
----
-50
-1600

skipif mysql # not compatible
query II rowsort label-6095
SELECT - 50 col2, - 50 * + - MAX ( - 32 )
----
-50
-1600

query I rowsort
SELECT ALL 5 - 84 col2
----
-79

query I rowsort
SELECT DISTINCT 64 * + ( + 84 ) AS col0
----
5376

query I rowsort
SELECT ALL 99 * + 14 AS col0
----
1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6099
SELECT 85 + + - CAST( COUNT( * ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-6099
SELECT 85 + + - CAST ( COUNT ( * ) AS INTEGER )
----
84

query I rowsort
SELECT ALL + 6 - + 1 - 40 * - ( - ( 53 ) ) AS col0
----
-2115

query I rowsort
SELECT DISTINCT - 52 * 51
----
-2652

query I rowsort
SELECT 97 * 86 * + - ( + 3 )
----
-25026

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL + 86 * + 81 - - 31 + - COUNT( DISTINCT - ( 88 ) ) AS col0
----
6996

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL + 86 * + 81 - - 31 + - COUNT ( DISTINCT - ( 88 ) ) AS col0
----
6996

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT ALL COUNT( * ) * + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL COUNT ( * ) * + 58 AS col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT - COALESCE ( + + COALESCE ( - 51, - - AVG ( ALL 85 ), 7 * + - 36 * 39 ), + NULLIF ( + 73, 71 + + 41 ) ) DIV + ( 92 ) + - COALESCE ( - 16, + 61 )
----
16

skipif mysql # not compatible
query I rowsort label-6105
SELECT - COALESCE ( + + COALESCE ( - 51, - - AVG ( ALL 85 ), 7 * + - 36 * 39 ), + NULLIF ( + 73, 71 + + 41 ) ) / + ( 92 ) + - COALESCE ( - 16, + 61 )
----
16

query I rowsort
SELECT + 75 + + - 1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6107
SELECT + + COALESCE ( + 47, - 69, 58 * 11 - + - 60 DIV - - 34 * COUNT( * ), + 65 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-6107
SELECT + + COALESCE ( + 47, - 69, 58 * 11 - + - 60 / - - 34 * COUNT ( * ), + 65 ) AS col0
----
47

query I rowsort
SELECT DISTINCT + + ( - + 27 )
----
-27

query I rowsort
SELECT DISTINCT + + ( - - 54 )
----
54

query I rowsort
SELECT + - 96 * 24 AS col2
----
-2304

onlyif mysql # DIV for integer division: 
query II rowsort label-6111
SELECT ALL + 47 AS col2, COALESCE ( - 83, - 84 DIV + - 22 ) AS col2
----
47
-83

skipif mysql # not compatible
query II rowsort label-6111
SELECT ALL + 47 AS col2, COALESCE ( - 83, - 84 / + - 22 ) AS col2
----
47
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-6112
SELECT DISTINCT + - COUNT( * ) AS col0, 7
----
-1
7

skipif mysql # not compatible
query II rowsort label-6112
SELECT DISTINCT + - COUNT ( * ) AS col0, 7
----
-1
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6113
SELECT + - CAST( + CASE - + 20 WHEN 72 THEN 23 + 17 + - + 40 * - - 26 END AS SIGNED ), 1 AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6113
SELECT + - CAST ( + CASE - + 20 WHEN 72 THEN 23 + 17 + - + 40 * - - 26 END AS INTEGER ), 1 AS col1
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6114
SELECT + 21 DIV - COALESCE ( + 16, ( - 73 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6114
SELECT + 21 / - COALESCE ( + 16, ( - 73 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6115
SELECT ALL - - 15 * + MAX( 60 ) + COUNT( * ) + - 84, 14 col0
----
817
14

skipif mysql # not compatible
query II rowsort label-6115
SELECT ALL - - 15 * + MAX ( 60 ) + COUNT ( * ) + - 84, 14 col0
----
817
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6116
SELECT + + 70 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-6116
SELECT + + 70 / 45
----
1

query I rowsort
SELECT ALL + 64 + + + 75
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT - - ( CASE - 25 WHEN - - COUNT( * ) * 63 THEN NULL WHEN + 26 THEN - 59 END ) * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6118
SELECT - - ( CASE - 25 WHEN - - COUNT ( * ) * 63 THEN NULL WHEN + 26 THEN - 59 END ) * + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT ALL + 84 + - + ( - + 4 ) - ( - COUNT( * ) ) * NULLIF ( 6, COALESCE ( - + 40, - 44 * 81, ( 69 ) + 57 ) - 54 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL + 84 + - + ( - + 4 ) - ( - COUNT ( * ) ) * NULLIF ( 6, COALESCE ( - + 40, - 44 * 81, ( 69 ) + 57 ) - 54 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6120
SELECT DISTINCT 56 AS col2, + COUNT( * ) + - 82 + - 94 AS col2
----
56
-175

skipif mysql # not compatible
query II rowsort label-6120
SELECT DISTINCT 56 AS col2, + COUNT ( * ) + - 82 + - 94 AS col2
----
56
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT - 71 * 89 * + 24 * + COUNT( ALL - 48 ) AS col1
----
-151656

skipif mysql # not compatible
query I rowsort label-6121
SELECT - 71 * 89 * + 24 * + COUNT ( ALL - 48 ) AS col1
----
-151656

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT DISTINCT NULLIF ( 76, 88 * + - COUNT( * ) * SUM( + 91 ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT NULLIF ( 76, 88 * + - COUNT ( * ) * SUM ( + 91 ) ) AS col1
----
76

query I rowsort
SELECT + 18 + - - 42
----
60

query III rowsort
SELECT - 40 AS col0, - 29 AS col1, + 85 AS col2
----
-40
-29
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT DISTINCT + 83 * - + 71 * + COUNT( * )
----
-5893

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT + 83 * - + 71 * + COUNT ( * )
----
-5893

query I rowsort
SELECT - ( + 95 ) + + + 69
----
-26

query I rowsort
SELECT - 17 * - 21
----
357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6128
SELECT DISTINCT + 65 * + - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT DISTINCT + 65 * + - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT - SUM( ALL + 67 ) + 3 - 0 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6129
SELECT - SUM ( ALL + 67 ) + 3 - 0 AS col0
----
-64

query I rowsort
SELECT ALL + 38 - + - 99 + - ( - 53 ) + - 48 AS col0
----
142

query I rowsort
SELECT ALL ( - + 87 ) AS col0
----
-87

query I rowsort
SELECT - 64 + + + 48 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-6133
SELECT ALL ( + COUNT( * ) ) AS col0, 4 * + 58 AS col0
----
1
232

skipif mysql # not compatible
query II rowsort label-6133
SELECT ALL ( + COUNT ( * ) ) AS col0, 4 * + 58 AS col0
----
1
232

query I rowsort
SELECT - 81 * 27 AS col0
----
-2187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6135
SELECT DISTINCT - 66 * COUNT( * ) DIV + 3
----
-22

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT - 66 * COUNT ( * ) / + 3
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6136
SELECT DISTINCT 10 DIV + 1
----
10

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT 10 / + 1
----
10

query I rowsort
SELECT ALL NULLIF ( + - 97, - 39 / 24 * 9 )
----
-97

query I rowsort
SELECT - 28 + + 57 + - 94
----
-65

query I rowsort
SELECT - 34 + - 14 AS col2
----
-48

query I rowsort
SELECT + 51 * - 74
----
-3774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6141
SELECT DISTINCT - COUNT( * ) DIV - + 16
----
0

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT - COUNT ( * ) / - + 16
----
0

query I rowsort
SELECT + 86 + - 19
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT + - 86 DIV - - 13 - - - SUM( 38 ) * 98 - 50 - 36 * - 16 AS col2
----
-3204

skipif mysql # not compatible
query I rowsort label-6143
SELECT + - 86 / - - 13 - - - SUM ( 38 ) * 98 - 50 - 36 * - 16 AS col2
----
-3204

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT ALL - MIN( DISTINCT + 36 ) * - 12 AS col1
----
432

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL - MIN ( DISTINCT + 36 ) * - 12 AS col1
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT - + 75 * 17 - COUNT( * ) AS col1
----
-1276

skipif mysql # not compatible
query I rowsort label-6145
SELECT - + 75 * 17 - COUNT ( * ) AS col1
----
-1276

query I rowsort
SELECT ALL + + ( + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT - - 0 * + ( - + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6147
SELECT - - 0 * + ( - + COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6148
SELECT ALL + + MAX( ALL + 59 ), - COUNT( * ) - + COUNT( * ) DIV COALESCE ( 30, + MIN( ALL 38 ) * 62 ) col1
----
59
-1

skipif mysql # not compatible
query II rowsort label-6148
SELECT ALL + + MAX ( ALL + 59 ), - COUNT ( * ) - + COUNT ( * ) / COALESCE ( 30, + MIN ( ALL 38 ) * 62 ) col1
----
59
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6149
SELECT ALL + 25 DIV + + 12 + - 11 + + 9 col0
----
0

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL + 25 / + + 12 + - 11 + + 9 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6150
SELECT ALL + 45 * - + 99 + - - ( - 4 ) + + + 87 + + 86 AS col1, - SUM( - 0 ) * - 55 + 87 + - 58
----
-4286
29

skipif mysql # not compatible
query II rowsort label-6150
SELECT ALL + 45 * - + 99 + - - ( - 4 ) + + + 87 + + 86 AS col1, - SUM ( - 0 ) * - 55 + 87 + - 58
----
-4286
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT - 92 + + COUNT( * ) + + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-6151
SELECT - 92 + + COUNT ( * ) + + COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT + MAX( ALL + 97 ) * + NULLIF ( - 75, 7 + - MIN( DISTINCT 59 ) )
----
-7275

skipif mysql # not compatible
query I rowsort label-6152
SELECT + MAX ( ALL + 97 ) * + NULLIF ( - 75, 7 + - MIN ( DISTINCT 59 ) )
----
-7275

query I rowsort
SELECT DISTINCT + 46 * 5 + 48 AS col1
----
278

query II rowsort
SELECT ALL + 95, 73 * - - 89 AS col2
----
95
6497

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6155
SELECT + 44 col2, 48 DIV - - 62 - - COUNT( * )
----
44
1

skipif mysql # not compatible
query II rowsort label-6155
SELECT + 44 col2, 48 / - - 62 - - COUNT ( * )
----
44
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT DISTINCT + + CASE - 4 WHEN 53 + COALESCE ( COUNT( * ), + 13 ) + + - 68 / + COUNT( * ) * + 11 THEN NULL WHEN 9 THEN + 51 + SUM( ALL - 0 + 3 ) / 47 WHEN ( ( - 50 ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT + + CASE - 4 WHEN 53 + COALESCE ( COUNT ( * ), + 13 ) + + - 68 / + COUNT ( * ) * + 11 THEN NULL WHEN 9 THEN + 51 + SUM ( ALL - 0 + 3 ) / 47 WHEN ( ( - 50 ) ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6157
SELECT 23 AS col1, - COUNT( * ) + + COUNT( ALL + + 20 ) + - - 97
----
23
97

skipif mysql # not compatible
query II rowsort label-6157
SELECT 23 AS col1, - COUNT ( * ) + + COUNT ( ALL + + 20 ) + - - 97
----
23
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6158
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT - ( - - 89 ) AS col2, 93
----
-89
93

query I rowsort
SELECT + 94 * 13
----
1222

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT - COUNT( * ) + - 77 * 40 * + + 12 * COUNT( + - 47 ) AS col1
----
-36961

skipif mysql # not compatible
query I rowsort label-6161
SELECT - COUNT ( * ) + - 77 * 40 * + + 12 * COUNT ( + - 47 ) AS col1
----
-36961

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6162
SELECT + 12 DIV 95 * + 98 * - - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6162
SELECT + 12 / 95 * + 98 * - - COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6163
SELECT - 17 DIV + + 25
----
0

skipif mysql # not compatible
query I rowsort label-6163
SELECT - 17 / + + 25
----
0

query I rowsort
SELECT DISTINCT NULLIF ( + - ( 91 ), 85 + - - 8 ) AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6165
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), + 45 ) / + - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), + 45 ) / + - 70 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 88 * - + 14, 44 AS col1
----
-1232
44

query I rowsort
SELECT ALL - 43 * - - 70 AS col2
----
-3010

query I rowsort
SELECT 29 * 64
----
1856

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6169
SELECT DISTINCT - 35 + - + 86 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT - 35 + - + 86 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT ALL - COALESCE ( - 94, + COUNT( * ), + - CASE + + ( MAX( DISTINCT + 25 ) ) WHEN + 49 THEN NULL WHEN 97 * - - 16 / - 12 THEN 7 + + 97 ELSE NULL END ) + 17 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL - COALESCE ( - 94, + COUNT ( * ), + - CASE + + ( MAX ( DISTINCT + 25 ) ) WHEN + 49 THEN NULL WHEN 97 * - - 16 / - 12 THEN 7 + + 97 ELSE NULL END ) + 17 AS col1
----
111

query I rowsort
SELECT DISTINCT + 62 + - 57 - 49 + + 88 * - 21
----
-1892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6172
SELECT DISTINCT CASE - - SUM( ALL - 18 ) WHEN + NULLIF ( - - 99, + + 79 ) THEN - - 43 WHEN + CAST( 18 AS SIGNED ) * MIN( 19 ) * 78 + CASE - MIN( ( - 64 ) ) WHEN - 9 THEN 5 / + 86 WHEN + ( + 82 ) THEN NULL WHEN - 95 * - SUM( + 89 * 24 ) THEN ( + 73 ) END THEN NULL WHEN NULLIF ( ( COUNT( * ) ), 53 * - 40 ) + + 7 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT CASE - - SUM ( ALL - 18 ) WHEN + NULLIF ( - - 99, + + 79 ) THEN - - 43 WHEN + CAST ( 18 AS INTEGER ) * MIN ( 19 ) * 78 + CASE - MIN ( ( - 64 ) ) WHEN - 9 THEN 5 / + 86 WHEN + ( + 82 ) THEN NULL WHEN - 95 * - SUM ( + 89 * 24 ) THEN ( + 73 ) END THEN NULL WHEN NULLIF ( ( COUNT ( * ) ), 53 * - 40 ) + + 7 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( 42 ) AS col2
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-6174
SELECT + 76 DIV - - 96 AS col1, 3 * 2
----
0
6

skipif mysql # not compatible
query II rowsort label-6174
SELECT + 76 / - - 96 AS col1, 3 * 2
----
0
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6175
SELECT + NULLIF ( - CASE - 88 WHEN + 2 THEN - 30 WHEN 97 - + 74 THEN NULL ELSE 30 END, 39 * - + 38 ) / CAST( NULL AS SIGNED ) + + 5 + 43 * + NULLIF ( COUNT( * ) * 49, 4 / + COUNT( * ) + 96 ) * - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT + NULLIF ( - CASE - 88 WHEN + 2 THEN - 30 WHEN 97 - + 74 THEN NULL ELSE 30 END, 39 * - + 38 ) / CAST ( NULL AS INTEGER ) + + 5 + 43 * + NULLIF ( COUNT ( * ) * 49, 4 / + COUNT ( * ) + 96 ) * - 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL + COUNT( * ) + + 64 - 12 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL + COUNT ( * ) + + 64 - 12 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT ALL - ( + + NULLIF ( - COUNT( * ), 61 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL - ( + + NULLIF ( - COUNT ( * ), 61 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6178
SELECT DISTINCT + + CASE 85 WHEN - + COALESCE ( ( + COUNT( + NULLIF ( - + 33, 69 + - 23 ) ) ), 65 + + 72 + + - COUNT( + COALESCE ( + 64, - ( - ( 97 ) ) + - 85 ) ) ) + 38 * + 73 THEN CASE - COUNT( * ) WHEN + NULLIF ( 84, ( CASE - 53 WHEN 3 THEN - 22 WHEN CAST( NULL AS SIGNED ) - - 44 THEN NULL ELSE NULL END ) + AVG ( DISTINCT 73 ) ) THEN CASE + 54 WHEN 43 THEN + ( + 83 ) - - NULLIF ( 24, CAST( NULL AS SIGNED ) ) WHEN + COUNT( * ) * + 62 THEN - 98 * CAST( + 63 AS DECIMAL ) ELSE - 98 - 43 END WHEN - 36 THEN NULL END END + - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT + + CASE 85 WHEN - + COALESCE ( ( + COUNT ( + NULLIF ( - + 33, 69 + - 23 ) ) ), 65 + + 72 + + - COUNT ( + COALESCE ( + 64, - ( - ( 97 ) ) + - 85 ) ) ) + 38 * + 73 THEN CASE - COUNT ( * ) WHEN + NULLIF ( 84, ( CASE - 53 WHEN 3 THEN - 22 WHEN CAST ( NULL AS INTEGER ) - - 44 THEN NULL ELSE NULL END ) + AVG ( DISTINCT 73 ) ) THEN CASE + 54 WHEN 43 THEN + ( + 83 ) - - NULLIF ( 24, CAST ( NULL AS INTEGER ) ) WHEN + COUNT ( * ) * + 62 THEN - 98 * CAST ( + 63 AS REAL ) ELSE - 98 - 43 END WHEN - 36 THEN NULL END END + - 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT ( + 48 ) - - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-6179
SELECT ( + 48 ) - - COUNT ( * )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6180
SELECT ALL + 64 DIV - COUNT( * ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL + 64 / - COUNT ( * ) AS col0
----
-64

query I rowsort
SELECT ALL - - 55 * - 23 AS col0
----
-1265

query II rowsort
SELECT DISTINCT + 14 - - 18 AS col1, 60 AS col2
----
32
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT - 66 * - COUNT( * ) - 54 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6183
SELECT - 66 * - COUNT ( * ) - 54 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT DISTINCT + + COUNT( * ) - CASE 86 WHEN + MAX( DISTINCT 20 ) THEN NULL WHEN + 78 * 43 / - 75 THEN + + 44 * + + 21 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT + + COUNT ( * ) - CASE 86 WHEN + MAX ( DISTINCT 20 ) THEN NULL WHEN + 78 * 43 / - 75 THEN + + 44 * + + 21 END AS col2
----
NULL

query I rowsort
SELECT 59 - - - 55 AS col2
----
4

query II rowsort
SELECT 76 AS col1, - 35 AS col0
----
76
-35

query I rowsort
SELECT 72 * - + 12 AS col2
----
-864

query I rowsort
SELECT ALL 0 * + 61 * + 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT ALL COUNT( * ) * 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL COUNT ( * ) * 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT MIN( ALL - + 49 ) * + + 32 AS col2
----
-1568

skipif mysql # not compatible
query I rowsort label-6190
SELECT MIN ( ALL - + 49 ) * + + 32 AS col2
----
-1568

onlyif mysql # DIV for integer division: 
query I rowsort label-6191
SELECT ALL 46 DIV + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL 46 / + 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT COUNT( * ) - 37 - - ( - + 18 ) * 87
----
-1602

skipif mysql # not compatible
query I rowsort label-6192
SELECT COUNT ( * ) - 37 - - ( - + 18 ) * 87
----
-1602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6193
SELECT 78 + - CASE - - SUM( ALL 53 ) WHEN 21 * + - COALESCE ( + + 67, - + 75 * + + 84 + ( + - 28 ) + - + ( - 19 ) - - 94 * 7 * - CAST( COALESCE ( + 67, 24, 85 ) AS SIGNED ) + + 47 ) / - 89 + + 26 THEN AVG ( ALL 4 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT 78 + - CASE - - SUM ( ALL 53 ) WHEN 21 * + - COALESCE ( + + 67, - + 75 * + + 84 + ( + - 28 ) + - + ( - 19 ) - - 94 * 7 * - CAST ( COALESCE ( + 67, 24, 85 ) AS INTEGER ) + + 47 ) / - 89 + + 26 THEN AVG ( ALL 4 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ALL MAX( + 9 ) * + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL MAX ( + 9 ) * + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT DISTINCT COUNT( * ) + 26 - - 60 + - COALESCE ( + - 42, + 84, - + 25 ) * 1
----
129

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT COUNT ( * ) + 26 - - 60 + - COALESCE ( + - 42, + 84, - + 25 ) * 1
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT ALL 92 + 78 + + CASE - 74 WHEN - 47 THEN ( - ( - + 51 ) ) END + + + 79 * + COUNT( * ) * - 8 * 12 * + 82 * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL 92 + 78 + + CASE - 74 WHEN - 47 THEN ( - ( - + 51 ) ) END + + + 79 * + COUNT ( * ) * - 8 * 12 * + 82 * + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT 3 + - + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-6197
SELECT 3 + - + COUNT ( * ) col0
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6198
SELECT ALL ( CAST( + - 7 AS DECIMAL ) ) / - - CAST( NULL AS DECIMAL ) * - 99 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL ( CAST ( + - 7 AS REAL ) ) / - - CAST ( NULL AS REAL ) * - 99 col0
----
NULL

query I rowsort
SELECT 66 + - 42 AS col0
----
24

query I rowsort
SELECT ALL 82 + - + NULLIF ( - 70, - NULLIF ( 53, 20 / + 65 * - 76 * - 87 * + - 70 - + - 81 ) + + - 31 / + 82 )
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-6201
SELECT DISTINCT - 62 + + + ( 4 ), 21 + 92 * - + 78 * + COUNT( 0 ) + + 31 + 39 AS col2
----
-58
-7085

skipif mysql # not compatible
query II rowsort label-6201
SELECT DISTINCT - 62 + + + ( 4 ), 21 + 92 * - + 78 * + COUNT ( 0 ) + + 31 + 39 AS col2
----
-58
-7085

query I rowsort
SELECT NULLIF ( - 69, + 1 / - - 73 ) + 81 AS col0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6203
SELECT - COUNT( * ) AS col2, + 45 AS col1
----
-1
45

skipif mysql # not compatible
query II rowsort label-6203
SELECT - COUNT ( * ) AS col2, + 45 AS col1
----
-1
45

query I rowsort
SELECT + 48 + - - 33 + + 47
----
128

query II rowsort
SELECT 91, + 48 AS col0
----
91
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6206
SELECT ALL - 87 * + 88 + 29 - - CAST( COUNT( * ) AS SIGNED )
----
-7626

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL - 87 * + 88 + 29 - - CAST ( COUNT ( * ) AS INTEGER )
----
-7626

query I rowsort
SELECT + 1 * - 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT 99 * - 9 + - COUNT( * ) AS col2
----
-892

skipif mysql # not compatible
query I rowsort label-6208
SELECT 99 * - 9 + - COUNT ( * ) AS col2
----
-892

query II rowsort
SELECT ALL - 55 AS col0, 28
----
-55
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT + + MAX( ALL + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-6210
SELECT + + MAX ( ALL + 70 )
----
70

query I rowsort
SELECT 45 * + 77 * + + 40 AS col1
----
138600

onlyif mysql # aggregate syntax: 
query II rowsort label-6212
SELECT ALL - COUNT( * ) AS col0, 13 - - 10 + - 86 AS col2
----
-1
-63

skipif mysql # not compatible
query II rowsort label-6212
SELECT ALL - COUNT ( * ) AS col0, 13 - - 10 + - 86 AS col2
----
-1
-63

query I rowsort
SELECT DISTINCT - + 16 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ( 23 ) * + ( + + 18 ) - - COUNT( * ) + 65 AS col2
----
480

skipif mysql # not compatible
query I rowsort label-6214
SELECT ( 23 ) * + ( + + 18 ) - - COUNT ( * ) + 65 AS col2
----
480

query I rowsort
SELECT 22 - 40
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT + COUNT( * ) * - 93 + - + 19 + 42 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-6216
SELECT + COUNT ( * ) * - 93 + - + 19 + 42 AS col1
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6217
SELECT - CAST( 93 AS SIGNED ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6217
SELECT - CAST ( 93 AS INTEGER ) AS col2
----
-93

query II rowsort
SELECT + 14, + 76 AS col0
----
14
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6219
SELECT 72 DIV + + 90 col0, CASE - + COUNT( * ) WHEN ( + ( + - 30 ) ) THEN 81 END col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6219
SELECT 72 / + + 90 col0, CASE - + COUNT ( * ) WHEN ( + ( + - 30 ) ) THEN 81 END col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ALL - COALESCE ( - - CASE COUNT( * ) WHEN ( 24 ) * - 51 THEN NULL ELSE + + 3 END, + - 52, + + 2 + + + 5 )
----
-3

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL - COALESCE ( - - CASE COUNT ( * ) WHEN ( 24 ) * - 51 THEN NULL ELSE + + 3 END, + - 52, + + 2 + + + 5 )
----
-3

query I rowsort
SELECT DISTINCT + 6 * - 21 AS col1
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6222
SELECT ALL - MAX( CAST( NULL AS SIGNED ) ) * - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL - MAX ( CAST ( NULL AS INTEGER ) ) * - - 49
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6223
SELECT ( 61 ) * 28 DIV + - 36 + - 1
----
-48

skipif mysql # not compatible
query I rowsort label-6223
SELECT ( 61 ) * 28 / + - 36 + - 1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6224
SELECT MIN( ALL 5 ) DIV + - 45
----
0

skipif mysql # not compatible
query I rowsort label-6224
SELECT MIN ( ALL 5 ) / + - 45
----
0

query I rowsort
SELECT ALL ( ( + 83 ) ) + + 60 + ( - - 4 )
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6226
SELECT - 83 * 22 + - - CAST( NULL AS SIGNED ) / + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6226
SELECT - 83 * 22 + - - CAST ( NULL AS INTEGER ) / + 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT DISTINCT + 7 * - + MIN( + 61 )
----
-427

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT + 7 * - + MIN ( + 61 )
----
-427

query II rowsort
SELECT ALL COALESCE ( + 65, + 71 + + 40 ) AS col1, 17 * - - 23 AS col2
----
65
391

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT DISTINCT + COUNT( * ) + + - 52 col2
----
-51

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT + COUNT ( * ) + + - 52 col2
----
-51

query I rowsort
SELECT DISTINCT 51 + - ( - 66 ) * + 74 AS col2
----
4935

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL ( + 18 ) * - SUM( ALL + + 55 ) col0
----
-990

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL ( + 18 ) * - SUM ( ALL + + 55 ) col0
----
-990

query I rowsort
SELECT + 51 * - + NULLIF ( 63, + AVG ( + + 68 ) ) AS col2
----
-3213

onlyif mysql # aggregate syntax: 
query II rowsort label-6233
SELECT ALL + COUNT( * ) + - 52 AS col0, 6 * + + 47 + + 28 + - - ( + COUNT( * ) ) AS col2
----
-51
311

skipif mysql # not compatible
query II rowsort label-6233
SELECT ALL + COUNT ( * ) + - 52 AS col0, 6 * + + 47 + + 28 + - - ( + COUNT ( * ) ) AS col2
----
-51
311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6234
SELECT - - COUNT( DISTINCT + - 10 ) DIV - COUNT( * ) + - - 71 * 71 * - + 34
----
-171395

skipif mysql # not compatible
query I rowsort label-6234
SELECT - - COUNT ( DISTINCT + - 10 ) / - COUNT ( * ) + - - 71 * 71 * - + 34
----
-171395

query I rowsort
SELECT + - 63 * - 84 + 44 AS col2
----
5336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6236
SELECT ALL 15 - CAST( - + 65 AS SIGNED ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL 15 - CAST ( - + 65 AS INTEGER ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT ALL + - CASE 97 WHEN + + 71 THEN - - 28 END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL + - CASE 97 WHEN + + 71 THEN - - 28 END * - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT DISTINCT 42 DIV - + 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT 42 / - + 52 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6239
SELECT - COUNT( + - 51 ) AS col0, 46
----
-1
46

skipif mysql # not compatible
query II rowsort label-6239
SELECT - COUNT ( + - 51 ) AS col0, 46
----
-1
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6240
SELECT ALL - 25 * + - 62 + COUNT( * ) + + + CAST( + 42 AS SIGNED ) AS col1, + 47 * + 41 AS col1
----
1593
1927

skipif mysql # not compatible
query II rowsort label-6240
SELECT ALL - 25 * + - 62 + COUNT ( * ) + + + CAST ( + 42 AS INTEGER ) AS col1, + 47 * + 41 AS col1
----
1593
1927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6241
SELECT + - COUNT( * ) * - - MIN( DISTINCT CAST( NULL AS SIGNED ) ) + + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6241
SELECT + - COUNT ( * ) * - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + + - 37
----
NULL

query I rowsort
SELECT + 1 * - 26 * 83
----
-2158

query I rowsort
SELECT - ( 84 ) * - 38 - - + 29
----
3221

query I rowsort
SELECT + ( - 46 ) + - - 91
----
45

query II rowsort
SELECT - ( - 19 ) * - 85 AS col1, 35
----
-1615
35

query I rowsort
SELECT NULLIF ( + 78, 33 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT ALL 91 * - 24 + MAX( DISTINCT - - 46 ) AS col0
----
-2138

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL 91 * - 24 + MAX ( DISTINCT - - 46 ) AS col0
----
-2138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6248
SELECT + CAST( NULL AS SIGNED ) * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6248
SELECT + CAST ( NULL AS INTEGER ) * 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6249
SELECT - 35 * - CAST( NULL AS SIGNED ) * + - 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT - 35 * - CAST ( NULL AS INTEGER ) * + - 89 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT - 87 DIV 22 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6250
SELECT - 87 / 22 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT ALL + COUNT( * ) * ( + SUM( + - 25 ) ) + + COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL + COUNT ( * ) * ( + SUM ( + - 25 ) ) + + COUNT ( * ) AS col2
----
-24

query I rowsort
SELECT - 99 - + 32
----
-131

query I rowsort
SELECT DISTINCT 3 * - + 50 + - - 13 AS col1
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT ALL ( CASE 6 WHEN + CAST( + AVG ( ALL 80 ) AS SIGNED ) + - + ( 58 ) + + 99 + 23 THEN + - 31 WHEN - 18 * + - 49 + - 73 THEN NULL WHEN - 40 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL ( CASE 6 WHEN + CAST ( + AVG ( ALL 80 ) AS INTEGER ) + - + ( 58 ) + + 99 + 23 THEN + - 31 WHEN - 18 * + - 49 + - 73 THEN NULL WHEN - 40 THEN NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6255
SELECT DISTINCT - 56 * + NULLIF ( - 24, - 90 ) * + 6 - ( CASE + ( - - 42 ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + + 25 + + 92 / - 42 THEN - COUNT( * ) ELSE - 4 END ) + 48 * - 35 + - 37
----
6351

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT - 56 * + NULLIF ( - 24, - 90 ) * + 6 - ( CASE + ( - - 42 ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 25 + + 92 / - 42 THEN - COUNT ( * ) ELSE - 4 END ) + 48 * - 35 + - 37
----
6351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6256
SELECT DISTINCT CASE + - 66 WHEN + COUNT( * ) THEN + 48 * COALESCE ( + - 13, - CAST( 47 AS SIGNED ), - - 70 + - - ( + COUNT( * ) ) / + 25 ) WHEN - 64 THEN NULL END AS col0, 76 AS col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-6256
SELECT DISTINCT CASE + - 66 WHEN + COUNT ( * ) THEN + 48 * COALESCE ( + - 13, - CAST ( 47 AS INTEGER ), - - 70 + - - ( + COUNT ( * ) ) / + 25 ) WHEN - 64 THEN NULL END AS col0, 76 AS col1
----
NULL
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6257
SELECT ALL 39 + - NULLIF ( ( - CAST( NULL AS SIGNED ) ), + COUNT( * ) ) / - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL 39 + - NULLIF ( ( - CAST ( NULL AS INTEGER ) ), + COUNT ( * ) ) / - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL + COUNT( * ) * - 73 * + - 17
----
1241

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + COUNT ( * ) * - 73 * + - 17
----
1241

query I rowsort
SELECT ALL - 58 * + + 42 AS col1
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT 22 * 78 + + COUNT( * ) AS col2
----
1717

skipif mysql # not compatible
query I rowsort label-6260
SELECT 22 * 78 + + COUNT ( * ) AS col2
----
1717

query I rowsort
SELECT - 21 - + - 87 AS col2
----
66

query I rowsort
SELECT - 33 * - 80
----
2640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT ALL + ( + + CAST( - ( 72 ) AS SIGNED ) ) - + ( + 1 )
----
-73

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL + ( + + CAST ( - ( 72 ) AS INTEGER ) ) - + ( + 1 )
----
-73

query I rowsort
SELECT - 56 * - 40 * - 61 * - - 8
----
-1093120

query I rowsort
SELECT - + 57 + + 51 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-6266
SELECT ALL + ( + SUM( - - 61 ) ) AS col2, 27 AS col2
----
61
27

skipif mysql # not compatible
query II rowsort label-6266
SELECT ALL + ( + SUM ( - - 61 ) ) AS col2, 27 AS col2
----
61
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT - + COUNT( * ) * + COALESCE ( + COUNT( * ), - 35 * - MAX( ALL - 69 ) ) * + 98 - 69 * 41 + 55 col2
----
-2872

skipif mysql # not compatible
query I rowsort label-6267
SELECT - + COUNT ( * ) * + COALESCE ( + COUNT ( * ), - 35 * - MAX ( ALL - 69 ) ) * + 98 - 69 * 41 + 55 col2
----
-2872

query I rowsort
SELECT + 19 * + 47
----
893

query I rowsort
SELECT ALL - ( - ( - 27 ) ) * - 27
----
729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6270
SELECT - 85 / SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT - 85 / SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT + - COUNT( * ) * - - ( 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-6271
SELECT + - COUNT ( * ) * - - ( 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ALL + + SUM( DISTINCT + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL + + SUM ( DISTINCT + 86 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-6273
SELECT ALL 23 DIV - - 28
----
0

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL 23 / - - 28
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6274
SELECT + 87, + 49 DIV + 84 + + - 47 * - COALESCE ( + + 5, + 11 DIV CAST( NULL AS SIGNED ) ) * + 58 + + 9 AS col2
----
87
13639

skipif mysql # not compatible
query II rowsort label-6274
SELECT + 87, + 49 / + 84 + + - 47 * - COALESCE ( + + 5, + 11 / CAST ( NULL AS INTEGER ) ) * + 58 + + 9 AS col2
----
87
13639

query I rowsort
SELECT 23 * - 44 col2
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT COUNT( * ) + - - 34 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6276
SELECT COUNT ( * ) + - - 34 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT 13 + - - ( - - 24 ) + 42 * - + 28 * + 6 + COUNT( * ) + - - 48 * + 92 - ( 90 ) * + - ( + 50 ) AS col2
----
1898

skipif mysql # not compatible
query I rowsort label-6277
SELECT 13 + - - ( - - 24 ) + 42 * - + 28 * + 6 + COUNT ( * ) + - - 48 * + 92 - ( 90 ) * + - ( + 50 ) AS col2
----
1898

query I rowsort
SELECT ALL 81 + - 87
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT ALL - MIN( 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL - MIN ( 36 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6280
SELECT - CASE - 11 WHEN 20 THEN + - COALESCE ( + 72, 17 ) WHEN + - ( + + 16 ) THEN NULL WHEN - 14 + + - COUNT( * ) + + 93 * 14 - 76 + + ( 40 ) - 75 + + NULLIF ( ( 42 ), + 52 + - 40 * + 27 ) THEN NULL END * + 24 + CASE 37 WHEN 48 * 3 THEN - 57 * 42 + + MIN( 28 + CAST( NULL AS SIGNED ) ) * + 38 WHEN COUNT( * ) * + 83 THEN NULL WHEN - 81 THEN 74 * + 32 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT - CASE - 11 WHEN 20 THEN + - COALESCE ( + 72, 17 ) WHEN + - ( + + 16 ) THEN NULL WHEN - 14 + + - COUNT ( * ) + + 93 * 14 - 76 + + ( 40 ) - 75 + + NULLIF ( ( 42 ), + 52 + - 40 * + 27 ) THEN NULL END * + 24 + CASE 37 WHEN 48 * 3 THEN - 57 * 42 + + MIN ( 28 + CAST ( NULL AS INTEGER ) ) * + 38 WHEN COUNT ( * ) * + 83 THEN NULL WHEN - 81 THEN 74 * + 32 END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6281
SELECT ALL + ( + 91 ) - - 40 + + 84 DIV 17 * + - COUNT( * ) + - + 38
----
89

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL + ( + 91 ) - - 40 + + 84 / 17 * + - COUNT ( * ) + - + 38
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6282
SELECT 17 * - ( CASE - ( - NULLIF ( - 96, - 49 ) ) WHEN + CASE - 1 WHEN - CAST( - 8 AS SIGNED ) * 90 THEN NULL WHEN + 38 THEN - COUNT( * ) * 36 / + 86 - 75 * + COUNT( * ) ELSE + 26 END THEN - SUM( 63 ) WHEN 74 * 48 THEN + COUNT( * ) END ) / 13 + - 61 * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT 17 * - ( CASE - ( - NULLIF ( - 96, - 49 ) ) WHEN + CASE - 1 WHEN - CAST ( - 8 AS INTEGER ) * 90 THEN NULL WHEN + 38 THEN - COUNT ( * ) * 36 / + 86 - 75 * + COUNT ( * ) ELSE + 26 END THEN - SUM ( 63 ) WHEN 74 * 48 THEN + COUNT ( * ) END ) / 13 + - 61 * + 19
----
NULL

query II rowsort
SELECT 86 AS col2, 10 * + 39
----
86
390

query I rowsort
SELECT ALL - 54 - + ( - 72 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT 28 * SUM( DISTINCT + 8 ) AS col2
----
224

skipif mysql # not compatible
query I rowsort label-6285
SELECT 28 * SUM ( DISTINCT + 8 ) AS col2
----
224

query I rowsort
SELECT 64 * 18 AS col0
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT 41 + - COUNT( - NULLIF ( - + ( - 37 ), 51 * 33 + 37 ) ) - + + 99 col1
----
-59

skipif mysql # not compatible
query I rowsort label-6287
SELECT 41 + - COUNT ( - NULLIF ( - + ( - 37 ), 51 * 33 + 37 ) ) - + + 99 col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6288
SELECT ALL - MAX( - + 15 ) * - - 75 + + CAST( COUNT( * ) AS SIGNED ) + 90
----
1216

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL - MAX ( - + 15 ) * - - 75 + + CAST ( COUNT ( * ) AS INTEGER ) + 90
----
1216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6289
SELECT CASE + - CAST( + COALESCE ( 27, - 22 - - + COUNT( * ) - - COUNT( * ) + + + 31 * - + 57 + - + 87 * COUNT( * ) * - ( - + 86 ) * 2 / + CASE + 59 WHEN 88 - 74 THEN + 63 WHEN 65 * ( + CAST( COUNT( * ) AS SIGNED ) * 2 ) THEN + NULLIF ( - COUNT( * ), + 72 * - 37 ) * + 47 ELSE NULL END, + 86, + 33 * + ( - 56 ) + - COUNT( * ) ) AS SIGNED ) WHEN 53 * COALESCE ( 81, COUNT( * ) ) THEN + AVG ( 14 ) + 56 * 31 WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT CASE + - CAST ( + COALESCE ( 27, - 22 - - + COUNT ( * ) - - COUNT ( * ) + + + 31 * - + 57 + - + 87 * COUNT ( * ) * - ( - + 86 ) * 2 / + CASE + 59 WHEN 88 - 74 THEN + 63 WHEN 65 * ( + CAST ( COUNT ( * ) AS INTEGER ) * 2 ) THEN + NULLIF ( - COUNT ( * ), + 72 * - 37 ) * + 47 ELSE NULL END, + 86, + 33 * + ( - 56 ) + - COUNT ( * ) ) AS INTEGER ) WHEN 53 * COALESCE ( 81, COUNT ( * ) ) THEN + AVG ( 14 ) + 56 * 31 WHEN + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT - 76 * + - ( - 57 ) + + + COUNT( * ) * 59
----
-4273

skipif mysql # not compatible
query I rowsort label-6290
SELECT - 76 * + - ( - 57 ) + + + COUNT ( * ) * 59
----
-4273

query I rowsort
SELECT DISTINCT - + 75 * - 66 AS col0
----
4950

query I rowsort
SELECT ALL + - 12 * + 94
----
-1128

query II rowsort
SELECT - - 51 AS col2, + 87 * - - 87
----
51
7569

query I rowsort
SELECT + 94 * 44 * - 43 * - 70 AS col1
----
12449360

query I rowsort
SELECT - 34 - - 76
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6296
SELECT - 48 AS col0, + 95 * 13 DIV + ( + COUNT( * ) ) AS col0
----
-48
1235

skipif mysql # not compatible
query II rowsort label-6296
SELECT - 48 AS col0, + 95 * 13 / + ( + COUNT ( * ) ) AS col0
----
-48
1235

onlyif mysql # aggregate syntax: 
query II rowsort label-6297
SELECT + ( 83 ) * - 45 * - 20 * + ( + - 68 ) AS col1, COUNT( * ) * + 45 AS col1
----
-5079600
45

skipif mysql # not compatible
query II rowsort label-6297
SELECT + ( 83 ) * - 45 * - 20 * + ( + - 68 ) AS col1, COUNT ( * ) * + 45 AS col1
----
-5079600
45

query I rowsort
SELECT 30 * - + 96 AS col2
----
-2880

query I rowsort
SELECT + 26 * NULLIF ( - 10, - 78 )
----
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6300
SELECT - + CASE + CASE 61 WHEN + CAST( - COUNT( * ) AS SIGNED ) THEN + + MAX( 63 ) * - 54 / + 14 * + 84 WHEN - 99 THEN NULL ELSE NULL END WHEN + COUNT( * ) THEN 55 * + 87 - + - NULLIF ( - MIN( 18 ), 79 * 31 ) + 94 ELSE + 45 END AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6300
SELECT - + CASE + CASE 61 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) THEN + + MAX ( 63 ) * - 54 / + 14 * + 84 WHEN - 99 THEN NULL ELSE NULL END WHEN + COUNT ( * ) THEN 55 * + 87 - + - NULLIF ( - MIN ( 18 ), 79 * 31 ) + 94 ELSE + 45 END AS col1
----
-45

query I rowsort
SELECT + 83 - - 79
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT - SUM( + - 30 ) * - 63 + + + COUNT( * ) - - ( + - 6 ) + NULLIF ( - - 93, - + ( + + 46 ) + + 8 ) * 2 col1
----
-1709

skipif mysql # not compatible
query I rowsort label-6302
SELECT - SUM ( + - 30 ) * - 63 + + + COUNT ( * ) - - ( + - 6 ) + NULLIF ( - - 93, - + ( + + 46 ) + + 8 ) * 2 col1
----
-1709

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT DISTINCT - + COUNT( * ) + + 96 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT - + COUNT ( * ) + + 96 AS col1
----
95

query II rowsort
SELECT + 5 AS col0, + 16 * + - 16 col1
----
5
-256

query I rowsort
SELECT + 10 * 21
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT ALL 50 * + MIN( + + CAST( + 97 AS SIGNED ) ) AS col2
----
4850

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL 50 * + MIN ( + + CAST ( + 97 AS INTEGER ) ) AS col2
----
4850

onlyif mysql # DIV for integer division: 
query I rowsort label-6307
SELECT ALL - + 28 + + 74 DIV - 20
----
-31

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL - + 28 + + 74 / - 20
----
-31

query I rowsort
SELECT + 59 * 37 * - - 38 * - + 51 * - 57
----
241147278

query I rowsort
SELECT 48 + - 30 AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6310
SELECT DISTINCT - COUNT( * ) + - - 82 + - 44 + + + 84 * + 87 * COALESCE ( SUM( DISTINCT + 2 ), - + CAST( NULL AS SIGNED ) * - 63 * 76 + + 32 + - ( 22 ) + MAX( DISTINCT + - 59 ), + 39 ) - + 18 DIV - 55
----
14653

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT - COUNT ( * ) + - - 82 + - 44 + + + 84 * + 87 * COALESCE ( SUM ( DISTINCT + 2 ), - + CAST ( NULL AS INTEGER ) * - 63 * 76 + + 32 + - ( 22 ) + MAX ( DISTINCT + - 59 ), + 39 ) - + 18 / - 55
----
14653

query II rowsort
SELECT DISTINCT 35 * - 16 col2, 74
----
-560
74

query I rowsort
SELECT DISTINCT - 3 + 87
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6313
SELECT 7 * - 80 AS col0, - COUNT( ALL 56 )
----
-560
-1

skipif mysql # not compatible
query II rowsort label-6313
SELECT 7 * - 80 AS col0, - COUNT ( ALL 56 )
----
-560
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6314
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 10 + + - 23 / - CASE 11 WHEN 99 * + - CAST( NULL AS SIGNED ) THEN NULL WHEN - 66 THEN 85 / - + NULLIF ( + 94, - 63 + - COALESCE ( + 31, + COUNT( * ) - + MIN( - - 71 ) - - 91 * 53 ) ) END * - AVG ( DISTINCT + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 10 + + - 23 / - CASE 11 WHEN 99 * + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 66 THEN 85 / - + NULLIF ( + 94, - 63 + - COALESCE ( + 31, + COUNT ( * ) - + MIN ( - - 71 ) - - 91 * 53 ) ) END * - AVG ( DISTINCT + 59 )
----
NULL

query I rowsort
SELECT ALL 64 - - 65 * - 72
----
-4616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6316
SELECT ALL NULLIF ( + + COUNT( * ), + 66 * + 77 ) DIV COUNT( * ) - 88 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL NULLIF ( + + COUNT ( * ), + 66 * + 77 ) / COUNT ( * ) - 88 AS col1
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6317
SELECT - 51 * 25 + + 98 DIV ( COUNT( * ) ) AS col0, 46 AS col0
----
-1177
46

skipif mysql # not compatible
query II rowsort label-6317
SELECT - 51 * 25 + + 98 / ( COUNT ( * ) ) AS col0, 46 AS col0
----
-1177
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6318
SELECT DISTINCT CASE - 16 WHEN - 24 DIV - + 59 THEN + 9 ELSE - 66 END DIV NULLIF ( + 7, - 91 DIV 48 ) * CAST( 31 AS SIGNED ) + + COUNT( * )
----
-278

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT CASE - 16 WHEN - 24 / - + 59 THEN + 9 ELSE - 66 END / NULLIF ( + 7, - 91 / 48 ) * CAST ( 31 AS INTEGER ) + + COUNT ( * )
----
-278

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT COUNT( * ) * + + 38 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6319
SELECT COUNT ( * ) * + + 38 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6320
SELECT NULLIF ( + 24, + CASE - - COUNT( * ) WHEN - - 48 * - + COUNT( * ) - + - 96 THEN + 73 WHEN + - 87 THEN NULL ELSE 88 * - CAST( NULL AS DECIMAL ) * COALESCE ( - + COUNT( * ), + 60 + + 58 ) / 9 + - 58 + + COUNT( * ) * + 31 END ) - 74 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6320
SELECT NULLIF ( + 24, + CASE - - COUNT ( * ) WHEN - - 48 * - + COUNT ( * ) - + - 96 THEN + 73 WHEN + - 87 THEN NULL ELSE 88 * - CAST ( NULL AS REAL ) * COALESCE ( - + COUNT ( * ), + 60 + + 58 ) / 9 + - 58 + + COUNT ( * ) * + 31 END ) - 74 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query III rowsort label-6321
SELECT DISTINCT + 51 * - 97 AS col2, 17 + - MAX( DISTINCT - + 89 ), - - 36 AS col2
----
-4947
106
36

skipif mysql # not compatible
query III rowsort label-6321
SELECT DISTINCT + 51 * - 97 AS col2, 17 + - MAX ( DISTINCT - + 89 ), - - 36 AS col2
----
-4947
106
36

query I rowsort
SELECT + 74 * 42 * 54 AS col2
----
167832

query I rowsort
SELECT + 18 + + - 0 * - + 82
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT 65 - + 4 * COUNT( * ) * - 68 col2
----
337

skipif mysql # not compatible
query I rowsort label-6324
SELECT 65 - + 4 * COUNT ( * ) * - 68 col2
----
337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6325
SELECT DISTINCT - SUM( ALL + 54 ) + CAST( - + 35 AS SIGNED ) * + + 21 AS col1
----
-789

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT - SUM ( ALL + 54 ) + CAST ( - + 35 AS INTEGER ) * + + 21 AS col1
----
-789

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT DISTINCT 33 + + + 70 * - - COUNT( * ) * - 16 * - 24 + + 54
----
26967

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT 33 + + + 70 * - - COUNT ( * ) * - 16 * - 24 + + 54
----
26967

onlyif mysql # DIV for integer division: 
query I rowsort label-6327
SELECT - 76 DIV + - 9 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6327
SELECT - 76 / + - 9 AS col1
----
8

query I rowsort
SELECT - 81 + + 97
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT 83 + - + COUNT( - 60 ) * - + 41
----
124

skipif mysql # not compatible
query I rowsort label-6329
SELECT 83 + - + COUNT ( - 60 ) * - + 41
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6330
SELECT + - 36 + + 53 DIV + 62 + - COUNT( * ) - - 2 * - - ( - COUNT( * ) ) DIV + - 10
----
-37

skipif mysql # not compatible
query I rowsort label-6330
SELECT + - 36 + + 53 / + 62 + - COUNT ( * ) - - 2 * - - ( - COUNT ( * ) ) / + - 10
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6331
SELECT - CAST( + 41 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-6331
SELECT - CAST ( + 41 AS INTEGER )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT - + 56 * - COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6332
SELECT - + 56 * - COUNT ( * ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT DISTINCT - SUM( DISTINCT + + 49 ) + - 12 * 66 AS col2
----
-841

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT - SUM ( DISTINCT + + 49 ) + - 12 * 66 AS col2
----
-841

query I rowsort
SELECT - 71 + + 37 AS col0
----
-34

query II rowsort
SELECT 12, 38 + + NULLIF ( - + 45, - - 21 + - 81 * - 41 + + ( - 55 ) ) AS col1
----
12
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-6336
SELECT DISTINCT + COUNT( * ), 90 AS col2
----
1
90

skipif mysql # not compatible
query II rowsort label-6336
SELECT DISTINCT + COUNT ( * ), 90 AS col2
----
1
90

query I rowsort
SELECT - 35 * - 68 AS col0
----
2380

query I rowsort
SELECT DISTINCT + ( + 16 )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-6339
SELECT ALL + COUNT( * ) * + 68 - - - 80 + 54 AS col1, - 35 col0
----
42
-35

skipif mysql # not compatible
query II rowsort label-6339
SELECT ALL + COUNT ( * ) * + 68 - - - 80 + 54 AS col1, - 35 col0
----
42
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6340
SELECT COALESCE ( + NULLIF ( 70, + 17 + - 67 ), 79, - + 69 DIV + 2 + 91 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6340
SELECT COALESCE ( + NULLIF ( 70, + 17 + - 67 ), 79, - + 69 / + 2 + 91 ) AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6341
SELECT + 22 + + MAX( DISTINCT 98 ) DIV 55 DIV - - 27 + + 30 * + 30 + - + 87, CAST( NULL AS SIGNED ) AS col0
----
835
NULL

skipif mysql # not compatible
query II rowsort label-6341
SELECT + 22 + + MAX ( DISTINCT 98 ) / 55 / - - 27 + + 30 * + 30 + - + 87, CAST ( NULL AS INTEGER ) AS col0
----
835
NULL

query I rowsort
SELECT ALL + 54 * 48 AS col2
----
2592

query I rowsort
SELECT 54 * 19 + + + 8 AS col2
----
1034

query I rowsort
SELECT - 69 * + - 71 AS col2
----
4899

query I rowsort
SELECT ALL 80 * 32 AS col2
----
2560

query I rowsort
SELECT - 86 + + 58
----
-28

query I rowsort
SELECT - 62 + - 11
----
-73

query II rowsort
SELECT ALL + 18 AS col1, 56
----
18
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6349
SELECT + 46 * + 63 + + - COUNT( * ) * - CAST( + 10 AS SIGNED ) AS col0
----
2908

skipif mysql # not compatible
query I rowsort label-6349
SELECT + 46 * + 63 + + - COUNT ( * ) * - CAST ( + 10 AS INTEGER ) AS col0
----
2908

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6350
SELECT ALL + MAX( 18 ) DIV ( - + 6 ) + ( 27 ) + + 44 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL + MAX ( 18 ) / ( - + 6 ) + ( 27 ) + + 44 AS col1
----
68

query II rowsort
SELECT - 26, - 76 AS col1
----
-26
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL COUNT( 39 ) * + COUNT( * ) + - - COALESCE ( + 98, + 16 * 99 ) * 43 AS col2
----
4215

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL COUNT ( 39 ) * + COUNT ( * ) + - - COALESCE ( + 98, + 16 * 99 ) * 43 AS col2
----
4215

query I rowsort
SELECT - COALESCE ( - ( - 6 ), - 70, 39 + 59, + 35 + - + 71 ) * - - 97 * - - 83 + 59
----
-48247

query I rowsort
SELECT + - ( + 91 ) + - 36
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6355
SELECT ALL 55 DIV - + COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL 55 / - + COUNT ( * ) AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6356
SELECT + - 34 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT + - 34 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 99 + + + 55 + 51 col2
----
205

query II rowsort
SELECT - 94 AS col1, 38 * - 77 * - 64 AS col2
----
-94
187264

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT DISTINCT - 7 + - + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT - 7 + - + COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT + 65 * + ( - - COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-6360
SELECT + 65 * + ( - - COUNT ( * ) )
----
65

query I rowsort
SELECT ALL - 57 * - - 2 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-6362
SELECT + NULLIF ( + + 42, - 67 + COUNT( * ) ), + ( - 0 ) AS col2
----
42
0

skipif mysql # not compatible
query II rowsort label-6362
SELECT + NULLIF ( + + 42, - 67 + COUNT ( * ) ), + ( - 0 ) AS col2
----
42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT DISTINCT - COUNT( * ) * 79
----
-79

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT - COUNT ( * ) * 79
----
-79

query I rowsort
SELECT ALL - - 66 + + 20 + ( + 43 ) AS col1
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6365
SELECT - CAST( 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-6365
SELECT - CAST ( 70 AS INTEGER )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT - - NULLIF ( + 41, COUNT( * ) + 90 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6366
SELECT - - NULLIF ( + 41, COUNT ( * ) + 90 ) AS col0
----
41

query I rowsort
SELECT ( - - 35 ) AS col1
----
35

query I rowsort
SELECT - 24 + - 90
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT + 68 * COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-6369
SELECT + 68 * COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT ALL - COUNT( * ) - COUNT( DISTINCT + 56 )
----
-2

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL - COUNT ( * ) - COUNT ( DISTINCT + 56 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT + 59 - + + NULLIF ( - 39, - - 43 + - - ( + 7 ) * + COUNT( * ) ) + - - 50 AS col1
----
148

skipif mysql # not compatible
query I rowsort label-6371
SELECT + 59 - + + NULLIF ( - 39, - - 43 + - - ( + 7 ) * + COUNT ( * ) ) + - - 50 AS col1
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-6372
SELECT + 35 - - COUNT( * ), 90 AS col1
----
36
90

skipif mysql # not compatible
query II rowsort label-6372
SELECT + 35 - - COUNT ( * ), 90 AS col1
----
36
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6373
SELECT ALL + COUNT( * ) * + - 7 DIV + 20 col0
----
0

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL + COUNT ( * ) * + - 7 / + 20 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT - 52 * + - CASE + + 10 WHEN COUNT( * ) THEN NULL WHEN + AVG ( ALL + 2 ) + + 40 + 85 + ( 22 ) THEN AVG ( 89 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT - 52 * + - CASE + + 10 WHEN COUNT ( * ) THEN NULL WHEN + AVG ( ALL + 2 ) + + 40 + 85 + ( 22 ) THEN AVG ( 89 ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT DISTINCT ( - + 75 ) * + 39
----
-2925

query I rowsort
SELECT + 99 + + 53 AS col1
----
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6377
SELECT - COUNT( * ) DIV + 57
----
0

skipif mysql # not compatible
query I rowsort label-6377
SELECT - COUNT ( * ) / + 57
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6378
SELECT - 24 / COUNT( * ) + NULLIF ( - 51, + 26 ) + - ( - 62 ) * + SUM( DISTINCT - + 53 ) * - CAST( NULL AS SIGNED ) * + - 35 * - 17 + - - 42 + - 90 + + - 39 + + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT - 24 / COUNT ( * ) + NULLIF ( - 51, + 26 ) + - ( - 62 ) * + SUM ( DISTINCT - + 53 ) * - CAST ( NULL AS INTEGER ) * + - 35 * - 17 + - - 42 + - 90 + + - 39 + + + 74
----
NULL

query I rowsort
SELECT - 81 - + 6
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6380
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * CAST( NULL AS SIGNED ) + - ( 30 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) + - ( 30 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT DISTINCT + COUNT( ALL - - ( 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT + COUNT ( ALL - - ( 37 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6382
SELECT ALL - CAST( NULL AS SIGNED ) / - COUNT( * ) * + - 14 + - 27 + + ( - - 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL - CAST ( NULL AS INTEGER ) / - COUNT ( * ) * + - 14 + - 27 + + ( - - 84 ) AS col2
----
NULL

query I rowsort
SELECT ( - 12 ) AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6384
SELECT ALL + - COUNT( * ) * - NULLIF ( ( - + CAST( NULL AS SIGNED ) ), ( + + 7 ) ) + + + 93 + + ( + 50 ) * + + ( ( + 46 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL + - COUNT ( * ) * - NULLIF ( ( - + CAST ( NULL AS INTEGER ) ), ( + + 7 ) ) + + + 93 + + ( + 50 ) * + + ( ( + 46 ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6385
SELECT - 13 DIV - 17
----
0

skipif mysql # not compatible
query I rowsort label-6385
SELECT - 13 / - 17
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6386
SELECT + 83 * - COALESCE ( CAST( NULL AS SIGNED ), - - SUM( + 35 ) - - - 37 / - CASE + - 9 WHEN 15 THEN - - 82 * + - 19 + + + 78 + MAX( 55 ) + 62 ELSE NULL END + + - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT + 83 * - COALESCE ( CAST ( NULL AS INTEGER ), - - SUM ( + 35 ) - - - 37 / - CASE + - 9 WHEN 15 THEN - - 82 * + - 19 + + + 78 + MAX ( 55 ) + 62 ELSE NULL END + + - COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT - - 47 - + - 55 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT - 18 * + 42 * + COUNT( * ) - - + 41 * 9
----
-387

skipif mysql # not compatible
query I rowsort label-6388
SELECT - 18 * + 42 * + COUNT ( * ) - - + 41 * 9
----
-387

query II rowsort
SELECT ALL + 8 * 0, + 2 - + 20 AS col1
----
0
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT ALL + 17 + - MAX( DISTINCT 33 )
----
-16

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL + 17 + - MAX ( DISTINCT 33 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6391
SELECT - CAST( - + 75 AS SIGNED ) - + 44
----
31

skipif mysql # not compatible
query I rowsort label-6391
SELECT - CAST ( - + 75 AS INTEGER ) - + 44
----
31

query I rowsort
SELECT - 29 + + 85
----
56

query I rowsort
SELECT 43 - + - 31 + + 93 * - 66 col0
----
-6064

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT - ( - + 32 ) + - 9 DIV + 58 + - 78 * + + 30 + - + 54 + COALESCE ( - - 73, - - 93 ) * 35 AS col1
----
193

skipif mysql # not compatible
query I rowsort label-6394
SELECT - ( - + 32 ) + - 9 / + 58 + - 78 * + + 30 + - + 54 + COALESCE ( - - 73, - - 93 ) * 35 AS col1
----
193

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6395
SELECT + CAST( - 16 AS SIGNED ) DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-6395
SELECT + CAST ( - 16 AS INTEGER ) / + 40
----
0

query I rowsort
SELECT 23 + - 29 * + 76 + - - ( - 75 )
----
-2256

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ALL + MAX( ALL + ( + 72 ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL + MAX ( ALL + ( + 72 ) ) AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6398
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 51 * + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 51 * + - 93
----
NULL

query I rowsort
SELECT ( 3 ) * 20
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6400
SELECT NULLIF ( - ( - 26 ), - CASE - 97 WHEN - 27 THEN + NULLIF ( - 96, 46 * + + 1 ) WHEN + 72 THEN NULL END - - COUNT( * ) ) + - - 73 AS col1, - 49 - - 21 + - CASE + - 85 WHEN - 12 THEN NULL WHEN 43 + - 53 * + 3 THEN 20 * - COUNT( * ) ELSE NULL END * + 42 AS col1
----
99
NULL

skipif mysql # not compatible
query II rowsort label-6400
SELECT NULLIF ( - ( - 26 ), - CASE - 97 WHEN - 27 THEN + NULLIF ( - 96, 46 * + + 1 ) WHEN + 72 THEN NULL END - - COUNT ( * ) ) + - - 73 AS col1, - 49 - - 21 + - CASE + - 85 WHEN - 12 THEN NULL WHEN 43 + - 53 * + 3 THEN 20 * - COUNT ( * ) ELSE NULL END * + 42 AS col1
----
99
NULL

query II rowsort
SELECT 13 + + COALESCE ( 22, + 75 * - - 2 ) + - - ( - - 62 ) + + 28 + - 16 * - + 63 AS col1, - 48
----
1133
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT ( + 19 ) * + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-6402
SELECT ( + 19 ) * + COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT 58 * + + ( - - COUNT( * ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6403
SELECT 58 * + + ( - - COUNT ( * ) ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6404
SELECT COUNT( * ) + + + SUM( DISTINCT + 12 ) AS col0, 51
----
13
51

skipif mysql # not compatible
query II rowsort label-6404
SELECT COUNT ( * ) + + + SUM ( DISTINCT + 12 ) AS col0, 51
----
13
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6405
SELECT + 61 AS col0, COALESCE ( - - 65, + CAST( 24 AS SIGNED ) + 95 + 92 + - 19 + - + 34, - 72 * 99 - + 47 + + COUNT( * ) + + 95 * + 45 ) * - 3
----
61
-195

skipif mysql # not compatible
query II rowsort label-6405
SELECT + 61 AS col0, COALESCE ( - - 65, + CAST ( 24 AS INTEGER ) + 95 + 92 + - 19 + - + 34, - 72 * 99 - + 47 + + COUNT ( * ) + + 95 * + 45 ) * - 3
----
61
-195

query I rowsort
SELECT ALL ( - ( + 93 ) ) + - 6 - + 57 * + 82
----
-4773

query I rowsort
SELECT DISTINCT 4 + - 82 + - 28
----
-106

query I rowsort
SELECT 38 + - 58
----
-20

query I rowsort
SELECT DISTINCT 39 + - 28 * 91 * - 89 AS col0
----
226811

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT ( + MAX( ALL + - 85 ) ) * + ( - + 29 ) col1
----
2465

skipif mysql # not compatible
query I rowsort label-6410
SELECT ( + MAX ( ALL + - 85 ) ) * + ( - + 29 ) col1
----
2465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6411
SELECT 82 + - - CAST( 10 AS SIGNED ), + ( - ( - ( + 75 ) ) ) - COALESCE ( + 94, - + CAST( NULL AS SIGNED ) + 60 ) * - + 39 * 82 * 62 * ( 11 ) * + - CASE + 89 WHEN + 9 + - ( 99 ) * CASE + 3 - - CASE 17 WHEN 0 * 13 THEN NULL WHEN + 62 + - 60 THEN + 36 * + 24 END WHEN CASE COUNT( * ) WHEN COUNT( * ) + 96 THEN NULL WHEN - 93 THEN + 26 * - 80 END THEN 7 * 84 END THEN NULL WHEN - 26 THEN - 86 WHEN + COUNT( * ) THEN 96 + - 6 END * 98 AS col0
----
92
NULL

skipif mysql # not compatible
query II rowsort label-6411
SELECT 82 + - - CAST ( 10 AS INTEGER ), + ( - ( - ( + 75 ) ) ) - COALESCE ( + 94, - + CAST ( NULL AS INTEGER ) + 60 ) * - + 39 * 82 * 62 * ( 11 ) * + - CASE + 89 WHEN + 9 + - ( 99 ) * CASE + 3 - - CASE 17 WHEN 0 * 13 THEN NULL WHEN + 62 + - 60 THEN + 36 * + 24 END WHEN CASE COUNT ( * ) WHEN COUNT ( * ) + 96 THEN NULL WHEN - 93 THEN + 26 * - 80 END THEN 7 * 84 END THEN NULL WHEN - 26 THEN - 86 WHEN + COUNT ( * ) THEN 96 + - 6 END * 98 AS col0
----
92
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6412
SELECT DISTINCT + + 37 * + 11 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT + + 37 * + 11 + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6413
SELECT ALL - - COUNT( + + 45 ) + + CASE COUNT( * ) WHEN 47 + + NULLIF ( 49, - COUNT( - CAST( - 40 AS SIGNED ) ) ) THEN 9 * + CASE + 88 WHEN 38 THEN - COALESCE ( - 80, - AVG ( DISTINCT + - 74 ) * - 78 ) ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL - - COUNT ( + + 45 ) + + CASE COUNT ( * ) WHEN 47 + + NULLIF ( 49, - COUNT ( - CAST ( - 40 AS INTEGER ) ) ) THEN 9 * + CASE + 88 WHEN 38 THEN - COALESCE ( - 80, - AVG ( DISTINCT + - 74 ) * - 78 ) ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT + 66 * + 37 + 40 - 77 - CASE + + 61 WHEN + NULLIF ( + NULLIF ( 78, + 63 ), CASE ( 22 ) WHEN 82 + 32 THEN 42 ELSE NULL END * 55 - MAX( - 1 ) + - - 71 + 10 ) * - COALESCE ( ( 12 ) / 28, + 46 * - 7 ) + 7 * ( AVG ( DISTINCT 62 ) ) THEN 46 WHEN - COUNT( * ) - - 70 THEN NULL ELSE NULL END * - ( - 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6414
SELECT + 66 * + 37 + 40 - 77 - CASE + + 61 WHEN + NULLIF ( + NULLIF ( 78, + 63 ), CASE ( 22 ) WHEN 82 + 32 THEN 42 ELSE NULL END * 55 - MAX ( - 1 ) + - - 71 + 10 ) * - COALESCE ( ( 12 ) / 28, + 46 * - 7 ) + 7 * ( AVG ( DISTINCT 62 ) ) THEN 46 WHEN - COUNT ( * ) - - 70 THEN NULL ELSE NULL END * - ( - 87 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT ALL - 12 * - 26 * + COUNT( * ) AS col1
----
312

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL - 12 * - 26 * + COUNT ( * ) AS col1
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT DISTINCT ( - COUNT( * ) ) * + 65
----
-65

skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT ( - COUNT ( * ) ) * + 65
----
-65

query I rowsort
SELECT - + COALESCE ( - - 34, + + 7 ) * - 73 + + 15 * - 50
----
1732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6418
SELECT DISTINCT + CASE + COUNT( * ) WHEN + COALESCE ( - CAST( 17 AS SIGNED ), - + MIN( DISTINCT + 83 ), - - 96 * + 88 + + + ( + MIN( DISTINCT ( - 9 ) ) ) + - - 81 + COUNT( * ), - + 80 ) THEN NULL ELSE - 32 * - 74 + + + CAST( NULL AS SIGNED ) + CAST( 16 AS SIGNED ) END - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6418
SELECT DISTINCT + CASE + COUNT ( * ) WHEN + COALESCE ( - CAST ( 17 AS INTEGER ), - + MIN ( DISTINCT + 83 ), - - 96 * + 88 + + + ( + MIN ( DISTINCT ( - 9 ) ) ) + - - 81 + COUNT ( * ), - + 80 ) THEN NULL ELSE - 32 * - 74 + + + CAST ( NULL AS INTEGER ) + CAST ( 16 AS INTEGER ) END - 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6419
SELECT DISTINCT 30 AS col1, COUNT( * ) AS col2
----
30
1

skipif mysql # not compatible
query II rowsort label-6419
SELECT DISTINCT 30 AS col1, COUNT ( * ) AS col2
----
30
1

query I rowsort
SELECT DISTINCT - 3 * + 40 col2
----
-120

query II rowsort
SELECT 41 AS col0, 38
----
41
38

query I rowsort
SELECT 26 * + 73
----
1898

query I rowsort
SELECT ALL - 39 * 75 AS col1
----
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT DISTINCT SUM( DISTINCT + - 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT SUM ( DISTINCT + - 19 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT 6 - COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6425
SELECT 6 - COUNT ( * ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6426
SELECT 65, COUNT( * ) AS col0
----
65
1

skipif mysql # not compatible
query II rowsort label-6426
SELECT 65, COUNT ( * ) AS col0
----
65
1

query I rowsort
SELECT 58 + + 87
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6428
SELECT ALL COUNT( * ) + + 24 DIV 3 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL COUNT ( * ) + + 24 / 3 AS col0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6429
SELECT ALL 92 AS col1, ( - COUNT( * ) )
----
92
-1

skipif mysql # not compatible
query II rowsort label-6429
SELECT ALL 92 AS col1, ( - COUNT ( * ) )
----
92
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6430
SELECT 41 - + - 95 - + + 66 + 53 DIV 29 + 53 * - + 22 * + 0 - + ( - 21 ) * - + 54 * SUM( ALL + 25 )
----
-28279

skipif mysql # not compatible
query I rowsort label-6430
SELECT 41 - + - 95 - + + 66 + 53 / 29 + 53 * - + 22 * + 0 - + ( - 21 ) * - + 54 * SUM ( ALL + 25 )
----
-28279

query I rowsort
SELECT ALL 57 * - 95 AS col1
----
-5415

query I rowsort
SELECT ALL + ( 93 ) + 73 AS col0
----
166

query I rowsort
SELECT 57 * 83 AS col2
----
4731

query I rowsort
SELECT 31 + 24 + + - 38 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT + MAX( + - 36 ) * 91 + - 73 AS col2
----
-3349

skipif mysql # not compatible
query I rowsort label-6435
SELECT + MAX ( + - 36 ) * 91 + - 73 AS col2
----
-3349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6436
SELECT ALL 98 * COUNT( * ) DIV + 76 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL 98 * COUNT ( * ) / + 76 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6437
SELECT 83 * ( - 12 ) DIV + 17
----
-58

skipif mysql # not compatible
query I rowsort label-6437
SELECT 83 * ( - 12 ) / + 17
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6438
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * 41 + 46 + - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT + CAST ( NULL AS REAL ) * 41 + 46 + - 72 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6439
SELECT + 9 + ( - CASE + - CASE + 63 WHEN NULLIF ( SUM( + 86 ), - + 82 + + - 80 - - 6 * + 25 - 80 / - + 75 ) - + + NULLIF ( + 2, - 70 / + 47 + - + COUNT( * ) ) + - - 57 THEN + 93 END WHEN CAST( + 20 AS SIGNED ) * - 58 + + 33 THEN - 18 * 79 END ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT + 9 + ( - CASE + - CASE + 63 WHEN NULLIF ( SUM ( + 86 ), - + 82 + + - 80 - - 6 * + 25 - 80 / - + 75 ) - + + NULLIF ( + 2, - 70 / + 47 + - + COUNT ( * ) ) + - - 57 THEN + 93 END WHEN CAST ( + 20 AS INTEGER ) * - 58 + + 33 THEN - 18 * 79 END ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT ALL + 3 * - 37 - - COUNT( ALL 31 ) * + COUNT( * ) AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL + 3 * - 37 - - COUNT ( ALL 31 ) * + COUNT ( * ) AS col1
----
-110

query II rowsort
SELECT + 85, - 58 col1
----
85
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT ALL - 25 * + - MIN( ALL + + ( + 34 ) ) * - - 70 AS col2
----
59500

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL - 25 * + - MIN ( ALL + + ( + 34 ) ) * - - 70 AS col2
----
59500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6443
SELECT + - COUNT( * ) + + 49 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6443
SELECT + - COUNT ( * ) + + 49 + + CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT 82 AS col1, + 55
----
82
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6445
SELECT ALL + - MAX( ALL - - ( 15 ) ) / - 35 + + + COUNT( - 28 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL + - MAX ( ALL - - ( 15 ) ) / - 35 + + + COUNT ( - 28 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + - 17 col2, + 76 AS col2
----
-17
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT - - 62 * + 75 + + 74 + CASE + COUNT( * ) WHEN - + COUNT( * ) / + COUNT( * ) THEN + NULLIF ( - + COUNT( * ), + 63 ) WHEN 84 + - + COUNT( + 84 ) + + 98 + + + 13 / 49 + - 48 * - + 74 THEN - - 35 ELSE NULL END * - - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6447
SELECT - - 62 * + 75 + + 74 + CASE + COUNT ( * ) WHEN - + COUNT ( * ) / + COUNT ( * ) THEN + NULLIF ( - + COUNT ( * ), + 63 ) WHEN 84 + - + COUNT ( + 84 ) + + 98 + + + 13 / 49 + - 48 * - + 74 THEN - - 35 ELSE NULL END * - - 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6448
SELECT ALL CAST( NULL AS SIGNED ) col1, 9 + + 31
----
NULL
40

skipif mysql # not compatible
query II rowsort label-6448
SELECT ALL CAST ( NULL AS INTEGER ) col1, 9 + + 31
----
NULL
40

query I rowsort
SELECT 8 * - 72 + 36 * - + ( ( + 94 ) ) AS col1
----
-3960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6450
SELECT - 6 - - - 79 + - 12 - - + 93 * + NULLIF ( + 10, COUNT( * ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT - 6 - - - 79 + - 12 - - + 93 * + NULLIF ( + 10, COUNT ( * ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 17 * + - 62 col1
----
-1054

query I rowsort
SELECT - 76 + - - 64 col2
----
-12

query I rowsort
SELECT - 58 + CASE - 33 WHEN + - 73 + - 67 * - 84 + + CASE 32 WHEN - NULLIF ( 92, + 34 + - 70 ) + - 99 THEN NULL ELSE - 33 END THEN - 68 - - 58 END * 21 * 58 AS col2
----
NULL

query I rowsort
SELECT ALL - ( + + ( - 36 ) ) + + + 0
----
36

query I rowsort
SELECT ALL ( - ( - + 70 ) ) AS col0
----
70

query I rowsort
SELECT DISTINCT - 81 + - + 88 col2
----
-169

query I rowsort
SELECT - 22 + - 73 AS col0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6458
SELECT ALL - 9 + 37 + CAST( NULL AS SIGNED ) * + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL - 9 + 37 + CAST ( NULL AS INTEGER ) * + 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT DISTINCT 51 + + 69 + + 28 * CASE 17 WHEN + 21 THEN NULL WHEN - + 10 THEN + + SUM( ALL - 52 ) END + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT 51 + + 69 + + 28 * CASE 17 WHEN + 21 THEN NULL WHEN - + 10 THEN + + SUM ( ALL - 52 ) END + + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT ALL NULLIF ( - 70, - + COUNT( * ) )
----
-70

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL NULLIF ( - 70, - + COUNT ( * ) )
----
-70

query I rowsort
SELECT - 28 + + + 49 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT - 86 * - MIN( DISTINCT 18 ) * + 7 col0
----
10836

skipif mysql # not compatible
query I rowsort label-6462
SELECT - 86 * - MIN ( DISTINCT 18 ) * + 7 col0
----
10836

query I rowsort
SELECT - 4 + - 55 * 57 AS col2
----
-3139

query I rowsort
SELECT - COALESCE ( - 39, + - 55 * 37, + 69 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ALL 50 + COALESCE ( + - 27, - 53, - NULLIF ( - 95, - - COUNT( * ) ) + - + 60 + - COUNT( DISTINCT + 16 ) * + - 20 + + COUNT( * ) ) * - 76 * 39
----
80078

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL 50 + COALESCE ( + - 27, - 53, - NULLIF ( - 95, - - COUNT ( * ) ) + - + 60 + - COUNT ( DISTINCT + 16 ) * + - 20 + + COUNT ( * ) ) * - 76 * 39
----
80078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6466
SELECT DISTINCT + CASE 80 WHEN + - 40 + 9 THEN + - 25 ELSE NULL END / + 74 + + + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT + CASE 80 WHEN + - 40 + 9 THEN + - 25 ELSE NULL END / + 74 + + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) - 91
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6467
SELECT 84 * 29 + SUM( + 20 ) * - CAST( - 65 AS SIGNED ) * + - COUNT( * ) + + 22 AS col0
----
1158

skipif mysql # not compatible
query I rowsort label-6467
SELECT 84 * 29 + SUM ( + 20 ) * - CAST ( - 65 AS INTEGER ) * + - COUNT ( * ) + + 22 AS col0
----
1158

onlyif mysql # DIV for integer division: 
query II rowsort label-6468
SELECT ALL 40 DIV + 79 + 58 - 13 * + 40 AS col1, 6 DIV + 6 AS col0
----
-462
1

skipif mysql # not compatible
query II rowsort label-6468
SELECT ALL 40 / + 79 + 58 - 13 * + 40 AS col1, 6 / + 6 AS col0
----
-462
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT + 23 / + - 21 + CASE - + SUM( + - 98 ) WHEN + - 66 THEN - 1 + - 39 * - 42 WHEN + - 18 THEN NULL ELSE NULL END / + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT + 23 / + - 21 + CASE - + SUM ( + - 98 ) WHEN + - 66 THEN - 1 + - 39 * - 42 WHEN + - 18 THEN NULL ELSE NULL END / + 98 AS col0
----
NULL

query I rowsort
SELECT ALL + ( NULLIF ( 7, - 19 ) ) AS col1
----
7

query I rowsort
SELECT ALL - 29 * - 84 * - + 11
----
-26796

query I rowsort
SELECT + - 18 + 93 AS col0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6473
SELECT DISTINCT ( + 40 ) * + + 46 AS col2, - NULLIF ( 29, + + COUNT( ALL - + 22 ) * 34 ) AS col0
----
1840
-29

skipif mysql # not compatible
query II rowsort label-6473
SELECT DISTINCT ( + 40 ) * + + 46 AS col2, - NULLIF ( 29, + + COUNT ( ALL - + 22 ) * 34 ) AS col0
----
1840
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6474
SELECT + 19 DIV - + 25 + - 66
----
-66

skipif mysql # not compatible
query I rowsort label-6474
SELECT + 19 / - + 25 + - 66
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6475
SELECT + 18 + - 11, COUNT( * ) - - 42 AS col1
----
7
43

skipif mysql # not compatible
query II rowsort label-6475
SELECT + 18 + - 11, COUNT ( * ) - - 42 AS col1
----
7
43

onlyif mysql # DIV for integer division: 
query II rowsort label-6476
SELECT ALL 62 DIV 65 AS col2, COALESCE ( - + 97, - 31 ) - + + 9 + + 15
----
0
-91

skipif mysql # not compatible
query II rowsort label-6476
SELECT ALL 62 / 65 AS col2, COALESCE ( - + 97, - 31 ) - + + 9 + + 15
----
0
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT ALL + COUNT( * ) * - 71 * + COALESCE ( 8, + NULLIF ( - - 21, 95 * 97 * + ( - COUNT( * ) ) ), 25 * - - COUNT( * ) * 71 + - 49 * + 77 ) + + + 61 - - 40 + + 7 AS col0
----
-460

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + COUNT ( * ) * - 71 * + COALESCE ( 8, + NULLIF ( - - 21, 95 * 97 * + ( - COUNT ( * ) ) ), 25 * - - COUNT ( * ) * 71 + - 49 * + 77 ) + + + 61 - - 40 + + 7 AS col0
----
-460

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT + 7 DIV + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6478
SELECT + 7 / + 72 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT ALL 88 * COUNT( * ) * + 2
----
176

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL 88 * COUNT ( * ) * + 2
----
176

query I rowsort
SELECT - ( - - 10 ) AS col2
----
-10

query I rowsort
SELECT - 0 * - + 71 * 11 * + + NULLIF ( CASE - 38 WHEN - ( + 33 ) * - - 5 THEN NULL WHEN + 66 THEN - 66 + 83 WHEN - - 66 THEN NULL END, + + 48 ) / + 87 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT - CAST( - 85 AS SIGNED ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6482
SELECT - CAST ( - 85 AS INTEGER ) AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6483
SELECT + 64 + + - MAX( ALL 8 ) * + + MAX( ALL - 75 ) + SUM( - 71 ) + + ( NULLIF ( - + 56, - + 34 + 40 * + CASE + + COUNT( * ) WHEN + - 44 THEN + 89 + - + CAST( NULL AS DECIMAL ) WHEN + 86 * - 93 + + ( + 37 ) THEN 84 END * + 4 * 44 ) ) + + 78 DIV 36 AS col0
----
539

skipif mysql # not compatible
query I rowsort label-6483
SELECT + 64 + + - MAX ( ALL 8 ) * + + MAX ( ALL - 75 ) + SUM ( - 71 ) + + ( NULLIF ( - + 56, - + 34 + 40 * + CASE + + COUNT ( * ) WHEN + - 44 THEN + 89 + - + CAST ( NULL AS REAL ) WHEN + 86 * - 93 + + ( + 37 ) THEN 84 END * + 4 * 44 ) ) + + 78 / 36 AS col0
----
539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6484
SELECT + NULLIF ( - 16, - + ( + - 94 ) DIV - CAST( NULL AS SIGNED ) * - 67 ) DIV + 47 * + + 29 * - 93 - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6484
SELECT + NULLIF ( - 16, - + ( + - 94 ) / - CAST ( NULL AS INTEGER ) * - 67 ) / + 47 * + + 29 * - 93 - + COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6485
SELECT COUNT( * ) AS col0, ( + ( - - CAST( NULL AS SIGNED ) ) )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6485
SELECT COUNT ( * ) AS col0, ( + ( - - CAST ( NULL AS INTEGER ) ) )
----
1
NULL

query I rowsort
SELECT - 99 * + - 8 * 47 * - 7
----
-260568

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT + 87 + COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6487
SELECT + 87 + COUNT ( * ) AS col0
----
88

query I rowsort
SELECT - 10 + - 84
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6489
SELECT DISTINCT - 32 + + ( + - 43 ) AS col0, 51 - + + 13 / + 42 * + 57 + CAST( NULL AS SIGNED )
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-6489
SELECT DISTINCT - 32 + + ( + - 43 ) AS col0, 51 - + + 13 / + 42 * + 57 + CAST ( NULL AS INTEGER )
----
-75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6490
SELECT ALL COUNT( * ) AS col0, 83 AS col1
----
1
83

skipif mysql # not compatible
query II rowsort label-6490
SELECT ALL COUNT ( * ) AS col0, 83 AS col1
----
1
83

query II rowsort
SELECT - 12 AS col0, + 23 col0
----
-12
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6492
SELECT DISTINCT 21 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT 21 / - 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT DISTINCT 80 - COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT 80 - COUNT ( * ) AS col2
----
79

query I rowsort
SELECT ALL + 78 * - - 42 AS col2
----
3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6495
SELECT 20 AS col0, ( - COUNT( * ) ) * - CAST( + CAST( CASE 28 WHEN - 28 THEN - 81 END AS SIGNED ) AS DECIMAL ) + - 27 AS col0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-6495
SELECT 20 AS col0, ( - COUNT ( * ) ) * - CAST ( + CAST ( CASE 28 WHEN - 28 THEN - 81 END AS INTEGER ) AS REAL ) + - 27 AS col0
----
20
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT DISTINCT + COUNT( * ) - - 16
----
17

skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT + COUNT ( * ) - - 16
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT DISTINCT + 92 * - SUM( + 9 ) * + 58 + CASE + - 19 WHEN + COUNT( * ) * - NULLIF ( - 7, + - 21 + + 19 * 42 + - 43 ) + 22 + - COUNT( * ) * - 45 + - 25 / - + 41 * 35 THEN - CASE + ( 88 ) WHEN + COUNT( * ) THEN NULL WHEN 49 THEN 39 END * NULLIF ( + COALESCE ( 65, - ( 52 ) ) / 1, COUNT( * ) ) END / + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT + 92 * - SUM ( + 9 ) * + 58 + CASE + - 19 WHEN + COUNT ( * ) * - NULLIF ( - 7, + - 21 + + 19 * 42 + - 43 ) + 22 + - COUNT ( * ) * - 45 + - 25 / - + 41 * 35 THEN - CASE + ( 88 ) WHEN + COUNT ( * ) THEN NULL WHEN 49 THEN 39 END * NULLIF ( + COALESCE ( 65, - ( 52 ) ) / 1, COUNT ( * ) ) END / + 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT + 14 * + - 62 + + - MIN( - 95 )
----
-773

skipif mysql # not compatible
query I rowsort label-6498
SELECT + 14 * + - 62 + + - MIN ( - 95 )
----
-773

query II rowsort
SELECT ALL 74 AS col2, 17 AS col1
----
74
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT ALL + + 13 DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL + + 13 / + 23
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6501
SELECT MIN( DISTINCT + 56 ) * + 81 * + CAST( NULL AS SIGNED ) AS col2, 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-6501
SELECT MIN ( DISTINCT + 56 ) * + 81 * + CAST ( NULL AS INTEGER ) AS col2, 91
----
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT DISTINCT + 76 DIV - 75
----
-1

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT + 76 / - 75
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6503
SELECT ALL + + COUNT( * ) DIV 58 * - 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL + + COUNT ( * ) / 58 * - 23 AS col1
----
0

query I rowsort
SELECT 43 * 46
----
1978

query II rowsort
SELECT DISTINCT - - 95, - 19 * + 40 AS col0
----
95
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT ALL + - ( - COUNT( * ) ) + + 73 + 23 + 57 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL + - ( - COUNT ( * ) ) + + 73 + 23 + 57 AS col2
----
154

query I rowsort
SELECT ALL - 82 + - COALESCE ( 9, - - 22 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6508
SELECT - ( - - 62 ) + 3 * 23 DIV - 69 col2
----
-63

skipif mysql # not compatible
query I rowsort label-6508
SELECT - ( - - 62 ) + 3 * 23 / - 69 col2
----
-63

query I rowsort
SELECT 13 * + - 48
----
-624

query I rowsort
SELECT ALL 35 + - 17
----
18

query I rowsort
SELECT ( - - COALESCE ( - 82, + 77 ) )
----
-82

query I rowsort
SELECT ALL 41 + - - 32 * + + 57 col1
----
1865

onlyif mysql # aggregate syntax: 
query II rowsort label-6513
SELECT ALL + COUNT( * ) + + 84 AS col1, - COUNT( * ) AS col0
----
85
-1

skipif mysql # not compatible
query II rowsort label-6513
SELECT ALL + COUNT ( * ) + + 84 AS col1, - COUNT ( * ) AS col0
----
85
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6514
SELECT 51 + + + CAST( + 93 AS SIGNED )
----
144

skipif mysql # not compatible
query I rowsort label-6514
SELECT 51 + + + CAST ( + 93 AS INTEGER )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT ( + 72 ) + - COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6515
SELECT ( + 72 ) + - COUNT ( * ) AS col0
----
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6516
SELECT ALL CAST( NULL AS DECIMAL ) + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL CAST ( NULL AS REAL ) + + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT COUNT( * ) + - 94 + + 3 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-6517
SELECT COUNT ( * ) + - 94 + + 3 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT ( - 43 ) + - CASE NULLIF ( COUNT( * ), + + ( ( - AVG ( ALL - 84 ) ) ) + + - 17 + + - 65 / - 13 + 19 + + 68 * + + 34 * 54 ) WHEN + 71 THEN 90 * - + 80 + - COUNT( * ) ELSE + + 18 END AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-6518
SELECT ( - 43 ) + - CASE NULLIF ( COUNT ( * ), + + ( ( - AVG ( ALL - 84 ) ) ) + + - 17 + + - 65 / - 13 + 19 + + 68 * + + 34 * 54 ) WHEN + 71 THEN 90 * - + 80 + - COUNT ( * ) ELSE + + 18 END AS col0
----
-61

query II rowsort
SELECT ALL 75 - + + 65, 36 + + 96 AS col2
----
10
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT 57 * - - NULLIF ( + 12, + SUM( ( - 90 ) ) ) * COUNT( * ) * + 59
----
40356

skipif mysql # not compatible
query I rowsort label-6520
SELECT 57 * - - NULLIF ( + 12, + SUM ( ( - 90 ) ) ) * COUNT ( * ) * + 59
----
40356

query I rowsort
SELECT DISTINCT 4 - + 41 AS col0
----
-37

query II rowsort
SELECT DISTINCT 80 * 99, - 2 AS col0
----
7920
-2

query I rowsort
SELECT ( 97 ) + + 69 AS col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT - COUNT( * ) + + + COALESCE ( + 22, + + 17 - + COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-6524
SELECT - COUNT ( * ) + + + COALESCE ( + 22, + + 17 - + COUNT ( * ) )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6525
SELECT CAST( + ( + + 85 ) AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-6525
SELECT CAST ( + ( + + 85 ) AS INTEGER )
----
85

query I rowsort
SELECT 2 + + + 74
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL + 47 * - + COUNT( * ) + SUM( ALL + 15 ) * 0 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL + 47 * - + COUNT ( * ) + SUM ( ALL + 15 ) * 0 AS col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6528
SELECT + 87 + + CAST( - + 4 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-6528
SELECT + 87 + + CAST ( - + 4 AS INTEGER )
----
83

query II rowsort
SELECT ALL - 86 + + + 19 AS col1, - 10 * + + 19 * - - 15 AS col0
----
-67
-2850

query I rowsort
SELECT - 53 * + 96
----
-5088

onlyif mysql # DIV for integer division: 
query I rowsort label-6531
SELECT + 52 DIV - 2 + - - 98 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6531
SELECT + 52 / - 2 + - - 98 AS col1
----
72

query I rowsort
SELECT DISTINCT - 53 + + + 69
----
16

query I rowsort
SELECT ALL + 95 + 69
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-6534
SELECT 38 DIV - 33 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6534
SELECT 38 / - 33 col1
----
-1

query II rowsort
SELECT + 76 * - + ( + - 54 ) + + 15 AS col2, - ( 92 ) AS col0
----
4119
-92

query I rowsort
SELECT ( 37 ) * 97
----
3589

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT ALL + 51 + NULLIF ( + 28, COALESCE ( - MIN( ALL + - 98 ), - 24 ) + - - ( - MAX( - 57 ) ) ) - + 45 * + 31
----
-1316

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL + 51 + NULLIF ( + 28, COALESCE ( - MIN ( ALL + - 98 ), - 24 ) + - - ( - MAX ( - 57 ) ) ) - + 45 * + 31
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT DISTINCT - MAX( - 23 ) + + 67
----
90

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT - MAX ( - 23 ) + + 67
----
90

query I rowsort
SELECT ALL - 49 + + 62 * - 77 + - - 24
----
-4799

onlyif mysql # DIV for integer division: 
query I rowsort label-6540
SELECT 41 DIV - 89 * 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6540
SELECT 41 / - 89 * 2 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6541
SELECT DISTINCT - ( 24 ) DIV - + ( - 83 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT - ( 24 ) / - + ( - 83 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6542
SELECT DISTINCT + ( - + COALESCE ( + - 93, + 9, + - 85 DIV 16 ) ) + - - 63
----
156

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT + ( - + COALESCE ( + - 93, + 9, + - 85 / 16 ) ) + - - 63
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT ALL + 77 * + + MIN( - 55 ) AS col1
----
-4235

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL + 77 * + + MIN ( - 55 ) AS col1
----
-4235

query II rowsort
SELECT 72, + NULLIF ( + + 67, - 38 ) AS col0
----
72
67

query I rowsort
SELECT DISTINCT - 32 - 44
----
-76

query I rowsort
SELECT DISTINCT 86 - 16 AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT DISTINCT NULLIF ( CAST( - CASE - 94 WHEN 2 THEN NULL ELSE 7 END AS SIGNED ), - + 61 * - 34 * + 80 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT NULLIF ( CAST ( - CASE - 94 WHEN 2 THEN NULL ELSE 7 END AS INTEGER ), - + 61 * - 34 * + 80 ) AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT ALL 21 * - ( + CAST( NULL AS SIGNED ) ) / - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL 21 * - ( + CAST ( NULL AS INTEGER ) ) / - 19 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6549
SELECT + 27 * - 1 DIV - + ( 39 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6549
SELECT + 27 * - 1 / - + ( 39 ) AS col0
----
0

query II rowsort
SELECT 45 AS col1, + CASE - 72 WHEN + 57 THEN NULL WHEN + + 1 - - 46 * - 49 THEN - - 55 ELSE - - 67 END AS col2
----
45
67

query II rowsort
SELECT ALL - NULLIF ( + 96, - 95 ) * + ( + 39 ) - + NULLIF ( - 7, - 65 ) + - 13 * + + 31 AS col1, + 83 AS col0
----
-4140
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT + - 36 * 96 * + MIN( ALL 12 ) * + - 43 + - 20
----
1783276

skipif mysql # not compatible
query I rowsort label-6552
SELECT + - 36 * 96 * + MIN ( ALL 12 ) * + - 43 + - 20
----
1783276

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT + + 31 + + 85 + + MIN( ALL + 8 ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-6553
SELECT + + 31 + + 85 + + MIN ( ALL + 8 ) AS col0
----
124

query II rowsort
SELECT + + 62 * + 57 * + 22 AS col2, 7 + + 66 AS col2
----
77748
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6555
SELECT ALL 88 * - - NULLIF ( + 51, - 13 - MAX( ALL 35 ) * CAST( + 50 AS SIGNED ) ) * - 10 - 8
----
-44888

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL 88 * - - NULLIF ( + 51, - 13 - MAX ( ALL 35 ) * CAST ( + 50 AS INTEGER ) ) * - 10 - 8
----
-44888

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT ALL + 81 * + 21 * + COUNT( * )
----
1701

skipif mysql # not compatible
query I rowsort label-6556
SELECT ALL + 81 * + 21 * + COUNT ( * )
----
1701

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT + SUM( - + ( - NULLIF ( - - ( + 57 ), + + 34 / 82 + + 85 ) ) ) * + 76 * 28
----
121296

skipif mysql # not compatible
query I rowsort label-6557
SELECT + SUM ( - + ( - NULLIF ( - - ( + 57 ), + + 34 / 82 + + 85 ) ) ) * + 76 * 28
----
121296

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT + + COUNT( * ) - - 6 + 13 * + + 97 * - - 10 * - 98 + + 36 AS col2
----
-1235737

skipif mysql # not compatible
query I rowsort label-6558
SELECT + + COUNT ( * ) - - 6 + 13 * + + 97 * - - 10 * - 98 + + 36 AS col2
----
-1235737

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT ALL 45 * COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL 45 * COUNT ( * ) AS col0
----
45

query I rowsort
SELECT DISTINCT - 48 * + 97 col1
----
-4656

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6561
SELECT ALL 54 + + - CAST( - 23 AS SIGNED ), + ( 80 ) + - - 81 AS col0
----
77
161

skipif mysql # not compatible
query II rowsort label-6561
SELECT ALL 54 + + - CAST ( - 23 AS INTEGER ), + ( 80 ) + - - 81 AS col0
----
77
161

onlyif mysql # DIV for integer division: 
query I rowsort label-6562
SELECT ALL - + 45 DIV + + 90
----
0

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL - + 45 / + + 90
----
0

query I rowsort
SELECT + - 10 * - 61 + 96
----
706

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6564
SELECT + 42 + + + CAST( - + 35 AS SIGNED ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-6564
SELECT + 42 + + + CAST ( - + 35 AS INTEGER ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT + + COUNT( * ) * 34 + + + 75
----
109

skipif mysql # not compatible
query I rowsort label-6565
SELECT + + COUNT ( * ) * 34 + + + 75
----
109

query I rowsort
SELECT - + 29 * - 9
----
261

query I rowsort
SELECT ALL + + ( + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT + 74 - COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-6568
SELECT + 74 - COUNT ( * ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT ALL + MIN( DISTINCT + + 80 ) * + 9 + - 31 AS col2
----
689

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL + MIN ( DISTINCT + + 80 ) * + 9 + - 31 AS col2
----
689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6570
SELECT DISTINCT 90 * - 91 * - COUNT( * ) * - + ( - - 29 ) * + - CASE + 86 WHEN 84 THEN COALESCE ( + ( + - 80 ), 12 ) WHEN COUNT( * ) THEN NULL END + - - 42 + - - ( - MIN( ALL 42 ) ) - 49 + CASE + AVG ( ALL + 61 ) WHEN 9 THEN 13 WHEN + CAST( - NULLIF ( + CAST( 34 AS SIGNED ), 2 ) AS SIGNED ) THEN 99 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT 90 * - 91 * - COUNT ( * ) * - + ( - - 29 ) * + - CASE + 86 WHEN 84 THEN COALESCE ( + ( + - 80 ), 12 ) WHEN COUNT ( * ) THEN NULL END + - - 42 + - - ( - MIN ( ALL 42 ) ) - 49 + CASE + AVG ( ALL + 61 ) WHEN 9 THEN 13 WHEN + CAST ( - NULLIF ( + CAST ( 34 AS INTEGER ), 2 ) AS INTEGER ) THEN 99 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT ALL ( - 97 ) * + 99, 92 AS col1
----
-9603
92

query I rowsort
SELECT - 41 * 5 AS col0
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT COALESCE ( COUNT( * ), + 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6573
SELECT COALESCE ( COUNT ( * ), + 46 ) AS col0
----
1

query I rowsort
SELECT - 58 * - 38 + 12 AS col2
----
2216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6575
SELECT - NULLIF ( ( 34 ), + 26 ) - 31 + - 49 - 33 DIV - 76 * - SUM( + 85 ) * - 42 * + 34 col2
----
-114

skipif mysql # not compatible
query I rowsort label-6575
SELECT - NULLIF ( ( 34 ), + 26 ) - 31 + - 49 - 33 / - 76 * - SUM ( + 85 ) * - 42 * + 34 col2
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT - 93 DIV + + 25 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6576
SELECT - 93 / + + 25 AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6577
SELECT - CASE + ( - 97 ) WHEN + 53 * + 19 * + ( - 66 ) THEN - 63 + - 99 + CASE 94 WHEN - 22 THEN + CAST( NULL AS SIGNED ) * - 51 * + 39 WHEN + COUNT( * ) * + 58 - + + 70 THEN NULL END + - - 71 * + 30 * + COUNT( ALL + 88 ) END + + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT - CASE + ( - 97 ) WHEN + 53 * + 19 * + ( - 66 ) THEN - 63 + - 99 + CASE 94 WHEN - 22 THEN + CAST ( NULL AS INTEGER ) * - 51 * + 39 WHEN + COUNT ( * ) * + 58 - + + 70 THEN NULL END + - - 71 * + 30 * + COUNT ( ALL + 88 ) END + + 11 AS col0
----
NULL

query I rowsort
SELECT - 40 * + - 66 AS col1
----
2640

onlyif mysql # DIV for integer division: 
query I rowsort label-6579
SELECT ALL - 19 DIV - 67 * + 45
----
0

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL - 19 / - 67 * + 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT - COUNT( + 76 ) + - 74
----
-75

skipif mysql # not compatible
query I rowsort label-6580
SELECT - COUNT ( + 76 ) + - 74
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT ALL + NULLIF ( - 61, + + 29 * + 20 * ( 73 ) + MAX( DISTINCT 25 ) * + 73 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL + NULLIF ( - 61, + + 29 * + 20 * ( 73 ) + MAX ( DISTINCT 25 ) * + 73 ) AS col2
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6582
SELECT DISTINCT + 28 DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT + 28 / 81 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6583
SELECT ALL + 19 DIV + ( + 12 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + 19 / + ( + 12 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL - 47 * - COALESCE ( + COUNT( * ), + 66 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL - 47 * - COALESCE ( + COUNT ( * ), + 66 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT - 15 * COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6585
SELECT - 15 * COUNT ( * ) AS col1
----
-15

query I rowsort
SELECT + 80 + + - 0 + - 89 * - 92 AS col1
----
8268

query I rowsort
SELECT DISTINCT - 29 * - + 61 AS col2
----
1769

query I rowsort
SELECT - 50 * + 62
----
-3100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6589
SELECT ALL 72 + - CAST( NULL AS SIGNED ) + + + SUM( DISTINCT 84 ) + + - 26 + - 72 * + + 36, - 55 AS col1
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-6589
SELECT ALL 72 + - CAST ( NULL AS INTEGER ) + + + SUM ( DISTINCT 84 ) + + - 26 + - 72 * + + 36, - 55 AS col1
----
NULL
-55

query I rowsort
SELECT ALL 77 + + + 41 AS col1
----
118

query I rowsort
SELECT - 46 + + 97 AS col0
----
51

query I rowsort
SELECT DISTINCT - 52 + - 90
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6593
SELECT + + COUNT( * ) * + 75 * + - 37 * - - 2 col2, 88 DIV - + 2 + + 52 + - 14
----
-5550
-6

skipif mysql # not compatible
query II rowsort label-6593
SELECT + + COUNT ( * ) * + 75 * + - 37 * - - 2 col2, 88 / - + 2 + + 52 + - 14
----
-5550
-6

query I rowsort
SELECT ALL - + 76 + + 85 AS col0
----
9

query I rowsort
SELECT ALL + 61 + ( - 82 )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6596
SELECT - + 39 + - + CAST( 41 AS SIGNED ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6596
SELECT - + 39 + - + CAST ( 41 AS INTEGER ) AS col0
----
-80

query I rowsort
SELECT - + 80 * - 85
----
6800

query I rowsort
SELECT - - 64 + - COALESCE ( - 66, + 60, - ( 83 ) )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT + 5 * + COUNT( DISTINCT 0 ) * ( - + 61 ) - + 33 * 99 + + 7 AS col2
----
-3565

skipif mysql # not compatible
query I rowsort label-6599
SELECT + 5 * + COUNT ( DISTINCT 0 ) * ( - + 61 ) - + 33 * 99 + + 7 AS col2
----
-3565

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT + - 0 + + COUNT( DISTINCT + + 42 ) + 10 + + COUNT( * ) + - 20
----
-8

skipif mysql # not compatible
query I rowsort label-6600
SELECT + - 0 + + COUNT ( DISTINCT + + 42 ) + 10 + + COUNT ( * ) + - 20
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT ALL - COALESCE ( - + COUNT( * ), + + 16 )
----
1

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL - COALESCE ( - + COUNT ( * ), + + 16 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT DISTINCT + COUNT( * ) * - 87 * ( - + MIN( ALL - 90 ) )
----
-7830

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT + COUNT ( * ) * - 87 * ( - + MIN ( ALL - 90 ) )
----
-7830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6603
SELECT ALL 2 * + COUNT( * ) * + CASE + COUNT( * ) WHEN 68 THEN - 7 - + + CAST( NULL AS SIGNED ) * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL 2 * + COUNT ( * ) * + CASE + COUNT ( * ) WHEN 68 THEN - 7 - + + CAST ( NULL AS INTEGER ) * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6604
SELECT DISTINCT + + COUNT( - 85 ) + - ( + MIN( + 1 ) ) + + - COUNT( * ) * - 53 DIV - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT + + COUNT ( - 85 ) + - ( + MIN ( + 1 ) ) + + - COUNT ( * ) * - 53 / - COUNT ( * )
----
-53

query I rowsort
SELECT DISTINCT - COALESCE ( - - 57, - CASE + 85 WHEN - ( - - 92 ) THEN - 92 WHEN + 80 THEN + - NULLIF ( + 59, + 55 ) * - 31 + + + 65 + 87 + - 47 - - 13 * - 23 * 0 ELSE NULLIF ( + 12, - 33 ) END ) * + + 67
----
-3819

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6606
SELECT DISTINCT + + 83 / - ( + 75 ) - - CAST( NULL AS SIGNED ), + 86 AS col1
----
NULL
86

skipif mysql # not compatible
query II rowsort label-6606
SELECT DISTINCT + + 83 / - ( + 75 ) - - CAST ( NULL AS INTEGER ), + 86 AS col1
----
NULL
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6607
SELECT DISTINCT + 24 DIV - ( + SUM( 83 ) ) - + + 9 * - ( - 81 ) AS col2
----
-729

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT + 24 / - ( + SUM ( 83 ) ) - + + 9 * - ( - 81 ) AS col2
----
-729

query I rowsort
SELECT + ( - ( - - 65 ) ) col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6609
SELECT + 82 * - 83 AS col0, 55 * - 97 + + - 14 + + SUM( DISTINCT - 13 ) + - 41 + - COALESCE ( + 52, 88 * - 79 * 20 ) - COUNT( * ) * COALESCE ( - + COUNT( DISTINCT + + 53 ), CAST( - + 3 AS SIGNED ), + 42 * + 50 + - + 80 ) * + MAX( - + ( 76 ) ) + - 34 AS col1
----
-6806
-5565

skipif mysql # not compatible
query II rowsort label-6609
SELECT + 82 * - 83 AS col0, 55 * - 97 + + - 14 + + SUM ( DISTINCT - 13 ) + - 41 + - COALESCE ( + 52, 88 * - 79 * 20 ) - COUNT ( * ) * COALESCE ( - + COUNT ( DISTINCT + + 53 ), CAST ( - + 3 AS INTEGER ), + 42 * + 50 + - + 80 ) * + MAX ( - + ( 76 ) ) + - 34 AS col1
----
-6806
-5565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6610
SELECT CAST( - CASE + - ( + - 88 ) WHEN + COUNT( * ) + 24 * - + 64 * + - NULLIF ( + 18, - 62 ) + - 76 THEN + 80 - - NULLIF ( + - 39, - + 65 + - COUNT( * ) + + 86 * + CASE - + ( + 32 ) WHEN - NULLIF ( - + 90, - - MAX( DISTINCT 1 ) ) * ( + + 88 ) * - 0 + 18 / + 47 THEN COUNT( - 43 ) ELSE + 93 END ) WHEN COUNT( ALL + 1 ) - + SUM( 34 ) THEN SUM( DISTINCT + 22 ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6610
SELECT CAST ( - CASE + - ( + - 88 ) WHEN + COUNT ( * ) + 24 * - + 64 * + - NULLIF ( + 18, - 62 ) + - 76 THEN + 80 - - NULLIF ( + - 39, - + 65 + - COUNT ( * ) + + 86 * + CASE - + ( + 32 ) WHEN - NULLIF ( - + 90, - - MAX ( DISTINCT 1 ) ) * ( + + 88 ) * - 0 + 18 / + 47 THEN COUNT ( - 43 ) ELSE + 93 END ) WHEN COUNT ( ALL + 1 ) - + SUM ( 34 ) THEN SUM ( DISTINCT + 22 ) END AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 32 * - 22 * 21 * + 96
----
1419264

query I rowsort
SELECT ALL - 15 * + + 54 AS col2
----
-810

query II rowsort
SELECT DISTINCT 75 * 35 AS col2, 10 * + 2 AS col2
----
2625
20

query I rowsort
SELECT 95 * + - 58 * ( + ( - - CASE - 96 WHEN - 75 THEN NULL WHEN 92 THEN + 69 * + 48 + - 86 - + 94 * + 51 END ) ) * + 35 / - + 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6615
SELECT ALL 10 * - CASE - + 20 WHEN - 62 THEN + - 37 WHEN - 50 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL 10 * - CASE - + 20 WHEN - 62 THEN + - 37 WHEN - 50 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL END AS col2
----
NULL

query II rowsort
SELECT 20 * - 83, - 27 AS col2
----
-1660
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-6617
SELECT ALL - SUM( ALL 67 ) col1, - COUNT( * ) AS col2
----
-67
-1

skipif mysql # not compatible
query II rowsort label-6617
SELECT ALL - SUM ( ALL 67 ) col1, - COUNT ( * ) AS col2
----
-67
-1

query I rowsort
SELECT ALL - 25 + + 14 + + 79
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6619
SELECT DISTINCT 5 + + 62 DIV - - 65
----
5

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT 5 + + 62 / - - 65
----
5

query I rowsort
SELECT DISTINCT - 23 + 72 AS col2
----
49

query I rowsort
SELECT ALL - + 74 + COALESCE ( - - 84, 31 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6622
SELECT - 6 * - CAST( + + 43 AS SIGNED ) AS col2
----
258

skipif mysql # not compatible
query I rowsort label-6622
SELECT - 6 * - CAST ( + + 43 AS INTEGER ) AS col2
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT 67 + - SUM( ALL + + 81 ) + + COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6623
SELECT 67 + - SUM ( ALL + + 81 ) + + COUNT ( * ) AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6624
SELECT + 80 * 22 * + 5 * + 88 + CAST( NULL AS SIGNED ) AS col0, 51
----
NULL
51

skipif mysql # not compatible
query II rowsort label-6624
SELECT + 80 * 22 * + 5 * + 88 + CAST ( NULL AS INTEGER ) AS col0, 51
----
NULL
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6625
SELECT ALL + + CASE - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN - COUNT( * ) END * - + COUNT( * ) * - COALESCE ( - 98, ( - - CAST( NULL AS SIGNED ) ) * - - 47 ) * + + COUNT( NULLIF ( 67, 61 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL + + CASE - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN - COUNT ( * ) END * - + COUNT ( * ) * - COALESCE ( - 98, ( - - CAST ( NULL AS INTEGER ) ) * - - 47 ) * + + COUNT ( NULLIF ( 67, 61 ) )
----
NULL

query I rowsort
SELECT + 24 + + 56 + + 51 AS col2
----
131

query I rowsort
SELECT 87 + - 72 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT ALL - 7 + - - COUNT( - + 63 )
----
-6

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - 7 + - - COUNT ( - + 63 )
----
-6

query I rowsort
SELECT 36 * + - 53 + - 4 col1
----
-1912

query I rowsort
SELECT ALL + 63 * + + 38
----
2394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6631
SELECT ALL + - 57 - + CAST( 42 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL + - 57 - + CAST ( 42 AS INTEGER )
----
-99

query I rowsort
SELECT ALL ( - 5 ) AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6633
SELECT - NULLIF ( + SUM( ( - CASE + 53 WHEN - 92 THEN + 63 WHEN - - 80 THEN 2 END ) ), - 43 + 13 / - + MAX( DISTINCT + NULLIF ( + + CAST( NULL AS SIGNED ), - 71 ) ) ), - CASE + COUNT( * ) WHEN - + 80 THEN - - 72 + 48 ELSE NULL END col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6633
SELECT - NULLIF ( + SUM ( ( - CASE + 53 WHEN - 92 THEN + 63 WHEN - - 80 THEN 2 END ) ), - 43 + 13 / - + MAX ( DISTINCT + NULLIF ( + + CAST ( NULL AS INTEGER ), - 71 ) ) ), - CASE + COUNT ( * ) WHEN - + 80 THEN - - 72 + 48 ELSE NULL END col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT ALL + COUNT( * ) - - 53 + + - 99
----
-45

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL + COUNT ( * ) - - 53 + + - 99
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-6635
SELECT COUNT( * ) * 66 AS col2, - ( - - 23 ) col0
----
66
-23

skipif mysql # not compatible
query II rowsort label-6635
SELECT COUNT ( * ) * 66 AS col2, - ( - - 23 ) col0
----
66
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6636
SELECT + AVG ( DISTINCT - ( + - 64 ) ) * CASE - + 61 WHEN 65 THEN - 4 + + NULLIF ( + - COALESCE ( - COUNT( * ), + 47 ), + CAST( - + 40 AS SIGNED ) ) END + 93 * + 74 * 8 + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6636
SELECT + AVG ( DISTINCT - ( + - 64 ) ) * CASE - + 61 WHEN 65 THEN - 4 + + NULLIF ( + - COALESCE ( - COUNT ( * ), + 47 ), + CAST ( - + 40 AS INTEGER ) ) END + 93 * + 74 * 8 + 62 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6637
SELECT - CAST( NULL AS DECIMAL ) / + + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT - CAST ( NULL AS REAL ) / + + 10 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6638
SELECT NULLIF ( + + 57, - - ( + CAST( NULL AS SIGNED ) ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6638
SELECT NULLIF ( + + 57, - - ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6639
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 51
----
NULL

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 51
----
NULL

query II rowsort
SELECT ALL - 96, - 33 AS col2
----
-96
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT COUNT( * ) * + - 21 * - - 80 * - 28 - + 83 AS col0
----
46957

skipif mysql # not compatible
query I rowsort label-6641
SELECT COUNT ( * ) * + - 21 * - - 80 * - 28 - + 83 AS col0
----
46957

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT CASE - 33 WHEN 52 * - COUNT( DISTINCT 51 ) * - COUNT( * ) + + 59 + - NULLIF ( + 68, - 83 ) * - 96 / - 85 + 96 THEN 99 * 58 WHEN 15 THEN - 22 * + 20 + ( + 71 ) + 58 + 76 * + 18 / 82 END / + ( - 24 ) + - 64 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT CASE - 33 WHEN 52 * - COUNT ( DISTINCT 51 ) * - COUNT ( * ) + + 59 + - NULLIF ( + 68, - 83 ) * - 96 / - 85 + 96 THEN 99 * 58 WHEN 15 THEN - 22 * + 20 + ( + 71 ) + 58 + 76 * + 18 / 82 END / + ( - 24 ) + - 64 col0
----
NULL

query I rowsort
SELECT ALL + 28 * + + 55
----
1540

onlyif mysql # aggregate syntax: 
query II rowsort label-6644
SELECT DISTINCT - COUNT( * ) AS col0, 50 col2
----
-1
50

skipif mysql # not compatible
query II rowsort label-6644
SELECT DISTINCT - COUNT ( * ) AS col0, 50 col2
----
-1
50

onlyif mysql # aggregate syntax: 
query II rowsort label-6645
SELECT DISTINCT - 24 AS col2, + NULLIF ( - 83, + 84 * CASE 78 WHEN + 19 THEN NULL ELSE 25 END + - 39 * + COUNT( * ) )
----
-24
-83

skipif mysql # not compatible
query II rowsort label-6645
SELECT DISTINCT - 24 AS col2, + NULLIF ( - 83, + 84 * CASE 78 WHEN + 19 THEN NULL ELSE 25 END + - 39 * + COUNT ( * ) )
----
-24
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6646
SELECT CAST( NULL AS SIGNED ) - - + SUM( ALL 6 ) AS col0, 88 * + 26 + - CASE ( AVG ( DISTINCT - 64 ) ) WHEN + SUM( + 86 ) / 60 * - - 20 THEN NULL WHEN + + 83 / - 26 - - 63 THEN NULL ELSE - ( 67 ) / + CASE + 44 WHEN - + 48 + + 39 + - - 0 THEN + - MAX( DISTINCT ( 78 ) ) / - 4 + - 92 WHEN 28 / 32 THEN NULL END - 56 END AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6646
SELECT CAST ( NULL AS INTEGER ) - - + SUM ( ALL 6 ) AS col0, 88 * + 26 + - CASE ( AVG ( DISTINCT - 64 ) ) WHEN + SUM ( + 86 ) / 60 * - - 20 THEN NULL WHEN + + 83 / - 26 - - 63 THEN NULL ELSE - ( 67 ) / + CASE + 44 WHEN - + 48 + + 39 + - - 0 THEN + - MAX ( DISTINCT ( 78 ) ) / - 4 + - 92 WHEN 28 / 32 THEN NULL END - 56 END AS col0
----
NULL
NULL

query I rowsort
SELECT ALL 69 + - 14
----
55

query I rowsort
SELECT 85 + 19
----
104

query I rowsort
SELECT ALL 62 + - + ( + 81 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT ALL 33 + - 54 + + + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL 33 + - 54 + + + COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT ALL 26 + + SUM( ALL 81 ) * - 17
----
-1351

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL 26 + + SUM ( ALL 81 ) * - 17
----
-1351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6652
SELECT DISTINCT + COUNT( * ) * + 64 DIV 13 + 23 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT + COUNT ( * ) * + 64 / 13 + 23 AS col0
----
27

query I rowsort
SELECT 2 + 28
----
30

query I rowsort
SELECT ALL - 19 + - 36
----
-55

query II rowsort
SELECT - + 35 AS col2, - 98 AS col1
----
-35
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT NULLIF ( - + COUNT( * ), + + 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-6656
SELECT NULLIF ( - + COUNT ( * ), + + 30 )
----
-1

query I rowsort
SELECT DISTINCT 39 * + - 49 + - + 22 * - 7 + - - 77 AS col1
----
-1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6658
SELECT 81 DIV 30 * 42 * - ( - NULLIF ( + COUNT( * ), + + 57 ) ) * + 26 * MIN( DISTINCT + 44 ) AS col0
----
96096

skipif mysql # not compatible
query I rowsort label-6658
SELECT 81 / 30 * 42 * - ( - NULLIF ( + COUNT ( * ), + + 57 ) ) * + 26 * MIN ( DISTINCT + 44 ) AS col0
----
96096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6659
SELECT ALL + + CAST( NULL AS SIGNED ) / + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL + + CAST ( NULL AS INTEGER ) / + 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT ALL - 17 - MAX( ALL - 75 ) + 67
----
125

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL - 17 - MAX ( ALL - 75 ) + 67
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6661
SELECT DISTINCT - + 84 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT - + 84 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6662
SELECT ALL - - 67 DIV - 38 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL - - 67 / - 38 col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6663
SELECT - CAST( NULL AS SIGNED ) / - + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6663
SELECT - CAST ( NULL AS INTEGER ) / - + 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT - 81 * SUM( + 70 ) AS col1
----
-5670

skipif mysql # not compatible
query I rowsort label-6664
SELECT - 81 * SUM ( + 70 ) AS col1
----
-5670

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6665
SELECT ALL - COUNT( * ) DIV ( - MAX( + - 43 ) ) + 29 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL - COUNT ( * ) / ( - MAX ( + - 43 ) ) + 29 AS col1
----
29

query I rowsort
SELECT - 20 + 2 col1
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-6667
SELECT ALL + 17 AS col1, - 33 * + + COUNT( * ) * - 39 AS col2
----
17
1287

skipif mysql # not compatible
query II rowsort label-6667
SELECT ALL + 17 AS col1, - 33 * + + COUNT ( * ) * - 39 AS col2
----
17
1287

query II rowsort
SELECT - - 50, + 57 AS col2
----
50
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL + COUNT( ALL + + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL + COUNT ( ALL + + 42 )
----
1

query II rowsort
SELECT - COALESCE ( + 43, 57 ) * 50 col2, - 77
----
-2150
-77

query I rowsort
SELECT - CASE WHEN 28 < ( NULL ) THEN 58 + - 66 / - 92 END + - 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT DISTINCT CASE - 45 WHEN - 43 THEN COUNT( * ) - - COALESCE ( + 14, - 24, + 60 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT CASE - 45 WHEN - 43 THEN COUNT ( * ) - - COALESCE ( + 14, - 24, + 60 ) END AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 14, 12 + - CASE + + 53 WHEN + ( - - ( 5 ) ) * NULLIF ( - - 52, 68 * - ( - 73 ) ) + + 8 THEN NULL WHEN + 77 THEN 44 ELSE NULL END ) AS col0
----
14

query I rowsort
SELECT - 35 + - - 94
----
59

query I rowsort
SELECT ALL + 33 * + 46 * - + 92 AS col2
----
-139656

onlyif mysql # DIV for integer division: 
query I rowsort label-6676
SELECT + 8 DIV + COALESCE ( + + 17, + 49 ) + + 41 DIV - 18
----
-2

skipif mysql # not compatible
query I rowsort label-6676
SELECT + 8 / + COALESCE ( + + 17, + 49 ) + + 41 / - 18
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6677
SELECT NULLIF ( + COALESCE ( - 34, - - NULLIF ( + COUNT( * ), - + 64 ), CAST( - 98 AS SIGNED ) ), + ( + 84 ) + 49 )
----
-34

skipif mysql # not compatible
query I rowsort label-6677
SELECT NULLIF ( + COALESCE ( - 34, - - NULLIF ( + COUNT ( * ), - + 64 ), CAST ( - 98 AS INTEGER ) ), + ( + 84 ) + 49 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT ALL COALESCE ( + 54, + 46, 52 ) * - COUNT( * ) + - - 52 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL COALESCE ( + 54, + 46, 52 ) * - COUNT ( * ) + - - 52 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT NULLIF ( SUM( + 64 ), + 8 * 42 ) col1
----
64

skipif mysql # not compatible
query I rowsort label-6679
SELECT NULLIF ( SUM ( + 64 ), + 8 * 42 ) col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6680
SELECT 88 DIV + 73 + + 57
----
58

skipif mysql # not compatible
query I rowsort label-6680
SELECT 88 / + 73 + + 57
----
58

query I rowsort
SELECT CASE + 18 WHEN 4 THEN NULL WHEN 73 THEN - 17 ELSE 20 END
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6682
SELECT - CAST( + 74 AS SIGNED ) * 69 * - ( + - SUM( + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6682
SELECT - CAST ( + 74 AS INTEGER ) * 69 * - ( + - SUM ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT + 81 + 58
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6684
SELECT ALL CAST( - 52 AS SIGNED ) * - 94 + - + ( + 87 ) DIV COUNT( * ) + - 98 AS col0
----
4703

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL CAST ( - 52 AS INTEGER ) * - 94 + - + ( + 87 ) / COUNT ( * ) + - 98 AS col0
----
4703

query I rowsort
SELECT DISTINCT 21 * - 34 AS col1
----
-714

query I rowsort
SELECT NULLIF ( 22, + 17 + + + 77 ) col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL MIN( DISTINCT 28 ) * + 37 * 92 * COUNT( * ) + + 89 col1
----
95401

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL MIN ( DISTINCT 28 ) * + 37 * 92 * COUNT ( * ) + + 89 col1
----
95401

query I rowsort
SELECT ALL 56 * - - 93 * - 46 AS col0
----
-239568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6689
SELECT ALL 13 * CAST( NULL AS SIGNED ) + - - 98 * - - 37 + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL 13 * CAST ( NULL AS INTEGER ) + - - 98 * - - 37 + + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT DISTINCT - COUNT( DISTINCT + + 8 ) * + + ( COUNT( * ) ) + + + 80 * COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT - COUNT ( DISTINCT + + 8 ) * + + ( COUNT ( * ) ) + + + 80 * COUNT ( * )
----
79

query I rowsort
SELECT + 15 * - + 50
----
-750

query I rowsort
SELECT - 79 * + + 34 + + + 50
----
-2636

onlyif mysql # DIV for integer division: 
query I rowsort label-6693
SELECT + - ( + 95 ) DIV - + 48 col1
----
1

skipif mysql # not compatible
query I rowsort label-6693
SELECT + - ( + 95 ) / - + 48 col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6694
SELECT + NULLIF ( 68, + 52 * 64 + - COALESCE ( + 83, - MIN( DISTINCT + 57 ) * + 6 + + ( - CAST( NULL AS SIGNED ) ), 91 * - 91 ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6694
SELECT + NULLIF ( 68, + 52 * 64 + - COALESCE ( + 83, - MIN ( DISTINCT + 57 ) * + 6 + + ( - CAST ( NULL AS INTEGER ) ), 91 * - 91 ) ) AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT ALL - 11 * + + 21 * + 46 - + 7 DIV - NULLIF ( - - 4, - 21 ) AS col1
----
-10625

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL - 11 * + + 21 * + 46 - + 7 / - NULLIF ( - - 4, - 21 ) AS col1
----
-10625

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT + + 2 * + 43 * + 71 + + COUNT( * ) + - 13 AS col1
----
6094

skipif mysql # not compatible
query I rowsort label-6696
SELECT + + 2 * + 43 * + 71 + + COUNT ( * ) + - 13 AS col1
----
6094

query I rowsort
SELECT + 38 + - 78 AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6698
SELECT ALL ( + CAST( NULL AS SIGNED ) ) - + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) - + 81
----
NULL

query I rowsort
SELECT + 51 * + 61 - 5 - 89
----
3017

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT - COUNT( + 93 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6700
SELECT - COUNT ( + 93 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT + 9 + + COALESCE ( - 42, 84 + 44, COUNT( * ) )
----
-33

skipif mysql # not compatible
query I rowsort label-6701
SELECT + 9 + + COALESCE ( - 42, 84 + 44, COUNT ( * ) )
----
-33

query I rowsort
SELECT + - 75 * 19 AS col0
----
-1425

query I rowsort
SELECT - - ( - + 35 ) + - 47 AS col2
----
-82

query I rowsort
SELECT - - ( 79 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT + - 25 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-6705
SELECT + - 25 / 84
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6706
SELECT ALL - 20 * - COUNT( ALL 77 ) * 16 AS col2, 32 AS col1
----
320
32

skipif mysql # not compatible
query II rowsort label-6706
SELECT ALL - 20 * - COUNT ( ALL 77 ) * 16 AS col2, 32 AS col1
----
320
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT DISTINCT - COUNT( - 97 ) + 26 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT - COUNT ( - 97 ) + 26 AS col2
----
25

query I rowsort
SELECT + 23 - - 5 * 94 * + 99 AS col0
----
46553

onlyif mysql # DIV for integer division: 
query I rowsort label-6709
SELECT DISTINCT 34 DIV + - 8
----
-4

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT 34 / + - 8
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT ALL + COUNT( * ) + NULLIF ( - 61, - + MIN( 84 ) + + - COUNT( * ) + + 49 - - + 36 ) + + 97 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL + COUNT ( * ) + NULLIF ( - 61, - + MIN ( 84 ) + + - COUNT ( * ) + + 49 - - + 36 ) + + 97 AS col0
----
37

query I rowsort
SELECT DISTINCT - 74 + + 59
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6712
SELECT + MAX( DISTINCT + 52 ) DIV + 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6712
SELECT + MAX ( DISTINCT + 52 ) / + 48 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6713
SELECT - 81 DIV + 40
----
-2

skipif mysql # not compatible
query I rowsort label-6713
SELECT - 81 / + 40
----
-2

query I rowsort
SELECT ALL + 2 * - + 72
----
-144

query I rowsort
SELECT - 57 * 51
----
-2907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6716
SELECT + COUNT( * ) * - CAST( 43 AS SIGNED ) - - + 78
----
35

skipif mysql # not compatible
query I rowsort label-6716
SELECT + COUNT ( * ) * - CAST ( 43 AS INTEGER ) - - + 78
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT DISTINCT + CASE 25 WHEN 22 + + NULLIF ( - 20, 23 ) THEN + COUNT( DISTINCT + - 52 ) + - ( - 23 ) END * - 13 + NULLIF ( - 98, - 88 * + 10 * 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT + CASE 25 WHEN 22 + + NULLIF ( - 20, 23 ) THEN + COUNT ( DISTINCT + - 52 ) + - ( - 23 ) END * - 13 + NULLIF ( - 98, - 88 * + 10 * 70 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6718
SELECT ALL - 17 DIV 94 * 92 * 52 + + + MAX( ALL + 15 ) * 74 * + 55, 62 AS col0
----
61050
62

skipif mysql # not compatible
query II rowsort label-6718
SELECT ALL - 17 / 94 * 92 * 52 + + + MAX ( ALL + 15 ) * 74 * + 55, 62 AS col0
----
61050
62

query I rowsort
SELECT 93 * 83 - 75 AS col2
----
7644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6720
SELECT ALL COUNT( * ) DIV - 27 + 80 - + 35 * + - 82 * + 36
----
103400

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL COUNT ( * ) / - 27 + 80 - + 35 * + - 82 * + 36
----
103400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6721
SELECT - 21 * 65 DIV - COUNT( * ) AS col1, 83
----
1365
83

skipif mysql # not compatible
query II rowsort label-6721
SELECT - 21 * 65 / - COUNT ( * ) AS col1, 83
----
1365
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT DISTINCT + CASE 63 WHEN 17 / - 62 - NULLIF ( - 23, + NULLIF ( + ( 46 ), - + 62 ) ) + + MIN( 23 ) - COUNT( * ) * 97 * + 92 * COALESCE ( + + 45, - SUM( DISTINCT 84 ) ) * - - 99 * + + ( + - 20 ) + - - 27 * - - 20 THEN NULL WHEN - ( + + 61 ) * 16 + + - 41 THEN NULL WHEN + + 2 THEN 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT + CASE 63 WHEN 17 / - 62 - NULLIF ( - 23, + NULLIF ( + ( 46 ), - + 62 ) ) + + MIN ( 23 ) - COUNT ( * ) * 97 * + 92 * COALESCE ( + + 45, - SUM ( DISTINCT 84 ) ) * - - 99 * + + ( + - 20 ) + - - 27 * - - 20 THEN NULL WHEN - ( + + 61 ) * 16 + + - 41 THEN NULL WHEN + + 2 THEN 80 END
----
NULL

query I rowsort
SELECT - + 22 + - 39 * - 5 + 43 * 32
----
1549

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT - - 21 * 23 - + COUNT( * )
----
482

skipif mysql # not compatible
query I rowsort label-6724
SELECT - - 21 * 23 - + COUNT ( * )
----
482

query I rowsort
SELECT COALESCE ( - 46, + + 2 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ( + 3 ) * - 80 + + COUNT( * ) + + 36 + + - MIN( DISTINCT + - 72 ) + - - 28
----
-103

skipif mysql # not compatible
query I rowsort label-6726
SELECT ( + 3 ) * - 80 + + COUNT ( * ) + + 36 + + - MIN ( DISTINCT + - 72 ) + - - 28
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT - MAX( ALL 82 ) * COUNT( * ) * - + 75 * + 53 + - MAX( 43 )
----
325907

skipif mysql # not compatible
query I rowsort label-6727
SELECT - MAX ( ALL 82 ) * COUNT ( * ) * - + 75 * + 53 + - MAX ( 43 )
----
325907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6728
SELECT ALL NULLIF ( - + 49, + 93 ) * + + CAST( - COUNT( * ) AS SIGNED ) AS col1, ( + COUNT( * ) )
----
49
1

skipif mysql # not compatible
query II rowsort label-6728
SELECT ALL NULLIF ( - + 49, + 93 ) * + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1, ( + COUNT ( * ) )
----
49
1

query I rowsort
SELECT - 71 * + + 42 * + + 34 + + + 69
----
-101319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6730
SELECT ALL + - CAST( - 34 AS SIGNED ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL + - CAST ( - 34 AS INTEGER ) AS col0
----
34

query II rowsort
SELECT ALL + 44 col1, - 20 AS col0
----
44
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT ALL - SUM( - - 42 ) * + 55 AS col0
----
-2310

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL - SUM ( - - 42 ) * + 55 AS col0
----
-2310

query I rowsort
SELECT + + 65 * - 46 AS col2
----
-2990

query I rowsort
SELECT ALL - + 50 * - + ( - - ( + 65 ) )
----
3250

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT - + COUNT( + 71 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6735
SELECT - + COUNT ( + 71 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6736
SELECT + 72 * + ( + + COALESCE ( - + SUM( DISTINCT + + 67 ), + 77 * + NULLIF ( + ( - CAST( + 75 AS SIGNED ) ), COUNT( * ) ) * + - MIN( DISTINCT - 66 ) DIV 20 + 93 * - + 25 * 44 - 97 + + 20 * COALESCE ( 10, - 67 * + 99 ) - + COUNT( * ), 44 ) ) * + 29 + + + 96
----
-139800

skipif mysql # not compatible
query I rowsort label-6736
SELECT + 72 * + ( + + COALESCE ( - + SUM ( DISTINCT + + 67 ), + 77 * + NULLIF ( + ( - CAST ( + 75 AS INTEGER ) ), COUNT ( * ) ) * + - MIN ( DISTINCT - 66 ) / 20 + 93 * - + 25 * 44 - 97 + + 20 * COALESCE ( 10, - 67 * + 99 ) - + COUNT ( * ), 44 ) ) * + 29 + + + 96
----
-139800

onlyif mysql # DIV for integer division: 
query I rowsort label-6737
SELECT DISTINCT 41 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-6737
SELECT DISTINCT 41 / + 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6738
SELECT - 16 * + 14 + + 46 + - - MIN( + 49 ) + 18 AS col2, 87
----
-111
87

skipif mysql # not compatible
query II rowsort label-6738
SELECT - 16 * + 14 + + 46 + - - MIN ( + 49 ) + 18 AS col2, 87
----
-111
87

query I rowsort
SELECT 21 + + ( - 88 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT DISTINCT 47 + + 52 + - 1 / + 70 / + CASE + COUNT( + 48 ) WHEN + - ( - 35 ) THEN NULL WHEN + - 84 THEN - 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT 47 + + 52 + - 1 / + 70 / + CASE + COUNT ( + 48 ) WHEN + - ( - 35 ) THEN NULL WHEN + - 84 THEN - 68 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6741
SELECT ALL 17 + 53 - + 33 * + - COUNT( * ), - 28 AS col0
----
103
-28

skipif mysql # not compatible
query II rowsort label-6741
SELECT ALL 17 + 53 - + 33 * + - COUNT ( * ), - 28 AS col0
----
103
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT MAX( + COALESCE ( - - NULLIF ( 83, 85 ), + 90 ) ) + 87 AS col0
----
170

skipif mysql # not compatible
query I rowsort label-6742
SELECT MAX ( + COALESCE ( - - NULLIF ( 83, 85 ), + 90 ) ) + 87 AS col0
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-6743
SELECT ALL 93 + + 98 DIV 98 - 54 - - 53
----
93

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL 93 + + 98 / 98 - 54 - - 53
----
93

query I rowsort
SELECT 66 + - 92 * + 93 * - 27 * + + 3 AS col2
----
693102

query I rowsort
SELECT 2 - - 54 AS col2
----
56

query I rowsort
SELECT DISTINCT 11 + CASE + ( - 56 ) WHEN - 67 THEN NULL ELSE + 47 + + 53 - - - 90 END col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT CAST( NULL AS SIGNED ) + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT CAST ( NULL AS INTEGER ) + - 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6748
SELECT ALL 34 AS col2, - 50 / + CAST( NULL AS SIGNED ) * - CAST( - ( + 20 ) AS SIGNED ) AS col0
----
34
NULL

skipif mysql # not compatible
query II rowsort label-6748
SELECT ALL 34 AS col2, - 50 / + CAST ( NULL AS INTEGER ) * - CAST ( - ( + 20 ) AS INTEGER ) AS col0
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT ALL 57 * - ( + COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL 57 * - ( + COUNT ( * ) )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6750
SELECT DISTINCT 16 + CASE - SUM( - 96 ) WHEN + 31 THEN - COUNT( * ) + 49 WHEN + + 83 * + - 61 * - - 24 + - - 18 + + 99 THEN NULL END + - 59 + + + 85 + CAST( + 65 AS SIGNED ) * 83 / + 38 * 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT 16 + CASE - SUM ( - 96 ) WHEN + 31 THEN - COUNT ( * ) + 49 WHEN + + 83 * + - 61 * - - 24 + - - 18 + + 99 THEN NULL END + - 59 + + + 85 + CAST ( + 65 AS INTEGER ) * 83 / + 38 * 46 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 40 AS col2, 77 * 2 + + 18
----
40
172

onlyif mysql # aggregate syntax: 
query II rowsort label-6752
SELECT ALL 92 AS col1, 12 * - 63 * + + COUNT( * ) * - + 3
----
92
2268

skipif mysql # not compatible
query II rowsort label-6752
SELECT ALL 92 AS col1, 12 * - 63 * + + COUNT ( * ) * - + 3
----
92
2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6753
SELECT CAST( NULL AS SIGNED ) + + + COUNT( - + 34 ) + + SUM( ALL + 35 ) - - 84 * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6753
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( - + 34 ) + + SUM ( ALL + 35 ) - - 84 * - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT NULLIF ( - + 22, 27 * + 79 + + 51 / - 27 + - SUM( 66 ) ) + + 45 - - 85 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-6754
SELECT NULLIF ( - + 22, 27 * + 79 + + 51 / - 27 + - SUM ( 66 ) ) + + 45 - - 85 AS col2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6755
SELECT 34 / + + 35 + + 22 + ( + 67 ) * - NULLIF ( CAST( NULL AS SIGNED ), + 96 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6755
SELECT 34 / + + 35 + + 22 + ( + 67 ) * - NULLIF ( CAST ( NULL AS INTEGER ), + 96 ) col0
----
NULL

query I rowsort
SELECT 91 * 39
----
3549

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT SUM( + 54 ) * 46 col1
----
2484

skipif mysql # not compatible
query I rowsort label-6757
SELECT SUM ( + 54 ) * 46 col1
----
2484

query I rowsort
SELECT 30 * + 57 AS col0
----
1710

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6759
SELECT 79 AS col2, CAST( NULL AS SIGNED )
----
79
NULL

skipif mysql # not compatible
query II rowsort label-6759
SELECT 79 AS col2, CAST ( NULL AS INTEGER )
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL + ( ( + ( + 57 ) ) ) * - - 34 * + 74 + 94 * + + 89 * - MAX( ALL 56 )
----
-325084

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL + ( ( + ( + 57 ) ) ) * - - 34 * + 74 + 94 * + + 89 * - MAX ( ALL 56 )
----
-325084

query I rowsort
SELECT ALL - ( 13 ) - + - 30 * 95 AS col0
----
2837

query I rowsort
SELECT 16 * - 3
----
-48

query I rowsort
SELECT ( 93 ) * - 23 AS col0
----
-2139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6764
SELECT ALL COALESCE ( + + 7, COUNT( * ), + 62 ) * + 58 * + - COUNT( * ) * 7 - - - CASE - 87 WHEN - 4 THEN NULL ELSE + 66 + + CASE - 87 WHEN 48 - MAX( - - 62 ) THEN NULL ELSE + 41 END * + + COALESCE ( - 64, + 64 DIV - - 75 + - + COUNT( * ) DIV - + MAX( 68 ) * - - 52 * + 12 + - 85 ) * MAX( ALL 8 ) + 56 DIV 10 END
----
18079

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL COALESCE ( + + 7, COUNT ( * ), + 62 ) * + 58 * + - COUNT ( * ) * 7 - - - CASE - 87 WHEN - 4 THEN NULL ELSE + 66 + + CASE - 87 WHEN 48 - MAX ( - - 62 ) THEN NULL ELSE + 41 END * + + COALESCE ( - 64, + 64 / - - 75 + - + COUNT ( * ) / - + MAX ( 68 ) * - - 52 * + 12 + - 85 ) * MAX ( ALL 8 ) + 56 / 10 END
----
18079

query II rowsort
SELECT ALL - 67, 52 * - + 38 * - 69 AS col2
----
-67
136344

onlyif mysql # aggregate syntax: 
query II rowsort label-6766
SELECT ALL - + 50 AS col2, COUNT( * ) + + + 20 AS col1
----
-50
21

skipif mysql # not compatible
query II rowsort label-6766
SELECT ALL - + 50 AS col2, COUNT ( * ) + + + 20 AS col1
----
-50
21

query II rowsort
SELECT DISTINCT - - 90 AS col1, 68 AS col0
----
90
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6768
SELECT ALL - COUNT( * ) AS col2, 98 AS col2
----
-1
98

skipif mysql # not compatible
query II rowsort label-6768
SELECT ALL - COUNT ( * ) AS col2, 98 AS col2
----
-1
98

query I rowsort
SELECT + ( + - 90 ) - + 24
----
-114

query I rowsort
SELECT 36 - + 26 * ( + + 27 )
----
-666

onlyif mysql # aggregate syntax: 
query II rowsort label-6771
SELECT + 26 AS col1, + COUNT( * ) AS col1
----
26
1

skipif mysql # not compatible
query II rowsort label-6771
SELECT + 26 AS col1, + COUNT ( * ) AS col1
----
26
1

onlyif mysql # aggregate syntax: 
query III rowsort label-6772
SELECT 28, CASE + SUM( DISTINCT + 61 ) WHEN - 44 THEN NULL ELSE + 20 * - 9 * 95 * + 52 END AS col2, - + 68 + + - 86 AS col1
----
28
-889200
-154

skipif mysql # not compatible
query III rowsort label-6772
SELECT 28, CASE + SUM ( DISTINCT + 61 ) WHEN - 44 THEN NULL ELSE + 20 * - 9 * 95 * + 52 END AS col2, - + 68 + + - 86 AS col1
----
28
-889200
-154

query II rowsort
SELECT + 76, ( - - 86 ) * 13 AS col2
----
76
1118

query II rowsort
SELECT 56 * + + 82 AS col1, - 67 AS col0
----
4592
-67

query I rowsort
SELECT DISTINCT - 47 + - 17 col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL - - COUNT( * ) + + 52
----
53

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL - - COUNT ( * ) + + 52
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT ALL + + 72 + - - 38 * + MAX( ALL - 15 ) + - COUNT( ALL + 52 ) * - 71 * + + 28
----
1490

skipif mysql # not compatible
query I rowsort label-6777
SELECT ALL + + 72 + - - 38 * + MAX ( ALL - 15 ) + - COUNT ( ALL + 52 ) * - 71 * + + 28
----
1490

query I rowsort
SELECT NULLIF ( + 20, + 30 ) - ( - 36 ) AS col1
----
56

query I rowsort
SELECT DISTINCT - 45 + + - 94
----
-139

onlyif mysql # aggregate syntax: 
query II rowsort label-6780
SELECT - + 51, + 83 - + + 22 + - 12 + + 97 * + 24 - + COUNT( * ) col1
----
-51
2376

skipif mysql # not compatible
query II rowsort label-6780
SELECT - + 51, + 83 - + + 22 + - 12 + + 97 * + 24 - + COUNT ( * ) col1
----
-51
2376

query I rowsort
SELECT ALL - - 43 + + - 51 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT ALL + 54 + + 39 + + COUNT( * ) * CASE - - 47 WHEN + 75 * - 21 THEN - 58 - 18 WHEN + 18 THEN - + 84 ELSE NULL END + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL + 54 + + 39 + + COUNT ( * ) * CASE - - 47 WHEN + 75 * - 21 THEN - 58 - 18 WHEN + 18 THEN - + 84 ELSE NULL END + + 1
----
NULL

query I rowsort
SELECT 60 + - 73 - 15
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-6784
SELECT 66 DIV 7
----
9

skipif mysql # not compatible
query I rowsort label-6784
SELECT 66 / 7
----
9

query I rowsort
SELECT NULLIF ( + + 7, - + 25 ) - - 27
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6786
SELECT ALL COUNT( * ) DIV - MIN( ALL + ( - 14 ) ) * - CASE 35 WHEN - + COALESCE ( - + 81, + 23 ) THEN NULL ELSE - COUNT( * ) END
----
0

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL COUNT ( * ) / - MIN ( ALL + ( - 14 ) ) * - CASE 35 WHEN - + COALESCE ( - + 81, + 23 ) THEN NULL ELSE - COUNT ( * ) END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT 1 * - MAX( ALL - 69 ) * - 42 AS col1
----
-2898

skipif mysql # not compatible
query I rowsort label-6787
SELECT 1 * - MAX ( ALL - 69 ) * - 42 AS col1
----
-2898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT ALL CAST( NULL AS SIGNED ) - - NULLIF ( 17, - + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL CAST ( NULL AS INTEGER ) - - NULLIF ( 17, - + 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL MAX( ALL + ( 85 ) ) * 15
----
1275

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL MAX ( ALL + ( 85 ) ) * 15
----
1275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6790
SELECT 91 - + COUNT( * ) + - - CAST( - 78 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-6790
SELECT 91 - + COUNT ( * ) + - - CAST ( - 78 AS INTEGER )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT COUNT( * ) * - 46 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-6791
SELECT COUNT ( * ) * - 46 AS col2
----
-46

query I rowsort
SELECT 1 + + ( 43 ) * + 70 * - 42 + - + 63 AS col2
----
-126482

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT COALESCE ( - COALESCE ( - - COUNT( - + ( - 76 ) ), 87 ), - 95 ) * + 1 + 64 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6793
SELECT COALESCE ( - COALESCE ( - - COUNT ( - + ( - 76 ) ), 87 ), - 95 ) * + 1 + 64 AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6794
SELECT DISTINCT COUNT( * ) * 83 AS col0, + 69 * + 87
----
83
6003

skipif mysql # not compatible
query II rowsort label-6794
SELECT DISTINCT COUNT ( * ) * 83 AS col0, + 69 * + 87
----
83
6003

query I rowsort
SELECT NULLIF ( 42, - 60 + + 94 ) * - 18 AS col2
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT ALL - NULLIF ( + NULLIF ( COUNT( DISTINCT + + 39 ), + 90 ), - - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL - NULLIF ( + NULLIF ( COUNT ( DISTINCT + + 39 ), + 90 ), - - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6797
SELECT - + 84 DIV NULLIF ( + - ( + 49 ), - 15 * + 53 ) - 39 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6797
SELECT - + 84 / NULLIF ( + - ( + 49 ), - 15 * + 53 ) - 39 AS col2
----
-38

query I rowsort
SELECT DISTINCT - 53 col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6799
SELECT + 39 DIV - - 93, + COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-6799
SELECT + 39 / - - 93, + COUNT ( * ) AS col1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT + + NULLIF ( - - 17, + + COUNT( * ) / - 94 * + + 50 - + 12 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6800
SELECT + + NULLIF ( - - 17, + + COUNT ( * ) / - 94 * + + 50 - + 12 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT + 71 * + 2 + + + MIN( DISTINCT - 33 )
----
109

skipif mysql # not compatible
query I rowsort label-6801
SELECT + 71 * + 2 + + + MIN ( DISTINCT - 33 )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT + 37 * 22 + COUNT( * )
----
815

skipif mysql # not compatible
query I rowsort label-6802
SELECT + 37 * 22 + COUNT ( * )
----
815

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT + - 13 + + - COUNT( ALL 79 )
----
-14

skipif mysql # not compatible
query I rowsort label-6803
SELECT + - 13 + + - COUNT ( ALL 79 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6804
SELECT ALL + CAST( - 66 AS SIGNED ) AS col2, 47 AS col2, - 98 AS col2
----
-66
47
-98

skipif mysql # not compatible
query III rowsort label-6804
SELECT ALL + CAST ( - 66 AS INTEGER ) AS col2, 47 AS col2, - 98 AS col2
----
-66
47
-98

query I rowsort
SELECT ALL + + 3 * + 72 col1
----
216

query I rowsort
SELECT ALL - - 41 + + 74 * - 60 + - 10 AS col2
----
-4409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6807
SELECT + 87 + - 40, 28 - + 57 + + NULLIF ( + COUNT( * ), - CASE 94 WHEN ( COUNT( * ) ) * COUNT( * ) + - COALESCE ( - 19, + 11 * - 3 + - 83 + - 1 / + + 87 ) - + + NULLIF ( + NULLIF ( 94, 17 * 44 ), + 32 * + - COALESCE ( - - ( - 77 ), - 35 ) ) * - 2 * - COALESCE ( - 58, 2 * 70 ) * 80 + CAST( COUNT( * ) + + CAST( NULL AS SIGNED ) AS SIGNED ) THEN - 89 WHEN - COUNT( * ) * COUNT( * ) + 0 THEN 61 + COUNT( + 73 ) WHEN COALESCE ( 77, 54 / 13 ) + COALESCE ( 60, + SUM( - 38 ), 76 ) THEN NULL ELSE NULL END ) * - ( COUNT( * ) ) col1
----
47
-30

skipif mysql # not compatible
query II rowsort label-6807
SELECT + 87 + - 40, 28 - + 57 + + NULLIF ( + COUNT ( * ), - CASE 94 WHEN ( COUNT ( * ) ) * COUNT ( * ) + - COALESCE ( - 19, + 11 * - 3 + - 83 + - 1 / + + 87 ) - + + NULLIF ( + NULLIF ( 94, 17 * 44 ), + 32 * + - COALESCE ( - - ( - 77 ), - 35 ) ) * - 2 * - COALESCE ( - 58, 2 * 70 ) * 80 + CAST ( COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - 89 WHEN - COUNT ( * ) * COUNT ( * ) + 0 THEN 61 + COUNT ( + 73 ) WHEN COALESCE ( 77, 54 / 13 ) + COALESCE ( 60, + SUM ( - 38 ), 76 ) THEN NULL ELSE NULL END ) * - ( COUNT ( * ) ) col1
----
47
-30

query I rowsort
SELECT - 61 + - 35 * - 81 + + 21 * 97
----
4811

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT ALL MIN( DISTINCT 80 )
----
80

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL MIN ( DISTINCT 80 )
----
80

query II rowsort
SELECT 37 AS col2, - 23
----
37
-23

query I rowsort
SELECT 42 * 77 + 13 col0
----
3247

query II rowsort
SELECT 10, 12 col1
----
10
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6813
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), - + 72 / - - 40 + - 54 + CASE 86 WHEN - - CASE + + 1 WHEN - 49 * - 94 + + COUNT( * ) + CAST( NULL AS SIGNED ) * + + 79 THEN - + 37 + COUNT( * ) WHEN + + 88 THEN - COALESCE ( - 56, - 1 ) END * + SUM( ALL + 63 ) + + ( + - 95 ) * 73 + + - 30 + 57 + + - 93 * - + CAST( NULL AS SIGNED ) THEN - 25 + + 27 * ( - AVG ( 62 ) ) + CAST( NULL AS SIGNED ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), - + 72 / - - 40 + - 54 + CASE 86 WHEN - - CASE + + 1 WHEN - 49 * - 94 + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * + + 79 THEN - + 37 + COUNT ( * ) WHEN + + 88 THEN - COALESCE ( - 56, - 1 ) END * + SUM ( ALL + 63 ) + + ( + - 95 ) * 73 + + - 30 + 57 + + - 93 * - + CAST ( NULL AS INTEGER ) THEN - 25 + + 27 * ( - AVG ( 62 ) ) + CAST ( NULL AS INTEGER ) END )
----
NULL

query I rowsort
SELECT ALL + 43 - + 82 AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT - CAST( NULL AS SIGNED ) * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT - CAST ( NULL AS INTEGER ) * - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT ALL MAX( - 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL MAX ( - 81 ) AS col1
----
-81

query I rowsort
SELECT - 46 + + - 26 AS col1
----
-72

query I rowsort
SELECT ALL ( 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT - 22 + COUNT( * ) + - COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-6819
SELECT - 22 + COUNT ( * ) + - COUNT ( * ) AS col1
----
-22

query I rowsort
SELECT - 98 * - 40 * - 11
----
-43120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6821
SELECT ALL + 34 * CAST( + 2 AS SIGNED ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL + 34 * CAST ( + 2 AS INTEGER ) AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6822
SELECT - CAST( NULL AS SIGNED ) + + AVG ( + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT - CAST ( NULL AS INTEGER ) + + AVG ( + 28 )
----
NULL

query I rowsort
SELECT - 86 + + + ( - + 74 )
----
-160

query I rowsort
SELECT + 92 + + + 20 * - 69
----
-1288

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT - ( - + 82 ) - 51 + + + COALESCE ( - 3, - 66 * - MIN( DISTINCT - - 17 ), + + 65 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT - ( - + 82 ) - 51 + + + COALESCE ( - 3, - 66 * - MIN ( DISTINCT - - 17 ), + + 65 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT + 68 + COUNT( * ) - - 46 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-6826
SELECT + 68 + COUNT ( * ) - - 46 AS col1
----
115

query II rowsort
SELECT 34 AS col0, - 40 AS col2
----
34
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6828
SELECT - 56 + - 13 DIV 45 DIV - 14 + - - SUM( ALL + - 79 ) - + 93 + 1 AS col0
----
-227

skipif mysql # not compatible
query I rowsort label-6828
SELECT - 56 + - 13 / 45 / - 14 + - - SUM ( ALL + - 79 ) - + 93 + 1 AS col0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT ALL COALESCE ( 56, - + ( - SUM( DISTINCT - ( 91 ) ) ) + + 63 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL COALESCE ( 56, - + ( - SUM ( DISTINCT - ( 91 ) ) ) + + 63 ) AS col1
----
56

query I rowsort
SELECT - 32 + - + 78 AS col1
----
-110

query I rowsort
SELECT ALL ( - - 30 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL 3 * + COALESCE ( - COUNT( ALL - + 61 ), SUM( - 83 ), + 0 + + - COUNT( * ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL 3 * + COALESCE ( - COUNT ( ALL - + 61 ), SUM ( - 83 ), + 0 + + - COUNT ( * ) ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6833
SELECT + 79 + + COUNT( * ) * + 36 AS col1, ( - COUNT( * ) ) col0
----
115
-1

skipif mysql # not compatible
query II rowsort label-6833
SELECT + 79 + + COUNT ( * ) * + 36 AS col1, ( - COUNT ( * ) ) col0
----
115
-1

query II rowsort
SELECT + - 40 col0, ( 21 ) col2
----
-40
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6835
SELECT ALL + + COUNT( * ) DIV - ( + 93 ) + - + 21 + - 33 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL + + COUNT ( * ) / - ( + 93 ) + - + 21 + - 33 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT DISTINCT + ( 57 ) * + COUNT( * ) + + 58 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-6836
SELECT DISTINCT + ( 57 ) * + COUNT ( * ) + + 58 AS col2
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-6837
SELECT + 6 * 94 * - 10 AS col2, SUM( ALL - 94 ) * - COALESCE ( + ( - 3 ), - 46 ) + - 21
----
-5640
-303

skipif mysql # not compatible
query II rowsort label-6837
SELECT + 6 * 94 * - 10 AS col2, SUM ( ALL - 94 ) * - COALESCE ( + ( - 3 ), - 46 ) + - 21
----
-5640
-303

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT - 46 * 52 - 2 DIV + + 87 + - 42 + 68
----
-2366

skipif mysql # not compatible
query I rowsort label-6838
SELECT - 46 * 52 - 2 / + + 87 + - 42 + 68
----
-2366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT + + CAST( NULL AS SIGNED ) * - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT + + CAST ( NULL AS INTEGER ) * - 78 AS col0
----
NULL

query I rowsort
SELECT ALL + - 64 * + 87
----
-5568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6841
SELECT - 11, + CAST( + 60 AS SIGNED ) * - COUNT( * ) AS col2
----
-11
-60

skipif mysql # not compatible
query II rowsort label-6841
SELECT - 11, + CAST ( + 60 AS INTEGER ) * - COUNT ( * ) AS col2
----
-11
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT + COUNT( * ) + 68
----
69

skipif mysql # not compatible
query I rowsort label-6842
SELECT + COUNT ( * ) + 68
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT DISTINCT SUM( ALL - 8 ) * 11 + - 71 AS col0
----
-159

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT SUM ( ALL - 8 ) * 11 + - 71 AS col0
----
-159

query I rowsort
SELECT + 62 - + 20
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6845
SELECT - CASE + + CAST( NULL AS SIGNED ) WHEN + NULLIF ( + - 1, - + COUNT( * ) ) THEN 80 WHEN + - 43 - COUNT( * ) THEN NULL WHEN + 54 THEN + + 66 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6845
SELECT - CASE + + CAST ( NULL AS INTEGER ) WHEN + NULLIF ( + - 1, - + COUNT ( * ) ) THEN 80 WHEN + - 43 - COUNT ( * ) THEN NULL WHEN + 54 THEN + + 66 END AS col2
----
NULL

query I rowsort
SELECT + ( + - 67 ) - + + 79 AS col2
----
-146

query I rowsort
SELECT ALL - 21 * - - 73
----
-1533

query II rowsort
SELECT + 17 AS col2, + ( - NULLIF ( + 34, 47 ) )
----
17
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT 10 * - MIN( - 84 ) + 71 AS col0
----
911

skipif mysql # not compatible
query I rowsort label-6849
SELECT 10 * - MIN ( - 84 ) + 71 AS col0
----
911

query I rowsort
SELECT DISTINCT - 78 * 28 - 16 AS col0
----
-2200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6851
SELECT ALL + AVG ( ALL 9 ) * + CASE + + COUNT( * ) WHEN + COALESCE ( 41, + - 64 / - NULLIF ( - 80, COUNT( * ) ) ) THEN 18 + + + CAST( NULL AS SIGNED ) * - 33 WHEN 4 + - 17 THEN NULL ELSE NULL END + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL + AVG ( ALL 9 ) * + CASE + + COUNT ( * ) WHEN + COALESCE ( 41, + - 64 / - NULLIF ( - 80, COUNT ( * ) ) ) THEN 18 + + + CAST ( NULL AS INTEGER ) * - 33 WHEN 4 + - 17 THEN NULL ELSE NULL END + 90 AS col2
----
NULL

query I rowsort
SELECT ALL 35 * + 62 AS col0
----
2170

query II rowsort
SELECT DISTINCT ( 91 ), + 49 AS col2
----
91
49

query I rowsort
SELECT - 81 - + 42 col2
----
-123

query II rowsort
SELECT - ( 81 ), 1 * + + 45 AS col2
----
-81
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6856
SELECT + CAST( + 78 AS SIGNED ) + - 45 - - 43 - - + 98 * 29 - 70 + ( + 26 ) * - - CAST( - COUNT( * ) AS SIGNED )
----
2822

skipif mysql # not compatible
query I rowsort label-6856
SELECT + CAST ( + 78 AS INTEGER ) + - 45 - - 43 - - + 98 * 29 - 70 + ( + 26 ) * - - CAST ( - COUNT ( * ) AS INTEGER )
----
2822

onlyif mysql # aggregate syntax: 
query II rowsort label-6857
SELECT ALL COALESCE ( - 13, + SUM( + NULLIF ( 91, + 26 * 28 + + 24 / + 69 / + 52 + - - 7 ) ) * - + CASE - 77 WHEN + 64 THEN 85 END ) AS col1, - COALESCE ( - - COALESCE ( - ( - 97 ), - - 58, + - 15 ), 37, COUNT( * ) )
----
-13
-97

skipif mysql # not compatible
query II rowsort label-6857
SELECT ALL COALESCE ( - 13, + SUM ( + NULLIF ( 91, + 26 * 28 + + 24 / + 69 / + 52 + - - 7 ) ) * - + CASE - 77 WHEN + 64 THEN 85 END ) AS col1, - COALESCE ( - - COALESCE ( - ( - 97 ), - - 58, + - 15 ), 37, COUNT ( * ) )
----
-13
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT - 68 + - - SUM( - 90 ) AS col1
----
-158

skipif mysql # not compatible
query I rowsort label-6858
SELECT - 68 + - - SUM ( - 90 ) AS col1
----
-158

query I rowsort
SELECT ALL ( + + 32 ) AS col1
----
32

query I rowsort
SELECT - 39 * + 50
----
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT ALL - NULLIF ( 34, - + CASE MAX( - NULLIF ( NULLIF ( + + 90, 80 ), + 41 ) ) WHEN - COUNT( * ) THEN NULL ELSE - + 87 END ) * SUM( + + 75 )
----
-2550

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL - NULLIF ( 34, - + CASE MAX ( - NULLIF ( NULLIF ( + + 90, 80 ), + 41 ) ) WHEN - COUNT ( * ) THEN NULL ELSE - + 87 END ) * SUM ( + + 75 )
----
-2550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6862
SELECT ALL CAST( CAST( - 43 AS SIGNED ) AS SIGNED ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL CAST ( CAST ( - 43 AS INTEGER ) AS INTEGER ) AS col2
----
-43

query I rowsort
SELECT DISTINCT - ( - 89 ) * - 25
----
-2225

query I rowsort
SELECT - 91 + - - 62 * 48
----
2885

onlyif mysql # aggregate syntax: 
query II rowsort label-6865
SELECT ALL - 76 * 93 AS col1, + SUM( DISTINCT + 9 ) AS col1
----
-7068
9

skipif mysql # not compatible
query II rowsort label-6865
SELECT ALL - 76 * 93 AS col1, + SUM ( DISTINCT + 9 ) AS col1
----
-7068
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6866
SELECT - 9 * + NULLIF ( COUNT( * ), NULLIF ( + 68, - 65 ) * + COUNT( - + 91 ) ) * - + 42, - 45 AS col2
----
378
-45

skipif mysql # not compatible
query II rowsort label-6866
SELECT - 9 * + NULLIF ( COUNT ( * ), NULLIF ( + 68, - 65 ) * + COUNT ( - + 91 ) ) * - + 42, - 45 AS col2
----
378
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ALL - 4 + - 35 * + + 25 * COUNT( * )
----
-879

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - 4 + - 35 * + + 25 * COUNT ( * )
----
-879

onlyif mysql # aggregate syntax: 
query II rowsort label-6868
SELECT - - 12 + + 23, + MAX( - + 96 ) + + 95 - + ( - + ( 30 ) ) AS col0
----
35
29

skipif mysql # not compatible
query II rowsort label-6868
SELECT - - 12 + + 23, + MAX ( - + 96 ) + + 95 - + ( - + ( 30 ) ) AS col0
----
35
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT - NULLIF ( + - SUM( 16 ), - + 20 + 42 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6869
SELECT - NULLIF ( + - SUM ( 16 ), - + 20 + 42 ) AS col0
----
16

query I rowsort
SELECT DISTINCT + + 4 * - 46 * + + 48 * + ( - 90 )
----
794880

query I rowsort
SELECT ALL - + 41 + 70 * + 13 AS col2
----
869

query I rowsort
SELECT - + 37 + - 29
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6873
SELECT + COUNT( * ) * - + 24 AS col0, + 33
----
-24
33

skipif mysql # not compatible
query II rowsort label-6873
SELECT + COUNT ( * ) * - + 24 AS col0, + 33
----
-24
33

query I rowsort
SELECT DISTINCT + + 12 * 40
----
480

query I rowsort
SELECT ALL - 77 + 52 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT CASE - + 81 WHEN + 74 * 19 + + - 41 THEN NULL WHEN + 68 * - 6 * - 1 - + - COALESCE ( + 33, + 20, + SUM( DISTINCT + 22 ) ) THEN + 93 + - 72 + - 27 + + 76 * 64 + 89 + + - ( - - 33 ) * - 66 + 70 END * + 66 - 66 * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6876
SELECT CASE - + 81 WHEN + 74 * 19 + + - 41 THEN NULL WHEN + 68 * - 6 * - 1 - + - COALESCE ( + 33, + 20, + SUM ( DISTINCT + 22 ) ) THEN + 93 + - 72 + - 27 + + 76 * 64 + 89 + + - ( - - 33 ) * - 66 + 70 END * + 66 - 66 * 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6877
SELECT DISTINCT 5 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT 5 / - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT DISTINCT - - 99 + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT - - 99 + - COUNT ( * )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6879
SELECT ALL - 16 + - + CAST( 36 AS SIGNED ) * + + ( + 89 )
----
-3220

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL - 16 + - + CAST ( 36 AS INTEGER ) * + + ( + 89 )
----
-3220

query I rowsort
SELECT 44 + 40
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6881
SELECT + - 17 * + COALESCE ( - COUNT( - - 19 ), 66 ) + - - 3 + + 31 + NULLIF ( + - 27, + - 84 * 6 * + 64 - + 13 + - + SUM( - 84 ) * - + CASE - 6 WHEN - COUNT( * ) * CAST( NULL AS SIGNED ) * - 50 * - 79 + - 63 THEN + ( COUNT( * ) ) ELSE CASE - 15 WHEN - NULLIF ( - + COUNT( * ), - - 70 * 63 * + - COUNT( * ) ) * - 56 THEN + 80 WHEN MIN( + 92 ) THEN MAX( ALL 82 ) END END )
----
24

skipif mysql # not compatible
query I rowsort label-6881
SELECT + - 17 * + COALESCE ( - COUNT ( - - 19 ), 66 ) + - - 3 + + 31 + NULLIF ( + - 27, + - 84 * 6 * + 64 - + 13 + - + SUM ( - 84 ) * - + CASE - 6 WHEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 50 * - 79 + - 63 THEN + ( COUNT ( * ) ) ELSE CASE - 15 WHEN - NULLIF ( - + COUNT ( * ), - - 70 * 63 * + - COUNT ( * ) ) * - 56 THEN + 80 WHEN MIN ( + 92 ) THEN MAX ( ALL 82 ) END END )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6882
SELECT 34 * - 20 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6882
SELECT 34 * - 20 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT + 60 + + - COUNT( * ) * 43 * 39
----
-1617

skipif mysql # not compatible
query I rowsort label-6883
SELECT + 60 + + - COUNT ( * ) * 43 * 39
----
-1617

onlyif mysql # aggregate syntax: 
query II rowsort label-6884
SELECT ( COALESCE ( + 71, 61 / + 96 ) ) + - - 80 + - + 80 * + ( + 1 ) * + - CASE + + ( - 68 ) WHEN + 1 THEN - 13 END + + COUNT( * ) AS col0, 15 AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-6884
SELECT ( COALESCE ( + 71, 61 / + 96 ) ) + - - 80 + - + 80 * + ( + 1 ) * + - CASE + + ( - 68 ) WHEN + 1 THEN - 13 END + + COUNT ( * ) AS col0, 15 AS col1
----
NULL
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6885
SELECT 80 DIV - 16 + + + 98 * - + COUNT( * ) - - COUNT( * ) + - - 92 - + + 11 * - + 6
----
56

skipif mysql # not compatible
query I rowsort label-6885
SELECT 80 / - 16 + + + 98 * - + COUNT ( * ) - - COUNT ( * ) + - - 92 - + + 11 * - + 6
----
56

query II rowsort
SELECT ALL 12 - 73 * + 74 * + 87 AS col0, ( - 80 ) col2
----
-469962
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT 13 * + + 75 * MIN( ALL + ( + 19 ) ) AS col2
----
18525

skipif mysql # not compatible
query I rowsort label-6887
SELECT 13 * + + 75 * MIN ( ALL + ( + 19 ) ) AS col2
----
18525

query III rowsort
SELECT 43 col1, 26 * 50 AS col1, - 21 * - 75
----
43
1300
1575

onlyif mysql # DIV for integer division: 
query I rowsort label-6889
SELECT 30 DIV - + 86 col2
----
0

skipif mysql # not compatible
query I rowsort label-6889
SELECT 30 / - + 86 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6890
SELECT ALL 81 DIV COALESCE ( - - 39, + + 31 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL 81 / COALESCE ( - - 39, + + 31 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT 1 + 35 + NULLIF ( + 40, - MIN( - 57 ) ) * + 60
----
2436

skipif mysql # not compatible
query I rowsort label-6891
SELECT 1 + 35 + NULLIF ( + 40, - MIN ( - 57 ) ) * + 60
----
2436

query II rowsort
SELECT 59 AS col0, + 0 - - 97 * - 75
----
59
-7275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6893
SELECT CAST( NULL AS SIGNED ) + + + 29 - - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT CAST ( NULL AS INTEGER ) + + + 29 - - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT COUNT( * ) * + 59 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT COUNT ( * ) * + 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT ALL COUNT( * ) * - COALESCE ( NULLIF ( - NULLIF ( + 0, + 42 + + - 98 ), CASE - + ( - + 36 ) WHEN - 93 + - 3 THEN 32 + 54 * COUNT( + + 67 ) * - 32 * - COUNT( * ) / - + 33 * - 14 WHEN 82 + - COUNT( * ) THEN - NULLIF ( 39, + 50 * - - 30 * - + 13 ) END ), - COUNT( * ) ) * + ( + COUNT( - + 6 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL COUNT ( * ) * - COALESCE ( NULLIF ( - NULLIF ( + 0, + 42 + + - 98 ), CASE - + ( - + 36 ) WHEN - 93 + - 3 THEN 32 + 54 * COUNT ( + + 67 ) * - 32 * - COUNT ( * ) / - + 33 * - 14 WHEN 82 + - COUNT ( * ) THEN - NULLIF ( 39, + 50 * - - 30 * - + 13 ) END ), - COUNT ( * ) ) * + ( + COUNT ( - + 6 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6896
SELECT COUNT( * ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6897
SELECT ALL + 8 + CASE COUNT( * ) WHEN + 26 THEN - - ( COUNT( * ) ) * + 22 DIV 58 ELSE + COUNT( * ) END
----
9

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + 8 + CASE COUNT ( * ) WHEN + 26 THEN - - ( COUNT ( * ) ) * + 22 / 58 ELSE + COUNT ( * ) END
----
9

query I rowsort
SELECT DISTINCT 39 + - - 66
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6899
SELECT NULLIF ( - COUNT( * ), - - COUNT( * ) * + 97 + - COUNT( * ) - - + CAST( - 7 AS SIGNED ) ) + + - 57 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-6899
SELECT NULLIF ( - COUNT ( * ), - - COUNT ( * ) * + 97 + - COUNT ( * ) - - + CAST ( - 7 AS INTEGER ) ) + + - 57 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT COUNT( * ) + - NULLIF ( + 29, + 23 / + + 27 + + - 75 )
----
-28

skipif mysql # not compatible
query I rowsort label-6900
SELECT COUNT ( * ) + - NULLIF ( + 29, + 23 / + + 27 + + - 75 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT 55 * - SUM( ALL - + ( - - 28 ) ) * + 98 * + COUNT( * ) col1
----
150920

skipif mysql # not compatible
query I rowsort label-6901
SELECT 55 * - SUM ( ALL - + ( - - 28 ) ) * + 98 * + COUNT ( * ) col1
----
150920

query I rowsort
SELECT - 84 + + 51 * - 78 - + 94 col2
----
-4156

query II rowsort
SELECT - 88 AS col0, 30 AS col2
----
-88
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6904
SELECT 0 + + - 38 DIV + 72 AS col2, CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6904
SELECT 0 + + - 38 / + 72 AS col2, CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT + 50 + - + 1 + + 76 - NULLIF ( - 33, 40 ) AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ALL - COUNT( * ) * + 34 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL - COUNT ( * ) * + 34 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT ALL - 20 + + 56 * + 95 + + COUNT( DISTINCT + 16 ) * 52 AS col2
----
5352

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL - 20 + + 56 * + 95 + + COUNT ( DISTINCT + 16 ) * 52 AS col2
----
5352

query I rowsort
SELECT - ( - + 74 )
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6909
SELECT 28 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT 28 * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6910
SELECT - 5 DIV + 75 + + 70 + 92 + - + 92
----
70

skipif mysql # not compatible
query I rowsort label-6910
SELECT - 5 / + 75 + + 70 + 92 + - + 92
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ALL - - MIN( - + COALESCE ( - + 8, + CASE 56 WHEN 19 * - 92 THEN - + 60 ELSE NULL END ) ) * - 70 + + 69 * + 61 AS col0
----
3649

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL - - MIN ( - + COALESCE ( - + 8, + CASE 56 WHEN 19 * - 92 THEN - + 60 ELSE NULL END ) ) * - 70 + + 69 * + 61 AS col0
----
3649

query I rowsort
SELECT 48 + 54 AS col0
----
102

query I rowsort
SELECT ALL + - 21 - - 82 - + NULLIF ( + ( + - 63 ), - 63 * 13 + - 72 ) AS col1
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6914
SELECT ALL + - COUNT( * ) * + 26 DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL + - COUNT ( * ) * + 26 / - 98 AS col0
----
0

query I rowsort
SELECT ALL - 35 * 19 AS col2
----
-665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6916
SELECT ALL + - 46 / ( - 10 ) / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL + - 46 / ( - 10 ) / + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - 29 - - 20 + - 36
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-6918
SELECT ALL - 78 AS col0, - COUNT( * ) * + - 21 col1
----
-78
21

skipif mysql # not compatible
query II rowsort label-6918
SELECT ALL - 78 AS col0, - COUNT ( * ) * + - 21 col1
----
-78
21

onlyif mysql # aggregate syntax: 
query II rowsort label-6919
SELECT + 17, - COUNT( * ) * 87 * 24 AS col1
----
17
-2088

skipif mysql # not compatible
query II rowsort label-6919
SELECT + 17, - COUNT ( * ) * 87 * 24 AS col1
----
17
-2088

query I rowsort
SELECT ALL - ( - 2 ) col2
----
2

query I rowsort
SELECT ALL - 21 * - + 53 AS col1
----
1113

query I rowsort
SELECT 10 * + - 4
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6923
SELECT 46 + COUNT( DISTINCT + - 76 ) - - COUNT( * ) - + COUNT( * ) * - ( - 6 ) - 2 - + - 9 DIV - MAX( DISTINCT + + 68 ) AS col1, CAST( - 36 AS SIGNED ) * COUNT( * ) AS col2
----
40
-36

skipif mysql # not compatible
query II rowsort label-6923
SELECT 46 + COUNT ( DISTINCT + - 76 ) - - COUNT ( * ) - + COUNT ( * ) * - ( - 6 ) - 2 - + - 9 / - MAX ( DISTINCT + + 68 ) AS col1, CAST ( - 36 AS INTEGER ) * COUNT ( * ) AS col2
----
40
-36

query I rowsort
SELECT DISTINCT 75 + 83 AS col0
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6925
SELECT DISTINCT - 21 + COUNT( * ) + CAST( NULL AS SIGNED ) + 58 + - + COUNT( * ) * - + 53 + + 39 + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT - 21 + COUNT ( * ) + CAST ( NULL AS INTEGER ) + 58 + - + COUNT ( * ) * - + 53 + + 39 + 38
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6926
SELECT DISTINCT - 97 AS col2, 57 + + - COUNT( * )
----
-97
56

skipif mysql # not compatible
query II rowsort label-6926
SELECT DISTINCT - 97 AS col2, 57 + + - COUNT ( * )
----
-97
56

query I rowsort
SELECT DISTINCT 86 + + 12
----
98

query II rowsort
SELECT 63 AS col2, 44
----
63
44

query I rowsort
SELECT 26 * - - 56
----
1456

query I rowsort
SELECT 29 + 19 * 47
----
922

onlyif mysql # aggregate syntax: 
query II rowsort label-6931
SELECT - COUNT( * ) AS col0, 26
----
-1
26

skipif mysql # not compatible
query II rowsort label-6931
SELECT - COUNT ( * ) AS col0, 26
----
-1
26

query I rowsort
SELECT + 79 + + 21 col1
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6933
SELECT DISTINCT 85 + CAST( - - 25 AS SIGNED ) AS col2
----
110

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT 85 + CAST ( - - 25 AS INTEGER ) AS col2
----
110

query II rowsort
SELECT ALL 83, 58 AS col2
----
83
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT DISTINCT - 93 * + COUNT( DISTINCT 14 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT - 93 * + COUNT ( DISTINCT 14 ) AS col1
----
-93

query I rowsort
SELECT DISTINCT 0 + 9 AS col1
----
9

query I rowsort
SELECT + 39 * + - 17 * - 68 AS col2
----
45084

query II rowsort
SELECT - ( 54 ) AS col0, 41 AS col2
----
-54
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6939
SELECT ALL - 91 * - 80 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL - 91 * - 80 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 96, + 17 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT + COUNT( * ) + COUNT( * ) * - + 54
----
-53

skipif mysql # not compatible
query I rowsort label-6941
SELECT + COUNT ( * ) + COUNT ( * ) * - + 54
----
-53

query II rowsort
SELECT ALL + 30 AS col1, 83 col1
----
30
83

onlyif mysql # aggregate syntax: 
query II rowsort label-6943
SELECT ALL + COUNT( * ) - COUNT( * ) + 41 * 8 AS col1, - 48 AS col1
----
328
-48

skipif mysql # not compatible
query II rowsort label-6943
SELECT ALL + COUNT ( * ) - COUNT ( * ) + 41 * 8 AS col1, - 48 AS col1
----
328
-48

query I rowsort
SELECT ALL NULLIF ( - + 22, - 62 * - AVG ( + + 9 ) )
----
-22

query II rowsort
SELECT DISTINCT + 22 AS col1, + 87
----
22
87

query II rowsort
SELECT ALL + + 25 AS col1, - 6 AS col1
----
25
-6

query I rowsort
SELECT DISTINCT + 42 * - ( + ( - 34 ) ) * 0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6948
SELECT ALL + + 8 AS col1, + 50 + + CAST( NULL AS DECIMAL ) AS col2
----
8
NULL

skipif mysql # not compatible
query II rowsort label-6948
SELECT ALL + + 8 AS col1, + 50 + + CAST ( NULL AS REAL ) AS col2
----
8
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6949
SELECT DISTINCT + 14 DIV 14
----
1

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT + 14 / 14
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT - + CAST( NULL AS SIGNED ) + + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT - + CAST ( NULL AS INTEGER ) + + - 50
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6951
SELECT - 0 DIV + - 50
----
0

skipif mysql # not compatible
query I rowsort label-6951
SELECT - 0 / + - 50
----
0

query I rowsort
SELECT ALL + 7 * - 91 * - - ( - 9 )
----
5733

query I rowsort
SELECT ( 77 ) * - COALESCE ( 63, + 16, + - 38 * + ( + + 44 ) * 4 - - 61 * - 43 + + 17 ) + ( 16 ) AS col2
----
-4835

query I rowsort
SELECT NULLIF ( - 4, + 39 ) AS col1
----
-4

query I rowsort
SELECT + ( + + 26 ) AS col0
----
26

query I rowsort
SELECT + 46 + - 37 + - - 94 + - 60 * 95 * - - 69 col0
----
-393197

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT - 38 * CASE 17 WHEN - COUNT( * ) THEN NULL WHEN + CASE 38 WHEN - 97 THEN + 29 * - 4 + - 0 WHEN - COUNT( * ) * - + 70 THEN NULL ELSE NULL END + - + 92 THEN + - 88 ELSE NULL END - - 22 + + + 31 * + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT - 38 * CASE 17 WHEN - COUNT ( * ) THEN NULL WHEN + CASE 38 WHEN - 97 THEN + 29 * - 4 + - 0 WHEN - COUNT ( * ) * - + 70 THEN NULL ELSE NULL END + - + 92 THEN + - 88 ELSE NULL END - - 22 + + + 31 * + - 7 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT - 64 DIV ( + + 41 ) DIV - + 8 col2
----
0

skipif mysql # not compatible
query I rowsort label-6958
SELECT - 64 / ( + + 41 ) / - + 8 col2
----
0

query I rowsort
SELECT NULLIF ( + 75, + 3 + 83 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6960
SELECT - COUNT( * ) DIV + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6960
SELECT - COUNT ( * ) / + 92 AS col0
----
0

query I rowsort
SELECT ALL + 5 * + + 15 + 29 - 88 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT DISTINCT + CASE + 27 WHEN + ( 1 ) THEN NULL WHEN + + 4 THEN 83 - - COUNT( * ) * 30 END / NULLIF ( - ( - + 10 ), 93 ) * 64 - + + 49 * + - 5 + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT + CASE + 27 WHEN + ( 1 ) THEN NULL WHEN + + 4 THEN 83 - - COUNT ( * ) * 30 END / NULLIF ( - ( - + 10 ), 93 ) * 64 - + + 49 * + - 5 + - 62 AS col0
----
NULL

query I rowsort
SELECT - 97 + - 71
----
-168

query I rowsort
SELECT - 56 * - 36
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT - 74 + - COUNT( * ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-6965
SELECT - 74 + - COUNT ( * ) AS col0
----
-75

query I rowsort
SELECT ALL 55 * - 28 * - + ( + 21 ) + ( 56 ) AS col1
----
32396

query I rowsort
SELECT ALL 38 * - 81
----
-3078

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT - COUNT( * ) + + - 10
----
-11

skipif mysql # not compatible
query I rowsort label-6968
SELECT - COUNT ( * ) + + - 10
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6969
SELECT DISTINCT + - NULLIF ( - - 56, + 88 ) - - 10 + + NULLIF ( - 33, - 97 * + COALESCE ( + MIN( DISTINCT 50 ), - - 35 ) * + 91 + - + 97 ) / - CAST( NULL AS SIGNED ) * + + 94 * 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT + - NULLIF ( - - 56, + 88 ) - - 10 + + NULLIF ( - 33, - 97 * + COALESCE ( + MIN ( DISTINCT 50 ), - - 35 ) * + 91 + - + 97 ) / - CAST ( NULL AS INTEGER ) * + + 94 * 58 AS col1
----
NULL

query I rowsort
SELECT - 32 + + - 22 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-6971
SELECT + + 25 * - + 53 AS col2, 3 * + MAX( + 45 ) AS col2
----
-1325
135

skipif mysql # not compatible
query II rowsort label-6971
SELECT + + 25 * - + 53 AS col2, 3 * + MAX ( + 45 ) AS col2
----
-1325
135

onlyif mysql # aggregate syntax: 
query II rowsort label-6972
SELECT ALL + + 55 * - + 14 AS col2, + COUNT( * )
----
-770
1

skipif mysql # not compatible
query II rowsort label-6972
SELECT ALL + + 55 * - + 14 AS col2, + COUNT ( * )
----
-770
1

query I rowsort
SELECT + NULLIF ( 0, + 42 / + 25 ) + 71 * - 7
----
-497

query I rowsort
SELECT + + 17 + + 39 - + NULLIF ( - 81, 84 ) AS col2
----
137

query I rowsort
SELECT ALL - 37 - - 69 col0
----
32

query I rowsort
SELECT ALL ( + + 19 ) AS col0
----
19

query II rowsort
SELECT + + 57 + 81, 59 * + 25 AS col2
----
138
1475

onlyif mysql # DIV for integer division: 
query I rowsort label-6978
SELECT + - 99 DIV - - 9 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6978
SELECT + - 99 / - - 9 AS col2
----
-11

query II rowsort
SELECT ALL - 88 * - + ( 59 ) * + 30 * - + 55 AS col1, 32 - - 53
----
-8566800
85

query I rowsort
SELECT + 48 + ( + 17 ) * - - 75
----
1323

onlyif mysql # DIV for integer division: 
query II rowsort label-6981
SELECT ALL 18 DIV - 35, - 54 AS col0
----
0
-54

skipif mysql # not compatible
query II rowsort label-6981
SELECT ALL 18 / - 35, - 54 AS col0
----
0
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6982
SELECT DISTINCT - MAX( + 14 ) * COALESCE ( + 89, - + CAST( - 31 AS SIGNED ) * + 88 + - 19 ) AS col2
----
-1246

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT - MAX ( + 14 ) * COALESCE ( + 89, - + CAST ( - 31 AS INTEGER ) * + 88 + - 19 ) AS col2
----
-1246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6983
SELECT + 89 * + CAST( + + CAST( + + CASE COUNT( * ) WHEN + ( + + 1 ) / + + 79 * 63 / COUNT( * ) + - 38 THEN NULL WHEN + 58 + 81 THEN + 79 * + - 58 * CAST( + - 91 AS DECIMAL ) - + - AVG ( ALL - 5 ) * 42 * + 38 * + 83 ELSE NULL END AS SIGNED ) AS SIGNED ), - 0 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6983
SELECT + 89 * + CAST ( + + CAST ( + + CASE COUNT ( * ) WHEN + ( + + 1 ) / + + 79 * 63 / COUNT ( * ) + - 38 THEN NULL WHEN + 58 + 81 THEN + 79 * + - 58 * CAST ( + - 91 AS REAL ) - + - AVG ( ALL - 5 ) * 42 * + 38 * + 83 ELSE NULL END AS INTEGER ) AS INTEGER ), - 0 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6984
SELECT DISTINCT + 71 DIV + 12 + + 97 + + + 5 + - COUNT( * ) * + ( + 76 ) * - - 21 col2, 97
----
-1489
97

skipif mysql # not compatible
query II rowsort label-6984
SELECT DISTINCT + 71 / + 12 + + 97 + + + 5 + - COUNT ( * ) * + ( + 76 ) * - - 21 col2, 97
----
-1489
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6985
SELECT CAST( + + 65 AS SIGNED ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6985
SELECT CAST ( + + 65 AS INTEGER ) AS col1
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6986
SELECT + 23 * + ( 52 ) * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6986
SELECT + 23 * + ( 52 ) * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6987
SELECT ALL 71 DIV 17 DIV + SUM( + + 48 ) + 99 DIV + 52 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL 71 / 17 / + SUM ( + + 48 ) + 99 / + 52 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6988
SELECT + CAST( + 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-6988
SELECT + CAST ( + 39 AS INTEGER )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6989
SELECT ALL - 88 DIV COUNT( ALL 80 ) DIV - - COUNT( * ) + 1 * - - 87 * + 57 - - 71 + - - 3 * COUNT( * )
----
4945

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL - 88 / COUNT ( ALL 80 ) / - - COUNT ( * ) + 1 * - - 87 * + 57 - - 71 + - - 3 * COUNT ( * )
----
4945

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT ALL CASE + 99 WHEN 20 / - NULLIF ( - - 69, + + COUNT( * ) * - 6 ) THEN + 71 END / + 64 + + + 53 + + 90 + + 62 + - 59 * + 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL CASE + 99 WHEN 20 / - NULLIF ( - - 69, + + COUNT ( * ) * - 6 ) THEN + 71 END / + 64 + + + 53 + + 90 + + 62 + - 59 * + 47 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6991
SELECT + MAX( - 67 ) * - + 37, + 67 AS col2
----
2479
67

skipif mysql # not compatible
query II rowsort label-6991
SELECT + MAX ( - 67 ) * - + 37, + 67 AS col2
----
2479
67

query I rowsort
SELECT ALL + 49 * - 20
----
-980

onlyif mysql # DIV for integer division: 
query I rowsort label-6993
SELECT 85 DIV - 5 - + 58 * - - 98 AS col1
----
-5701

skipif mysql # not compatible
query I rowsort label-6993
SELECT 85 / - 5 - + 58 * - - 98 AS col1
----
-5701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6994
SELECT CAST( NULL AS SIGNED ) - + 87 - + - 73, - COALESCE ( + 94, 97, - 32, 99 + NULLIF ( 58, - 61 ) - 60 - - + SUM( ( 30 ) ) ) AS col0
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-6994
SELECT CAST ( NULL AS INTEGER ) - + 87 - + - 73, - COALESCE ( + 94, 97, - 32, 99 + NULLIF ( 58, - 61 ) - 60 - - + SUM ( ( 30 ) ) ) AS col0
----
NULL
-94

query I rowsort
SELECT 64 * + + 82
----
5248

query I rowsort
SELECT 59 * - + 77 + - - 13
----
-4530

query II rowsort
SELECT 97 AS col1, - 89 - + 43 AS col1
----
97
-132

query I rowsort
SELECT 54 * - 48
----
-2592

query I rowsort
SELECT 64 - 28
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7000
SELECT - 61 AS col1, COUNT( * )
----
-61
1

skipif mysql # not compatible
query II rowsort label-7000
SELECT - 61 AS col1, COUNT ( * )
----
-61
1

query I rowsort
SELECT - 21 - + 88 AS col2
----
-109

query I rowsort
SELECT ALL - NULLIF ( + - 47, 74 ) * + + 69 AS col0
----
3243

query I rowsort
SELECT - 30 * 3
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT ALL - + 90 DIV - 28
----
3

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - + 90 / - 28
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT COUNT( * ) * + + 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7005
SELECT COUNT ( * ) * + + 91 AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7006
SELECT - + CASE + + 10 WHEN + COUNT( * ) + - 79 + 32 + + AVG ( DISTINCT + 70 ) * + AVG ( - 54 ) * - - 56 / + 70 + COUNT( * ) + - 45 * - 54 - - + 18 - 46 + 53 + + - COUNT( * ) + + - 71 - - - 75 * - ( + - CAST( 19 AS SIGNED ) ) THEN NULL ELSE + CAST( - COUNT( * ) AS SIGNED ) + - 94 * - - ( CASE + 56 WHEN 35 THEN + ( + + CAST( NULL AS DECIMAL ) ) WHEN - 17 THEN - + ( 49 ) ELSE NULL END ) * 24 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7006
SELECT - + CASE + + 10 WHEN + COUNT ( * ) + - 79 + 32 + + AVG ( DISTINCT + 70 ) * + AVG ( - 54 ) * - - 56 / + 70 + COUNT ( * ) + - 45 * - 54 - - + 18 - 46 + 53 + + - COUNT ( * ) + + - 71 - - - 75 * - ( + - CAST ( 19 AS INTEGER ) ) THEN NULL ELSE + CAST ( - COUNT ( * ) AS INTEGER ) + - 94 * - - ( CASE + 56 WHEN 35 THEN + ( + + CAST ( NULL AS REAL ) ) WHEN - 17 THEN - + ( 49 ) ELSE NULL END ) * 24 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7007
SELECT - - 64 AS col0, + CAST( NULL AS SIGNED ) col2
----
64
NULL

skipif mysql # not compatible
query II rowsort label-7007
SELECT - - 64 AS col0, + CAST ( NULL AS INTEGER ) col2
----
64
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7008
SELECT + ( - CASE + 3 WHEN + 33 + 53 + + ( - 50 ) + + - 80 * + - COALESCE ( - CAST( - 66 AS SIGNED ), - 29, ( - + 90 ) ) * - 96 * ( 6 ) + + + 84 THEN - - 90 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT + ( - CASE + 3 WHEN + 33 + 53 + + ( - 50 ) + + - 80 * + - COALESCE ( - CAST ( - 66 AS INTEGER ), - 29, ( - + 90 ) ) * - 96 * ( 6 ) + + + 84 THEN - - 90 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT - - ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7009
SELECT - - ( - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7010
SELECT + ( + CAST( COUNT( * ) AS SIGNED ) ) - 35 * + - 18 AS col1
----
631

skipif mysql # not compatible
query I rowsort label-7010
SELECT + ( + CAST ( COUNT ( * ) AS INTEGER ) ) - 35 * + - 18 AS col1
----
631

query I rowsort
SELECT ALL + 8 * - 88 AS col0
----
-704

query I rowsort
SELECT DISTINCT ( - 74 ) AS col1
----
-74

query II rowsort
SELECT ALL 86 AS col0, - 58 col0
----
86
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7014
SELECT - COUNT( * ) * 65 * + 62 AS col2, 47 - - 59 * - - 20 - + MIN( ALL 86 ) * 37 DIV - 90 + - 25
----
-4030
1237

skipif mysql # not compatible
query II rowsort label-7014
SELECT - COUNT ( * ) * 65 * + 62 AS col2, 47 - - 59 * - - 20 - + MIN ( ALL 86 ) * 37 / - 90 + - 25
----
-4030
1237

query I rowsort
SELECT DISTINCT + + 85 * - 22
----
-1870

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL - 56 + + COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL - 56 + + COUNT ( * ) AS col2
----
-55

query I rowsort
SELECT 13 + 34 * 79 + 63
----
2762

query II rowsort
SELECT 80, + 57 * + 55 AS col0
----
80
3135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7019
SELECT 72 / + COUNT( * ) + + + ( CAST( NULL AS SIGNED ) ) * 68 + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT 72 / + COUNT ( * ) + + + ( CAST ( NULL AS INTEGER ) ) * 68 + + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT + COUNT( * ) + - - 6 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7020
SELECT + COUNT ( * ) + - - 6 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT 14 + + + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-7021
SELECT 14 + + + COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT DISTINCT 52 * + COUNT( * ) * 79
----
4108

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT 52 * + COUNT ( * ) * 79
----
4108

query II rowsort
SELECT ALL ( - 21 ) + ( + 32 ), + 61 + 41 AS col1
----
11
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT - 29 * - SUM( - 88 ) + 56
----
-2496

skipif mysql # not compatible
query I rowsort label-7024
SELECT - 29 * - SUM ( - 88 ) + 56
----
-2496

query I rowsort
SELECT ALL - ( - ( + - 51 ) )
----
-51

query I rowsort
SELECT DISTINCT 16 * 78
----
1248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7027
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT 63 * + 20 + + ( - - 55 ) + - 8
----
1307

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT COUNT( + 87 ) * 13 - + + COALESCE ( + MIN( DISTINCT + 9 ), + NULLIF ( - + 53, 84 * + 26 + - 79 * - CASE 93 WHEN - - 78 THEN - 37 * - + 95 * MAX( DISTINCT - + 35 ) + + - 59 ELSE NULL END ) ) + + + COALESCE ( - + NULLIF ( 18, - + 27 ), 5 + - 44 * - 91, - 26 ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-7029
SELECT COUNT ( + 87 ) * 13 - + + COALESCE ( + MIN ( DISTINCT + 9 ), + NULLIF ( - + 53, 84 * + 26 + - 79 * - CASE 93 WHEN - - 78 THEN - 37 * - + 95 * MAX ( DISTINCT - + 35 ) + + - 59 ELSE NULL END ) ) + + + COALESCE ( - + NULLIF ( 18, - + 27 ), 5 + - 44 * - 91, - 26 ) col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7030
SELECT DISTINCT CAST( - - 96 AS SIGNED ) - - + COUNT( * ) - 44 + + - 55 * + 18 + 28 + 57 + - + 3 * + 0
----
-852

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT CAST ( - - 96 AS INTEGER ) - - + COUNT ( * ) - 44 + + - 55 * + 18 + 28 + 57 + - + 3 * + 0
----
-852

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT + 34 * + 87 * + 44 + + - COUNT( * ) * - COUNT( * ) AS col1
----
130153

skipif mysql # not compatible
query I rowsort label-7031
SELECT + 34 * + 87 * + 44 + + - COUNT ( * ) * - COUNT ( * ) AS col1
----
130153

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT + COUNT( ALL + + 78 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7032
SELECT + COUNT ( ALL + + 78 ) AS col0
----
1

query I rowsort
SELECT ALL 61 * + 92 * + 35 AS col1
----
196420

onlyif mysql # DIV for integer division: 
query I rowsort label-7034
SELECT + 58 DIV + - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7034
SELECT + 58 / + - 60 AS col1
----
0

query I rowsort
SELECT + 28 * + + 89 AS col1
----
2492

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT - 67 + - 87 - + - 54 + COALESCE ( + + 40, - 70 / - + 90 * - 50 + - 27 ) + + CASE + + COUNT( * ) WHEN 13 THEN + - COUNT( * ) END / - 35 * - - 49 / 9 * - CASE + 71 WHEN + 45 / 22 * - - 20 THEN NULL ELSE 30 END * - 50 / - 61 - - 40 * + ( - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7036
SELECT - 67 + - 87 - + - 54 + COALESCE ( + + 40, - 70 / - + 90 * - 50 + - 27 ) + + CASE + + COUNT ( * ) WHEN 13 THEN + - COUNT ( * ) END / - 35 * - - 49 / 9 * - CASE + 71 WHEN + 45 / 22 * - - 20 THEN NULL ELSE 30 END * - 50 / - 61 - - 40 * + ( - 89 )
----
NULL

query I rowsort
SELECT DISTINCT 7 * - - 5
----
35

query I rowsort
SELECT + + 39 * 14 + - 97 AS col0
----
449

query I rowsort
SELECT - 94 * 89
----
-8366

query I rowsort
SELECT DISTINCT - 10 * ( 57 ) AS col0
----
-570

query I rowsort
SELECT + 17 + + - 86 + 16 + - - ( - 34 ) * + 95 col0
----
-3283

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT DISTINCT - 54 DIV - - 87
----
0

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT - 54 / - - 87
----
0

query I rowsort
SELECT + COALESCE ( 63, - + NULLIF ( + + 75, - + 14 * + 75 + - COALESCE ( - - 33, + 73 * - 38, + 76 * - - 43 ) ) ) AS col0
----
63

query I rowsort
SELECT + COALESCE ( - 7, - 84 - + 62 * - - 86, + + 47 ) + 43 - - 41 AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT + CAST( - + 1 AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7045
SELECT + CAST ( - + 1 AS INTEGER ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7046
SELECT - 67 + - MIN( + 53 ) DIV - - 17 AS col0, 56 AS col1
----
-70
56

skipif mysql # not compatible
query II rowsort label-7046
SELECT - 67 + - MIN ( + 53 ) / - - 17 AS col0, 56 AS col1
----
-70
56

query I rowsort
SELECT - ( 47 ) * - 42 col2
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT ALL + - 95 + + COALESCE ( - 14, - MAX( DISTINCT 46 ) + - 78 * - 0, + + 89 ) * + COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL + - 95 + + COALESCE ( - 14, - MAX ( DISTINCT 46 ) + - 78 * - 0, + + 89 ) * + COUNT ( * )
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7049
SELECT - CASE - - NULLIF ( 35, + SUM( - 75 ) ) WHEN + CAST( NULL AS SIGNED ) * 92 + - + 85 * + 60 THEN + COUNT( * ) + 65 + - 82 DIV 64 WHEN - 49 THEN - COUNT( * ) ELSE - CAST( COUNT( * ) AS SIGNED ) END
----
1

skipif mysql # not compatible
query I rowsort label-7049
SELECT - CASE - - NULLIF ( 35, + SUM ( - 75 ) ) WHEN + CAST ( NULL AS INTEGER ) * 92 + - + 85 * + 60 THEN + COUNT ( * ) + 65 + - 82 / 64 WHEN - 49 THEN - COUNT ( * ) ELSE - CAST ( COUNT ( * ) AS INTEGER ) END
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7050
SELECT DISTINCT COUNT( + CAST( 82 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT COUNT ( + CAST ( 82 AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT ALL - 57 + + - ( - + NULLIF ( + 47, - 91 * - 1 * + 91 + 53 + - 7 ) )
----
-10

query I rowsort
SELECT 29 * ( 96 )
----
2784

query I rowsort
SELECT DISTINCT NULLIF ( + CASE - 14 WHEN - 34 * - 82 THEN - 3 ELSE 16 END, + 58 ) AS col2
----
16

query II rowsort
SELECT - 23, 90 + - - 0 AS col1
----
-23
90

query I rowsort
SELECT ALL - ( + 48 ) + 4 AS col1
----
-44

query I rowsort
SELECT 19 * - 23 col0
----
-437

query I rowsort
SELECT COALESCE ( - + 5, + + 11 )
----
-5

query I rowsort
SELECT + 39 + 86 AS col1
----
125

query I rowsort
SELECT - 51 * - 77
----
3927

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT COALESCE ( COUNT( * ), 15, 32 + - - 39 * + COUNT( * ) * + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7060
SELECT COALESCE ( COUNT ( * ), 15, 32 + - - 39 * + COUNT ( * ) * + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT ALL 37 * - 37 - - COUNT( * )
----
-1368

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL 37 * - 37 - - COUNT ( * )
----
-1368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7062
SELECT ALL + CAST( 79 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL + CAST ( 79 AS INTEGER ) AS col1
----
79

query I rowsort
SELECT ALL 97 * - 17 AS col1
----
-1649

query I rowsort
SELECT ALL 15 * + ( + 13 ) AS col1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT DISTINCT + 14 * + COUNT( * ) * - 75 * + 53 col1
----
-55650

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT + 14 * + COUNT ( * ) * - 75 * + 53 col1
----
-55650

query I rowsort
SELECT - 91 * 74
----
-6734

query I rowsort
SELECT ALL 61 * + 60
----
3660

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT - SUM( DISTINCT - + 26 ) - 40
----
-14

skipif mysql # not compatible
query I rowsort label-7068
SELECT - SUM ( DISTINCT - + 26 ) - 40
----
-14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7069
SELECT - 43 + + 14 DIV CAST( 8 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-7069
SELECT - 43 + + 14 / CAST ( 8 AS INTEGER )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-7070
SELECT + 53 AS col1, 8 * 26 + 86 * COUNT( * ) + - + 84 AS col1
----
53
210

skipif mysql # not compatible
query II rowsort label-7070
SELECT + 53 AS col1, 8 * 26 + 86 * COUNT ( * ) + - + 84 AS col1
----
53
210

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT + MAX( - 35 ) * - - 39 * 84 AS col2
----
-114660

skipif mysql # not compatible
query I rowsort label-7071
SELECT + MAX ( - 35 ) * - - 39 * 84 AS col2
----
-114660

query I rowsort
SELECT ALL + - ( + - 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT + MIN( DISTINCT + - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-7073
SELECT + MIN ( DISTINCT + - 87 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7074
SELECT + - 69 * - NULLIF ( 65, - - 24 DIV + ( - CAST( NULL AS SIGNED ) ) + - + 73 + + - 52 ) * - 51 - - ( - + 83 ) * + MAX( - 69 ) DIV + - COUNT( * )
----
-234462

skipif mysql # not compatible
query I rowsort label-7074
SELECT + - 69 * - NULLIF ( 65, - - 24 / + ( - CAST ( NULL AS INTEGER ) ) + - + 73 + + - 52 ) * - 51 - - ( - + 83 ) * + MAX ( - 69 ) / + - COUNT ( * )
----
-234462

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT ALL + MIN( + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL + MIN ( + 24 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7076
SELECT ALL CASE + MIN( ALL - - NULLIF ( + + 92, + 66 + 93 * - 44 ) ) WHEN - 84 * + 38 - - 81 - - 86 THEN NULL WHEN 44 THEN 22 / + 49 WHEN + 37 THEN + MAX( + 83 ) * - 29 / - MIN( DISTINCT + 83 ) ELSE 10 * - 23 + - 21 * CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + 75 * + 98 * COUNT( * ) * 8 - + ( 22 ) END + - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL CASE + MIN ( ALL - - NULLIF ( + + 92, + 66 + 93 * - 44 ) ) WHEN - 84 * + 38 - - 81 - - 86 THEN NULL WHEN 44 THEN 22 / + 49 WHEN + 37 THEN + MAX ( + 83 ) * - 29 / - MIN ( DISTINCT + 83 ) ELSE 10 * - 23 + - 21 * CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + 75 * + 98 * COUNT ( * ) * 8 - + ( 22 ) END + - 39 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7077
SELECT - + 96 AS col1, CAST( NULL AS SIGNED ) * - - 47
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-7077
SELECT - + 96 AS col1, CAST ( NULL AS INTEGER ) * - - 47
----
-96
NULL

query I rowsort
SELECT ALL 25 * + - 18 AS col2
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT ALL - MIN( + 40 ) + + 50
----
10

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL - MIN ( + 40 ) + + 50
----
10

query I rowsort
SELECT + - 68 - - 0 * + 73 AS col1
----
-68

query I rowsort
SELECT - NULLIF ( 94, 3 / - 92 + + 62 ) AS col1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-7082
SELECT DISTINCT + + ( - - 77 ) DIV + - 56 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT + + ( - - 77 ) / + - 56 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT + 81 + - SUM( - + ( + 78 ) ) AS col0
----
159

skipif mysql # not compatible
query I rowsort label-7083
SELECT + 81 + - SUM ( - + ( + 78 ) ) AS col0
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7084
SELECT - MIN( - - 49 ) DIV + 45
----
-1

skipif mysql # not compatible
query I rowsort label-7084
SELECT - MIN ( - - 49 ) / + 45
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7085
SELECT DISTINCT + CAST( NULL AS SIGNED ) / COUNT( ALL - 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / COUNT ( ALL - 73 )
----
NULL

query I rowsort
SELECT + 57 + 61
----
118

query I rowsort
SELECT - 63 * - 34 * + 87 col1
----
186354

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT ALL CASE - + 47 WHEN + - 0 THEN NULL ELSE - + MIN( ALL - 68 ) END AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL CASE - + 47 WHEN + - 0 THEN NULL ELSE - + MIN ( ALL - 68 ) END AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7089
SELECT DISTINCT NULLIF ( - 12, - + CAST( NULL AS SIGNED ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT NULLIF ( - 12, - + CAST ( NULL AS INTEGER ) ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT - 10 + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-7090
SELECT - 10 + COUNT ( * )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7091
SELECT - 27 + ( CAST( NULL AS DECIMAL ) ) - + + 90 + + CAST( NULL AS SIGNED ) / COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT - 27 + ( CAST ( NULL AS REAL ) ) - + + 90 + + CAST ( NULL AS INTEGER ) / COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7092
SELECT + 83 DIV 7 + + 17 * - 36 * + 66 + - 71, 44 col2
----
-40452
44

skipif mysql # not compatible
query II rowsort label-7092
SELECT + 83 / 7 + + 17 * - 36 * + 66 + - 71, 44 col2
----
-40452
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT - SUM( DISTINCT 94 ) + - - 11 + 80 * 78 * + - 10
----
-62483

skipif mysql # not compatible
query I rowsort label-7093
SELECT - SUM ( DISTINCT 94 ) + - - 11 + 80 * 78 * + - 10
----
-62483

query I rowsort
SELECT ALL - 27 * + 23
----
-621

query I rowsort
SELECT + 91 * - - 53
----
4823

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7096
SELECT + COUNT( * ) DIV + - 2 + 46 * - - 64
----
2944

skipif mysql # not compatible
query I rowsort label-7096
SELECT + COUNT ( * ) / + - 2 + 46 * - - 64
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT - MIN( ALL - 92 ) * + 69
----
6348

skipif mysql # not compatible
query I rowsort label-7097
SELECT - MIN ( ALL - 92 ) * + 69
----
6348

query I rowsort
SELECT - ( - 67 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL - 73 * + - COUNT( * ) + - - 41 + + 25
----
139

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL - 73 * + - COUNT ( * ) + - - 41 + + 25
----
139

query I rowsort
SELECT DISTINCT + 23 * + + 59 * - 76 + 7
----
-103125

query I rowsort
SELECT ALL 29 * 73
----
2117

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT + 99 * + 87 + 26 * + CASE + - 6 WHEN + - 27 / + - 43 THEN + SUM( - 25 ) END * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7102
SELECT + 99 * + 87 + 26 * + CASE + - 6 WHEN + - 27 / + - 43 THEN + SUM ( - 25 ) END * - 22
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7103
SELECT ALL NULLIF ( 13, + 1 ) * + ( 97 ) + - - MAX( + + 88 ) DIV 65 * 14 * + + 78 AS col2
----
2353

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL NULLIF ( 13, + 1 ) * + ( 97 ) + - - MAX ( + + 88 ) / 65 * 14 * + + 78 AS col2
----
2353

query II rowsort
SELECT + 55 AS col0, + 94 col0
----
55
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7105
SELECT + + 34 AS col2, 72 - - - SUM( ALL 67 ) DIV + - CASE WHEN NOT - COUNT( * ) BETWEEN + 15 AND + - 92 THEN + 30 END AS col0
----
34
74

skipif mysql # not compatible
query II rowsort label-7105
SELECT + + 34 AS col2, 72 - - - SUM ( ALL 67 ) / + - CASE WHEN NOT - COUNT ( * ) BETWEEN + 15 AND + - 92 THEN + 30 END AS col0
----
34
74

query I rowsort
SELECT ALL 96 * - 6
----
-576

query II rowsort
SELECT + 55 AS col1, 79 + - 46 + + 37
----
55
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT ALL + 86 * - - COUNT( * ) * + ( - + ( 99 ) ) * COUNT( 32 ) + - 98
----
-8612

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL + 86 * - - COUNT ( * ) * + ( - + ( 99 ) ) * COUNT ( 32 ) + - 98
----
-8612

query II rowsort
SELECT DISTINCT - 85 col2, + 12 * - 19 AS col0
----
-85
-228

query II rowsort
SELECT 74 AS col1, - 29 + - 49 col1
----
74
-78

query II rowsort
SELECT ALL 1, - NULLIF ( - 67, ( - 21 ) ) * + 59 + + + 68 AS col1
----
1
4021

query I rowsort
SELECT + 15 + 99 - - - CASE - + 16 WHEN + 87 THEN - ( - 53 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + - 64 * + - CASE + - 50 WHEN + 66 THEN - NULLIF ( - 60, 69 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7114
SELECT + ( - - 63 ) + - 20 + + ( - CAST( + - 81 AS SIGNED ) ) + ( + - COUNT( * ) ) DIV + COUNT( * ) + 47
----
170

skipif mysql # not compatible
query I rowsort label-7114
SELECT + ( - - 63 ) + - 20 + + ( - CAST ( + - 81 AS INTEGER ) ) + ( + - COUNT ( * ) ) / + COUNT ( * ) + 47
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-7115
SELECT ALL - - 78 * + + 55 - + + 88 + + 99 DIV + 96 col0
----
4203

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL - - 78 * + + 55 - + + 88 + + 99 / + 96 col0
----
4203

query I rowsort
SELECT NULLIF ( 5, - 2 * + 54 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT 26 + - COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7117
SELECT 26 + - COUNT ( * ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT ( + + SUM( 42 ) ) * - - 90
----
3780

skipif mysql # not compatible
query I rowsort label-7118
SELECT ( + + SUM ( 42 ) ) * - - 90
----
3780

query I rowsort
SELECT ALL ( - 23 ) * + 2 + - - 92 AS col1
----
46

query I rowsort
SELECT DISTINCT 87 * - 39 * 24
----
-81432

query I rowsort
SELECT ( - 63 ) * + 76 * + 65 AS col0
----
-311220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7122
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) * SUM( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * SUM ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7123
SELECT 80 DIV - - 48 AS col1, 13 * 26
----
1
338

skipif mysql # not compatible
query II rowsort label-7123
SELECT 80 / - - 48 AS col1, 13 * 26
----
1
338

query II rowsort
SELECT ALL 38 + 83 AS col2, 45
----
121
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7125
SELECT CAST( - COUNT( * ) AS SIGNED ) * + - 59 * - 15
----
-885

skipif mysql # not compatible
query I rowsort label-7125
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + - 59 * - 15
----
-885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7126
SELECT DISTINCT - 22 + - ( + + 31 ) + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT - 22 + - ( + + 31 ) + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT COUNT( DISTINCT + + 8 ) + + 13
----
14

skipif mysql # not compatible
query I rowsort label-7127
SELECT COUNT ( DISTINCT + + 8 ) + + 13
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7128
SELECT ALL - 89 + + 38 DIV + 33 * + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL - 89 + + 38 / + 33 * + COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7129
SELECT DISTINCT + 31 * - COUNT( * ) * - 6 AS col0, - 50 DIV 4 * + ( + ( + 82 ) ) AS col1
----
186
-984

skipif mysql # not compatible
query II rowsort label-7129
SELECT DISTINCT + 31 * - COUNT ( * ) * - 6 AS col0, - 50 / 4 * + ( + ( + 82 ) ) AS col1
----
186
-984

query II rowsort
SELECT 3 + - 63, + 66 AS col0
----
-60
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7131
SELECT ALL - + CAST( - + NULLIF ( + 91, + - 65 ) AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL - + CAST ( - + NULLIF ( + 91, + - 65 ) AS INTEGER )
----
91

query I rowsort
SELECT DISTINCT - 39 + + - 21 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT + 54 + - ( 5 ) + - MAX( ALL + 67 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-7133
SELECT + 54 + - ( 5 ) + - MAX ( ALL + 67 ) AS col2
----
-18

query I rowsort
SELECT - 72 * - - 25 * - 34 * - + 73 + 26 - - 72 AS col0
----
-4467502

query I rowsort
SELECT DISTINCT - + 64 + - - NULLIF ( - - 24, + 84 ) AS col2
----
-40

query I rowsort
SELECT DISTINCT + - 51 * + - 41 AS col2
----
2091

query I rowsort
SELECT DISTINCT - ( - 55 ) AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7138
SELECT DISTINCT - - AVG ( - + 17 ) - + CAST( NULL AS SIGNED ) * 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT - - AVG ( - + 17 ) - + CAST ( NULL AS INTEGER ) * 54 AS col2
----
NULL

query II rowsort
SELECT ALL + - 21 - + 10 AS col2, + 88 * + 61 AS col0
----
-31
5368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7140
SELECT DISTINCT - - CASE + 28 WHEN + 72 * - COALESCE ( - COUNT( * ), + + 93 + COUNT( * ), - + CAST( NULL AS SIGNED ), - + SUM( DISTINCT + + 35 ) ) THEN NULL WHEN 44 THEN + 30 ELSE NULL END * - + SUM( ALL + + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT - - CASE + 28 WHEN + 72 * - COALESCE ( - COUNT ( * ), + + 93 + COUNT ( * ), - + CAST ( NULL AS INTEGER ), - + SUM ( DISTINCT + + 35 ) ) THEN NULL WHEN 44 THEN + 30 ELSE NULL END * - + SUM ( ALL + + 67 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7141
SELECT - 70 DIV - COUNT( 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7141
SELECT - 70 / - COUNT ( 70 ) AS col2
----
70

query I rowsort
SELECT 41 * + 57
----
2337

query I rowsort
SELECT ALL - 21 * 23
----
-483

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7144
SELECT - 11 AS col2, 7 + - COALESCE ( - 32, COALESCE ( + + CAST( - 65 AS SIGNED ), 86 + ( - 43 ) * - 89, + 15 ) )
----
-11
39

skipif mysql # not compatible
query II rowsort label-7144
SELECT - 11 AS col2, 7 + - COALESCE ( - 32, COALESCE ( + + CAST ( - 65 AS INTEGER ), 86 + ( - 43 ) * - 89, + 15 ) )
----
-11
39

onlyif mysql # DIV for integer division: 
query II rowsort label-7145
SELECT ALL 20 AS col0, + 29 DIV + 35
----
20
0

skipif mysql # not compatible
query II rowsort label-7145
SELECT ALL 20 AS col0, + 29 / + 35
----
20
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7146
SELECT COUNT( ALL CAST( NULL AS SIGNED ) ) * - 53 * - + ( + 3 )
----
0

skipif mysql # not compatible
query I rowsort label-7146
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) ) * - 53 * - + ( + 3 )
----
0

query II rowsort
SELECT - 77 AS col1, + NULLIF ( + 19, + 15 )
----
-77
19

query I rowsort
SELECT 44 + - 33 col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT COUNT( * ) * + + 3 * + - 94 AS col0
----
-282

skipif mysql # not compatible
query I rowsort label-7149
SELECT COUNT ( * ) * + + 3 * + - 94 AS col0
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-7150
SELECT ( + 33 ) * - 15 * 0 DIV + + 85
----
0

skipif mysql # not compatible
query I rowsort label-7150
SELECT ( + 33 ) * - 15 * 0 / + + 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT SUM( DISTINCT - 17 ) + + - 21 + + 70 * - 17
----
-1228

skipif mysql # not compatible
query I rowsort label-7151
SELECT SUM ( DISTINCT - 17 ) + + - 21 + + 70 * - 17
----
-1228

query II rowsort
SELECT 81 col0, 16 AS col0
----
81
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL 39 + + + SUM( - 53 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL 39 + + + SUM ( - 53 ) AS col0
----
-14

query I rowsort
SELECT 63 + - - 57
----
120

query I rowsort
SELECT ( - + 47 ) + + 44
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT ALL COALESCE ( 47, 67 - + 2 ) + - + 24 + SUM( - 73 ) + - - NULLIF ( - ( - 63 ), - 55 ) * + 24 * + COUNT( - 99 ) * + 12
----
18094

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL COALESCE ( 47, 67 - + 2 ) + - + 24 + SUM ( - 73 ) + - - NULLIF ( - ( - 63 ), - 55 ) * + 24 * + COUNT ( - 99 ) * + 12
----
18094

query I rowsort
SELECT ALL 44 * - 40
----
-1760

query I rowsort
SELECT ALL 3 + 4 AS col0
----
7

query I rowsort
SELECT ALL + 83 * 16 + 37
----
1365

query I rowsort
SELECT ALL 96 * - 48 AS col1
----
-4608

query I rowsort
SELECT 38 + + 15 col2
----
53

query I rowsort
SELECT + - ( + - 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT + COUNT( + + 53 ) * + 50 * + 59 + - 80 * + - MIN( + 63 ) * + - 44 * + 69 - + - 94
----
-15298396

skipif mysql # not compatible
query I rowsort label-7163
SELECT + COUNT ( + + 53 ) * + 50 * + 59 + - 80 * + - MIN ( + 63 ) * + - 44 * + 69 - + - 94
----
-15298396

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7164
SELECT 71 * 31 DIV - + COUNT( * ) col2, + COUNT( * ) DIV + 51 AS col0
----
-2201
0

skipif mysql # not compatible
query II rowsort label-7164
SELECT 71 * 31 / - + COUNT ( * ) col2, + COUNT ( * ) / + 51 AS col0
----
-2201
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT ALL - + SUM( ALL 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL - + SUM ( ALL 47 ) AS col2
----
-47

query II rowsort
SELECT NULLIF ( + 93, + ( + ( - + 74 ) ) ) * - 0, - 37 AS col2
----
0
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7167
SELECT NULLIF ( + + 88, + COUNT( * ) ) AS col2, - 94 AS col1
----
88
-94

skipif mysql # not compatible
query II rowsort label-7167
SELECT NULLIF ( + + 88, + COUNT ( * ) ) AS col2, - 94 AS col1
----
88
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7168
SELECT ALL - - COUNT( * ), + 76 + 79 + - - 34 + 92 / AVG ( 91 ) * + 96 * 36 * ( - CASE - CAST( NULL AS SIGNED ) WHEN - 66 THEN - 48 + + COUNT( * ) WHEN + + COUNT( * ) THEN 2 + 5 * 47 / 9 ELSE NULL END ) * COUNT( 40 ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7168
SELECT ALL - - COUNT ( * ), + 76 + 79 + - - 34 + 92 / AVG ( 91 ) * + 96 * 36 * ( - CASE - CAST ( NULL AS INTEGER ) WHEN - 66 THEN - 48 + + COUNT ( * ) WHEN + + COUNT ( * ) THEN 2 + 5 * 47 / 9 ELSE NULL END ) * COUNT ( 40 ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT ALL + 86 * COUNT( * ) * - 22 AS col0
----
-1892

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL + 86 * COUNT ( * ) * - 22 AS col0
----
-1892

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT + 84 + - ( - - SUM( + 72 ) )
----
12

skipif mysql # not compatible
query I rowsort label-7170
SELECT + 84 + - ( - - SUM ( + 72 ) )
----
12

query I rowsort
SELECT DISTINCT - 75 * + 99 AS col1
----
-7425

onlyif mysql # aggregate syntax: 
query II rowsort label-7172
SELECT + - ( + SUM( 56 ) ), - ( 78 ) * - + COUNT( * ) AS col2
----
-56
78

skipif mysql # not compatible
query II rowsort label-7172
SELECT + - ( + SUM ( 56 ) ), - ( 78 ) * - + COUNT ( * ) AS col2
----
-56
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT + - 36 * - 24 + + COUNT( * ) AS col1
----
865

skipif mysql # not compatible
query I rowsort label-7173
SELECT + - 36 * - 24 + + COUNT ( * ) AS col1
----
865

query I rowsort
SELECT ALL + 25 * - ( - 17 )
----
425

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT + MAX( - + 25 ) + + 93 * + 37 * - - 84
----
289019

skipif mysql # not compatible
query I rowsort label-7175
SELECT + MAX ( - + 25 ) + + 93 * + 37 * - - 84
----
289019

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7176
SELECT - + NULLIF ( + 55, + + 38 ) * + - COUNT( * ) - - 36 + + - ( - 95 ) * MIN( ALL + COALESCE ( + 51, 1 DIV + 71 ) ) + 91 - + 47 + - - 26 + 23
----
5029

skipif mysql # not compatible
query I rowsort label-7176
SELECT - + NULLIF ( + 55, + + 38 ) * + - COUNT ( * ) - - 36 + + - ( - 95 ) * MIN ( ALL + COALESCE ( + 51, 1 / + 71 ) ) + 91 - + 47 + - - 26 + 23
----
5029

query I rowsort
SELECT + 64 + - + 1 AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7178
SELECT - 33 - CAST( + 32 AS SIGNED ), ( 18 ) AS col1
----
-65
18

skipif mysql # not compatible
query II rowsort label-7178
SELECT - 33 - CAST ( + 32 AS INTEGER ), ( 18 ) AS col1
----
-65
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7179
SELECT - - 81 / + 94 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT - - 81 / + 94 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 77 * + - 50 AS col0
----
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT ALL ( - + COUNT( * ) ) * 49
----
-49

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL ( - + COUNT ( * ) ) * 49
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-7182
SELECT DISTINCT - 86 DIV - + 97
----
0

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT - 86 / - + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ALL - MIN( ALL + 33 ) * 76 * - SUM( + 24 ) * - 26
----
-1564992

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL - MIN ( ALL + 33 ) * 76 * - SUM ( + 24 ) * - 26
----
-1564992

query I rowsort
SELECT ALL - 68 + + 58 col2
----
-10

query I rowsort
SELECT - 68 * 9 * - 78 AS col0
----
47736

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT DISTINCT - SUM( DISTINCT + + 84 ) + 5 + - 49 * - MIN( ALL - 96 ) - + + NULLIF ( + 64, - 94 )
----
-4847

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT - SUM ( DISTINCT + + 84 ) + 5 + - 49 * - MIN ( ALL - 96 ) - + + NULLIF ( + 64, - 94 )
----
-4847

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7187
SELECT - COUNT( * ) DIV - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7187
SELECT - COUNT ( * ) / - 49 AS col0
----
0

query I rowsort
SELECT ALL - 69 + + 59 - - + 97
----
87

query I rowsort
SELECT DISTINCT 50 + + 27 + 55
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7190
SELECT DISTINCT - 51 + - CAST( - + 92 AS SIGNED ) + + + MAX( - 89 )
----
-48

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT - 51 + - CAST ( - + 92 AS INTEGER ) + + + MAX ( - 89 )
----
-48

query I rowsort
SELECT DISTINCT 44 + - 60 + + + 90 + 85 * COALESCE ( + + 89, + - 59 + + 47 )
----
7639

onlyif mysql # aggregate syntax: 
query II rowsort label-7192
SELECT - MIN( DISTINCT 82 ) AS col2, + 7
----
-82
7

skipif mysql # not compatible
query II rowsort label-7192
SELECT - MIN ( DISTINCT 82 ) AS col2, + 7
----
-82
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT ALL + MAX( ALL + COALESCE ( + ( + + 69 ), - - 4, + 39 + + 98 ) ) + 33 + - 66
----
36

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL + MAX ( ALL + COALESCE ( + ( + + 69 ), - - 4, + 39 + + 98 ) ) + 33 + - 66
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7194
SELECT - 23 DIV - - 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7194
SELECT - 23 / - - 26 AS col0
----
0

query I rowsort
SELECT COALESCE ( - 19, - + 40, + + ( - + 8 ) * + - 73 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-7196
SELECT ALL - 45 * 77 + + 56 - COUNT( * ) AS col0, - 49 * + 41 AS col0
----
-3410
-2009

skipif mysql # not compatible
query II rowsort label-7196
SELECT ALL - 45 * 77 + + 56 - COUNT ( * ) AS col0, - 49 * + 41 AS col0
----
-3410
-2009

query I rowsort
SELECT DISTINCT 80 * + 91 AS col1
----
7280

query I rowsort
SELECT ALL - 37 * - 18 * - + 28 AS col2
----
-18648

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT DISTINCT - ( - SUM( DISTINCT + 17 ) ) * 6 - + + 22 * + 34 AS col1
----
-646

skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT - ( - SUM ( DISTINCT + 17 ) ) * 6 - + + 22 * + 34 AS col1
----
-646

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT ALL + NULLIF ( - + 30, + 32 * COUNT( ALL + 35 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL + NULLIF ( - + 30, + 32 * COUNT ( ALL + 35 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT + SUM( 37 ) * - 87 AS col2
----
-3219

skipif mysql # not compatible
query I rowsort label-7201
SELECT + SUM ( 37 ) * - 87 AS col2
----
-3219

onlyif mysql # aggregate syntax: 
query II rowsort label-7202
SELECT + COUNT( * ) * - ( + + SUM( + 14 ) ), 33 AS col0
----
-14
33

skipif mysql # not compatible
query II rowsort label-7202
SELECT + COUNT ( * ) * - ( + + SUM ( + 14 ) ), 33 AS col0
----
-14
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT - 22 - - MAX( DISTINCT + + 17 )
----
-5

skipif mysql # not compatible
query I rowsort label-7203
SELECT - 22 - - MAX ( DISTINCT + + 17 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7204
SELECT + 61 DIV - + ( - 63 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7204
SELECT + 61 / - + ( - 63 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT + MAX( - - 43 ) * 70 AS col1
----
3010

skipif mysql # not compatible
query I rowsort label-7205
SELECT + MAX ( - - 43 ) * 70 AS col1
----
3010

query I rowsort
SELECT CASE + - 51 WHEN - 49 / + + 66 - - 68 THEN - + 79 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7207
SELECT + CAST( NULLIF ( + 81, + 79 * 19 - - ( 21 ) + 78 - + 31 ) AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-7207
SELECT + CAST ( NULLIF ( + 81, + 79 * 19 - - ( 21 ) + 78 - + 31 ) AS INTEGER )
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-7208
SELECT ALL 69 * 94 DIV + 57 AS col2, 74
----
113
74

skipif mysql # not compatible
query II rowsort label-7208
SELECT ALL 69 * 94 / + 57 AS col2, 74
----
113
74

query I rowsort
SELECT DISTINCT 42 * - - 56 + - + 84 * 60
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT + 93 - 8 + SUM( DISTINCT + 58 ) AS col2
----
143

skipif mysql # not compatible
query I rowsort label-7210
SELECT + 93 - 8 + SUM ( DISTINCT + 58 ) AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT ALL 17 * + COUNT( * ) + + + MIN( 24 )
----
41

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL 17 * + COUNT ( * ) + + + MIN ( 24 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7212
SELECT + 29 * - - COUNT( * ) * - 42 * CAST( NULL AS SIGNED ) - + MAX( 61 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7212
SELECT + 29 * - - COUNT ( * ) * - 42 * CAST ( NULL AS INTEGER ) - + MAX ( 61 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT MAX( ALL + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-7213
SELECT MAX ( ALL + 35 )
----
35

query II rowsort
SELECT - 27 AS col0, 53 AS col1
----
-27
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7215
SELECT + 45 * + 63 * - MAX( + + 99 ) * + 28 AS col0, - 70
----
-7858620
-70

skipif mysql # not compatible
query II rowsort label-7215
SELECT + 45 * + 63 * - MAX ( + + 99 ) * + 28 AS col0, - 70
----
-7858620
-70

query I rowsort
SELECT ALL 27 + + + 93 col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT DISTINCT 86 + + CASE + 1 WHEN - 75 * - + 29 * - COUNT( ( - - 25 ) ) THEN + 38 + - 32 * + 93 + - 50 + - 91 * - COALESCE ( - 57, + - COUNT( * ) ) / 50 * + + COUNT( * ) + 63 END + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT 86 + + CASE + 1 WHEN - 75 * - + 29 * - COUNT ( ( - - 25 ) ) THEN + 38 + - 32 * + 93 + - 50 + - 91 * - COALESCE ( - 57, + - COUNT ( * ) ) / 50 * + + COUNT ( * ) + 63 END + + 81
----
NULL

query I rowsort
SELECT ALL - 37 + + 28 AS col0
----
-9

query I rowsort
SELECT ALL NULLIF ( - + 28, - - 8 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT ALL CAST( ( - 24 ) AS SIGNED ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL CAST ( ( - 24 ) AS INTEGER ) AS col1
----
-24

query I rowsort
SELECT DISTINCT ( - 24 )
----
-24

query I rowsort
SELECT - 85 * - - 6 AS col0
----
-510

query I rowsort
SELECT - 55 + - NULLIF ( NULLIF ( + + 6, - 69 * + + 87 + + ( - 51 ) * 84 ), + + 4 ) AS col1
----
-61

query I rowsort
SELECT - - 5 * + + 46 AS col1
----
230

query I rowsort
SELECT DISTINCT + 99 * - 33 * - 92 + - 63 AS col0
----
300501

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL - COUNT( * ) * + COALESCE ( COUNT( * ), + 99 * - + 95 - - 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL - COUNT ( * ) * + COALESCE ( COUNT ( * ), + 99 * - + 95 - - 42 )
----
-1

query I rowsort
SELECT - + 30 * + - 28 AS col0
----
840

query I rowsort
SELECT DISTINCT - 8 * 86
----
-688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7229
SELECT - CASE - COUNT( - + 58 ) WHEN + + 35 THEN NULL WHEN + 49 * + + COUNT( * ) THEN - 63 + - 73 - - 88 ELSE + 40 END / ( 99 ) * + 59 + - 48 * - CAST( NULL AS SIGNED ) - + + CAST( - - 79 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7229
SELECT - CASE - COUNT ( - + 58 ) WHEN + + 35 THEN NULL WHEN + 49 * + + COUNT ( * ) THEN - 63 + - 73 - - 88 ELSE + 40 END / ( 99 ) * + 59 + - 48 * - CAST ( NULL AS INTEGER ) - + + CAST ( - - 79 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7230
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0, - 83 * - 53
----
NULL
4399

skipif mysql # not compatible
query II rowsort label-7230
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0, - 83 * - 53
----
NULL
4399

query I rowsort
SELECT DISTINCT - + ( + NULLIF ( 63, + ( 51 ) ) ) AS col2
----
-63

query I rowsort
SELECT + 32 * + 84 + 6 AS col1
----
2694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7233
SELECT + - 69 * - + 3 * + CASE + 24 WHEN + + 37 THEN - 14 WHEN + COUNT( * ) + 53 / + COUNT( * ) + + 27 + + 86 THEN 14 - - 90 ELSE - - 38 + + 94 + - COUNT( * ) END * 54 + NULLIF ( + + 87, + 9 ) / 21 * + ( - COUNT( * ) ) + - 7 + CAST( + + CASE - ( - 56 ) WHEN + 22 THEN - 58 * - COUNT( * ) - AVG ( DISTINCT - + 45 ) WHEN 7 THEN NULL END AS SIGNED ) + + 0 AS col0, + MIN( - - 24 ) + + 64 col2
----
NULL
88

skipif mysql # not compatible
query II rowsort label-7233
SELECT + - 69 * - + 3 * + CASE + 24 WHEN + + 37 THEN - 14 WHEN + COUNT ( * ) + 53 / + COUNT ( * ) + + 27 + + 86 THEN 14 - - 90 ELSE - - 38 + + 94 + - COUNT ( * ) END * 54 + NULLIF ( + + 87, + 9 ) / 21 * + ( - COUNT ( * ) ) + - 7 + CAST ( + + CASE - ( - 56 ) WHEN + 22 THEN - 58 * - COUNT ( * ) - AVG ( DISTINCT - + 45 ) WHEN 7 THEN NULL END AS INTEGER ) + + 0 AS col0, + MIN ( - - 24 ) + + 64 col2
----
NULL
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7234
SELECT ALL - COUNT( * ) AS col0, - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7234
SELECT ALL - COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT ALL + 84 + + + 61
----
145

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7236
SELECT + + ( + + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7236
SELECT + + ( + + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7237
SELECT SUM( + 74 ) * 51 + - COALESCE ( + + 75, + + 53, CASE - 5 WHEN COALESCE ( 97, + + 95 ) * 64 * + - 91 * + 27 + 2 THEN + ( - + 33 ) * + 86 WHEN - COUNT( * ) * - 38 THEN - CASE MAX( 73 ) WHEN 75 THEN - - 34 END END, + ( - NULLIF ( - 35, + + 41 * + 18 ) ) + - - CASE + CAST( + 71 AS SIGNED ) WHEN 34 * + SUM( - 59 ) + + NULLIF ( + 30, + AVG ( + + 96 ) ) * - CAST( - 70 AS DECIMAL ) * - - 0 + + 75 THEN MAX( ALL 67 ) * COALESCE ( - 33 + + 68, 13 * - 4 + - 53, SUM( - 96 ) + 27 ) - - MIN( ALL + 58 + - 76 ) WHEN CAST( NULL AS DECIMAL ) * - 59 THEN - ( - 43 ) - 25 ELSE NULL END - 75 ) + + 17
----
3716

skipif mysql # not compatible
query I rowsort label-7237
SELECT SUM ( + 74 ) * 51 + - COALESCE ( + + 75, + + 53, CASE - 5 WHEN COALESCE ( 97, + + 95 ) * 64 * + - 91 * + 27 + 2 THEN + ( - + 33 ) * + 86 WHEN - COUNT ( * ) * - 38 THEN - CASE MAX ( 73 ) WHEN 75 THEN - - 34 END END, + ( - NULLIF ( - 35, + + 41 * + 18 ) ) + - - CASE + CAST ( + 71 AS INTEGER ) WHEN 34 * + SUM ( - 59 ) + + NULLIF ( + 30, + AVG ( + + 96 ) ) * - CAST ( - 70 AS REAL ) * - - 0 + + 75 THEN MAX ( ALL 67 ) * COALESCE ( - 33 + + 68, 13 * - 4 + - 53, SUM ( - 96 ) + 27 ) - - MIN ( ALL + 58 + - 76 ) WHEN CAST ( NULL AS REAL ) * - 59 THEN - ( - 43 ) - 25 ELSE NULL END - 75 ) + + 17
----
3716

query I rowsort
SELECT DISTINCT 28 + 19 + - - 90 AS col0
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7239
SELECT ALL 87 + + + 37 + ( 33 ) - - CAST( NULL AS SIGNED ) - + 9 * + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL 87 + + + 37 + ( 33 ) - - CAST ( NULL AS INTEGER ) - + 9 * + 59 AS col0
----
NULL

query II rowsort
SELECT 48, 12 + - 84 AS col2
----
48
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7241
SELECT 54 + - + 0 * - COUNT( * ) DIV - COUNT( * ) * + 69 * 1 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7241
SELECT 54 + - + 0 * - COUNT ( * ) / - COUNT ( * ) * + 69 * 1 AS col1
----
54

query I rowsort
SELECT + 25 * 85 - + - 68 + - - 57 AS col0
----
2250

query I rowsort
SELECT + 63 * - 66 + - 97
----
-4255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7244
SELECT DISTINCT MAX( 25 ) DIV COALESCE ( + 14, - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT MAX ( 25 ) / COALESCE ( + 14, - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT 86 + - + 49 + - - 69
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7246
SELECT DISTINCT 31, + ( COALESCE ( + + 12, - 5 DIV 1 + COUNT( * ) * - - COUNT( * ) ) ) AS col2
----
31
12

skipif mysql # not compatible
query II rowsort label-7246
SELECT DISTINCT 31, + ( COALESCE ( + + 12, - 5 / 1 + COUNT ( * ) * - - COUNT ( * ) ) ) AS col2
----
31
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT ALL NULLIF ( + 99, - - 17 ) + + COUNT( * ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL NULLIF ( + 99, - - 17 ) + + COUNT ( * ) AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT COUNT( 23 ) + + COALESCE ( - 9, 19 * 86, COUNT( * ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-7248
SELECT COUNT ( 23 ) + + COALESCE ( - 9, 19 * 86, COUNT ( * ) ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT DISTINCT 15 * + COUNT( * ) * - + 0
----
0

skipif mysql # not compatible
query I rowsort label-7249
SELECT DISTINCT 15 * + COUNT ( * ) * - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT MAX( + 41 ) * - 10 col0
----
-410

skipif mysql # not compatible
query I rowsort label-7250
SELECT MAX ( + 41 ) * - 10 col0
----
-410

onlyif mysql # aggregate syntax: 
query II rowsort label-7251
SELECT 78 AS col0, + MAX( 36 ) col0
----
78
36

skipif mysql # not compatible
query II rowsort label-7251
SELECT 78 AS col0, + MAX ( 36 ) col0
----
78
36

query I rowsort
SELECT 24 + - 59 * - 24 AS col1
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT - CASE - 65 WHEN 93 THEN - - 78 WHEN - NULLIF ( + COUNT( * ), + - 94 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT - CASE - 65 WHEN 93 THEN - - 78 WHEN - NULLIF ( + COUNT ( * ), + - 94 ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 70 * - 18 AS col1
----
-1260

query I rowsort
SELECT DISTINCT 79 - 11
----
68

query II rowsort
SELECT DISTINCT 30, + 48 AS col0
----
30
48

query I rowsort
SELECT DISTINCT + - 92 - 79 AS col1
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7258
SELECT DISTINCT + + 25 DIV + + COUNT( * ) AS col0, COUNT( * ) AS col0
----
25
1

skipif mysql # not compatible
query II rowsort label-7258
SELECT DISTINCT + + 25 / + + COUNT ( * ) AS col0, COUNT ( * ) AS col0
----
25
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7259
SELECT ALL - MAX( - - 41 ), - 5 AS col2
----
-41
-5

skipif mysql # not compatible
query II rowsort label-7259
SELECT ALL - MAX ( - - 41 ), - 5 AS col2
----
-41
-5

query I rowsort
SELECT 85 * + 98 - + - 49
----
8379

query I rowsort
SELECT 72 - + + 64
----
8

query I rowsort
SELECT ALL + + 50 * + 27 + - 81 * - 57 * - 19
----
-86373

query I rowsort
SELECT + 30 * + 48
----
1440

query I rowsort
SELECT ALL + - 83 + - 93 AS col2
----
-176

query I rowsort
SELECT DISTINCT - - 21 * - - 38 col1
----
798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT ALL + - 58 * + 16 * + + 3 * 99 * + 89 * + CAST( NULL AS SIGNED ) - - 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL + - 58 * + 16 * + + 3 * 99 * + 89 * + CAST ( NULL AS INTEGER ) - - 61 AS col2
----
NULL

query I rowsort
SELECT 41 - + - 67
----
108

query I rowsort
SELECT ALL - 2 * - 14 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT DISTINCT + - COUNT( * ) + - 29
----
-30

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT + - COUNT ( * ) + - 29
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7270
SELECT ALL - COUNT( * ) + + CAST( - + 56 AS SIGNED ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL - COUNT ( * ) + + CAST ( - + 56 AS INTEGER ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT 57 + - CASE - - AVG ( 62 ) WHEN - 16 THEN NULL ELSE + - 43 - MIN( + 21 ) END
----
121

skipif mysql # not compatible
query I rowsort label-7271
SELECT 57 + - CASE - - AVG ( 62 ) WHEN - 16 THEN NULL ELSE + - 43 - MIN ( + 21 ) END
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7272
SELECT NULLIF ( COUNT( * ), 28 ) * - 74 + + 8 + COALESCE ( CAST( NULL AS SIGNED ), 37 ) * + 34 - + - MAX( ALL + 56 ) DIV + ( - 63 ) * + COUNT( * ) + - + 95 + COUNT( * ) + + - 56
----
1042

skipif mysql # not compatible
query I rowsort label-7272
SELECT NULLIF ( COUNT ( * ), 28 ) * - 74 + + 8 + COALESCE ( CAST ( NULL AS INTEGER ), 37 ) * + 34 - + - MAX ( ALL + 56 ) / + ( - 63 ) * + COUNT ( * ) + - + 95 + COUNT ( * ) + + - 56
----
1042

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7273
SELECT ALL COUNT( * ) + - 22 AS col0, 94 + - 51 * - 74 * - + 74 * 47 + - ( + COALESCE ( - 3, 47 DIV - COALESCE ( + 93, - - 49 * + 3 * + 24 + - 0 + 3, + 11 ) ) )
----
-21
-13125875

skipif mysql # not compatible
query II rowsort label-7273
SELECT ALL COUNT ( * ) + - 22 AS col0, 94 + - 51 * - 74 * - + 74 * 47 + - ( + COALESCE ( - 3, 47 / - COALESCE ( + 93, - - 49 * + 3 * + 24 + - 0 + 3, + 11 ) ) )
----
-21
-13125875

query I rowsort
SELECT ALL + 47 * 59 AS col0
----
2773

onlyif mysql # aggregate syntax: 
query III rowsort label-7275
SELECT ALL + COUNT( * ) - + 52 AS col0, 68 + + 36 * + + 75 AS col1, 81 AS col2
----
-51
2768
81

skipif mysql # not compatible
query III rowsort label-7275
SELECT ALL + COUNT ( * ) - + 52 AS col0, 68 + + 36 * + + 75 AS col1, 81 AS col2
----
-51
2768
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7276
SELECT 79 - + + 81 col1, SUM( + - 54 ) + CASE - 19 WHEN 13 THEN 44 + + 98 + + 29 * + 46 * 98 * + 51 WHEN - 59 THEN - 19 - NULLIF ( + 6, - 7 ) + 34 + - 94 * - 15 + + + 94 + COALESCE ( 26, + 53 + + 20 + + 23 * + 31 ) + - 55 + - 17 * - - 42 ELSE 0 * + 53 END
----
-2
-54

skipif mysql # not compatible
query II rowsort label-7276
SELECT 79 - + + 81 col1, SUM ( + - 54 ) + CASE - 19 WHEN 13 THEN 44 + + 98 + + 29 * + 46 * 98 * + 51 WHEN - 59 THEN - 19 - NULLIF ( + 6, - 7 ) + 34 + - 94 * - 15 + + + 94 + COALESCE ( 26, + 53 + + 20 + + 23 * + 31 ) + - 55 + - 17 * - - 42 ELSE 0 * + 53 END
----
-2
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7277
SELECT MAX( ALL + 23 ) * - + 45 - - COUNT( * ) DIV + 27 + - + 45 - + 97 * ( - 39 ) * 52
----
195636

skipif mysql # not compatible
query I rowsort label-7277
SELECT MAX ( ALL + 23 ) * - + 45 - - COUNT ( * ) / + 27 + - + 45 - + 97 * ( - 39 ) * 52
----
195636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7278
SELECT CAST( NULL AS SIGNED ) / + 23 * + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7278
SELECT CAST ( NULL AS INTEGER ) / + 23 * + - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT 98 + + 36 - + - COUNT( * ) + - 60 * NULLIF ( - 10, 12 ) * - CASE + - 22 WHEN - MIN( - 62 ) * + - 89 - + - 51 THEN + + MAX( - 58 ) ELSE NULL END + - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT 98 + + 36 - + - COUNT ( * ) + - 60 * NULLIF ( - 10, 12 ) * - CASE + - 22 WHEN - MIN ( - 62 ) * + - 89 - + - 51 THEN + + MAX ( - 58 ) ELSE NULL END + - - 33
----
NULL

query I rowsort
SELECT 8 * - 89
----
-712

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT ALL 20 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL 20 / - 79 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7282
SELECT DISTINCT 31 DIV + 14
----
2

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT 31 / + 14
----
2

query I rowsort
SELECT - 12 - + 60 + + + 7 col2
----
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7284
SELECT DISTINCT - 2 * - - 76 * CAST( NULL AS DECIMAL ) AS col2, + 35 AS col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-7284
SELECT DISTINCT - 2 * - - 76 * CAST ( NULL AS REAL ) AS col2, + 35 AS col2
----
NULL
35

query II rowsort
SELECT + 69 * - + 80 AS col2, + 42 * 29 * + + 51
----
-5520
62118

query I rowsort
SELECT + - 64 * 46 * 22
----
-64768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7287
SELECT + - CAST( - + NULLIF ( NULLIF ( + - 59, - NULLIF ( + SUM( + 77 ), 54 ) + - + CAST( - COUNT( * ) AS SIGNED ) * MIN( DISTINCT + 10 ) ), + 57 * + 20 ) AS SIGNED ) + - 3 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7287
SELECT + - CAST ( - + NULLIF ( NULLIF ( + - 59, - NULLIF ( + SUM ( + 77 ), 54 ) + - + CAST ( - COUNT ( * ) AS INTEGER ) * MIN ( DISTINCT + 10 ) ), + 57 * + 20 ) AS INTEGER ) + - 3 AS col1
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7288
SELECT ALL - 9 + - - 82 * - CAST( + COUNT( * ) AS SIGNED ) + + 17
----
-74

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL - 9 + - - 82 * - CAST ( + COUNT ( * ) AS INTEGER ) + + 17
----
-74

query I rowsort
SELECT - 75 - - 67
----
-8

query II rowsort
SELECT + + 28 + 64 AS col1, + 70
----
92
70

query I rowsort
SELECT ALL 2 + - 32
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT - 68 + 70 * - ( + + CAST( 33 AS SIGNED ) ) * 1
----
-2378

skipif mysql # not compatible
query I rowsort label-7292
SELECT - 68 + 70 * - ( + + CAST ( 33 AS INTEGER ) ) * 1
----
-2378

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ALL SUM( 72 ) * + 97 + + - 38 * + - 90 * 48
----
171144

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL SUM ( 72 ) * + 97 + + - 38 * + - 90 * 48
----
171144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7294
SELECT + - 76 * COALESCE ( - - 19, + 73 + - + ( + CASE + SUM( - 32 ) WHEN - COALESCE ( - 82, 70 ) THEN - - 19 * + - 25 + - 58 * + - ( MAX( DISTINCT + - 85 ) ) * 48 * - + 47 ELSE + 97 * 1 + + + MAX( CAST( - 70 AS SIGNED ) ) END ) * + 55 + 13 ) * - - MAX( 16 ) * + SUM( - 74 ) - + 60 AS col0
----
1709636

skipif mysql # not compatible
query I rowsort label-7294
SELECT + - 76 * COALESCE ( - - 19, + 73 + - + ( + CASE + SUM ( - 32 ) WHEN - COALESCE ( - 82, 70 ) THEN - - 19 * + - 25 + - 58 * + - ( MAX ( DISTINCT + - 85 ) ) * 48 * - + 47 ELSE + 97 * 1 + + + MAX ( CAST ( - 70 AS INTEGER ) ) END ) * + 55 + 13 ) * - - MAX ( 16 ) * + SUM ( - 74 ) - + 60 AS col0
----
1709636

query I rowsort
SELECT + ( + 22 )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT COALESCE ( + ( - 53 ), + 47, - + 84 + + - 96 * 1 DIV 82 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-7296
SELECT COALESCE ( + ( - 53 ), + 47, - + 84 + + - 96 * 1 / 82 ) AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7297
SELECT + 17 * + + COUNT( * ) + - 91 * + + SUM( + 58 ) DIV - COUNT( * ) + 17 AS col1
----
5312

skipif mysql # not compatible
query I rowsort label-7297
SELECT + 17 * + + COUNT ( * ) + - 91 * + + SUM ( + 58 ) / - COUNT ( * ) + 17 AS col1
----
5312

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT 50 * - 81 + - SUM( + - 23 ) - + 29 + - - 62 AS col2
----
-3994

skipif mysql # not compatible
query I rowsort label-7298
SELECT 50 * - 81 + - SUM ( + - 23 ) - + 29 + - - 62 AS col2
----
-3994

query I rowsort
SELECT - 22 * - 63
----
1386

query I rowsort
SELECT ALL + 78 * + 56 AS col1
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT DISTINCT - 24 * - MAX( ALL 69 ) AS col1
----
1656

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT - 24 * - MAX ( ALL 69 ) AS col1
----
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT DISTINCT + 60 * - COUNT( * ) * + + 65 * - + MIN( + 40 )
----
156000

skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT + 60 * - COUNT ( * ) * + + 65 * - + MIN ( + 40 )
----
156000

query II rowsort
SELECT ALL + 34 AS col2, 3
----
34
3

query I rowsort
SELECT COALESCE ( 83, - + 0 ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT - ( MAX( - 8 ) ) + - SUM( - 40 )
----
48

skipif mysql # not compatible
query I rowsort label-7305
SELECT - ( MAX ( - 8 ) ) + - SUM ( - 40 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7306
SELECT - MIN( CAST( NULL AS SIGNED ) ) + - MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) + - MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 21 * + - 58 AS col0
----
-1218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7308
SELECT ALL + CAST( - + 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-7308
SELECT ALL + CAST ( - + 50 AS INTEGER )
----
-50

query I rowsort
SELECT + 16 * - 89 + + 18 - - - 8
----
-1414

query I rowsort
SELECT 7 * - 93 + - 13 col1
----
-664

query I rowsort
SELECT DISTINCT CASE 15 WHEN - - 11 THEN + 60 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7312
SELECT ALL - NULLIF ( 81, ( - + 18 ) + - - ( - - 32 ) ) / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL - NULLIF ( 81, ( - + 18 ) + - - ( - - 32 ) ) / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT - 2 + + + 88 + + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-7313
SELECT - 2 + + + 88 + + COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT - MAX( DISTINCT 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-7314
SELECT - MAX ( DISTINCT 16 )
----
-16

query II rowsort
SELECT ALL - 86, + 18 AS col2
----
-86
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT - - NULLIF ( + CAST( NULL AS SIGNED ), 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7316
SELECT - - NULLIF ( + CAST ( NULL AS INTEGER ), 13 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7317
SELECT - + 99 DIV 97 + ( + 53 )
----
52

skipif mysql # not compatible
query I rowsort label-7317
SELECT - + 99 / 97 + ( + 53 )
----
52

query II rowsort
SELECT - - 7, 37 col2
----
7
37

query II rowsort
SELECT DISTINCT + 50, - 9 col2
----
50
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7320
SELECT COUNT( * ) AS col0, 52 + + CAST( NULL AS SIGNED ) + + 81 * - + ( - 51 ) + - 84 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7320
SELECT COUNT ( * ) AS col0, 52 + + CAST ( NULL AS INTEGER ) + + 81 * - + ( - 51 ) + - 84 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT ALL 20 + - COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL 20 + - COUNT ( * ) AS col2
----
19

query I rowsort
SELECT - 89 * - 17 * - 35 * + 58 AS col2
----
-3071390

query I rowsort
SELECT + 59 + NULLIF ( 7, - 70 * 4 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-7324
SELECT DISTINCT - COUNT( * ) AS col2, 95
----
-1
95

skipif mysql # not compatible
query II rowsort label-7324
SELECT DISTINCT - COUNT ( * ) AS col2, 95
----
-1
95

query I rowsort
SELECT DISTINCT NULLIF ( 36, - CASE - + 92 WHEN 43 THEN + - 84 END )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7326
SELECT ALL ( + 54 ) + - - 64 * COALESCE ( + 1, + 77 + MIN( + ( + - 13 ) ) * - - 69 - - 71 + 85 + + 30 * 69 * - 23, CAST( - + CASE - COUNT( * ) WHEN + ( 19 ) THEN NULL WHEN + 23 - + - ( COUNT( * ) ) * 24 THEN - SUM( DISTINCT + 67 ) * - 68 END AS SIGNED ) ) * - COUNT( * ) + - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL ( + 54 ) + - - 64 * COALESCE ( + 1, + 77 + MIN ( + ( + - 13 ) ) * - - 69 - - 71 + 85 + + 30 * 69 * - 23, CAST ( - + CASE - COUNT ( * ) WHEN + ( 19 ) THEN NULL WHEN + 23 - + - ( COUNT ( * ) ) * 24 THEN - SUM ( DISTINCT + 67 ) * - 68 END AS INTEGER ) ) * - COUNT ( * ) + - COUNT ( * )
----
-11

query I rowsort
SELECT DISTINCT 47 * - 1 col0
----
-47

query I rowsort
SELECT DISTINCT 91 + + 95 + 7 AS col1
----
193

query I rowsort
SELECT ALL - 86 + - 74 + - 55 AS col2
----
-215

query I rowsort
SELECT - - 12 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT + 5 - MIN( - + 57 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7331
SELECT + 5 - MIN ( - + 57 ) AS col0
----
62

query I rowsort
SELECT ALL 4 * - ( - - 61 )
----
-244

onlyif mysql # DIV for integer division: 
query I rowsort label-7333
SELECT DISTINCT 7 DIV - 82 - - 33
----
33

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT 7 / - 82 - - 33
----
33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7334
SELECT ALL + CASE MIN( + 84 ) WHEN + - COALESCE ( + + CAST( NULL AS DECIMAL ), COUNT( * ), 26 ) + + - SUM( - 45 ) + + 78 * 75 + + 29 * - 24 + - + 27 * + COUNT( * ) * + - 16 + - AVG ( + 86 ) THEN + 31 * - 13 WHEN + 75 THEN + 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL + CASE MIN ( + 84 ) WHEN + - COALESCE ( + + CAST ( NULL AS REAL ), COUNT ( * ), 26 ) + + - SUM ( - 45 ) + + 78 * 75 + + 29 * - 24 + - + 27 * + COUNT ( * ) * + - 16 + - AVG ( + 86 ) THEN + 31 * - 13 WHEN + 75 THEN + 19 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT CAST( + NULLIF ( 91, - 77 ) AS SIGNED ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7335
SELECT CAST ( + NULLIF ( 91, - 77 ) AS INTEGER ) AS col2
----
91

query I rowsort
SELECT + 63 * + 88
----
5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7337
SELECT CAST( ( + 88 ) AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-7337
SELECT CAST ( ( + 88 ) AS INTEGER )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7338
SELECT ALL + MIN( 99 ) AS col0, 23 DIV - MIN( + - ( - 82 ) ) + - 43
----
99
-43

skipif mysql # not compatible
query II rowsort label-7338
SELECT ALL + MIN ( 99 ) AS col0, 23 / - MIN ( + - ( - 82 ) ) + - 43
----
99
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7339
SELECT + CAST( - - AVG ( + 26 ) AS SIGNED ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7339
SELECT + CAST ( - - AVG ( + 26 ) AS INTEGER ) AS col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7340
SELECT + COUNT( * ) + + + 81, - COALESCE ( + COUNT( * ), - 41 * - + 47 DIV - - 22 ) AS col0
----
82
-1

skipif mysql # not compatible
query II rowsort label-7340
SELECT + COUNT ( * ) + + + 81, - COALESCE ( + COUNT ( * ), - 41 * - + 47 / - - 22 ) AS col0
----
82
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7341
SELECT - 21 DIV 55 AS col1, ( 95 ) AS col2
----
0
95

skipif mysql # not compatible
query II rowsort label-7341
SELECT - 21 / 55 AS col1, ( 95 ) AS col2
----
0
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT + COUNT( * ) * 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7342
SELECT + COUNT ( * ) * 33 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT DISTINCT - SUM( - 33 ) * + 42 * + 51 - COUNT( * ) AS col1
----
70685

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT - SUM ( - 33 ) * + 42 * + 51 - COUNT ( * ) AS col1
----
70685

query I rowsort
SELECT DISTINCT 56 * 90 AS col0
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT ALL + SUM( ALL - 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL + SUM ( ALL - 11 ) AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-7346
SELECT - 85 DIV + 5 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-7346
SELECT - 85 / + 5 AS col1
----
-17

query I rowsort
SELECT DISTINCT - 75 * + 57 * 62
----
-265050

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT ALL - MIN( DISTINCT - - 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL - MIN ( DISTINCT - - 2 ) AS col1
----
-2

query I rowsort
SELECT DISTINCT - 3 + + + 65 AS col1
----
62

query I rowsort
SELECT DISTINCT - COALESCE ( - - 78, - - 34 )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7351
SELECT NULLIF ( CAST( NULL AS SIGNED ), + 61 ) * - + 63 + + 63 + + MAX( - + 16 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7351
SELECT NULLIF ( CAST ( NULL AS INTEGER ), + 61 ) * - + 63 + + 63 + + MAX ( - + 16 ) AS col2
----
NULL

query I rowsort
SELECT - 74 + + 77 * + 79 * + + 38 * - 93
----
-21497396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT ALL + - 43 + COALESCE ( - 31, + SUM( ALL + - 28 ), + 98 + + MIN( DISTINCT ( 48 ) ) + - - COALESCE ( + 15, CAST( NULL AS SIGNED ) ), + - MIN( ALL + 25 ) ) * 62 * + 33 + + 20 + - 47 * + 61 + + 52 AS col1
----
-66264

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL + - 43 + COALESCE ( - 31, + SUM ( ALL + - 28 ), + 98 + + MIN ( DISTINCT ( 48 ) ) + - - COALESCE ( + 15, CAST ( NULL AS INTEGER ) ), + - MIN ( ALL + 25 ) ) * 62 * + 33 + + 20 + - 47 * + 61 + + 52 AS col1
----
-66264

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT ALL - 81 + - 7 + - + COUNT( * ) + + 4 * + 81 col2
----
235

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL - 81 + - 7 + - + COUNT ( * ) + + 4 * + 81 col2
----
235

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7355
SELECT COUNT( * ) - + ( 13 ) DIV - - 38 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7355
SELECT COUNT ( * ) - + ( 13 ) / - - 38 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT DISTINCT - + COUNT( * ) + 58 + + 15
----
72

skipif mysql # not compatible
query I rowsort label-7356
SELECT DISTINCT - + COUNT ( * ) + 58 + + 15
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT + COUNT( * ) + - 62 + 39 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7357
SELECT + COUNT ( * ) + - 62 + 39 AS col1
----
-22

query I rowsort
SELECT ALL - - 64 + 90 AS col0
----
154

query I rowsort
SELECT 39 + - - 49 + - 54 AS col0
----
34

query I rowsort
SELECT - 76 + - - 53 AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7361
SELECT - 59 - + 24 + + CAST( + 21 AS SIGNED ) * - 10, - 75 AS col1
----
-293
-75

skipif mysql # not compatible
query II rowsort label-7361
SELECT - 59 - + 24 + + CAST ( + 21 AS INTEGER ) * - 10, - 75 AS col1
----
-293
-75

query I rowsort
SELECT 19 + + + 73 AS col2
----
92

query I rowsort
SELECT ALL ( + - 94 ) AS col1
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7364
SELECT COUNT( DISTINCT 6 ) DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7364
SELECT COUNT ( DISTINCT 6 ) / 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7365
SELECT - 14 col0, - COUNT( * ) AS col1
----
-14
-1

skipif mysql # not compatible
query II rowsort label-7365
SELECT - 14 col0, - COUNT ( * ) AS col1
----
-14
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7366
SELECT COALESCE ( + 74, 90 DIV - + COUNT( * ) * MAX( - 9 ) ) + - - 64
----
138

skipif mysql # not compatible
query I rowsort label-7366
SELECT COALESCE ( + 74, 90 / - + COUNT ( * ) * MAX ( - 9 ) ) + - - 64
----
138

query I rowsort
SELECT 11 + 35 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT 18 * - MIN( 50 ) * - 47 AS col1
----
42300

skipif mysql # not compatible
query I rowsort label-7368
SELECT 18 * - MIN ( 50 ) * - 47 AS col1
----
42300

query II rowsort
SELECT ALL - 72, - 94 - + 39 AS col1
----
-72
-133

query I rowsort
SELECT 8 * 78 col1
----
624

query I rowsort
SELECT ALL 15 * + 47
----
705

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7372
SELECT ALL CAST( 41 AS SIGNED ) + + 0 + + + 56 * - 9 AS col1, 97
----
-463
97

skipif mysql # not compatible
query II rowsort label-7372
SELECT ALL CAST ( 41 AS INTEGER ) + + 0 + + + 56 * - 9 AS col1, 97
----
-463
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7373
SELECT CAST( NULL AS SIGNED ) + COALESCE ( 0, + COUNT( 31 ) * 17 / - - 39 * + COUNT( * ), + 33 / - 87 / 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7373
SELECT CAST ( NULL AS INTEGER ) + COALESCE ( 0, + COUNT ( 31 ) * 17 / - - 39 * + COUNT ( * ), + 33 / - 87 / 41 ) AS col1
----
NULL

query II rowsort
SELECT 95 AS col1, 60 * + + ( + 53 )
----
95
3180

query I rowsort
SELECT 14 + 8 * - 88
----
-690

query I rowsort
SELECT NULLIF ( - 32, 16 ) + + 93 AS col2
----
61

query I rowsort
SELECT 59 + - ( - 90 ) * 8
----
779

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT 33 * COUNT( * ) col0
----
33

skipif mysql # not compatible
query I rowsort label-7378
SELECT 33 * COUNT ( * ) col0
----
33

query I rowsort
SELECT ALL + 26 * + 21
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT DISTINCT 60 + MAX( ( ( + 62 ) ) ) * 8
----
556

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT 60 + MAX ( ( ( + 62 ) ) ) * 8
----
556

query I rowsort
SELECT ALL - 54 + - 26 col0
----
-80

query I rowsort
SELECT 58 + 94
----
152

query I rowsort
SELECT ALL 95 + + 12
----
107

query I rowsort
SELECT 68 + - 62 * + 86
----
-5264

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT - MAX( DISTINCT 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-7385
SELECT - MAX ( DISTINCT 85 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT COUNT( * ) * - SUM( ALL - 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7386
SELECT COUNT ( * ) * - SUM ( ALL - 43 ) AS col1
----
43

query I rowsort
SELECT 83 * + ( NULLIF ( COALESCE ( 33, COALESCE ( + 56, + 64 + + 84 ) ), 11 ) ) AS col2
----
2739

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT ALL MAX( - 27 ) col0
----
-27

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL MAX ( - 27 ) col0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT ALL - 19 - 38 DIV 53 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL - 19 - 38 / 53 AS col2
----
-19

query I rowsort
SELECT 73 * 7
----
511

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7391
SELECT DISTINCT - 37 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT - 37 - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 66 + 67 col1
----
133

query I rowsort
SELECT DISTINCT + 1 * 11
----
11

query I rowsort
SELECT ALL + 92 * 20 AS col0
----
1840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7395
SELECT COUNT( * ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-7395
SELECT COUNT ( * ) / 42
----
0

query I rowsort
SELECT ALL COALESCE ( 60, - 25 + 60 )
----
60

query I rowsort
SELECT 92 - + 13 AS col1
----
79

query I rowsort
SELECT ALL COALESCE ( 88, 58 ) AS col2
----
88

query I rowsort
SELECT DISTINCT 10 * 91 + - 52 col2
----
858

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7400
SELECT COUNT( * ) DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-7400
SELECT COUNT ( * ) / 65
----
0

query I rowsort
SELECT ALL 16 * + 52 + - 74 * + 5
----
462

query I rowsort
SELECT ALL 85 * + 89 + 18
----
7583

query I rowsort
SELECT DISTINCT - 93 * - 16 + - 54
----
1434

onlyif mysql # DIV for integer division: 
query I rowsort label-7404
SELECT 30 * 67 - - 70 DIV + 14
----
2015

skipif mysql # not compatible
query I rowsort label-7404
SELECT 30 * 67 - - 70 / + 14
----
2015

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT CASE + 50 WHEN 12 * CASE COUNT( * ) WHEN 72 * MAX( + 62 ) THEN NULL WHEN 79 + 65 THEN NULL WHEN 51 + + COUNT( * ) THEN ( COUNT( ALL 66 ) ) + + 17 ELSE 55 END THEN NULL ELSE - 57 * 45 END
----
-2565

skipif mysql # not compatible
query I rowsort label-7405
SELECT CASE + 50 WHEN 12 * CASE COUNT ( * ) WHEN 72 * MAX ( + 62 ) THEN NULL WHEN 79 + 65 THEN NULL WHEN 51 + + COUNT ( * ) THEN ( COUNT ( ALL 66 ) ) + + 17 ELSE 55 END THEN NULL ELSE - 57 * 45 END
----
-2565

query I rowsort
SELECT ALL + ( - 10 ) * COALESCE ( 91, 95 + 46, + 44 ) + 18 * + 36 AS col2
----
-262

query I rowsort
SELECT - 67 * ( 11 ) col0
----
-737

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT + MIN( 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7408
SELECT + MIN ( 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7409
SELECT DISTINCT + COUNT( * ) * + 30 + - ( 90 - 57 DIV + 25 ) * 64 col0
----
-5602

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT + COUNT ( * ) * + 30 + - ( 90 - 57 / + 25 ) * 64 col0
----
-5602

query I rowsort
SELECT + 2 + 36
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT MIN( ALL 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7411
SELECT MIN ( ALL 53 ) AS col0
----
53

query I rowsort
SELECT ALL COALESCE ( + 21, 47 ) * 19
----
399

query I rowsort
SELECT ALL - 44 * ( 15 ) + 28 AS col2
----
-632

query I rowsort
SELECT DISTINCT + 1 * + 70 + ( 47 ) * + 87 AS col0
----
4159

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT DISTINCT + MAX( + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-7415
SELECT DISTINCT + MAX ( + 90 )
----
90

query I rowsort
SELECT + 78 * + 25
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT ALL + COUNT( ALL 18 ) * 73 - 7 * - 11
----
150

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL + COUNT ( ALL 18 ) * 73 - 7 * - 11
----
150

query I rowsort
SELECT DISTINCT + CASE 40 WHEN + 82 + - 51 THEN 20 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7419
SELECT + + 68 - + 86 DIV + 74 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-7419
SELECT + + 68 - + 86 / + 74 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT + COUNT( * ) * 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7420
SELECT + COUNT ( * ) * 13 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7421
SELECT - - CAST( + NULLIF ( 42, - COUNT( * ) ) AS SIGNED ) * 17 + + 2 * 1 AS col1
----
716

skipif mysql # not compatible
query I rowsort label-7421
SELECT - - CAST ( + NULLIF ( 42, - COUNT ( * ) ) AS INTEGER ) * 17 + + 2 * 1 AS col1
----
716

query I rowsort
SELECT + - 87 * - 72
----
6264

query I rowsort
SELECT - ( - 80 ) AS col2
----
80

query I rowsort
SELECT - 1 * + 81 + - 5
----
-86

query I rowsort
SELECT - - 54 * 40 AS col1
----
2160

query I rowsort
SELECT ALL - 49 * 7 AS col2
----
-343

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT + - COUNT( * ) + + 95 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-7427
SELECT + - COUNT ( * ) + + 95 AS col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7428
SELECT ALL COUNT( * ) DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL COUNT ( * ) / 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT + CASE + 98 WHEN COUNT( ALL 28 ) + - 29 * 71 THEN 99 ELSE NULL END / 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT + CASE + 98 WHEN COUNT ( ALL 28 ) + - 29 * 71 THEN 99 ELSE NULL END / 70
----
NULL

query I rowsort
SELECT DISTINCT + + 71 * - 37
----
-2627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT + 94 - + CAST( 33 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-7431
SELECT + 94 - + CAST ( 33 AS INTEGER )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7432
SELECT + 99 / - CASE ( - 93 ) WHEN - 86 + - 69 THEN + CAST( 63 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT + 99 / - CASE ( - 93 ) WHEN - 86 + - 69 THEN + CAST ( 63 AS INTEGER ) END
----
NULL

query I rowsort
SELECT - COALESCE ( 53, - 45 * + 50 + + 16 * 39, 35 + + 2 * 75 ) + 38 * 40 col2
----
1467

query I rowsort
SELECT ALL + 72 * 52
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT - - 2 + + NULLIF ( MAX( ALL 99 ), - 47 )
----
101

skipif mysql # not compatible
query I rowsort label-7435
SELECT - - 2 + + NULLIF ( MAX ( ALL 99 ), - 47 )
----
101

query I rowsort
SELECT - ( - - 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT - 28 + - COUNT( * ) * 31 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-7437
SELECT - 28 + - COUNT ( * ) * 31 AS col1
----
-59

query I rowsort
SELECT + 40 + + 47 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT - 4 * + MAX( DISTINCT + 28 )
----
-112

skipif mysql # not compatible
query I rowsort label-7439
SELECT - 4 * + MAX ( DISTINCT + 28 )
----
-112

query I rowsort
SELECT - 22 - - 0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT - ( - - CASE - 48 WHEN COUNT( * ) THEN - 62 * + 57 ELSE NULL END ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7441
SELECT - ( - - CASE - 48 WHEN COUNT ( * ) THEN - 62 * + 57 ELSE NULL END ) * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 39 + + - 16
----
23

query I rowsort
SELECT ALL 98 + + 99 + 98 AS col1
----
295

query I rowsort
SELECT DISTINCT + CASE 62 WHEN 18 + 97 THEN + 31 WHEN 86 - - 11 * 34 THEN NULL END * 25
----
NULL

query I rowsort
SELECT DISTINCT - 43 + - 59 + - 68 * + 8 AS col2
----
-646

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT ALL MIN( DISTINCT 75 )
----
75

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL MIN ( DISTINCT 75 )
----
75

query I rowsort
SELECT - 62 + - 58 AS col2
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT ALL COALESCE ( COUNT( * ), + COUNT( * ) - - 95 * - 23 )
----
1

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL COALESCE ( COUNT ( * ), + COUNT ( * ) - - 95 * - 23 )
----
1

query I rowsort
SELECT DISTINCT + 71 * + 60
----
4260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7450
SELECT DISTINCT + 66 DIV - COUNT( * ) + 87 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT + 66 / - COUNT ( * ) + 87 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT + MIN( DISTINCT 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7451
SELECT + MIN ( DISTINCT 77 ) AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7452
SELECT ALL + COALESCE ( + 74, - COUNT( DISTINCT + 78 ), 4 ) DIV 50 + + 27 * 60 AS col2
----
1621

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL + COALESCE ( + 74, - COUNT ( DISTINCT + 78 ), 4 ) / 50 + + 27 * 60 AS col2
----
1621

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT ALL - ( + 35 ) DIV 17 + + 28
----
26

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL - ( + 35 ) / 17 + + 28
----
26

query I rowsort
SELECT + ( + - 41 ) * 39 col0
----
-1599

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7455
SELECT - 24 DIV NULLIF ( COUNT( * ), COUNT( * ) * 2 + 50 ) + + 74 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7455
SELECT - 24 / NULLIF ( COUNT ( * ), COUNT ( * ) * 2 + 50 ) + + 74 AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7456
SELECT ALL + 53 * COALESCE ( + 90, + MAX( DISTINCT 23 ) + 60 * CAST( COALESCE ( + 73, + 63, - 18 * 21 ) AS SIGNED ) ) * 27 col0
----
128790

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL + 53 * COALESCE ( + 90, + MAX ( DISTINCT 23 ) + 60 * CAST ( COALESCE ( + 73, + 63, - 18 * 21 ) AS INTEGER ) ) * 27 col0
----
128790

query I rowsort
SELECT ( - COALESCE ( - 98, - 60 ) )
----
98

query I rowsort
SELECT - 54 * + NULLIF ( - 22, + 11 ) AS col0
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT - + MIN( ALL - - 92 ) + + 53 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7459
SELECT - + MIN ( ALL - - 92 ) + + 53 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT - MIN( + + 46 ) * + 54 + - 63 AS col2
----
-2547

skipif mysql # not compatible
query I rowsort label-7460
SELECT - MIN ( + + 46 ) * + 54 + - 63 AS col2
----
-2547

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL + + ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL + + ( - COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT DISTINCT CASE - 58 WHEN 99 THEN + 78 + 45 * + 57 END * - 19 - 78 / 1 AS col0
----
NULL

query I rowsort
SELECT - - 64 * + 45
----
2880

query I rowsort
SELECT + - 58 * - 48 * 51 AS col0
----
141984

query I rowsort
SELECT + 12 + + 81
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT MAX( - 85 ) * + 12
----
-1020

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT MAX ( - 85 ) * + 12
----
-1020

query I rowsort
SELECT ALL + - ( + + 9 )
----
-9

query I rowsort
SELECT DISTINCT + 9 * - 35 col2
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT + + 81 + + 40 - - COUNT( * ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-7469
SELECT + + 81 + + 40 - - COUNT ( * ) AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT DISTINCT + - COUNT( ALL 94 ) * 51 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT + - COUNT ( ALL 94 ) * 51 AS col2
----
-51

query I rowsort
SELECT ALL + CASE 20 WHEN - 69 THEN NULL ELSE - COALESCE ( - 51, + 57 ) END
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT + - COALESCE ( - 96, + 35 + + COUNT( ALL - 71 ) ) + + 66
----
162

skipif mysql # not compatible
query I rowsort label-7472
SELECT + - COALESCE ( - 96, + 35 + + COUNT ( ALL - 71 ) ) + + 66
----
162

query I rowsort
SELECT + + 32 + + + 32 + 71 col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT - NULLIF ( - MAX( ALL 96 ), 44 ) col2
----
96

skipif mysql # not compatible
query I rowsort label-7474
SELECT - NULLIF ( - MAX ( ALL 96 ), 44 ) col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7475
SELECT + 5 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-7475
SELECT + 5 / - 74
----
0

query I rowsort
SELECT ALL 28 * - + 40
----
-1120

query I rowsort
SELECT DISTINCT 45 + 41 * + 65
----
2710

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7478
SELECT DISTINCT 57 DIV - CAST( - - 64 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT 57 / - CAST ( - - 64 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT ALL - ( 41 ) + + + 20 * 40 AS col0
----
759

query I rowsort
SELECT 17 * + 26
----
442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7481
SELECT ALL 92 * + ( + CASE 70 WHEN 6 * 13 + 13 * + 56 THEN COUNT( * ) ELSE - COUNT( ALL 58 ) END ) DIV CASE - 58 DIV - 36 WHEN + ( 94 ) THEN NULL WHEN 41 THEN CAST( NULL AS SIGNED ) ELSE + 1 END
----
-92

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL 92 * + ( + CASE 70 WHEN 6 * 13 + 13 * + 56 THEN COUNT ( * ) ELSE - COUNT ( ALL 58 ) END ) / CASE - 58 / - 36 WHEN + ( 94 ) THEN NULL WHEN 41 THEN CAST ( NULL AS INTEGER ) ELSE + 1 END
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL AVG ( 31 ) + + - NULLIF ( CASE 48 WHEN 35 THEN - 46 WHEN + 31 THEN NULL ELSE NULL END, COUNT( 15 ) * 67 + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL AVG ( 31 ) + + - NULLIF ( CASE 48 WHEN 35 THEN - 46 WHEN + 31 THEN NULL ELSE NULL END, COUNT ( 15 ) * 67 + COUNT ( * ) )
----
NULL

query II rowsort
SELECT 95 AS col0, 42
----
95
42

query I rowsort
SELECT DISTINCT 27 * - 92 AS col1
----
-2484

onlyif mysql # DIV for integer division: 
query I rowsort label-7485
SELECT 36 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-7485
SELECT 36 / 94
----
0

query I rowsort
SELECT ALL 44 + 41
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT 7 * + - NULLIF ( + 42, 29 * - 41 ) * - SUM( DISTINCT - ( 49 ) ) AS col2
----
-14406

skipif mysql # not compatible
query I rowsort label-7487
SELECT 7 * + - NULLIF ( + 42, 29 * - 41 ) * - SUM ( DISTINCT - ( 49 ) ) AS col2
----
-14406

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT COUNT( * ) - COUNT( * ) + - 48 * - 84 AS col1
----
4032

skipif mysql # not compatible
query I rowsort label-7488
SELECT COUNT ( * ) - COUNT ( * ) + - 48 * - 84 AS col1
----
4032

query II rowsort
SELECT ALL 41 AS col1, 3 AS col0
----
41
3

query II rowsort
SELECT ALL 43 AS col1, 5 + + + 95
----
43
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7491
SELECT DISTINCT - 85 - + ( - + 18 ) + + 57 * - MAX( DISTINCT CASE - 97 WHEN 5 + 96 * - 40 THEN NULL ELSE CASE - CAST( NULL AS SIGNED ) WHEN 16 THEN - 34 + 36 END END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT - 85 - + ( - + 18 ) + + 57 * - MAX ( DISTINCT CASE - 97 WHEN 5 + 96 * - 40 THEN NULL ELSE CASE - CAST ( NULL AS INTEGER ) WHEN 16 THEN - 34 + 36 END END ) AS col2
----
NULL

query I rowsort
SELECT ALL + 67 - - 55 * 10
----
617

onlyif mysql # aggregate syntax: 
query II rowsort label-7493
SELECT + 51 AS col1, COUNT( * ) * + + 12
----
51
12

skipif mysql # not compatible
query II rowsort label-7493
SELECT + 51 AS col1, COUNT ( * ) * + + 12
----
51
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7494
SELECT + 51 - + COUNT( * ) - 42 DIV - 87 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-7494
SELECT + 51 - + COUNT ( * ) - 42 / - 87 AS col1
----
50

query I rowsort
SELECT + 91 * 56 AS col0
----
5096

query I rowsort
SELECT ALL - - 5 * 33 AS col1
----
165

query I rowsort
SELECT ALL + - 42 - - 38
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7498
SELECT - 19, + ( + 19 ) + - COUNT( * ) col0
----
-19
18

skipif mysql # not compatible
query II rowsort label-7498
SELECT - 19, + ( + 19 ) + - COUNT ( * ) col0
----
-19
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL - MIN( DISTINCT 60 ) * + COUNT( * ) - + 8 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL - MIN ( DISTINCT 60 ) * + COUNT ( * ) - + 8 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT 60 * + 65 * + MAX( ALL - 33 )
----
-128700

skipif mysql # not compatible
query I rowsort label-7500
SELECT 60 * + 65 * + MAX ( ALL - 33 )
----
-128700

query II rowsort
SELECT ALL - - 57 AS col1, - 30 * 13
----
57
-390

query I rowsort
SELECT + - 35 * - 32 + - + 56
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT - COALESCE ( - 45, 64, - 63 * - 4 + - COUNT( * ) ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-7503
SELECT - COALESCE ( - 45, 64, - 63 * - 4 + - COUNT ( * ) ) AS col1
----
45

query I rowsort
SELECT ALL + - 25 * - 99 AS col0
----
2475

query I rowsort
SELECT DISTINCT - - ( - 78 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT ALL - 16 DIV - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL - 16 / - 42 AS col2
----
0

query II rowsort
SELECT + 25 AS col0, - 46 * - 0 - - NULLIF ( + 80, 90 + - 51 ) * + 83 AS col1
----
25
6640

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT + MIN( ALL 37 ) * + 15
----
555

skipif mysql # not compatible
query I rowsort label-7508
SELECT + MIN ( ALL 37 ) * + 15
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT - - MIN( ALL + 54 ) + - COUNT( * ) + - MIN( 24 + 72 ) * + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT - - MIN ( ALL + 54 ) + - COUNT ( * ) + - MIN ( 24 + 72 ) * + COUNT ( * )
----
-43

query I rowsort
SELECT DISTINCT + NULLIF ( + - 45, - ( NULLIF ( + 39, 52 * - 47 + 55 ) ) ) + 85 * - 31
----
-2680

query I rowsort
SELECT ALL - 55 + - 96 - + - 15 AS col1
----
-136

query I rowsort
SELECT + ( ( + 59 ) ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT 8 * - 13 + SUM( ALL 93 ) + 85
----
74

skipif mysql # not compatible
query I rowsort label-7513
SELECT 8 * - 13 + SUM ( ALL 93 ) + 85
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT + - COUNT( * ) * + - 99 + 35 + + 49 + + 47 AS col0
----
230

skipif mysql # not compatible
query I rowsort label-7514
SELECT + - COUNT ( * ) * + - 99 + 35 + + 49 + + 47 AS col0
----
230

query I rowsort
SELECT DISTINCT + ( 51 ) * - 36 AS col1
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT - COUNT( - 7 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7516
SELECT - COUNT ( - 7 ) col0
----
-1

query I rowsort
SELECT ALL 87 * - + 25 AS col1
----
-2175

query I rowsort
SELECT ALL 4 + 96 * 24
----
2308

query II rowsort
SELECT DISTINCT - 88 * - 75 AS col1, 28
----
6600
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT COUNT( * ) + + - 23 * 2
----
-45

skipif mysql # not compatible
query I rowsort label-7520
SELECT COUNT ( * ) + + - 23 * 2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7521
SELECT ALL - SUM( + - CAST( 6 AS SIGNED ) ) * - - 84 AS col1
----
504

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - SUM ( + - CAST ( 6 AS INTEGER ) ) * - - 84 AS col1
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT DISTINCT + 16 + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT + 16 + COUNT ( * ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL COALESCE ( + 90, + + 85 ) + - 58 - - COUNT( * ) * + ( - 48 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL COALESCE ( + 90, + + 85 ) + - 58 - - COUNT ( * ) * + ( - 48 ) AS col2
----
-16

query I rowsort
SELECT 46 + - 86 AS col1
----
-40

query I rowsort
SELECT 52 * ( - 61 ) AS col1
----
-3172

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT NULLIF ( 12, + 74 + + COUNT( * ) ) + 8 * 73 AS col2
----
596

skipif mysql # not compatible
query I rowsort label-7526
SELECT NULLIF ( 12, + 74 + + COUNT ( * ) ) + 8 * 73 AS col2
----
596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7527
SELECT CAST( - - 3 AS SIGNED ) - 81
----
-78

skipif mysql # not compatible
query I rowsort label-7527
SELECT CAST ( - - 3 AS INTEGER ) - 81
----
-78

query I rowsort
SELECT DISTINCT 73 * - 84 AS col1
----
-6132

query I rowsort
SELECT ALL 85 - - 76 col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT DISTINCT NULLIF ( - 51, + 33 ) * + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT NULLIF ( - 51, + 33 ) * + COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-7531
SELECT 71 + 65 AS col0, ( + ( - COUNT( * ) ) ) + 51
----
136
50

skipif mysql # not compatible
query II rowsort label-7531
SELECT 71 + 65 AS col0, ( + ( - COUNT ( * ) ) ) + 51
----
136
50

query I rowsort
SELECT ALL + ( 55 ) * + 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7533
SELECT + 94 / COALESCE ( 31, - 63 * 13 ) * COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7533
SELECT + 94 / COALESCE ( 31, - 63 * 13 ) * COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT - COUNT( * ) + 63 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7534
SELECT - COUNT ( * ) + 63 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL + + 32 * - CASE 2 WHEN - 24 / + 57 + COUNT( * ) THEN - 87 * 10 END + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL + + 32 * - CASE 2 WHEN - 24 / + 57 + COUNT ( * ) THEN - 87 * 10 END + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT 85 + - COUNT( * ) * + 90 * - 9 + - 72
----
823

skipif mysql # not compatible
query I rowsort label-7536
SELECT 85 + - COUNT ( * ) * + 90 * - 9 + - 72
----
823

onlyif mysql # DIV for integer division: 
query I rowsort label-7537
SELECT - ( - 3 ) * - 95 + - - COALESCE ( - COALESCE ( + 42, 39 * + 89 ), + 46 + - 42 ) + ( 62 + + 52 DIV 89 ) AS col0
----
-265

skipif mysql # not compatible
query I rowsort label-7537
SELECT - ( - 3 ) * - 95 + - - COALESCE ( - COALESCE ( + 42, 39 * + 89 ), + 46 + - 42 ) + ( 62 + + 52 / 89 ) AS col0
----
-265

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT ALL + + MIN( 28 ) + 45 + - - 7 - 6 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL + + MIN ( 28 ) + 45 + - - 7 - 6 AS col1
----
74

query I rowsort
SELECT 77 + + 4
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT DISTINCT - + ( - + 64 ) * - COALESCE ( + - MAX( 0 ), - 18 * - ( COUNT( * ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7540
SELECT DISTINCT - + ( - + 64 ) * - COALESCE ( + - MAX ( 0 ), - 18 * - ( COUNT ( * ) ) ) AS col0
----
0

query I rowsort
SELECT ALL + + 22 + - 39 AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-7542
SELECT + NULLIF ( + COALESCE ( + - 38, + + ( - 56 ) + 49, - ( 68 ) DIV + 82 ), - ( 86 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-7542
SELECT + NULLIF ( + COALESCE ( + - 38, + + ( - 56 ) + 49, - ( 68 ) / + 82 ), - ( 86 ) )
----
-38

query I rowsort
SELECT 54 + 48 AS col1
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7544
SELECT MIN( ALL - 48 ) DIV - 33 col2
----
1

skipif mysql # not compatible
query I rowsort label-7544
SELECT MIN ( ALL - 48 ) / - 33 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT ALL + - COUNT( * ) + + - 13 + - 68 * + COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL + - COUNT ( * ) + + - 13 + - 68 * + COUNT ( * ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT DISTINCT + COUNT( * ) + + 59 * + 92 * + 21 col2
----
113989

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT + COUNT ( * ) + + 59 * + 92 * + 21 col2
----
113989

query I rowsort
SELECT - 46 * + + 16 col2
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL + NULLIF ( COUNT( * ), + 4 ) + - 26
----
-25

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL + NULLIF ( COUNT ( * ), + 4 ) + - 26
----
-25

query I rowsort
SELECT 30 * + + 21 - + 51 * - 91
----
5271

onlyif mysql # aggregate syntax: 
query II rowsort label-7550
SELECT - 18, MAX( + 76 ) AS col1
----
-18
76

skipif mysql # not compatible
query II rowsort label-7550
SELECT - 18, MAX ( + 76 ) AS col1
----
-18
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT DISTINCT COALESCE ( + 98, - 56 + + CAST( NULL AS SIGNED ) ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT COALESCE ( + 98, - 56 + + CAST ( NULL AS INTEGER ) ) AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7552
SELECT - 27 DIV + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-7552
SELECT - 27 / + COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - MIN( + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-7553
SELECT - MIN ( + 52 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7554
SELECT ALL CASE + MIN( DISTINCT - - 37 ) WHEN 70 THEN NULL WHEN + + 39 / ( + 94 + - 92 * + 46 ) - - 62 * 50 THEN CAST( NULL AS SIGNED ) + 78 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL CASE + MIN ( DISTINCT - - 37 ) WHEN 70 THEN NULL WHEN + + 39 / ( + 94 + - 92 * + 46 ) - - 62 * 50 THEN CAST ( NULL AS INTEGER ) + 78 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + CASE + 56 WHEN - 61 THEN - 39 ELSE NULL END - 99 + - 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT DISTINCT SUM( ALL + + ( + + 49 ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT SUM ( ALL + + ( + + 49 ) ) AS col2
----
49

query I rowsort
SELECT DISTINCT 32 * 0 AS col0
----
0

query I rowsort
SELECT ALL 91 - 67 AS col1
----
24

query I rowsort
SELECT - 73 * - 36 AS col1
----
2628

onlyif mysql # aggregate syntax: 
query II rowsort label-7560
SELECT ALL 40, - COUNT( * ) AS col2
----
40
-1

skipif mysql # not compatible
query II rowsort label-7560
SELECT ALL 40, - COUNT ( * ) AS col2
----
40
-1

query I rowsort
SELECT ALL ( - 86 ) AS col0
----
-86

onlyif mysql # DIV for integer division: 
query II rowsort label-7562
SELECT 63 AS col2, - ( + 44 ) DIV + 68
----
63
0

skipif mysql # not compatible
query II rowsort label-7562
SELECT 63 AS col2, - ( + 44 ) / + 68
----
63
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7563
SELECT - 37 DIV + - 13
----
2

skipif mysql # not compatible
query I rowsort label-7563
SELECT - 37 / + - 13
----
2

query I rowsort
SELECT + - 76 + - 33 - + 89 + + 27
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT DISTINCT 37 DIV + COUNT( 8 ) + ( + 4 ) - 8 * 3 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT 37 / + COUNT ( 8 ) + ( + 4 ) - 8 * 3 AS col1
----
17

query I rowsort
SELECT ALL + + 54 * - 88 + + + ( + 78 )
----
-4674

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT DISTINCT - COUNT( * ) * 45 * - ( - COUNT( * ) ) + - + COUNT( * ) + + 99 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT - COUNT ( * ) * 45 * - ( - COUNT ( * ) ) + - + COUNT ( * ) + + 99 AS col2
----
53

query I rowsort
SELECT ALL 19 * 57 + + - 48 + + 69
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT ALL - 97 * 79 * 0 * + COUNT( * ) + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL - 97 * 79 * 0 * + COUNT ( * ) + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL + + 55 col1
----
55

query I rowsort
SELECT + + 58 * - 34
----
-1972

query I rowsort
SELECT - 95 * + ( - 77 ) AS col1
----
7315

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT DISTINCT 4 * - COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT 4 * - COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT ALL - + 4 * + 9 * - 97 + + 68
----
3560

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL + COALESCE ( - 22, - 99 * NULLIF ( + 51, + COALESCE ( - SUM( ( + 45 ) ), - COUNT( * ) + - 87, 74 - + 10 ) ) * 69 )
----
-22

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL + COALESCE ( - 22, - 99 * NULLIF ( + 51, + COALESCE ( - SUM ( ( + 45 ) ), - COUNT ( * ) + - 87, 74 - + 10 ) ) * 69 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT DISTINCT + + MIN( - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT + + MIN ( - 57 )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7577
SELECT DISTINCT - 25 * - - 18 + + SUM( DISTINCT + 76 ) DIV - 23
----
-453

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT - 25 * - - 18 + + SUM ( DISTINCT + 76 ) / - 23
----
-453

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7578
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) * SUM( DISTINCT COALESCE ( - + ( 71 ), 62 ) ) - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) * SUM ( DISTINCT COALESCE ( - + ( 71 ), 62 ) ) - 15
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7579
SELECT + 51 + - 7 DIV - - 78 - - 84 - - 95 AS col0
----
230

skipif mysql # not compatible
query I rowsort label-7579
SELECT + 51 + - 7 / - - 78 - - 84 - - 95 AS col0
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT 35 * + 5 * + + 76 + 81 - - 5 + - CASE - 53 WHEN COUNT( 53 ) THEN + MIN( ALL - 5 ) END / 16 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7580
SELECT 35 * + 5 * + + 76 + 81 - - 5 + - CASE - 53 WHEN COUNT ( 53 ) THEN + MIN ( ALL - 5 ) END / 16 * + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT - MIN( DISTINCT + 98 ) * 12 * - 14
----
16464

skipif mysql # not compatible
query I rowsort label-7581
SELECT - MIN ( DISTINCT + 98 ) * 12 * - 14
----
16464

onlyif mysql # DIV for integer division: 
query I rowsort label-7582
SELECT + 4 + + 27 DIV 43
----
4

skipif mysql # not compatible
query I rowsort label-7582
SELECT + 4 + + 27 / 43
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL CASE + 83 WHEN - + 16 THEN 75 WHEN + + SUM( - - 94 ) THEN 75 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL CASE + 83 WHEN - + 16 THEN 75 WHEN + + SUM ( - - 94 ) THEN 75 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7584
SELECT COUNT( * ), 83 DIV - 62 AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-7584
SELECT COUNT ( * ), 83 / - 62 AS col0
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT - MIN( + 8 ) + - ( - + 82 ) - - COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-7585
SELECT - MIN ( + 8 ) + - ( - + 82 ) - - COUNT ( * ) AS col0
----
75

query I rowsort
SELECT DISTINCT COALESCE ( + ( - - 65 ), - - 56 * 92 + 70 )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT ALL + 63 DIV + 33
----
1

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL + 63 / + 33
----
1

query I rowsort
SELECT ALL COALESCE ( - + 67, + - 55 * + NULLIF ( - CASE 61 WHEN 48 + + 87 * + 21 THEN + 10 WHEN + 90 * - 51 + 93 THEN NULL ELSE - 69 END, - 30 ), 33 )
----
-67

query I rowsort
SELECT + 61 * + 53
----
3233

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT - ( 60 ) + - - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-7590
SELECT - ( 60 ) + - - COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-7591
SELECT 5 AS col1, - SUM( + 64 )
----
5
-64

skipif mysql # not compatible
query II rowsort label-7591
SELECT 5 AS col1, - SUM ( + 64 )
----
5
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT - CAST( NULL AS SIGNED ) / - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT - CAST ( NULL AS INTEGER ) / - 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7593
SELECT ALL + 63 DIV ( - 31 ) * 75
----
-150

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + 63 / ( - 31 ) * 75
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7594
SELECT - COUNT( * ) * - + CAST( NULL AS SIGNED ) * - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * - + 99
----
NULL

query I rowsort
SELECT ALL 37 * 17 AS col1
----
629

query I rowsort
SELECT ALL + 3 + - 26
----
-23

query I rowsort
SELECT DISTINCT + 92 + - 77 * + + 31 AS col2
----
-2295

query I rowsort
SELECT DISTINCT - + 6 + 47
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT + + COUNT( * ) * 90
----
90

skipif mysql # not compatible
query I rowsort label-7599
SELECT + + COUNT ( * ) * 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT + - SUM( ALL ( - 98 ) ) + - 66 + - 81 * CASE AVG ( 78 ) WHEN 24 THEN 81 WHEN + COUNT( * ) + COUNT( * ) THEN - 83 + 17 END * + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT + - SUM ( ALL ( - 98 ) ) + - 66 + - 81 * CASE AVG ( 78 ) WHEN 24 THEN 81 WHEN + COUNT ( * ) + COUNT ( * ) THEN - 83 + 17 END * + 33
----
NULL

query I rowsort
SELECT - ( + + 46 ) AS col0
----
-46

query I rowsort
SELECT - 96 + - 75
----
-171

query I rowsort
SELECT - + 4 * + 38
----
-152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7604
SELECT 0 AS col2, - COUNT( 31 ) * + + 32 + + - CAST( - 99 AS SIGNED ) AS col0
----
0
67

skipif mysql # not compatible
query II rowsort label-7604
SELECT 0 AS col2, - COUNT ( 31 ) * + + 32 + + - CAST ( - 99 AS INTEGER ) AS col0
----
0
67

query I rowsort
SELECT + 35 * - 57 + 11
----
-1984

query I rowsort
SELECT + COALESCE ( 58, + - 92, + + 6 - - - 76 )
----
58

query II rowsort
SELECT DISTINCT - + 88 AS col0, + 88 * - 60
----
-88
-5280

query I rowsort
SELECT - 36 * 87 + + - 66
----
-3198

onlyif mysql # DIV for integer division: 
query I rowsort label-7609
SELECT ALL + 32 DIV - - 82 + + + 54
----
54

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL + 32 / - - 82 + + + 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL - 27 * + COUNT( - 79 ) * - 80 * + 70
----
151200

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL - 27 * + COUNT ( - 79 ) * - 80 * + 70
----
151200

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT + COUNT( * ) + - - ( 85 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7611
SELECT + COUNT ( * ) + - - ( 85 ) AS col2
----
86

query I rowsort
SELECT DISTINCT + - 26 - 64
----
-90

query I rowsort
SELECT ALL - ( 75 ) col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL - 41 - - COUNT( ALL - - 57 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL - 41 - - COUNT ( ALL - - 57 ) AS col0
----
-40

query I rowsort
SELECT + 3 * + 58
----
174

query I rowsort
SELECT 39 * + 72 * + 77 + - - 82 AS col1
----
216298

onlyif mysql # DIV for integer division: 
query I rowsort label-7617
SELECT 8 DIV + - ( 32 )
----
0

skipif mysql # not compatible
query I rowsort label-7617
SELECT 8 / + - ( 32 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT 56 * - - 30 * SUM( + + 5 )
----
8400

skipif mysql # not compatible
query I rowsort label-7618
SELECT 56 * - - 30 * SUM ( + + 5 )
----
8400

query I rowsort
SELECT ALL 16 - - - 65
----
-49

query I rowsort
SELECT 42 - - 94
----
136

query II rowsort
SELECT 81 * 40 AS col2, NULLIF ( + NULLIF ( 49, - 45 + 65 / - 65 ), - 86 + ( + 97 ) ) col2
----
3240
49

query I rowsort
SELECT DISTINCT + 50 + + 8
----
58

query I rowsort
SELECT DISTINCT - 32 + + 61 AS col2
----
29

query I rowsort
SELECT ALL + - 8 + + - 18 + + 41 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT 62 + - 80 - + COALESCE ( + + 39, - + 43, + + 79 * CASE + 44 WHEN + 76 / + 95 THEN 90 * 7 + - COUNT( * ) * + COUNT( * ) END + + ( - COUNT( * ) ) * 43 ) * 99 col0
----
-3879

skipif mysql # not compatible
query I rowsort label-7625
SELECT 62 + - 80 - + COALESCE ( + + 39, - + 43, + + 79 * CASE + 44 WHEN + 76 / + 95 THEN 90 * 7 + - COUNT ( * ) * + COUNT ( * ) END + + ( - COUNT ( * ) ) * 43 ) * 99 col0
----
-3879

query I rowsort
SELECT + 18 * - 66
----
-1188

query I rowsort
SELECT DISTINCT COALESCE ( 52, - 54 ) col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT DISTINCT - + ( COUNT( * ) ) + - + 13
----
-14

skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT - + ( COUNT ( * ) ) + - + 13
----
-14

query I rowsort
SELECT ALL - 39 + - 29 AS col0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT 29 * - 59 * + COALESCE ( - + 98, + 47 DIV + 5, - - 88 ) * + 49
----
8216222

skipif mysql # not compatible
query I rowsort label-7630
SELECT 29 * - 59 * + COALESCE ( - + 98, + 47 / + 5, - - 88 ) * + 49
----
8216222

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT 31 + 20 * + 72 * + - CASE + 84 WHEN - COUNT( * ) THEN + 18 + - 80 WHEN - 7 / + 37 + 85 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT 31 + 20 * + 72 * + - CASE + 84 WHEN - COUNT ( * ) THEN + 18 + - 80 WHEN - 7 / + 37 + 85 THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL + 47 * + 31 * COALESCE ( + 69, + MAX( - 21 ) * + COUNT( * ) + - COUNT( * ), 44, COUNT( * ) + ( 64 + - 36 ) ) + - COUNT( * ) * + 16 AS col2
----
100517

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL + 47 * + 31 * COALESCE ( + 69, + MAX ( - 21 ) * + COUNT ( * ) + - COUNT ( * ), 44, COUNT ( * ) + ( 64 + - 36 ) ) + - COUNT ( * ) * + 16 AS col2
----
100517

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT ALL - - ( + 86 ) - - + ( - - MIN( + 9 ) ) + + 63 + + + 3 * COUNT( * ) AS col1
----
161

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL - - ( + 86 ) - - + ( - - MIN ( + 9 ) ) + + 63 + + + 3 * COUNT ( * ) AS col1
----
161

query I rowsort
SELECT ALL + 87 * - ( + + ( 87 ) )
----
-7569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7635
SELECT COALESCE ( 96, 16 DIV - NULLIF ( - - 68, - 50 ) * 2 - + COALESCE ( + 78, + SUM( + 8 ) + + CAST( COUNT( * ) AS SIGNED ) ) + 82 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-7635
SELECT COALESCE ( 96, 16 / - NULLIF ( - - 68, - 50 ) * 2 - + COALESCE ( + 78, + SUM ( + 8 ) + + CAST ( COUNT ( * ) AS INTEGER ) ) + 82 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7636
SELECT - 0 * COUNT( * ) col0, + 98 AS col2
----
0
98

skipif mysql # not compatible
query II rowsort label-7636
SELECT - 0 * COUNT ( * ) col0, + 98 AS col2
----
0
98

query II rowsort
SELECT 77 * - 34 AS col1, 44 + + 27 * - 69 + 27 + + 30 col1
----
-2618
-1762

query I rowsort
SELECT 20 + + 24 - 70 * + + 22 * + - 56 AS col1
----
86284

query I rowsort
SELECT 36 * - - 65 col0
----
2340

query II rowsort
SELECT ALL - 17 AS col1, 10 AS col2
----
-17
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL - ( - SUM( - - 65 ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL - ( - SUM ( - - 65 ) ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7642
SELECT ALL - COUNT( DISTINCT - 59 ) * + + 82 AS col0, + 21 AS col1
----
-82
21

skipif mysql # not compatible
query II rowsort label-7642
SELECT ALL - COUNT ( DISTINCT - 59 ) * + + 82 AS col0, + 21 AS col1
----
-82
21

query I rowsort
SELECT 26 + - - 93 col1
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7644
SELECT COUNT( * ) * + 94 * 39 col1, 65 * - - 49 + - - 20 * - - 10 + + 70 + + 88 DIV 61 AS col0
----
3666
3456

skipif mysql # not compatible
query II rowsort label-7644
SELECT COUNT ( * ) * + 94 * 39 col1, 65 * - - 49 + - - 20 * - - 10 + + 70 + + 88 / 61 AS col0
----
3666
3456

query I rowsort
SELECT ALL 32 + + - 48 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-7646
SELECT 79 AS col1, - COUNT( * )
----
79
-1

skipif mysql # not compatible
query II rowsort label-7646
SELECT 79 AS col1, - COUNT ( * )
----
79
-1

query I rowsort
SELECT ALL 8 + COALESCE ( + 26, 79 * + 30 ) AS col2
----
34

query I rowsort
SELECT 9 * COALESCE ( + + 45, 86 ) + 64 AS col1
----
469

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT MAX( DISTINCT 22 ) - + + 42 + - 40 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7649
SELECT MAX ( DISTINCT 22 ) - + + 42 + - 40 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT DISTINCT - COUNT( ALL + 98 ) + - 88 * + - 59 AS col1
----
5191

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT - COUNT ( ALL + 98 ) + - 88 * + - 59 AS col1
----
5191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7651
SELECT SUM( DISTINCT + + 10 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT SUM ( DISTINCT + + 10 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7652
SELECT ALL 73 + + 8 + - ( - 82 ) - + 11 DIV 69 - - - 75 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL 73 + + 8 + - ( - 82 ) - + 11 / 69 - - - 75 AS col2
----
88

query I rowsort
SELECT DISTINCT 31 + + CASE - + 45 WHEN 95 THEN NULL ELSE 11 * - - 44 END * 98 col0
----
47463

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT - COUNT( 44 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7654
SELECT - COUNT ( 44 ) AS col0
----
-1

query I rowsort
SELECT 86 + - - 59 AS col0
----
145

query II rowsort
SELECT ALL + 72 AS col0, 37 col0
----
72
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7657
SELECT ALL 50 AS col2, NULLIF ( - + COUNT( * ), - 75 ) AS col1
----
50
-1

skipif mysql # not compatible
query II rowsort label-7657
SELECT ALL 50 AS col2, NULLIF ( - + COUNT ( * ), - 75 ) AS col1
----
50
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7658
SELECT - CAST( + + 30 AS SIGNED ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-7658
SELECT - CAST ( + + 30 AS INTEGER ) AS col1
----
-30

query I rowsort
SELECT 74 + + + 37 AS col0
----
111

query I rowsort
SELECT ALL 85 + ( - 44 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7661
SELECT 8 * - + 90 + + + 47, - 60 + - + 74 - - - COUNT( * ) * 90 * 44 * - 3 AS col0
----
-673
11746

skipif mysql # not compatible
query II rowsort label-7661
SELECT 8 * - + 90 + + + 47, - 60 + - + 74 - - - COUNT ( * ) * 90 * 44 * - 3 AS col0
----
-673
11746

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7662
SELECT 48 AS col0, + 3 + + COUNT( * ) DIV 72 * - 64 + + + 52 AS col2
----
48
55

skipif mysql # not compatible
query II rowsort label-7662
SELECT 48 AS col0, + 3 + + COUNT ( * ) / 72 * - 64 + + + 52 AS col2
----
48
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT DISTINCT - 9 - - CAST( NULL AS SIGNED ) + + - 82 + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT - 9 - - CAST ( NULL AS INTEGER ) + + - 82 + - 87
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7664
SELECT - COUNT( * ) AS col1, 53 AS col2
----
-1
53

skipif mysql # not compatible
query II rowsort label-7664
SELECT - COUNT ( * ) AS col1, 53 AS col2
----
-1
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7665
SELECT + 82 DIV + - 2 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-7665
SELECT + 82 / + - 2 AS col2
----
-41

query I rowsort
SELECT ALL - CASE - 28 WHEN + 28 THEN + 50 WHEN - ( - 75 ) + + 3 THEN - 45 WHEN 64 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 70 * 76
----
5320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7668
SELECT - + 21 DIV - - 54 * - - 61 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7668
SELECT - + 21 / - - 54 * - - 61 - + COUNT ( * )
----
-1

query II rowsort
SELECT ALL - 67 AS col2, + 66
----
-67
66

query I rowsort
SELECT + 58 * NULLIF ( - 12, - 85 + - 40 ) AS col1
----
-696

query II rowsort
SELECT - 30 AS col0, 10 * 69 AS col0
----
-30
690

query I rowsort
SELECT DISTINCT + NULLIF ( + - 41, + 26 * 40 ) AS col2
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-7673
SELECT + 85 DIV - - 69
----
1

skipif mysql # not compatible
query I rowsort label-7673
SELECT + 85 / - - 69
----
1

query I rowsort
SELECT - 54 * + + 89 * 6 * - 91 + 64 * ( + + 10 ) - - 94
----
2624810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7675
SELECT COUNT( * ) * - + 29 DIV - - 61 * - + 99 + 94 + + 48 * + 10 * + COUNT( * )
----
574

skipif mysql # not compatible
query I rowsort label-7675
SELECT COUNT ( * ) * - + 29 / - - 61 * - + 99 + 94 + + 48 * + 10 * + COUNT ( * )
----
574

query II rowsort
SELECT DISTINCT - - 59 * - 45 * + + 52 AS col0, + 15 - + 82
----
-138060
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT ALL + NULLIF ( - + 73, 50 + - ( - - COUNT( * ) ) + + 65 * - + 84 + + + 18 )
----
-73

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL + NULLIF ( - + 73, 50 + - ( - - COUNT ( * ) ) + + 65 * - + 84 + + + 18 )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-7678
SELECT + 88 DIV - 49 + 0 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7678
SELECT + 88 / - 49 + 0 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT ALL + COALESCE ( + + 75, COALESCE ( 41, 23 + - + 11, + 17 * + + 49 * + + MIN( ALL 36 ) * 88 + - 46 ) + 8 * + 72 )
----
75

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL + COALESCE ( + + 75, COALESCE ( 41, 23 + - + 11, + 17 * + + 49 * + + MIN ( ALL 36 ) * 88 + - 46 ) + 8 * + 72 )
----
75

query II rowsort
SELECT - 74 + - 44, 59 AS col0
----
-118
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT ALL + MAX( + 7 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL + MAX ( + 7 ) col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7682
SELECT DISTINCT + CAST( - 27 AS SIGNED ) * - 54 + + - 56 + - 47 * + + 24 * 66 AS col2
----
-73046

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT + CAST ( - 27 AS INTEGER ) * - 54 + + - 56 + - 47 * + + 24 * 66 AS col2
----
-73046

query I rowsort
SELECT - 21 * - 90 AS col2
----
1890

query I rowsort
SELECT COALESCE ( + 48, - 37 )
----
48

query I rowsort
SELECT + ( + - 61 ) + - ( 26 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7686
SELECT ALL CASE SUM( DISTINCT + - 31 ) WHEN + COALESCE ( COUNT( * ), - 12, - 85 ) * - 79 * 25 + 85 THEN - 44 END * + 73 + - CAST( 96 + + 31 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL CASE SUM ( DISTINCT + - 31 ) WHEN + COALESCE ( COUNT ( * ), - 12, - 85 ) * - 79 * 25 + 85 THEN - 44 END * + 73 + - CAST ( 96 + + 31 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 91 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT ALL + ( + COUNT( DISTINCT - 55 ) ) * + + 47 + 93 * - 96 * + NULLIF ( 36, + 11 ) * 55 col0
----
-17677393

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL + ( + COUNT ( DISTINCT - 55 ) ) * + + 47 + 93 * - 96 * + NULLIF ( 36, + 11 ) * 55 col0
----
-17677393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT DISTINCT 39 * + MAX( 11 ) + - - COALESCE ( - CAST( - + COUNT( * ) AS SIGNED ), COUNT( * ), - 28 * + NULLIF ( - 93, - 10 ) + 72, - 57 - + 63 * - 24 )
----
430

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT 39 * + MAX ( 11 ) + - - COALESCE ( - CAST ( - + COUNT ( * ) AS INTEGER ), COUNT ( * ), - 28 * + NULLIF ( - 93, - 10 ) + 72, - 57 - + 63 * - 24 )
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT + SUM( ALL 63 )
----
63

skipif mysql # not compatible
query I rowsort label-7690
SELECT + SUM ( ALL 63 )
----
63

query I rowsort
SELECT ALL + ( - + 39 ) col2
----
-39

query I rowsort
SELECT ALL + 67 * - + 84 * 2 + + - 30 AS col1
----
-11286

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT + SUM( + 90 ) * 34 * - COUNT( * ) + - + 55 * + 47 AS col1
----
-5645

skipif mysql # not compatible
query I rowsort label-7693
SELECT + SUM ( + 90 ) * 34 * - COUNT ( * ) + - + 55 * + 47 AS col1
----
-5645

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT DISTINCT 76 * - 64 + 76 DIV + ( + 30 )
----
-4862

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT 76 * - 64 + 76 / + ( + 30 )
----
-4862

query I rowsort
SELECT ALL + 72 - + 92 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-7696
SELECT - - MAX( ALL + 74 ) - + - 72 + 56 AS col2, + 53
----
202
53

skipif mysql # not compatible
query II rowsort label-7696
SELECT - - MAX ( ALL + 74 ) - + - 72 + 56 AS col2, + 53
----
202
53

query I rowsort
SELECT - + 91 - 55 * - - 27 AS col1
----
-1576

query I rowsort
SELECT ALL + 11 - - 18 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT + COUNT( * ) - - 40 + + + 64
----
105

skipif mysql # not compatible
query I rowsort label-7699
SELECT + COUNT ( * ) - - 40 + + + 64
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-7700
SELECT + + 34 + + - ( 36 ) + 23 DIV + 38
----
-2

skipif mysql # not compatible
query I rowsort label-7700
SELECT + + 34 + + - ( 36 ) + 23 / + 38
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT + - 59 * + 22 * + + COUNT( + 26 ) AS col0
----
-1298

skipif mysql # not compatible
query I rowsort label-7701
SELECT + - 59 * + 22 * + + COUNT ( + 26 ) AS col0
----
-1298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7702
SELECT + - 15 + - MAX( DISTINCT + - 35 ) + + 25 + 36 + + - 78 + CAST( - - COUNT( * ) AS SIGNED ) + - CASE - 68 WHEN - 2 * 28 THEN - 61 + + NULLIF ( 21 + 67, - 65 ) WHEN + 79 + + 92 THEN + COUNT( * ) END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7702
SELECT + - 15 + - MAX ( DISTINCT + - 35 ) + + 25 + 36 + + - 78 + CAST ( - - COUNT ( * ) AS INTEGER ) + - CASE - 68 WHEN - 2 * 28 THEN - 61 + + NULLIF ( 21 + 67, - 65 ) WHEN + 79 + + 92 THEN + COUNT ( * ) END * + COUNT ( * )
----
NULL

query I rowsort
SELECT + 92 * - + 49 + - 27
----
-4535

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ALL - 8 + - - COUNT( ALL - + 83 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL - 8 + - - COUNT ( ALL - + 83 ) AS col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT + CAST( - 83 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-7705
SELECT + CAST ( - 83 AS INTEGER ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7706
SELECT ALL CASE 18 WHEN + 74 - + 62 + - + COUNT( * ) THEN NULL WHEN + 95 * 39 THEN + + COUNT( * ) WHEN - 64 / NULLIF ( ( ( - 39 ) ), + CAST( + 61 AS SIGNED ) ) THEN NULL WHEN - CAST( NULL AS SIGNED ) / + 54 THEN ( 29 ) * 70 END * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL CASE 18 WHEN + 74 - + 62 + - + COUNT ( * ) THEN NULL WHEN + 95 * 39 THEN + + COUNT ( * ) WHEN - 64 / NULLIF ( ( ( - 39 ) ), + CAST ( + 61 AS INTEGER ) ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) / + 54 THEN ( 29 ) * 70 END * + 9
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7707
SELECT CAST( + - MAX( 71 ) AS SIGNED ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-7707
SELECT CAST ( + - MAX ( 71 ) AS INTEGER ) AS col1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-7708
SELECT ALL + 38 DIV - 1 + + 31 + - 58
----
-65

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL + 38 / - 1 + + 31 + - 58
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT + ( - + MIN( + 83 ) ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-7709
SELECT + ( - + MIN ( + 83 ) ) col0
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7710
SELECT - COALESCE ( + COUNT( * ), + 77 * - + 57, + - COUNT( * ) ) DIV - + 2 AS col2, - 35
----
0
-35

skipif mysql # not compatible
query II rowsort label-7710
SELECT - COALESCE ( + COUNT ( * ), + 77 * - + 57, + - COUNT ( * ) ) / - + 2 AS col2, - 35
----
0
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7711
SELECT ALL 79 DIV - 53 + - 87 DIV - 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL 79 / - 53 + - 87 / - 82 AS col2
----
0

query II rowsort
SELECT - 92 * + + 92 * - 35 * - ( NULLIF ( + - 32, + - 41 ) ) - 30, 78 AS col0
----
9479650
78

query I rowsort
SELECT ALL + 18 * + 6 AS col1
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7714
SELECT ALL + 11 DIV + COUNT( * ) + NULLIF ( - 68, + COUNT( * ) + - + 52 ) * + 96 AS col2
----
-6517

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL + 11 / + COUNT ( * ) + NULLIF ( - 68, + COUNT ( * ) + - + 52 ) * + 96 AS col2
----
-6517

query I rowsort
SELECT DISTINCT + ( + CASE 74 WHEN 48 THEN + 9 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7716
SELECT ALL COUNT( * ) DIV + 12 + + + NULLIF ( + - 44, - 60 DIV + - 99 + 76 ) * + 2 * + 21
----
-1848

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL COUNT ( * ) / + 12 + + + NULLIF ( + - 44, - 60 / + - 99 + 76 ) * + 2 * + 21
----
-1848

query I rowsort
SELECT - 85 - - + 43 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ALL + NULLIF ( + + COUNT( * ), - 62 + - 60 * + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL + NULLIF ( + + COUNT ( * ), - 62 + - 60 * + 71 )
----
1

query I rowsort
SELECT + 53 * + 33 * - 75 - 93
----
-131268

query I rowsort
SELECT + 31 + + 17
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT ALL 72 * + + 53 - - CAST( + + 79 AS SIGNED )
----
3895

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL 72 * + + 53 - - CAST ( + + 79 AS INTEGER )
----
3895

query I rowsort
SELECT ( - + ( + + ( + 2 ) ) ) AS col2
----
-2

query I rowsort
SELECT ALL + ( + ( 94 ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT NULLIF ( + + COUNT( * ), - 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7724
SELECT NULLIF ( + + COUNT ( * ), - 60 ) AS col0
----
1

query II rowsort
SELECT DISTINCT + - 63 AS col1, - 60
----
-63
-60

query I rowsort
SELECT 37 + - 84
----
-47

query I rowsort
SELECT - 64 + 65
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7728
SELECT ALL 4 * - 78 * + 27 * + + 56 DIV - - 56
----
-8424

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL 4 * - 78 * + 27 * + + 56 / - - 56
----
-8424

onlyif mysql # DIV for integer division: 
query I rowsort label-7729
SELECT 14 DIV + - CASE AVG ( ALL - 43 ) WHEN - + 63 THEN NULL ELSE - 85 END col0
----
0

skipif mysql # not compatible
query I rowsort label-7729
SELECT 14 / + - CASE AVG ( ALL - 43 ) WHEN - + 63 THEN NULL ELSE - 85 END col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT ALL - MIN( 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL - MIN ( 87 ) AS col1
----
-87

query I rowsort
SELECT - 31 * + 44 * 29
----
-39556

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ALL + + ( 14 ) * - - ( + + 40 ) + - COUNT( ALL + + 97 ) - - + ( 17 ) + + 26 AS col0
----
602

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL + + ( 14 ) * - - ( + + 40 ) + - COUNT ( ALL + + 97 ) - - + ( 17 ) + + 26 AS col0
----
602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7733
SELECT CAST( NULL AS SIGNED ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7733
SELECT CAST ( NULL AS INTEGER ) * 0
----
NULL

query I rowsort
SELECT DISTINCT + 66 * - - 24 AS col2
----
1584

query I rowsort
SELECT ALL 93 * NULLIF ( - - NULLIF ( 50, + 64 / + 22 + - 43 ), + 48 * 86 ) AS col2
----
4650

query I rowsort
SELECT - - ( 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7737
SELECT ALL - MAX( CAST( NULL AS SIGNED ) ) * - 33 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL - MAX ( CAST ( NULL AS INTEGER ) ) * - 33 col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 2, + + 1 * + ( + - ( - 4 ) ) + - 51 + + + 66 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT DISTINCT + 42 + - COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT + 42 + - COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL - MAX( ALL - 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL - MAX ( ALL - 59 ) AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7741
SELECT COALESCE ( - + CAST( NULL AS SIGNED ), 7, + CAST( - CASE + + 68 WHEN CAST( + NULLIF ( - 44, CASE 2 WHEN 12 * + 63 THEN - 97 WHEN + COALESCE ( 4, 97, 14 ) THEN NULL END ) AS SIGNED ) * + 97 THEN - CAST( - 60 AS SIGNED ) WHEN 56 + NULLIF ( ( + CASE + 98 WHEN 51 * 0 THEN - 1 WHEN - 58 / + 78 THEN NULL ELSE NULL END ) - + 31, 26 ) THEN NULL ELSE NULL END AS SIGNED ) * - 57 + + 98 )
----
7

skipif mysql # not compatible
query I rowsort label-7741
SELECT COALESCE ( - + CAST ( NULL AS INTEGER ), 7, + CAST ( - CASE + + 68 WHEN CAST ( + NULLIF ( - 44, CASE 2 WHEN 12 * + 63 THEN - 97 WHEN + COALESCE ( 4, 97, 14 ) THEN NULL END ) AS INTEGER ) * + 97 THEN - CAST ( - 60 AS INTEGER ) WHEN 56 + NULLIF ( ( + CASE + 98 WHEN 51 * 0 THEN - 1 WHEN - 58 / + 78 THEN NULL ELSE NULL END ) - + 31, 26 ) THEN NULL ELSE NULL END AS INTEGER ) * - 57 + + 98 )
----
7

query II rowsort
SELECT ALL - 52 AS col1, + 83
----
-52
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT DISTINCT - COALESCE ( - 52, + 8, 6 ) + + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-7743
SELECT DISTINCT - COALESCE ( - 52, + 8, 6 ) + + COUNT ( * )
----
53

query II rowsort
SELECT - 51 AS col1, 96
----
-51
96

query I rowsort
SELECT 26 * + 72
----
1872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7746
SELECT MIN( 3 ) + + - 41 + 96 DIV - 13 + - 8 DIV + 87 + + 97
----
52

skipif mysql # not compatible
query I rowsort label-7746
SELECT MIN ( 3 ) + + - 41 + 96 / - 13 + - 8 / + 87 + + 97
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT ALL CASE + - 31 WHEN - 30 THEN NULL WHEN + 17 THEN NULL WHEN + 86 THEN + - 91 * - 48 - + CAST( NULL AS SIGNED ) END + - + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL CASE + - 31 WHEN - 30 THEN NULL WHEN + 17 THEN NULL WHEN + 86 THEN + - 91 * - 48 - + CAST ( NULL AS INTEGER ) END + - + 61 AS col2
----
NULL

query I rowsort
SELECT 42 + 50 AS col2
----
92

query I rowsort
SELECT ALL 9 * 53 AS col0
----
477

query I rowsort
SELECT + 25 * 41 + 88
----
1113

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT ( 9 ) - - 25 + + COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7751
SELECT ( 9 ) - - 25 + + COUNT ( * ) AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7752
SELECT ALL 3 + + NULLIF ( - COUNT( * ), - + CASE - 77 WHEN + COALESCE ( + 28, 36 * + - CASE + - 7 WHEN - COUNT( * ) * 16 THEN NULL ELSE + 6 END + + 30 ) + - 83 * - 69 THEN - MIN( 76 ) * CASE CAST( NULL AS SIGNED ) + - 85 WHEN 41 THEN + CAST( + 32 AS SIGNED ) * 53 WHEN NULLIF ( + 34, + 34 * 7 + 83 ) - 32 THEN ( + 33 ) END + 26 * COALESCE ( ( - 20 ) + 7, 61 * - 24 ) WHEN + 33 THEN NULL WHEN + 19 THEN NULL END + - 48 ) * NULLIF ( - 57, - 58 )
----
60

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL 3 + + NULLIF ( - COUNT ( * ), - + CASE - 77 WHEN + COALESCE ( + 28, 36 * + - CASE + - 7 WHEN - COUNT ( * ) * 16 THEN NULL ELSE + 6 END + + 30 ) + - 83 * - 69 THEN - MIN ( 76 ) * CASE CAST ( NULL AS INTEGER ) + - 85 WHEN 41 THEN + CAST ( + 32 AS INTEGER ) * 53 WHEN NULLIF ( + 34, + 34 * 7 + 83 ) - 32 THEN ( + 33 ) END + 26 * COALESCE ( ( - 20 ) + 7, 61 * - 24 ) WHEN + 33 THEN NULL WHEN + 19 THEN NULL END + - 48 ) * NULLIF ( - 57, - 58 )
----
60

query I rowsort
SELECT DISTINCT 8 - + - 51
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7754
SELECT CAST( + 77 AS SIGNED ) * - COUNT( * ) + 5, COALESCE ( + COUNT( * ), + + 0, + - 78 ) - + 93 AS col2
----
-72
-92

skipif mysql # not compatible
query II rowsort label-7754
SELECT CAST ( + 77 AS INTEGER ) * - COUNT ( * ) + 5, COALESCE ( + COUNT ( * ), + + 0, + - 78 ) - + 93 AS col2
----
-72
-92

query I rowsort
SELECT + 87 * 72 + + 4
----
6268

query I rowsort
SELECT ALL 43 - - 21
----
64

query I rowsort
SELECT ( + 78 ) * - 60
----
-4680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7758
SELECT 87 DIV + 57 + 77 + + COUNT( * ) * COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-7758
SELECT 87 / + 57 + 77 + + COUNT ( * ) * COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT MAX( + 14 ) * - + 14 * 48 AS col2
----
-9408

skipif mysql # not compatible
query I rowsort label-7759
SELECT MAX ( + 14 ) * - + 14 * 48 AS col2
----
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7760
SELECT CAST( 44 AS SIGNED ) * COALESCE ( 46, + + 9 ) * 24 + + - 1 AS col0
----
48575

skipif mysql # not compatible
query I rowsort label-7760
SELECT CAST ( 44 AS INTEGER ) * COALESCE ( 46, + + 9 ) * 24 + + - 1 AS col0
----
48575

query I rowsort
SELECT 21 + - ( 91 ) AS col1
----
-70

query I rowsort
SELECT + 44 * - + 63
----
-2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7763
SELECT ALL - - CAST( + - COUNT( * ) AS SIGNED ) * - 59 * - + 17 AS col0
----
-1003

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL - - CAST ( + - COUNT ( * ) AS INTEGER ) * - 59 * - + 17 AS col0
----
-1003

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7764
SELECT + - CAST( NULLIF ( + 39, 22 ) AS SIGNED ) AS col0, + 23 * 57
----
-39
1311

skipif mysql # not compatible
query II rowsort label-7764
SELECT + - CAST ( NULLIF ( + 39, 22 ) AS INTEGER ) AS col0, + 23 * 57
----
-39
1311

onlyif mysql # aggregate syntax: 
query II rowsort label-7765
SELECT DISTINCT - - 36 AS col0, COUNT( * ) AS col2
----
36
1

skipif mysql # not compatible
query II rowsort label-7765
SELECT DISTINCT - - 36 AS col0, COUNT ( * ) AS col2
----
36
1

query I rowsort
SELECT - 10 * + + 82 AS col2
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL NULLIF ( + MIN( DISTINCT + 27 ), - 31 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL NULLIF ( + MIN ( DISTINCT + 27 ), - 31 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7768
SELECT - 20 AS col2, - COUNT( * ) AS col0
----
-20
-1

skipif mysql # not compatible
query II rowsort label-7768
SELECT - 20 AS col2, - COUNT ( * ) AS col0
----
-20
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7769
SELECT + COUNT( * ) * - - MIN( + NULLIF ( CAST( NULL AS SIGNED ), 8 ) ) * - COUNT( * ) AS col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7769
SELECT + COUNT ( * ) * - - MIN ( + NULLIF ( CAST ( NULL AS INTEGER ), 8 ) ) * - COUNT ( * ) AS col1, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7770
SELECT COALESCE ( - 22, - + COUNT( * ) * ( - ( - 27 ) ) ) * + - 82 AS col1, - NULLIF ( - CAST( NULL AS SIGNED ), + 27 ) * + COUNT( * )
----
1804
NULL

skipif mysql # not compatible
query II rowsort label-7770
SELECT COALESCE ( - 22, - + COUNT ( * ) * ( - ( - 27 ) ) ) * + - 82 AS col1, - NULLIF ( - CAST ( NULL AS INTEGER ), + 27 ) * + COUNT ( * )
----
1804
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7771
SELECT - 37 - + 84 * ( + COUNT( * ) ) * - 38 DIV COUNT( * ) AS col2
----
3155

skipif mysql # not compatible
query I rowsort label-7771
SELECT - 37 - + 84 * ( + COUNT ( * ) ) * - 38 / COUNT ( * ) AS col2
----
3155

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT ALL COUNT( ALL - - ( - 48 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL COUNT ( ALL - - ( - 48 ) ) AS col2
----
1

query I rowsort
SELECT ALL - 79 + - + 62 AS col2
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7774
SELECT - 51 - + NULLIF ( 21, 76 * - + 28 ) + - MIN( ALL 27 ) DIV - ( ( + 51 ) ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-7774
SELECT - 51 - + NULLIF ( 21, 76 * - + 28 ) + - MIN ( ALL 27 ) / - ( ( + 51 ) ) col1
----
-72

query I rowsort
SELECT 0 * + + 82 * + 5 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7776
SELECT ALL + SUM( - 43 ) + + + 35 * + + 12 - - 67 DIV 14 DIV 94 DIV 74 + 63
----
440

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL + SUM ( - 43 ) + + + 35 * + + 12 - - 67 / 14 / 94 / 74 + 63
----
440

query I rowsort
SELECT ALL - 13 + + 74 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT DISTINCT - + CASE + AVG ( ALL + - 91 ) WHEN - COUNT( * ) THEN - 2 + + 77 + 58 ELSE NULL END + - ( - 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT - + CASE + AVG ( ALL + - 91 ) WHEN - COUNT ( * ) THEN - 2 + + 77 + 58 ELSE NULL END + - ( - 27 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7779
SELECT - 10 DIV - 57 - CASE 1 WHEN + 17 THEN - + CAST( - ( + - 4 ) AS SIGNED ) * + COALESCE ( 54, 7 + + NULLIF ( 46, 65 ) * COUNT( * ) ) ELSE - 19 DIV - 17 END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7779
SELECT - 10 / - 57 - CASE 1 WHEN + 17 THEN - + CAST ( - ( + - 4 ) AS INTEGER ) * + COALESCE ( 54, 7 + + NULLIF ( 46, 65 ) * COUNT ( * ) ) ELSE - 19 / - 17 END AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT ALL + 90 + - - SUM( 15 ) * CASE - 4 WHEN - 15 THEN NULL WHEN - ( - 32 ) THEN - - CASE WHEN NOT NULL NOT BETWEEN ( 29 ) AND COUNT( * ) THEN - 44 + - 21 / - MAX( ALL - 27 ) ELSE NULL END * + 15 WHEN 27 THEN + 37 * 15 WHEN 83 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL + 90 + - - SUM ( 15 ) * CASE - 4 WHEN - 15 THEN NULL WHEN - ( - 32 ) THEN - - CASE WHEN NOT NULL NOT BETWEEN ( 29 ) AND COUNT ( * ) THEN - 44 + - 21 / - MAX ( ALL - 27 ) ELSE NULL END * + 15 WHEN 27 THEN + 37 * 15 WHEN 83 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 36 * + - 24 * - ( ( 38 ) )
----
-32832

query I rowsort
SELECT 45 * + - 29
----
-1305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7783
SELECT 55 + - 30 + - - 41 * - MAX( NULLIF ( + 58, - 91 / - - 30 * + 45 * + - 88 + - 61 + + - ( + 2 ) / - 17 * NULLIF ( + CAST( NULL AS SIGNED ) * 46 + + 84, 50 ) ) ) AS col2
----
-2353

skipif mysql # not compatible
query I rowsort label-7783
SELECT 55 + - 30 + - - 41 * - MAX ( NULLIF ( + 58, - 91 / - - 30 * + 45 * + - 88 + - 61 + + - ( + 2 ) / - 17 * NULLIF ( + CAST ( NULL AS INTEGER ) * 46 + + 84, 50 ) ) ) AS col2
----
-2353

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL COUNT( DISTINCT + 81 )
----
1

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL COUNT ( DISTINCT + 81 )
----
1

query I rowsort
SELECT DISTINCT 3 - - 97 + + 21 * + + 61 - - 76 AS col1
----
1457

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT DISTINCT + 73 * 66 * + + CAST( + - 48 AS SIGNED ) AS col0
----
-231264

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT + 73 * 66 * + + CAST ( + - 48 AS INTEGER ) AS col0
----
-231264

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT ALL COUNT( * ) - + CASE + 57 WHEN 65 THEN - 75 ELSE 43 END AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL COUNT ( * ) - + CASE + 57 WHEN 65 THEN - 75 ELSE 43 END AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7788
SELECT CASE 20 WHEN - - 59 THEN NULL WHEN + CASE 90 WHEN - + COALESCE ( 48, 78 + - ( + 98 ), - 33 - + COUNT( * ) * COUNT( * ) ) / - 76 THEN NULL WHEN - CAST( - COUNT( * ) AS SIGNED ) THEN + 51 / + 74 + - COUNT( ALL + 65 + + 34 ) END + NULLIF ( 72 + 40, 36 - AVG ( 69 ) ) THEN COUNT( * ) / 68 ELSE CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7788
SELECT CASE 20 WHEN - - 59 THEN NULL WHEN + CASE 90 WHEN - + COALESCE ( 48, 78 + - ( + 98 ), - 33 - + COUNT ( * ) * COUNT ( * ) ) / - 76 THEN NULL WHEN - CAST ( - COUNT ( * ) AS INTEGER ) THEN + 51 / + 74 + - COUNT ( ALL + 65 + + 34 ) END + NULLIF ( 72 + 40, 36 - AVG ( 69 ) ) THEN COUNT ( * ) / 68 ELSE CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT + 45 * + 77 - 27 AS col0
----
3438

onlyif mysql # aggregate syntax: 
query II rowsort label-7790
SELECT + COUNT( * ) + 93, + 83 AS col0
----
94
83

skipif mysql # not compatible
query II rowsort label-7790
SELECT + COUNT ( * ) + 93, + 83 AS col0
----
94
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT COUNT( DISTINCT + 4 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7791
SELECT COUNT ( DISTINCT + 4 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7792
SELECT ALL ( + CAST( + 48 AS SIGNED ) ) * + 42 + - 45 AS col2
----
1971

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL ( + CAST ( + 48 AS INTEGER ) ) * + 42 + - 45 AS col2
----
1971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7793
SELECT DISTINCT COUNT( * ) * + ( + 74 ) * - CAST( NULL AS SIGNED ) / + - ( + NULLIF ( ( - MIN( - - 10 ) ), - 46 ) ) + - ( 95 ) + + 65 * - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT COUNT ( * ) * + ( + 74 ) * - CAST ( NULL AS INTEGER ) / + - ( + NULLIF ( ( - MIN ( - - 10 ) ), - 46 ) ) + - ( 95 ) + + 65 * - 0 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7794
SELECT - - 39 * - 42 - + 17 + - + 41 + - 92 - 67 * - 5 * - - 5 * - - CASE - 94 WHEN - ( 85 ) THEN - ( 85 ) + - 70 WHEN 31 * + CAST( COUNT( * ) AS SIGNED ) + CAST( NULL AS SIGNED ) THEN NULL END + ( + NULLIF ( - 54, + 3 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT - - 39 * - 42 - + 17 + - + 41 + - 92 - 67 * - 5 * - - 5 * - - CASE - 94 WHEN - ( 85 ) THEN - ( 85 ) + - 70 WHEN 31 * + CAST ( COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) THEN NULL END + ( + NULLIF ( - 54, + 3 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7795
SELECT + + MIN( + + 86 ) * - 67 DIV - - COALESCE ( COUNT( - 67 ), + COUNT( * ) * 17 ) + + + 89 + + COALESCE ( + + COUNT( * ), + 8 DIV - SUM( + 37 ) + ( + SUM( ALL 70 ) + ( + 16 + 80 ) ) ) AS col2
----
-5672

skipif mysql # not compatible
query I rowsort label-7795
SELECT + + MIN ( + + 86 ) * - 67 / - - COALESCE ( COUNT ( - 67 ), + COUNT ( * ) * 17 ) + + + 89 + + COALESCE ( + + COUNT ( * ), + 8 / - SUM ( + 37 ) + ( + SUM ( ALL 70 ) + ( + 16 + 80 ) ) ) AS col2
----
-5672

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ALL + + CASE - COUNT( * ) WHEN - 59 - ( - COUNT( + 66 ) ) - - + MAX( - 90 ) THEN NULL WHEN - ( + COALESCE ( - COUNT( * ), + - 90, - 96 * ( - 6 * 34 ) ) ) * - ( ( 13 ) + 84 ) THEN 27 - 87 ELSE 97 * 71 END AS col0
----
6887

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL + + CASE - COUNT ( * ) WHEN - 59 - ( - COUNT ( + 66 ) ) - - + MAX ( - 90 ) THEN NULL WHEN - ( + COALESCE ( - COUNT ( * ), + - 90, - 96 * ( - 6 * 34 ) ) ) * - ( ( 13 ) + 84 ) THEN 27 - 87 ELSE 97 * 71 END AS col0
----
6887

query I rowsort
SELECT ALL 25 * + 1 * 4
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-7798
SELECT + 95 DIV + 61 col1
----
1

skipif mysql # not compatible
query I rowsort label-7798
SELECT + 95 / + 61 col1
----
1

query I rowsort
SELECT + 69 + + 99 AS col1
----
168

query I rowsort
SELECT 77 * - 75 * - 47 + + 52 col1
----
271477

query I rowsort
SELECT - 96 * - 71 AS col2
----
6816

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL CASE - - COUNT( * ) WHEN 18 * - 76 THEN + 34 END + + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL CASE - - COUNT ( * ) WHEN 18 * - 76 THEN + 34 END + + 99 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7803
SELECT + + 2 + - CAST( NULL AS SIGNED ) * + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT + + 2 + - CAST ( NULL AS INTEGER ) * + 60 AS col0
----
NULL

query I rowsort
SELECT ALL + 97 + - 97 + + + 84 col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7805
SELECT ALL - COALESCE ( 72, 1 + + 75 ) + - MIN( DISTINCT + + 59 ) - - 31 + - ( + COALESCE ( + 69, - COUNT( * ) + CAST( 38 AS SIGNED ) ) )
----
-169

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL - COALESCE ( 72, 1 + + 75 ) + - MIN ( DISTINCT + + 59 ) - - 31 + - ( + COALESCE ( + 69, - COUNT ( * ) + CAST ( 38 AS INTEGER ) ) )
----
-169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7806
SELECT ALL COUNT( * ) DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL COUNT ( * ) / - 64
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7807
SELECT ALL - 67 + - + 80 - 47 * - - 69 * - 73 + + 68 DIV 96 * - 83 * + 93 + 17 AS col1, 26 col0
----
236609
26

skipif mysql # not compatible
query II rowsort label-7807
SELECT ALL - 67 + - + 80 - 47 * - - 69 * - 73 + + 68 / 96 * - 83 * + 93 + 17 AS col1, 26 col0
----
236609
26

query I rowsort
SELECT + - 92 * + + 61 * ( + 57 )
----
-319884

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7809
SELECT - 98 + + 69 / CAST( NULL AS SIGNED ) + + ( - 12 ) AS col1, - 66
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-7809
SELECT - 98 + + 69 / CAST ( NULL AS INTEGER ) + + ( - 12 ) AS col1, - 66
----
NULL
-66

query II rowsort
SELECT 28 AS col0, 58 * + + 54 + - ( - 80 ) + + 76 AS col0
----
28
3288

query I rowsort
SELECT - 75 * - + 17 AS col2
----
1275

query I rowsort
SELECT ALL 80 * + - 47 AS col0
----
-3760

query II rowsort
SELECT DISTINCT 56 AS col0, 65 * + 68 AS col0
----
56
4420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7814
SELECT ALL CASE - COALESCE ( 30, + + COUNT( * ), ( 55 ) ) WHEN - + 97 * + 64 THEN - 94 ELSE - COUNT( * ) * - - COALESCE ( - 2, + + 0 ) + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL CASE - COALESCE ( 30, + + COUNT ( * ), ( 55 ) ) WHEN - + 97 * + 64 THEN - 94 ELSE - COUNT ( * ) * - - COALESCE ( - 2, + + 0 ) + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT DISTINCT - 4 DIV 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT - 4 / 52 col1
----
0

query I rowsort
SELECT - 44 * + + 78 AS col0
----
-3432

query I rowsort
SELECT - 62 + 68 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT ALL CASE + 15 WHEN COALESCE ( + - 62, + - 21 * + 42 + - ( - 62 ) * + - 7 / - - 11 / - 22 ) THEN NULL WHEN - 21 - - + 39 - 51 / 25 THEN - ( + MAX( DISTINCT - 41 ) ) + - 12 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL CASE + 15 WHEN COALESCE ( + - 62, + - 21 * + 42 + - ( - 62 ) * + - 7 / - - 11 / - 22 ) THEN NULL WHEN - 21 - - + 39 - 51 / 25 THEN - ( + MAX ( DISTINCT - 41 ) ) + - 12 ELSE NULL END
----
NULL

query II rowsort
SELECT 39, ( + - 53 ) AS col2
----
39
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT - 14 * + NULLIF ( + SUM( + 77 ), - 52 * 92 ) AS col1
----
-1078

skipif mysql # not compatible
query I rowsort label-7820
SELECT - 14 * + NULLIF ( + SUM ( + 77 ), - 52 * 92 ) AS col1
----
-1078

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7821
SELECT ALL - 87 * - + 50 DIV + COUNT( * ), + 38 AS col1
----
4350
38

skipif mysql # not compatible
query II rowsort label-7821
SELECT ALL - 87 * - + 50 / + COUNT ( * ), + 38 AS col1
----
4350
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT CAST( - - 32 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-7822
SELECT CAST ( - - 32 AS INTEGER )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT + NULLIF ( - COUNT( * ), 16 * - - 85 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT + NULLIF ( - COUNT ( * ), 16 * - - 85 ) AS col2
----
-1

query I rowsort
SELECT - 55 * + 78 AS col1
----
-4290

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT ALL + 24 * COUNT( * ) * + COALESCE ( COUNT( * ), + 25, - COUNT( * ) + + MAX( - 37 ) ) * 9
----
216

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL + 24 * COUNT ( * ) * + COALESCE ( COUNT ( * ), + 25, - COUNT ( * ) + + MAX ( - 37 ) ) * 9
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-7826
SELECT - 31 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-7826
SELECT - 31 / + 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7827
SELECT ALL - + 21 / - MAX( + + 3 ) - 62 * - 13 * 18 + + + 24 + CAST( NULL AS SIGNED ) + + - 90 + COUNT( * ) + + + COUNT( * ) * 27 * + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL - + 21 / - MAX ( + + 3 ) - 62 * - 13 * 18 + + + 24 + CAST ( NULL AS INTEGER ) + + - 90 + COUNT ( * ) + + + COUNT ( * ) * 27 * + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT + COUNT( * ) + - - COALESCE ( + + 76, + + 89 ) + + + COUNT( DISTINCT + 27 ) * - - 44
----
121

skipif mysql # not compatible
query I rowsort label-7828
SELECT + COUNT ( * ) + - - COALESCE ( + + 76, + + 89 ) + + + COUNT ( DISTINCT + 27 ) * - - 44
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT 92 * 37 + - MAX( DISTINCT + 91 )
----
3313

skipif mysql # not compatible
query I rowsort label-7829
SELECT 92 * 37 + - MAX ( DISTINCT + 91 )
----
3313

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7830
SELECT + COUNT( * ) col2, 64 DIV - - COUNT( * )
----
1
64

skipif mysql # not compatible
query II rowsort label-7830
SELECT + COUNT ( * ) col2, 64 / - - COUNT ( * )
----
1
64

query I rowsort
SELECT + NULLIF ( + 7, + - 74 )
----
7

query I rowsort
SELECT - - 32 * 69 + ( - + 98 ) AS col0
----
2110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7833
SELECT ALL CASE 2 WHEN + 79 THEN NULL WHEN + ( - 87 ) THEN - 12 + + - 56 * + 6 * COALESCE ( - - COUNT( * ), + CAST( NULL AS SIGNED ) * - + COUNT( * ) * + 85, + MAX( - 57 ) ) END * ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL CASE 2 WHEN + 79 THEN NULL WHEN + ( - 87 ) THEN - 12 + + - 56 * + 6 * COALESCE ( - - COUNT ( * ), + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * + 85, + MAX ( - 57 ) ) END * ( COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT DISTINCT - 33 * NULLIF ( + 33, + + 14 * + COUNT( * ) + - 1 + - 97 ) + + 64 AS col1
----
-1025

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT - 33 * NULLIF ( + 33, + + 14 * + COUNT ( * ) + - 1 + - 97 ) + + 64 AS col1
----
-1025

onlyif mysql # aggregate syntax: 
query II rowsort label-7835
SELECT 26 AS col0, ( + COUNT( * ) )
----
26
1

skipif mysql # not compatible
query II rowsort label-7835
SELECT 26 AS col0, ( + COUNT ( * ) )
----
26
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7836
SELECT + 83 DIV + 23
----
3

skipif mysql # not compatible
query I rowsort label-7836
SELECT + 83 / + 23
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT + + 5 * - CASE - - ( + - CASE - 97 WHEN 25 + + 24 THEN + COUNT( * ) + - + COUNT( * ) END ) WHEN + + ( + 64 ) / - + 31 THEN - 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT + + 5 * - CASE - - ( + - CASE - 97 WHEN 25 + + 24 THEN + COUNT ( * ) + - + COUNT ( * ) END ) WHEN + + ( + 64 ) / - + 31 THEN - 11 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7838
SELECT - + 53 AS col0, - COUNT( * ) + - 81
----
-53
-82

skipif mysql # not compatible
query II rowsort label-7838
SELECT - + 53 AS col0, - COUNT ( * ) + - 81
----
-53
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7839
SELECT ALL + 76 * - 75 - CAST( - MIN( DISTINCT + 37 ) AS SIGNED )
----
-5663

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL + 76 * - 75 - CAST ( - MIN ( DISTINCT + 37 ) AS INTEGER )
----
-5663

query I rowsort
SELECT + - 30 - 8
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7841
SELECT - CAST( + CAST( + 79 AS SIGNED ) AS SIGNED ) AS col2, - 89 * - + 16
----
-79
1424

skipif mysql # not compatible
query II rowsort label-7841
SELECT - CAST ( + CAST ( + 79 AS INTEGER ) AS INTEGER ) AS col2, - 89 * - + 16
----
-79
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT + MIN( NULLIF ( - + 99, 18 ) ) * - 43
----
4257

skipif mysql # not compatible
query I rowsort label-7842
SELECT + MIN ( NULLIF ( - + 99, 18 ) ) * - 43
----
4257

query I rowsort
SELECT ALL NULLIF ( 54, - 93 ) AS col1
----
54

query II rowsort
SELECT DISTINCT + 73 * + + 72, 52 + + 2 AS col1
----
5256
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT - COUNT( * ) * 31
----
-31

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT - COUNT ( * ) * 31
----
-31

query I rowsort
SELECT DISTINCT 92 - NULLIF ( 65, - ( + 85 ) * + - 25 + + 72 )
----
27

query I rowsort
SELECT + 15 + - 27
----
-12

query I rowsort
SELECT - 21 - + 27 AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7849
SELECT ALL 27 * - ( + - CAST( NULL AS SIGNED ) ) / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL 27 * - ( + - CAST ( NULL AS INTEGER ) ) / - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7850
SELECT - ( - - 86 ) AS col1, COALESCE ( - - COUNT( + 35 ), - 59 ) DIV COUNT( * ) DIV 3 AS col1
----
-86
0

skipif mysql # not compatible
query II rowsort label-7850
SELECT - ( - - 86 ) AS col1, COALESCE ( - - COUNT ( + 35 ), - 59 ) / COUNT ( * ) / 3 AS col1
----
-86
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT - ( COUNT( * ) ) - 32 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-7851
SELECT - ( COUNT ( * ) ) - 32 AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7852
SELECT - CAST( + CAST( + + 76 AS SIGNED ) AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-7852
SELECT - CAST ( + CAST ( + + 76 AS INTEGER ) AS INTEGER )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL - COUNT( * ) * + + 94 * - 15 * ( 29 )
----
40890

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL - COUNT ( * ) * + + 94 * - 15 * ( 29 )
----
40890

query I rowsort
SELECT 15 * - 84
----
-1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT CAST( + + 11 AS SIGNED ) + 69 + - + 41 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-7855
SELECT CAST ( + + 11 AS INTEGER ) + 69 + - + 41 AS col2
----
39

query I rowsort
SELECT 5 * - + 56
----
-280

query I rowsort
SELECT ALL - CASE + 53 WHEN - - 81 * - 97 THEN + + 85 - 24 END + + - 66 * + + 60 * - - 37 + - - 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT 24 + + NULLIF ( - COUNT( * ), - ( - + 42 ) * 54 * MIN( ALL - + 45 ) * + 78 * + 26 )
----
23

skipif mysql # not compatible
query I rowsort label-7858
SELECT 24 + + NULLIF ( - COUNT ( * ), - ( - + 42 ) * 54 * MIN ( ALL - + 45 ) * + 78 * + 26 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7859
SELECT CASE + COUNT( * ) WHEN - + CAST( - - 88 AS SIGNED ) THEN NULL ELSE + 90 END DIV 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7859
SELECT CASE + COUNT ( * ) WHEN - + CAST ( - - 88 AS INTEGER ) THEN NULL ELSE + 90 END / 55 AS col0
----
1

query I rowsort
SELECT - + 2 * - 37 - - + 71 * - 47
----
-3263

onlyif mysql # aggregate syntax: 
query II rowsort label-7861
SELECT ALL - 41 + - COALESCE ( - 35, - MIN( ALL - 32 ) ) * - + 54 + 41 + + + 87 - - - 99, + CASE - 13 WHEN - + 14 * - - 59 THEN NULL WHEN + 22 + 86 THEN 95 ELSE NULL END * 0 - - 65 * 54 AS col1
----
-1902
NULL

skipif mysql # not compatible
query II rowsort label-7861
SELECT ALL - 41 + - COALESCE ( - 35, - MIN ( ALL - 32 ) ) * - + 54 + 41 + + + 87 - - - 99, + CASE - 13 WHEN - + 14 * - - 59 THEN NULL WHEN + 22 + 86 THEN 95 ELSE NULL END * 0 - - 65 * 54 AS col1
----
-1902
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT 35 DIV + - 22 + + 1
----
0

skipif mysql # not compatible
query I rowsort label-7862
SELECT 35 / + - 22 + + 1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7863
SELECT - COALESCE ( + + NULLIF ( 41, + 68 + + 30 ), CAST( NULL AS SIGNED ) ) + - 2
----
-43

skipif mysql # not compatible
query I rowsort label-7863
SELECT - COALESCE ( + + NULLIF ( 41, + 68 + + 30 ), CAST ( NULL AS INTEGER ) ) + - 2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7864
SELECT DISTINCT + COUNT( * ) * - 78 + + 96 * COUNT( * ) + + + 14 AS col1, + CASE + + 51 WHEN - - 11 THEN NULL ELSE - - 77 END
----
32
77

skipif mysql # not compatible
query II rowsort label-7864
SELECT DISTINCT + COUNT ( * ) * - 78 + + 96 * COUNT ( * ) + + + 14 AS col1, + CASE + + 51 WHEN - - 11 THEN NULL ELSE - - 77 END
----
32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT ALL - + ( - 31 ) + 16 + + COUNT( * ) * + 50
----
97

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL - + ( - 31 ) + 16 + + COUNT ( * ) * + 50
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7866
SELECT DISTINCT - ( + 41 ) AS col2, MAX( ALL 29 ) + 79 * + + NULLIF ( - - 72, + 26 / + 88 + + 37 - 33 / CAST( - 80 AS DECIMAL ) * + COUNT( * ) * - 4 ) + 1
----
-41
5718

skipif mysql # not compatible
query II rowsort label-7866
SELECT DISTINCT - ( + 41 ) AS col2, MAX ( ALL 29 ) + 79 * + + NULLIF ( - - 72, + 26 / + 88 + + 37 - 33 / CAST ( - 80 AS REAL ) * + COUNT ( * ) * - 4 ) + 1
----
-41
5718

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ALL 70 + + COUNT( * ) + + COUNT( * ) col0
----
72

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL 70 + + COUNT ( * ) + + COUNT ( * ) col0
----
72

query I rowsort
SELECT - 87 * + 8 - - 2 + 62 AS col1
----
-632

query I rowsort
SELECT 75 + + + 90
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT + + COALESCE ( - + 82, - SUM( - 58 ) * - COUNT( * ) * - - 73 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-7870
SELECT + + COALESCE ( - + 82, - SUM ( - 58 ) * - COUNT ( * ) * - - 73 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT - 95 * + + 67 + - COUNT( * ) AS col1
----
-6366

skipif mysql # not compatible
query I rowsort label-7871
SELECT - 95 * + + 67 + - COUNT ( * ) AS col1
----
-6366

query I rowsort
SELECT - 90 * + 92 AS col1
----
-8280

query I rowsort
SELECT 55 + + 73 + + + 79 AS col0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL - - SUM( ALL 44 ) col1
----
44

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL - - SUM ( ALL 44 ) col1
----
44

query I rowsort
SELECT - 47 + + 0 + - 59 AS col0
----
-106

query I rowsort
SELECT 71 * + + 75 AS col2
----
5325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7877
SELECT DISTINCT 80 * + 26 DIV - COUNT( - 53 ) AS col0
----
-2080

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT 80 * + 26 / - COUNT ( - 53 ) AS col0
----
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT DISTINCT + 14 - + + 78 + 22 / + - 85 + - - CASE ( - 79 ) WHEN + 89 + - 52 * - + MIN( + 7 ) THEN + COUNT( * ) WHEN + 8 THEN - 59 * + 35 * 89 + + 9 END + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT + 14 - + + 78 + 22 / + - 85 + - - CASE ( - 79 ) WHEN + 89 + - 52 * - + MIN ( + 7 ) THEN + COUNT ( * ) WHEN + 8 THEN - 59 * + 35 * 89 + + 9 END + - 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7879
SELECT + 59 * - COUNT( * ) + + + CAST( NULL AS SIGNED ), - 70 AS col2
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-7879
SELECT + 59 * - COUNT ( * ) + + + CAST ( NULL AS INTEGER ), - 70 AS col2
----
NULL
-70

query I rowsort
SELECT 61 * 49
----
2989

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7881
SELECT 99 + + - 68 DIV 96 * + NULLIF ( - MAX( DISTINCT - - 84 ), 45 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-7881
SELECT 99 + + - 68 / 96 * + NULLIF ( - MAX ( DISTINCT - - 84 ), 45 ) AS col1
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-7882
SELECT ( 37 ) DIV - + 20 col0, - 51 * + CASE - + 50 WHEN + 92 DIV 24 * - 48 THEN NULL WHEN + 31 THEN + 2 WHEN 11 - 36 + - 72 THEN NULL END * - 4 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7882
SELECT ( 37 ) / - + 20 col0, - 51 * + CASE - + 50 WHEN + 92 / 24 * - 48 THEN NULL WHEN + 31 THEN + 2 WHEN 11 - 36 + - 72 THEN NULL END * - 4 AS col0
----
-1
NULL

query II rowsort
SELECT 64, 29 col1
----
64
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7884
SELECT ALL 85 + + CAST( 63 AS SIGNED )
----
148

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL 85 + + CAST ( 63 AS INTEGER )
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT ALL ( + 18 ) + + + MAX( DISTINCT + - 88 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL ( + 18 ) + + + MAX ( DISTINCT + - 88 ) AS col0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7886
SELECT CAST( NULL AS SIGNED ) * + 80 * - CASE - CASE + 97 WHEN - + 3 * - - 81 * 89 / - CASE + 8 WHEN - SUM( ALL 81 ) * - - 75 THEN COUNT( * ) * + + COUNT( * ) WHEN 74 THEN NULL END + ( 21 + 7 ) * 93 THEN NULL ELSE + 20 * + 5 + COUNT( * ) END WHEN + COUNT( * ) THEN NULL WHEN CASE 9 WHEN + 69 + 43 THEN - COUNT( * ) * 38 + COUNT( * ) END + 38 THEN CASE + 77 WHEN - ( 30 ) THEN NULL ELSE 42 * - 30 END * + ( 82 + 22 ) END * + 37 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT CAST ( NULL AS INTEGER ) * + 80 * - CASE - CASE + 97 WHEN - + 3 * - - 81 * 89 / - CASE + 8 WHEN - SUM ( ALL 81 ) * - - 75 THEN COUNT ( * ) * + + COUNT ( * ) WHEN 74 THEN NULL END + ( 21 + 7 ) * 93 THEN NULL ELSE + 20 * + 5 + COUNT ( * ) END WHEN + COUNT ( * ) THEN NULL WHEN CASE 9 WHEN + 69 + 43 THEN - COUNT ( * ) * 38 + COUNT ( * ) END + 38 THEN CASE + 77 WHEN - ( 30 ) THEN NULL ELSE 42 * - 30 END * + ( 82 + 22 ) END * + 37 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT DISTINCT 72 + COUNT( * ) - COUNT( * ) + - ( - ( - 28 ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT 72 + COUNT ( * ) - COUNT ( * ) + - ( - ( - 28 ) ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ALL ( - 87 ) + - CASE + 27 WHEN + 90 * - 54 + - 74 + - 72 * 57 THEN - - 46 END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL ( - 87 ) + - CASE + 27 WHEN + 90 * - 54 + - 74 + - 72 * 57 THEN - - 46 END - + COUNT ( * )
----
NULL

query I rowsort
SELECT 40 + - 37 - + - 33 + + + 1 col0
----
37

query II rowsort
SELECT - + 98 AS col0, - 10
----
-98
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT DISTINCT - - 93 * + 42 * + - ( + 99 ) + - COUNT( * ) + - 41 AS col2
----
-386736

skipif mysql # not compatible
query I rowsort label-7891
SELECT DISTINCT - - 93 * + 42 * + - ( + 99 ) + - COUNT ( * ) + - 41 AS col2
----
-386736

query I rowsort
SELECT DISTINCT - + 61 * - - 81 + - 30 + + 91 AS col0
----
-4880

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT ALL 43 * 11 * - MIN( DISTINCT - - 46 ) + - + ( - 70 ) * COUNT( * ) * - SUM( + 57 ) col2
----
-25748

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL 43 * 11 * - MIN ( DISTINCT - - 46 ) + - + ( - 70 ) * COUNT ( * ) * - SUM ( + 57 ) col2
----
-25748

query II rowsort
SELECT 81 AS col2, + 40 col0
----
81
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7895
SELECT ALL - + 51 - + 24 / CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - + 51 - + 24 / CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT + 1, + 37 * 85 * - 44 + - + 95 AS col1
----
1
-138475

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT + 95 * COUNT( * ) + + 88
----
183

skipif mysql # not compatible
query I rowsort label-7897
SELECT + 95 * COUNT ( * ) + + 88
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7898
SELECT - COUNT( * ) DIV + 4
----
0

skipif mysql # not compatible
query I rowsort label-7898
SELECT - COUNT ( * ) / + 4
----
0

query I rowsort
SELECT 21 * + 77
----
1617

onlyif mysql # aggregate syntax: 
query II rowsort label-7900
SELECT ALL + + COUNT( * ) * + - 75 + + + 54, + 77 + 3 + + ( - + 47 ) col0
----
-21
33

skipif mysql # not compatible
query II rowsort label-7900
SELECT ALL + + COUNT ( * ) * + - 75 + + + 54, + 77 + 3 + + ( - + 47 ) col0
----
-21
33

query II rowsort
SELECT ALL - 3 AS col2, + ( + 3 ) * - 99 + - + 14 + - - 84 AS col2
----
-3
-227

query I rowsort
SELECT ALL - 27 * - - 81 AS col2
----
-2187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7903
SELECT 61 DIV MAX( DISTINCT 31 )
----
1

skipif mysql # not compatible
query I rowsort label-7903
SELECT 61 / MAX ( DISTINCT 31 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7904
SELECT 96 + 39 + - 39 + 78 * - 15 * - ( - 11 ) * CAST( NULL AS SIGNED ) - SUM( ALL 9 ) + - 44 + + COUNT( * ) / + - ( - CAST( + 90 AS DECIMAL ) ) - - NULLIF ( 14, + COUNT( * ) ) + - CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT 96 + 39 + - 39 + 78 * - 15 * - ( - 11 ) * CAST ( NULL AS INTEGER ) - SUM ( ALL 9 ) + - 44 + + COUNT ( * ) / + - ( - CAST ( + 90 AS REAL ) ) - - NULLIF ( 14, + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT - 86 - - 39 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL COALESCE ( - MAX( ( - 11 ) ), + 43 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL COALESCE ( - MAX ( ( - 11 ) ), + 43 ) AS col1
----
11

query II rowsort
SELECT DISTINCT - 55 + + COALESCE ( + 44, + 6 ) + + + 80 * + 61 + + 18 col0, 46 AS col1
----
4887
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT - ( - 67 ) * + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-7908
SELECT - ( - 67 ) * + COUNT ( * )
----
67

query I rowsort
SELECT - 38 + 12 + 99
----
73

query II rowsort
SELECT DISTINCT + 83 * + ( - 14 ) * - 31 AS col2, + 23
----
36022
23

query II rowsort
SELECT 55 AS col0, 69 col0
----
55
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL + 65 * - - COUNT( * ) * - 68 AS col2
----
-4420

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL + 65 * - - COUNT ( * ) * - 68 AS col2
----
-4420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT + 49 * - - 52 * - - CAST( 35 AS SIGNED )
----
89180

skipif mysql # not compatible
query I rowsort label-7913
SELECT + 49 * - - 52 * - - CAST ( 35 AS INTEGER )
----
89180

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT + 8 - NULLIF ( + COUNT( * ), COUNT( * ) * - 80 ) - - 14 + + - 53 * - 66 * - COALESCE ( + 24, + 57 - 54 ) * - 5 + - ( - + MAX( 85 ) )
----
419866

skipif mysql # not compatible
query I rowsort label-7914
SELECT + 8 - NULLIF ( + COUNT ( * ), COUNT ( * ) * - 80 ) - - 14 + + - 53 * - 66 * - COALESCE ( + 24, + 57 - 54 ) * - 5 + - ( - + MAX ( 85 ) )
----
419866

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7915
SELECT - 35 AS col0, + 55 + CAST( NULL AS DECIMAL ) - + COUNT( * ) col2
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-7915
SELECT - 35 AS col0, + 55 + CAST ( NULL AS REAL ) - + COUNT ( * ) col2
----
-35
NULL

query I rowsort
SELECT - CASE - 12 WHEN 70 THEN NULL WHEN - 49 THEN 43 * - 34 * 43 * + NULLIF ( - 59, 41 ) + - 79 END AS col1
----
NULL

query I rowsort
SELECT - 13 * + + 23 * ( + + 95 )
----
-28405

onlyif mysql # DIV for integer division: 
query II rowsort label-7918
SELECT ALL 46 col1, 51 DIV + + 40
----
46
1

skipif mysql # not compatible
query II rowsort label-7918
SELECT ALL 46 col1, 51 / + + 40
----
46
1

query I rowsort
SELECT ALL - 13 + 60 AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT DISTINCT 65 DIV 47 col1
----
1

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT 65 / 47 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT + 8 * + + 2 * 37 * - COUNT( * ) AS col1
----
-592

skipif mysql # not compatible
query I rowsort label-7921
SELECT + 8 * + + 2 * 37 * - COUNT ( * ) AS col1
----
-592

query I rowsort
SELECT + + 95 * + 38 + - 29
----
3581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7923
SELECT - NULLIF ( - 44, + + 37 * - NULLIF ( - 66, - 1 ) ) * 58 + - + SUM( + 31 ) / CAST( NULL AS SIGNED ) / - 1 + COUNT( * ) + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7923
SELECT - NULLIF ( - 44, + + 37 * - NULLIF ( - 66, - 1 ) ) * 58 + - + SUM ( + 31 ) / CAST ( NULL AS INTEGER ) / - 1 + COUNT ( * ) + - 45
----
NULL

query II rowsort
SELECT + 84 AS col0, 88
----
84
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT ALL 5 * - 46 * + SUM( ALL - 61 ) AS col0
----
14030

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL 5 * - 46 * + SUM ( ALL - 61 ) AS col0
----
14030

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT - ( - ( + COUNT( * ) ) ) * - - 49 * ( 12 ) + - ( + ( + 36 ) ) + - 50 + ( - COALESCE ( + 55, 20 ) ) - 93 col1
----
354

skipif mysql # not compatible
query I rowsort label-7926
SELECT - ( - ( + COUNT ( * ) ) ) * - - 49 * ( 12 ) + - ( + ( + 36 ) ) + - 50 + ( - COALESCE ( + 55, 20 ) ) - 93 col1
----
354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7927
SELECT COUNT( * ) DIV 35 + - 79 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7927
SELECT COUNT ( * ) / 35 + - 79 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT - ( - COUNT( ALL - 14 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7928
SELECT - ( - COUNT ( ALL - 14 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7929
SELECT DISTINCT + + 28, - 4 * - COUNT( * ) AS col0
----
28
4

skipif mysql # not compatible
query II rowsort label-7929
SELECT DISTINCT + + 28, - 4 * - COUNT ( * ) AS col0
----
28
4

query I rowsort
SELECT + + 43 + - 42 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL + 37 * - COUNT( * ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL + 37 * - COUNT ( * ) col2
----
-37

query II rowsort
SELECT ALL + 25 AS col0, - 87 + + 8
----
25
-79

query II rowsort
SELECT + 41 AS col0, - 30
----
41
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT + + 93 * - + COUNT( * ) * 57 * COUNT( * ) AS col0
----
-5301

skipif mysql # not compatible
query I rowsort label-7934
SELECT + + 93 * - + COUNT ( * ) * 57 * COUNT ( * ) AS col0
----
-5301

query I rowsort
SELECT + 82 + 75 - + 25
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT COUNT( * ) * 99 + - + COUNT( * ) + + 23 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-7936
SELECT COUNT ( * ) * 99 + - + COUNT ( * ) + + 23 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT + ( - + COUNT( DISTINCT - - 47 ) ) * + - 28 * - 98
----
-2744

skipif mysql # not compatible
query I rowsort label-7937
SELECT + ( - + COUNT ( DISTINCT - - 47 ) ) * + - 28 * - 98
----
-2744

query I rowsort
SELECT - 98 + - - 30 AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-7939
SELECT ALL - 69 DIV ( 20 )
----
-3

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL - 69 / ( 20 )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7940
SELECT - 16 DIV + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-7940
SELECT - 16 / + COUNT ( * )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7941
SELECT + ( 21 ) * - 85 * 48 * - 93 * 39 + 10 * - CAST( + 80 AS SIGNED )
----
310760560

skipif mysql # not compatible
query I rowsort label-7941
SELECT + ( 21 ) * - 85 * 48 * - 93 * 39 + 10 * - CAST ( + 80 AS INTEGER )
----
310760560

onlyif mysql # aggregate syntax: 
query II rowsort label-7942
SELECT ALL + COUNT( DISTINCT 14 ), 31 col0
----
1
31

skipif mysql # not compatible
query II rowsort label-7942
SELECT ALL + COUNT ( DISTINCT 14 ), 31 col0
----
1
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7943
SELECT ALL + 4 * COUNT( * ) * - COUNT( * ) + + ( + + 57 ) DIV 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL + 4 * COUNT ( * ) * - COUNT ( * ) + + ( + + 57 ) / 13 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT - 62 + COALESCE ( - + ( - MIN( ALL 89 ) ), - 4 * + - 26, 50 * - 33 * 80 )
----
27

skipif mysql # not compatible
query I rowsort label-7944
SELECT - 62 + COALESCE ( - + ( - MIN ( ALL 89 ) ), - 4 * + - 26, 50 * - 33 * 80 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT - ( - COUNT( * ) ) + + 48 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7945
SELECT - ( - COUNT ( * ) ) + + 48 AS col2
----
49

query I rowsort
SELECT ALL + 97 * 59
----
5723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7947
SELECT DISTINCT CAST( - AVG ( + 7 ) AS SIGNED )
----
-7

skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT CAST ( - AVG ( + 7 ) AS INTEGER )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT MAX( DISTINCT - 43 ) * 31 + - - COUNT( DISTINCT - 68 )
----
-1332

skipif mysql # not compatible
query I rowsort label-7948
SELECT MAX ( DISTINCT - 43 ) * 31 + - - COUNT ( DISTINCT - 68 )
----
-1332

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT + ( COUNT( * ) ) * + 33
----
33

skipif mysql # not compatible
query I rowsort label-7949
SELECT + ( COUNT ( * ) ) * + 33
----
33

query I rowsort
SELECT - 14 + 87 * + 26 AS col1
----
2248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7951
SELECT ALL CAST( + NULLIF ( - 11, - - 28 * - COUNT( * ) + COUNT( * ) ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL CAST ( + NULLIF ( - 11, - - 28 * - COUNT ( * ) + COUNT ( * ) ) AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7952
SELECT - 90 + - COUNT( * ) DIV + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-7952
SELECT - 90 + - COUNT ( * ) / + COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT ALL COUNT( * ) - - NULLIF ( - 43, - 90 ) + CASE NULLIF ( + 55, + 52 - - 93 ) WHEN - 9 THEN NULL WHEN - 43 / + 4 + CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE - SUM( ALL - 54 ) END + - - 50 + ( COUNT( * ) ) / + COUNT( * ) THEN NULL ELSE + 69 * 29 END * + 9
----
17967

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL COUNT ( * ) - - NULLIF ( - 43, - 90 ) + CASE NULLIF ( + 55, + 52 - - 93 ) WHEN - 9 THEN NULL WHEN - 43 / + 4 + CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE - SUM ( ALL - 54 ) END + - - 50 + ( COUNT ( * ) ) / + COUNT ( * ) THEN NULL ELSE + 69 * 29 END * + 9
----
17967

query I rowsort
SELECT ALL - 4 * + 9 - - 34 + 63
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT MIN( DISTINCT + + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-7955
SELECT MIN ( DISTINCT + + 32 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7956
SELECT ALL - - CASE 32 WHEN AVG ( DISTINCT - 41 ) / 38 THEN - + 75 - CAST( NULL AS DECIMAL ) WHEN COALESCE ( 46, 67 ) THEN NULL WHEN - COUNT( * ) THEN - 60 END * - COALESCE ( 86, + + 14 + + NULLIF ( - + 60, - MAX( - 6 ) ) + + CAST( NULL AS SIGNED ) ) + - 21 * + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL - - CASE 32 WHEN AVG ( DISTINCT - 41 ) / 38 THEN - + 75 - CAST ( NULL AS REAL ) WHEN COALESCE ( 46, 67 ) THEN NULL WHEN - COUNT ( * ) THEN - 60 END * - COALESCE ( 86, + + 14 + + NULLIF ( - + 60, - MAX ( - 6 ) ) + + CAST ( NULL AS INTEGER ) ) + - 21 * + 34 AS col0
----
NULL

query I rowsort
SELECT ALL + + 59 - - 23
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT + CAST( NULL AS SIGNED ) + - + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT + CAST ( NULL AS INTEGER ) + - + 16 AS col2
----
NULL

query II rowsort
SELECT + ( - - 83 ) col0, NULLIF ( - 64, 12 )
----
83
-64

query I rowsort
SELECT ALL - 28 * - 31
----
868

onlyif mysql # DIV for integer division: 
query I rowsort label-7961
SELECT + - 22 DIV + 60 col1
----
0

skipif mysql # not compatible
query I rowsort label-7961
SELECT + - 22 / + 60 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT ALL - CAST( NULL AS SIGNED ) / + COUNT( * ) + - ( - 62 ) * + 95 + - 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL - CAST ( NULL AS INTEGER ) / + COUNT ( * ) + - ( - 62 ) * + 95 + - 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7963
SELECT + COUNT( * ) + 47 col0, + ( ( - 88 ) ) AS col1
----
48
-88

skipif mysql # not compatible
query II rowsort label-7963
SELECT + COUNT ( * ) + 47 col0, + ( ( - 88 ) ) AS col1
----
48
-88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7964
SELECT + ( - CAST( - + 8 AS SIGNED ) ) * ( - CAST( - + 87 AS SIGNED ) ) * 85 DIV - 91 AS col2
----
-650

skipif mysql # not compatible
query I rowsort label-7964
SELECT + ( - CAST ( - + 8 AS INTEGER ) ) * ( - CAST ( - + 87 AS INTEGER ) ) * 85 / - 91 AS col2
----
-650

onlyif mysql # DIV for integer division: 
query II rowsort label-7965
SELECT 32 DIV + + 15 AS col1, 6 AS col0
----
2
6

skipif mysql # not compatible
query II rowsort label-7965
SELECT 32 / + + 15 AS col1, 6 AS col0
----
2
6

query I rowsort
SELECT DISTINCT 24 * - 79
----
-1896

query II rowsort
SELECT + 96 AS col1, - 97 AS col1
----
96
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-7968
SELECT + 54 AS col2, - 52 * + - COUNT( * ) AS col1
----
54
52

skipif mysql # not compatible
query II rowsort label-7968
SELECT + 54 AS col2, - 52 * + - COUNT ( * ) AS col1
----
54
52

query I rowsort
SELECT ALL 68 + + + 53 * - 77 + + 68 + - 6 AS col1
----
-3951

query I rowsort
SELECT DISTINCT 27 * + + 56
----
1512

query I rowsort
SELECT 99 * 57 AS col1
----
5643

query I rowsort
SELECT ALL 21 + + - 75 AS col0
----
-54

query I rowsort
SELECT 11 * - 10 * 17 + 13 AS col0
----
-1857

query I rowsort
SELECT 24 * + 57 AS col2
----
1368

query I rowsort
SELECT ALL 14 + + 57
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT DISTINCT 49 * CASE + + ( - 73 ) WHEN - + 30 * COUNT( * ) THEN NULL ELSE - - 12 END col2
----
588

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT 49 * CASE + + ( - 73 ) WHEN - + 30 * COUNT ( * ) THEN NULL ELSE - - 12 END col2
----
588

onlyif mysql # DIV for integer division: 
query I rowsort label-7977
SELECT 14 - 63 * 9 DIV + - 6
----
108

skipif mysql # not compatible
query I rowsort label-7977
SELECT 14 - 63 * 9 / + - 6
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-7978
SELECT ALL 78 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL 78 / - 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT CAST( NULL AS SIGNED ) + - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT CAST ( NULL AS INTEGER ) + - 16 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 13 * + 93
----
1209

query I rowsort
SELECT ALL - 75 - + - 0
----
-75

query I rowsort
SELECT 40 * - 7
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL COUNT( * ) * COUNT( DISTINCT - - 23 )
----
1

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL COUNT ( * ) * COUNT ( DISTINCT - - 23 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7984
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 35 * 15 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 35 * 15 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT - CASE 75 WHEN - MAX( + - ( - + ( + 58 ) ) ) - + + SUM( - 64 ) THEN + 61 ELSE NULL END * ( - 79 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT - CASE 75 WHEN - MAX ( + - ( - + ( + 58 ) ) ) - + + SUM ( - 64 ) THEN + 61 ELSE NULL END * ( - 79 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7986
SELECT 19 - 76 DIV - MAX( ALL 32 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-7986
SELECT 19 - 76 / - MAX ( ALL 32 ) AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7987
SELECT CAST( + 15 AS SIGNED ) * - 22
----
-330

skipif mysql # not compatible
query I rowsort label-7987
SELECT CAST ( + 15 AS INTEGER ) * - 22
----
-330

query II rowsort
SELECT ALL 97 AS col2, 89
----
97
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7989
SELECT DISTINCT COUNT( * ), - 51 DIV - 36 AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-7989
SELECT DISTINCT COUNT ( * ), - 51 / - 36 AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7990
SELECT ALL 59 AS col2, + 10 + + COUNT( * )
----
59
11

skipif mysql # not compatible
query II rowsort label-7990
SELECT ALL 59 AS col2, + 10 + + COUNT ( * )
----
59
11

query III rowsort
SELECT DISTINCT - + ( 70 ) + + 67 AS col1, - 84, - 64 AS col1
----
-3
-84
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT 65 * - 90 + 59 * - 74 - 52 * + COUNT( * )
----
-10268

skipif mysql # not compatible
query I rowsort label-7992
SELECT 65 * - 90 + 59 * - 74 - 52 * + COUNT ( * )
----
-10268

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT ALL - COUNT( DISTINCT + 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL - COUNT ( DISTINCT + 28 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT + + ( - CASE - + CASE + 4 WHEN - 97 THEN 73 END WHEN + - 0 THEN + - COUNT( ALL - 45 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT + + ( - CASE - + CASE + 4 WHEN - 97 THEN 73 END WHEN + - 0 THEN + - COUNT ( ALL - 45 ) END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7995
SELECT + NULLIF ( 57, + 55 ) DIV - - 58 * + 72
----
0

skipif mysql # not compatible
query I rowsort label-7995
SELECT + NULLIF ( 57, + 55 ) / - - 58 * + 72
----
0

query I rowsort
SELECT ALL - - 77 + - + 54 + - 79 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT SUM( - COALESCE ( + + 81, 11 ) ) + + 0
----
-81

skipif mysql # not compatible
query I rowsort label-7997
SELECT SUM ( - COALESCE ( + + 81, 11 ) ) + + 0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7998
SELECT + COUNT( * ) * + 53 + - 81 - - - CAST( NULL AS SIGNED ) - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7998
SELECT + COUNT ( * ) * + 53 + - 81 - - - CAST ( NULL AS INTEGER ) - 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7999
SELECT ALL + 42 + SUM( - 8 ) + - 17 * + ( + 11 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL + 42 + SUM ( - 8 ) + - 17 * + ( + 11 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8000
SELECT COUNT( * ) * + 78, - 92 col2
----
78
-92

skipif mysql # not compatible
query II rowsort label-8000
SELECT COUNT ( * ) * + 78, - 92 col2
----
78
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT NULLIF ( + - 48, - + 83 ) + + MIN( + 77 )
----
29

skipif mysql # not compatible
query I rowsort label-8001
SELECT NULLIF ( + - 48, - + 83 ) + + MIN ( + 77 )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8002
SELECT ALL COUNT( * ) + + 60 AS col2, 55 AS col1
----
61
55

skipif mysql # not compatible
query II rowsort label-8002
SELECT ALL COUNT ( * ) + + 60 AS col2, 55 AS col1
----
61
55

query I rowsort
SELECT 95 * + 58 AS col1
----
5510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT 6 * + - 29 / + - 11 + + CAST( NULL AS SIGNED ) / - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8004
SELECT 6 * + - 29 / + - 11 + + CAST ( NULL AS INTEGER ) / - - 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8005
SELECT ALL - ( + 67 ), + CAST( NULL AS SIGNED ) + + 41 * + ( + 97 ) AS col1
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-8005
SELECT ALL - ( + 67 ), + CAST ( NULL AS INTEGER ) + + 41 * + ( + 97 ) AS col1
----
-67
NULL

query I rowsort
SELECT DISTINCT - 52 * + + 17 AS col2
----
-884

query I rowsort
SELECT 24 + - 80 * 86 AS col0
----
-6856

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT ALL 72 * COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL 72 * COUNT ( * ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT COUNT( * ) + - - 25
----
26

skipif mysql # not compatible
query I rowsort label-8009
SELECT COUNT ( * ) + - - 25
----
26

query I rowsort
SELECT 20 * ( + 55 ) AS col2
----
1100

onlyif mysql # aggregate syntax: 
query II rowsort label-8011
SELECT 34 + COUNT( * ) col0, MAX( DISTINCT + 21 ) + + MIN( + + 76 ) + - ( SUM( - + 54 ) ) AS col0
----
35
151

skipif mysql # not compatible
query II rowsort label-8011
SELECT 34 + COUNT ( * ) col0, MAX ( DISTINCT + 21 ) + + MIN ( + + 76 ) + - ( SUM ( - + 54 ) ) AS col0
----
35
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8012
SELECT COUNT( * ) DIV + 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8012
SELECT COUNT ( * ) / + 11 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8013
SELECT ALL 71 * 72 DIV + 7
----
730

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL 71 * 72 / + 7
----
730

query I rowsort
SELECT 52 + + 38 + 27
----
117

onlyif mysql # DIV for integer division: 
query II rowsort label-8015
SELECT DISTINCT - 83 DIV + 17 col0, - 5 AS col1
----
-4
-5

skipif mysql # not compatible
query II rowsort label-8015
SELECT DISTINCT - 83 / + 17 col0, - 5 AS col1
----
-4
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT DISTINCT + COUNT( + + 0 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT + COUNT ( + + 0 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL + - ( + 36 ) * COUNT( * ) * 58 col2
----
-2088

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL + - ( + 36 ) * COUNT ( * ) * 58 col2
----
-2088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8018
SELECT COUNT( * ) DIV + 62 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8018
SELECT COUNT ( * ) / + 62 * + + COUNT ( * )
----
0

query I rowsort
SELECT ALL - 69 + - 10 - 24
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT CASE + COALESCE ( 24, 3, + + 34 ) WHEN 54 + - 48 + - COALESCE ( - 86, - + 70 ) * - - 31 / - COUNT( * ) THEN 26 - - 98 WHEN + 8 - - 83 / - + 7 THEN - 57 + - - 62 * 53 ELSE - 40 END * + 57
----
-2280

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT CASE + COALESCE ( 24, 3, + + 34 ) WHEN 54 + - 48 + - COALESCE ( - 86, - + 70 ) * - - 31 / - COUNT ( * ) THEN 26 - - 98 WHEN + 8 - - 83 / - + 7 THEN - 57 + - - 62 * 53 ELSE - 40 END * + 57
----
-2280

onlyif mysql # DIV for integer division: 
query I rowsort label-8021
SELECT + + 94 DIV ( + - 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-8021
SELECT + + 94 / ( + - 78 )
----
-1

query I rowsort
SELECT - - 89 + + 66 + - 56 AS col2
----
99

query I rowsort
SELECT DISTINCT - 76 + - - COALESCE ( 56, 76, 59 ) * - ( - + 6 )
----
260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8024
SELECT DISTINCT + ( + - CAST( - - COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT + ( + - CAST ( - - COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL + 42 * + 24 + + COUNT( * ) + 74 + + ( - NULLIF ( - 83, + 19 ) ) AS col0
----
1166

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL + 42 * + 24 + + COUNT ( * ) + 74 + + ( - NULLIF ( - 83, + 19 ) ) AS col0
----
1166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8026
SELECT ALL 57 * - 10 * - + ( COUNT( * ) ) + + + 46 * 24 - - COUNT( ALL + 92 ) + - - NULLIF ( + 94, 14 / + + CASE - 86 WHEN - - COUNT( * ) * - COALESCE ( + - 60, - 52 * + 32 * - + CAST( NULL AS SIGNED ) - + 88 * - 98, 35 ) * + 62 + 82 + + 4 / - 6 THEN MAX( ALL 17 ) END )
----
1769

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL 57 * - 10 * - + ( COUNT ( * ) ) + + + 46 * 24 - - COUNT ( ALL + 92 ) + - - NULLIF ( + 94, 14 / + + CASE - 86 WHEN - - COUNT ( * ) * - COALESCE ( + - 60, - 52 * + 32 * - + CAST ( NULL AS INTEGER ) - + 88 * - 98, 35 ) * + 62 + 82 + + 4 / - 6 THEN MAX ( ALL 17 ) END )
----
1769

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8027
SELECT COALESCE ( - 41, + - COUNT( * ) - COUNT( * ) DIV - ( + + ( - 43 ) ) ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8027
SELECT COALESCE ( - 41, + - COUNT ( * ) - COUNT ( * ) / - ( + + ( - 43 ) ) ) AS col2
----
-41

query I rowsort
SELECT ALL - 6 * + - 94 + + - 91 + + - 77
----
396

query I rowsort
SELECT - 33 * + 31 AS col0
----
-1023

query I rowsort
SELECT DISTINCT + COALESCE ( - - 51, - 3 * - 11 + + - 33 * - 73 ) * 63 AS col0
----
3213

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT COALESCE ( + - 14, - NULLIF ( + - 91, - ( + 18 ) * - - COUNT( * ) ) * - COUNT( * ) * + 34 )
----
-14

skipif mysql # not compatible
query I rowsort label-8031
SELECT COALESCE ( + - 14, - NULLIF ( + - 91, - ( + 18 ) * - - COUNT ( * ) ) * - COUNT ( * ) * + 34 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT + MAX( ALL + - 8 ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-8032
SELECT + MAX ( ALL + - 8 ) col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-8033
SELECT + 3 * MIN( - - 88 ), - 3 AS col1
----
264
-3

skipif mysql # not compatible
query II rowsort label-8033
SELECT + 3 * MIN ( - - 88 ), - 3 AS col1
----
264
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT CASE + SUM( 97 ) WHEN + 64 + - + 63 THEN NULL WHEN 98 THEN + 76 / - 49 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8034
SELECT CASE + SUM ( 97 ) WHEN + 64 + - + 63 THEN NULL WHEN 98 THEN + 76 / - 49 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + ( + - 94 ), - 72 ) AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8036
SELECT - 67 * - SUM( + CAST( 61 AS SIGNED ) )
----
4087

skipif mysql # not compatible
query I rowsort label-8036
SELECT - 67 * - SUM ( + CAST ( 61 AS INTEGER ) )
----
4087

query I rowsort
SELECT DISTINCT + ( + + 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT - 74 * + 75 / + 26 * - 41 / + 8 + COUNT( * ) + CASE + - 47 WHEN + 50 - - 38 THEN + 53 / - + 98 * + 90 + - - 40 WHEN + 71 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT - 74 * + 75 / + 26 * - 41 / + 8 + COUNT ( * ) + CASE + - 47 WHEN + 50 - - 38 THEN + 53 / - + 98 * + 90 + - - 40 WHEN + 71 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8039
SELECT ALL + 76 DIV + - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL + 76 / + - COUNT ( * )
----
-76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8040
SELECT - 31 * 94 DIV CAST( 91 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-8040
SELECT - 31 * 94 / CAST ( 91 AS INTEGER )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8041
SELECT 85 * - CAST( - COUNT( * ) AS DECIMAL ) * - CAST( NULL AS SIGNED ) / + 97 + - + COUNT( * ) + + 55 + + + AVG ( DISTINCT - 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT 85 * - CAST ( - COUNT ( * ) AS REAL ) * - CAST ( NULL AS INTEGER ) / + 97 + - + COUNT ( * ) + + 55 + + + AVG ( DISTINCT - 84 ) AS col2
----
NULL

query I rowsort
SELECT - 7 * - - 79 AS col0
----
-553

query I rowsort
SELECT + ( + 19 ) * - - 81 AS col0
----
1539

query I rowsort
SELECT + + 59 * - 79 * - 53
----
247033

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8045
SELECT ALL + - 61 + + 91 DIV 73 - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL + - 61 + + 91 / 73 - COUNT ( * )
----
-61

query I rowsort
SELECT - + 13 col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL - 79 + - + COUNT( * ) + 22 * - 9 + COALESCE ( - + 12, 98 ) + + 44
----
-246

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL - 79 + - + COUNT ( * ) + 22 * - 9 + COALESCE ( - + 12, 98 ) + + 44
----
-246

query I rowsort
SELECT ALL + 20 + + 78
----
98

query I rowsort
SELECT DISTINCT 45 + + 78 * + 9
----
747

query II rowsort
SELECT - 54 AS col2, + 10 AS col2
----
-54
10

query I rowsort
SELECT DISTINCT ( + 80 ) col1
----
80

query I rowsort
SELECT ALL 72 + + 7
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8053
SELECT + - COUNT( * ) - + - CAST( - COUNT( * ) AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-8053
SELECT + - COUNT ( * ) - + - CAST ( - COUNT ( * ) AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8054
SELECT + 55 AS col0, 86 + + COUNT( * ) * - - ( + 19 )
----
55
105

skipif mysql # not compatible
query II rowsort label-8054
SELECT + 55 AS col0, 86 + + COUNT ( * ) * - - ( + 19 )
----
55
105

query I rowsort
SELECT + 60 + + 2
----
62

query I rowsort
SELECT ALL + 77 + 42 * + - 3 - 82 + 9 + 46 * - 58
----
-2790

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT ALL SUM( + + 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL SUM ( + + 24 ) AS col1
----
24

query I rowsort
SELECT DISTINCT + + 60 * - 83 AS col1
----
-4980

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT DISTINCT - COUNT( * ) + + - 91
----
-92

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT - COUNT ( * ) + + - 91
----
-92

query I rowsort
SELECT + - NULLIF ( 93, + - 64 ) * + 89 AS col2
----
-8277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8061
SELECT + CAST( NULL AS SIGNED ) + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8061
SELECT + CAST ( NULL AS INTEGER ) + 27 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT - 33 DIV 25
----
-1

skipif mysql # not compatible
query I rowsort label-8062
SELECT - 33 / 25
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL 98 * + ( + + CASE WHEN NOT + 79 = NULL THEN + COALESCE ( + COUNT( * ), + + 44 - - 62, - + ( 87 ) / + 22 ) + - COUNT( - + 33 ) ELSE NULL END ) * + + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL 98 * + ( + + CASE WHEN NOT + 79 = NULL THEN + COALESCE ( + COUNT ( * ), + + 44 - - 62, - + ( 87 ) / + 22 ) + - COUNT ( - + 33 ) ELSE NULL END ) * + + 37 AS col0
----
NULL

query I rowsort
SELECT + 80 * - 17 * + - 23 AS col0
----
31280

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT 43 * + - COALESCE ( + 31, - 66, 6 * 49 ) + COUNT( * )
----
-1332

skipif mysql # not compatible
query I rowsort label-8065
SELECT 43 * + - COALESCE ( + 31, - 66, 6 * 49 ) + COUNT ( * )
----
-1332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8066
SELECT - 3 DIV - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-8066
SELECT - 3 / - COUNT ( * )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8067
SELECT - ( - 49 ) DIV - 91 + - 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-8067
SELECT - ( - 49 ) / - 91 + - 23 AS col0
----
-23

query II rowsort
SELECT DISTINCT + 56 AS col2, + 65
----
56
65

query II rowsort
SELECT ALL + 60 col0, ( 91 ) col0
----
60
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8070
SELECT ALL + 89 * - 19 AS col2, CAST( COUNT( * ) AS SIGNED ) * 28
----
-1691
28

skipif mysql # not compatible
query II rowsort label-8070
SELECT ALL + 89 * - 19 AS col2, CAST ( COUNT ( * ) AS INTEGER ) * 28
----
-1691
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8071
SELECT - 71 * - COUNT( - 93 ) + + 49 col1, 72
----
120
72

skipif mysql # not compatible
query II rowsort label-8071
SELECT - 71 * - COUNT ( - 93 ) + + 49 col1, 72
----
120
72

query II rowsort
SELECT DISTINCT + 72 AS col2, 42
----
72
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL + MIN( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL + MIN ( - 26 )
----
-26

query I rowsort
SELECT 80 * ( 94 ) + + + 25
----
7545

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8075
SELECT DISTINCT + CAST( + + 11 AS SIGNED ) * 74 + + + 28 AS col0
----
842

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT + CAST ( + + 11 AS INTEGER ) * 74 + + + 28 AS col0
----
842

query I rowsort
SELECT + 90 * - - ( + 20 ) * + 54 AS col0
----
97200

query I rowsort
SELECT DISTINCT + 71 * - - 85 AS col2
----
6035

query II rowsort
SELECT + 39, 11 * - ( - 87 ) AS col1
----
39
957

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT DISTINCT + 56 * 45 * + 23 + - + 39 * + - ( + COUNT( * ) ) - - ( + COUNT( * ) ) + - NULLIF ( 85, - + 7 ) AS col2
----
57915

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT + 56 * 45 * + 23 + - + 39 * + - ( + COUNT ( * ) ) - - ( + COUNT ( * ) ) + - NULLIF ( 85, - + 7 ) AS col2
----
57915

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT - 37 * + 88 * - - 48 * COUNT( * ) + + 1
----
-156287

skipif mysql # not compatible
query I rowsort label-8080
SELECT - 37 * + 88 * - - 48 * COUNT ( * ) + + 1
----
-156287

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT DISTINCT - 0 DIV + - 29 + + 93
----
93

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT - 0 / + - 29 + + 93
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8082
SELECT - 77 + 39 DIV NULLIF ( - MAX( + ( + + CAST( + + 66 AS SIGNED ) ) ), - + COUNT( * ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-8082
SELECT - 77 + 39 / NULLIF ( - MAX ( + ( + + CAST ( + + 66 AS INTEGER ) ) ), - + COUNT ( * ) ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT ALL - + COUNT( * ) + - COUNT( + 90 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL - + COUNT ( * ) + - COUNT ( + 90 ) AS col1
----
-2

query I rowsort
SELECT ALL 61 + - - ( - - 83 )
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-8085
SELECT DISTINCT - 39 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT - 39 / 67
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8086
SELECT + ( - 36 ) DIV 35
----
-1

skipif mysql # not compatible
query I rowsort label-8086
SELECT + ( - 36 ) / 35
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT ALL + 48 + COUNT( ALL - - 57 ) + + 7 * - 37 AS col0
----
-210

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL + 48 + COUNT ( ALL - - 57 ) + + 7 * - 37 AS col0
----
-210

query II rowsort
SELECT ALL 6 AS col2, 91 * - 58
----
6
-5278

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8089
SELECT 53 + 59 + - - COUNT( * ) * - COUNT( * ) + + 87 DIV - COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-8089
SELECT 53 + 59 + - - COUNT ( * ) * - COUNT ( * ) + + 87 / - COUNT ( * ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT - COUNT( ALL 14 ) * - 50 * ( + 63 ) AS col1
----
3150

skipif mysql # not compatible
query I rowsort label-8090
SELECT - COUNT ( ALL 14 ) * - 50 * ( + 63 ) AS col1
----
3150

query II rowsort
SELECT ALL - 12 col2, 96
----
-12
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8092
SELECT CAST( NULL AS SIGNED ) + + - ( + 7 ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT CAST ( NULL AS INTEGER ) + + - ( + 7 ) * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT DISTINCT 50 - - COUNT( - 99 ) * - + 33
----
17

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT 50 - - COUNT ( - 99 ) * - + 33
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8094
SELECT 8 * + 61, - MIN( ALL + 78 ) * - + 40 * + 46 * - - 37 AS col1
----
488
5310240

skipif mysql # not compatible
query II rowsort label-8094
SELECT 8 * + 61, - MIN ( ALL + 78 ) * - + 40 * + 46 * - - 37 AS col1
----
488
5310240

query I rowsort
SELECT DISTINCT 85 * - - 29 AS col2
----
2465

query II rowsort
SELECT 34 * + 31, 2 * - 18 AS col2
----
1054
-36

query I rowsort
SELECT ALL 49 * - + 59 col0
----
-2891

query I rowsort
SELECT 24 * - 11 col0
----
-264

query II rowsort
SELECT 59 * + - 52, 61 AS col0
----
-3068
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8100
SELECT 65 DIV ( - 87 )
----
0

skipif mysql # not compatible
query I rowsort label-8100
SELECT 65 / ( - 87 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT ALL 78 + 13 * - - SUM( ALL 61 ) * + + 47 + + + 18
----
37367

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL 78 + 13 * - - SUM ( ALL 61 ) * + + 47 + + + 18
----
37367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8102
SELECT ( + 74 ) - - + SUM( DISTINCT 26 ) + + 22 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT ( + 74 ) - - + SUM ( DISTINCT 26 ) + + 22 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( + - 39 ) + - 26
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT ALL - 13 DIV + 91 col2
----
0

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL - 13 / + 91 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8105
SELECT ALL + 58 + - - 26 + - 51 + - - 95 + - MAX( ALL 17 ) DIV + - COUNT( DISTINCT + 13 ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL + 58 + - - 26 + - 51 + - - 95 + - MAX ( ALL 17 ) / + - COUNT ( DISTINCT + 13 ) AS col0
----
145

query I rowsort
SELECT - ( + - 90 ) AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8107
SELECT ALL - + COALESCE ( - SUM( ( + 33 ) ), CAST( NULL AS SIGNED ) DIV - AVG ( DISTINCT - + 60 ) * 56 + 69, - 68 ) + + CAST( 56 AS SIGNED ) + - + 97 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL - + COALESCE ( - SUM ( ( + 33 ) ), CAST ( NULL AS INTEGER ) / - AVG ( DISTINCT - + 60 ) * 56 + 69, - 68 ) + + CAST ( 56 AS INTEGER ) + - + 97 AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8108
SELECT CAST( + 6 AS SIGNED ) * - 19 + - COUNT( * )
----
-115

skipif mysql # not compatible
query I rowsort label-8108
SELECT CAST ( + 6 AS INTEGER ) * - 19 + - COUNT ( * )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT + ( 38 ) + + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8109
SELECT + ( 38 ) + + COUNT ( * ) AS col2
----
39

query I rowsort
SELECT ALL + 13 + 80 - + - 17 * - - 16 AS col0
----
365

query II rowsort
SELECT + 75 * 58 + - - 40 AS col2, + 52 AS col1
----
4390
52

query I rowsort
SELECT ALL - + 43 + + 44 + + 7
----
8

query I rowsort
SELECT + 14 * 65 AS col2
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT - + ( + COUNT( + 95 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8114
SELECT - + ( + COUNT ( + 95 ) )
----
-1

query I rowsort
SELECT DISTINCT 93 - + 30
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT - MIN( 88 ) * - + 15 + 41 * - COUNT( * ) AS col1
----
1279

skipif mysql # not compatible
query I rowsort label-8116
SELECT - MIN ( 88 ) * - + 15 + 41 * - COUNT ( * ) AS col1
----
1279

query I rowsort
SELECT ALL - + 51 - 63 AS col2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT DISTINCT + ( - - ( - MIN( 0 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT + ( - - ( - MIN ( 0 ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8119
SELECT ALL + CASE - + COUNT( * ) WHEN - ( + - MIN( DISTINCT + 39 ) ) THEN NULL WHEN + 9 * - 19 THEN 1 * - + CAST( NULL AS DECIMAL ) + - 40 + + 51 * - COUNT( * ) * + 29 + - - 98 + + - 92 * - 13 * - 9 + - ( + 55 ) * - 72 END - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL + CASE - + COUNT ( * ) WHEN - ( + - MIN ( DISTINCT + 39 ) ) THEN NULL WHEN + 9 * - 19 THEN 1 * - + CAST ( NULL AS REAL ) + - 40 + + 51 * - COUNT ( * ) * + 29 + - - 98 + + - 92 * - 13 * - 9 + - ( + 55 ) * - 72 END - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - CASE 85 WHEN - 10 + - 83 THEN 40 ELSE - - 34 END AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT 37 + + COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8121
SELECT 37 + + COUNT ( * ) AS col1
----
38

query I rowsort
SELECT + 17 * + 73 AS col1
----
1241

onlyif mysql # DIV for integer division: 
query I rowsort label-8123
SELECT ALL - 94 DIV + 42
----
-2

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL - 94 / + 42
----
-2

query I rowsort
SELECT - + ( + + 59 ) AS col1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8125
SELECT 5 - - 86 DIV - + ( + 7 ) + + 32 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8125
SELECT 5 - - 86 / - + ( + 7 ) + + 32 AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8126
SELECT 8 DIV - + COUNT( * ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-8126
SELECT 8 / - + COUNT ( * ) col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT ALL - COUNT( * ) * 84 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL - COUNT ( * ) * 84 AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8128
SELECT DISTINCT SUM( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT DISTINCT SUM( ALL + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT SUM ( ALL + 9 ) AS col0
----
9

query I rowsort
SELECT 14 + - 75
----
-61

query I rowsort
SELECT 50 - - - 36 col1
----
14

query I rowsort
SELECT ALL - 4 * 89 + + - 63 AS col0
----
-419

query I rowsort
SELECT 33 * - 46 * 20 * + 72 * - 24
----
52462080

query II rowsort
SELECT 69 * + NULLIF ( 18, - + 28 ), 55 AS col0
----
1242
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8135
SELECT COUNT( * ) DIV - 36 + ( + 63 ) - - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-8135
SELECT COUNT ( * ) / - 36 + ( + 63 ) - - - COUNT ( * )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8136
SELECT DISTINCT 96 DIV 81
----
1

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT 96 / 81
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8137
SELECT DISTINCT - COUNT( * ) * - 82 + - COALESCE ( - 95, + 95 * + 40 + 0, - 9 DIV + NULLIF ( + + 61, - 39 + + - 25 - 79 ) ) col1, - 90
----
177
-90

skipif mysql # not compatible
query II rowsort label-8137
SELECT DISTINCT - COUNT ( * ) * - 82 + - COALESCE ( - 95, + 95 * + 40 + 0, - 9 / + NULLIF ( + + 61, - 39 + + - 25 - 79 ) ) col1, - 90
----
177
-90

query I rowsort
SELECT ALL 31 * + 9 AS col1
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL - 77 * 86 * + - CASE + - COUNT( * ) WHEN - 74 THEN + 34 + - 92 END + COUNT( * ) + - COUNT( * ) * 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL - 77 * 86 * + - CASE + - COUNT ( * ) WHEN - 74 THEN + 34 + - 92 END + COUNT ( * ) + - COUNT ( * ) * 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8140
SELECT DISTINCT 60 DIV COUNT( * ) * - COALESCE ( + 17, - 56, - + 56 )
----
-1020

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT 60 / COUNT ( * ) * - COALESCE ( + 17, - 56, - + 56 )
----
-1020

query II rowsort
SELECT ALL 49 * 52 + + - 82 AS col2, 58
----
2466
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8142
SELECT + 50 AS col2, - COUNT( * ) DIV - 58 * - 24 AS col0
----
50
0

skipif mysql # not compatible
query II rowsort label-8142
SELECT + 50 AS col2, - COUNT ( * ) / - 58 * - 24 AS col0
----
50
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8143
SELECT ALL 93 * - 20 * + - MIN( + 13 ) AS col2, 47 + - 68 + 96 - - - ( - AVG ( - 54 ) ) * + - CAST( NULL AS SIGNED ) / + COUNT( * ) + + SUM( - 48 )
----
24180
NULL

skipif mysql # not compatible
query II rowsort label-8143
SELECT ALL 93 * - 20 * + - MIN ( + 13 ) AS col2, 47 + - 68 + 96 - - - ( - AVG ( - 54 ) ) * + - CAST ( NULL AS INTEGER ) / + COUNT ( * ) + + SUM ( - 48 )
----
24180
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8144
SELECT + + COUNT( * ) DIV - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8144
SELECT + + COUNT ( * ) / - - COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8145
SELECT DISTINCT - 19 * 44 + + 99 + - COUNT( * ) AS col2, CAST( + + 68 AS SIGNED )
----
-738
68

skipif mysql # not compatible
query II rowsort label-8145
SELECT DISTINCT - 19 * 44 + + 99 + - COUNT ( * ) AS col2, CAST ( + + 68 AS INTEGER )
----
-738
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8146
SELECT ALL 91 * + + 90 + 64 * - CAST( + - 24 AS SIGNED ) DIV COUNT( * ) + COUNT( * ) + 96 AS col1
----
9823

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL 91 * + + 90 + 64 * - CAST ( + - 24 AS INTEGER ) / COUNT ( * ) + COUNT ( * ) + 96 AS col1
----
9823

query I rowsort
SELECT - - 72 + + 14 AS col2
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8148
SELECT + 99 DIV + + 8
----
12

skipif mysql # not compatible
query I rowsort label-8148
SELECT + 99 / + + 8
----
12

query I rowsort
SELECT - 68 * + + 37
----
-2516

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ALL COUNT( * ) / + - ( CASE 10 WHEN - 76 * - 41 THEN NULL WHEN + 60 + + - 45 + + - 73 / + COUNT( * ) THEN ( + 43 ) WHEN + 3 THEN + 74 * 89 + + - ( + 54 ) END ) * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL COUNT ( * ) / + - ( CASE 10 WHEN - 76 * - 41 THEN NULL WHEN + 60 + + - 45 + + - 73 / + COUNT ( * ) THEN ( + 43 ) WHEN + 3 THEN + 74 * 89 + + - ( + 54 ) END ) * - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT DISTINCT + SUM( - - 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT + SUM ( - - 77 ) AS col2
----
77

query I rowsort
SELECT DISTINCT + NULLIF ( - 53, + - ( 78 ) )
----
-53

query I rowsort
SELECT ALL - - 15 - - 79
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8154
SELECT - - COUNT( * ) * CAST( - - 19 AS SIGNED ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8154
SELECT - - COUNT ( * ) * CAST ( - - 19 AS INTEGER ) AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8155
SELECT - - COALESCE ( - CAST( NULLIF ( - 92, 21 * 30 ) AS SIGNED ), - 97 * CASE 24 WHEN 86 THEN + ( + + 78 ) END + - ( + MIN( + 84 ) ) + - 31 + 36 + - 2 * + + SUM( DISTINCT ( - ( - 81 ) ) ) * - COUNT( * ) + ( 74 + 21 ) * 33 - - 39 * - 63 ) + + 16 col1
----
108

skipif mysql # not compatible
query I rowsort label-8155
SELECT - - COALESCE ( - CAST ( NULLIF ( - 92, 21 * 30 ) AS INTEGER ), - 97 * CASE 24 WHEN 86 THEN + ( + + 78 ) END + - ( + MIN ( + 84 ) ) + - 31 + 36 + - 2 * + + SUM ( DISTINCT ( - ( - 81 ) ) ) * - COUNT ( * ) + ( 74 + 21 ) * 33 - - 39 * - 63 ) + + 16 col1
----
108

query II rowsort
SELECT ALL 2 AS col2, 7
----
2
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT - MIN( 0 ) * 56 + + 59
----
59

skipif mysql # not compatible
query I rowsort label-8157
SELECT - MIN ( 0 ) * 56 + + 59
----
59

query I rowsort
SELECT + NULLIF ( 99, + 56 ) + 46 AS col1
----
145

query I rowsort
SELECT DISTINCT - + 73 * + 89
----
-6497

query I rowsort
SELECT DISTINCT - 21 * + - 59
----
1239

query I rowsort
SELECT ALL 39 * - 60 AS col2
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT - 51 + + COUNT( * ) + - + MIN( ALL 18 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-8162
SELECT - 51 + + COUNT ( * ) + - + MIN ( ALL 18 ) AS col1
----
-68

query I rowsort
SELECT ALL COALESCE ( + - 43, 66 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT ALL - 21 + - + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL - 21 + - + COUNT ( * )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8165
SELECT - 44 + - CASE + 65 WHEN - 99 THEN NULL WHEN - SUM( - 76 ) THEN 70 ELSE + COALESCE ( - + 76, + CAST( + 11 AS SIGNED ) ) * + 26 END * COUNT( * ) DIV - 94
----
-65

skipif mysql # not compatible
query I rowsort label-8165
SELECT - 44 + - CASE + 65 WHEN - 99 THEN NULL WHEN - SUM ( - 76 ) THEN 70 ELSE + COALESCE ( - + 76, + CAST ( + 11 AS INTEGER ) ) * + 26 END * COUNT ( * ) / - 94
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT ALL SUM( 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL SUM ( 82 ) AS col2
----
82

query I rowsort
SELECT + 15 * 56
----
840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8168
SELECT - COUNT( * ) + - - 26 DIV - 13 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8168
SELECT - COUNT ( * ) + - - 26 / - 13 AS col1
----
-3

query I rowsort
SELECT - 97 + 81 AS col0
----
-16

query I rowsort
SELECT ALL - 85 + + - ( + + 95 )
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8171
SELECT DISTINCT - 76 + CAST( NULL AS SIGNED ) - + + 83 + 58 * + COUNT( * ) * + - 9 * + 39 + + COALESCE ( - 27, - - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT DISTINCT - 76 + CAST ( NULL AS INTEGER ) - + + 83 + 58 * + COUNT ( * ) * + - 9 * + 39 + + COALESCE ( - 27, - - 66 )
----
NULL

query I rowsort
SELECT - 85 * - 45 * 27 AS col1
----
103275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8173
SELECT DISTINCT + 12 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT + 12 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8174
SELECT - 61 * - 51, COUNT( 89 ) AS col0
----
3111
1

skipif mysql # not compatible
query II rowsort label-8174
SELECT - 61 * - 51, COUNT ( 89 ) AS col0
----
3111
1

query I rowsort
SELECT ALL - CASE - 2 WHEN 60 THEN - 93 * - 20 + 25 WHEN - 61 + + - 13 * - 77 THEN NULL ELSE NULL END + - 9 AS col2
----
NULL

query I rowsort
SELECT ALL + 31 * + 37
----
1147

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8177
SELECT - COALESCE ( + 32, - 80 ) DIV + 59 AS col1, COUNT( * ) + - 48
----
0
-47

skipif mysql # not compatible
query II rowsort label-8177
SELECT - COALESCE ( + 32, - 80 ) / + 59 AS col1, COUNT ( * ) + - 48
----
0
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8178
SELECT ALL 64 DIV - 4 + - 34 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL 64 / - 4 + - 34 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-8179
SELECT + SUM( ALL + 93 ) AS col2, 68 * + 59 + + + COUNT( * )
----
93
4013

skipif mysql # not compatible
query II rowsort label-8179
SELECT + SUM ( ALL + 93 ) AS col2, 68 * + 59 + + + COUNT ( * )
----
93
4013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8180
SELECT DISTINCT 39 DIV - - 52 + + 14 + - + COALESCE ( - + 72, 65 * + + COUNT( * ), 96 + - COUNT( * ) ) * + 56 col0
----
4046

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT 39 / - - 52 + + 14 + - + COALESCE ( - + 72, 65 * + + COUNT ( * ), 96 + - COUNT ( * ) ) * + 56 col0
----
4046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8181
SELECT ALL - COUNT( * ) * - CAST( - 89 AS SIGNED ) - CAST( + + 67 AS SIGNED ) * 65
----
-4444

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL - COUNT ( * ) * - CAST ( - 89 AS INTEGER ) - CAST ( + + 67 AS INTEGER ) * 65
----
-4444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT - 69 * - 78 + CAST( NULL AS SIGNED ) + + - 65 - + + CASE + - 1 WHEN + 94 THEN - 48 WHEN + CAST( NULL AS SIGNED ) THEN NULL END * + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT - 69 * - 78 + CAST ( NULL AS INTEGER ) + + - 65 - + + CASE + - 1 WHEN + 94 THEN - 48 WHEN + CAST ( NULL AS INTEGER ) THEN NULL END * + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT DISTINCT + - MIN( DISTINCT - 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT + - MIN ( DISTINCT - 15 ) AS col1
----
15

query I rowsort
SELECT ALL - 36 * + 89 - + NULLIF ( + 65, + 29 )
----
-3269

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL - COUNT( DISTINCT + 97 ) * + 8
----
-8

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL - COUNT ( DISTINCT + 97 ) * + 8
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-8186
SELECT + + 50 DIV + - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8186
SELECT + + 50 / + - 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT - 72 * - ( COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-8187
SELECT - 72 * - ( COUNT ( * ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT + - COUNT( ALL - + 89 ) - 92 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8188
SELECT + - COUNT ( ALL - + 89 ) - 92 AS col0
----
-93

query I rowsort
SELECT + 13 + 27 col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT SUM( ALL 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8190
SELECT SUM ( ALL 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT DISTINCT + 92 * - - 24 * + - MIN( ALL - ( - 75 ) )
----
-165600

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT + 92 * - - 24 * + - MIN ( ALL - ( - 75 ) )
----
-165600

query I rowsort
SELECT ALL COALESCE ( + + 1, + 89 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8193
SELECT + 27 * CAST( NULL AS SIGNED ) * - 72 * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8193
SELECT + 27 * CAST ( NULL AS INTEGER ) * - 72 * + 68
----
NULL

query I rowsort
SELECT DISTINCT 27 + + + 56
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL COUNT( DISTINCT - 66 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL COUNT ( DISTINCT - 66 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8196
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8196
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT - COUNT( + 22 ) * + - 85
----
85

skipif mysql # not compatible
query I rowsort label-8197
SELECT - COUNT ( + 22 ) * + - 85
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8198
SELECT ALL COALESCE ( - - 85, - 75, - COUNT( * ), - - 19 DIV COUNT( * ) * ( - - 49 ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL COALESCE ( - - 85, - 75, - COUNT ( * ), - - 19 / COUNT ( * ) * ( - - 49 ) ) AS col2
----
85

query I rowsort
SELECT DISTINCT + 44 * - 91 AS col0
----
-4004

query I rowsort
SELECT ALL - 89 + + + 33
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8201
SELECT + 85 - - MIN( DISTINCT - - 69 ) + CASE - 82 WHEN - + AVG ( - NULLIF ( 26, + CAST( NULL AS SIGNED ) ) ) THEN - CASE - 73 WHEN + + 68 THEN + 17 END * 69 WHEN + 86 * 12 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT + 85 - - MIN ( DISTINCT - - 69 ) + CASE - 82 WHEN - + AVG ( - NULLIF ( 26, + CAST ( NULL AS INTEGER ) ) ) THEN - CASE - 73 WHEN + + 68 THEN + 17 END * 69 WHEN + 86 * 12 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT DISTINCT 91 + + NULLIF ( + 55, 47 * - + 62 * + MAX( DISTINCT - 39 ) )
----
146

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT 91 + + NULLIF ( + 55, 47 * - + 62 * + MAX ( DISTINCT - 39 ) )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT ALL + 26 * - + COALESCE ( - + COUNT( * ), 36 )
----
26

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL + 26 * - + COALESCE ( - + COUNT ( * ), 36 )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8204
SELECT ALL ( - 41 ) + - + 30 * - COUNT( * ) DIV - COUNT( - 23 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL ( - 41 ) + - + 30 * - COUNT ( * ) / - COUNT ( - 23 ) AS col2
----
-71

query I rowsort
SELECT DISTINCT ( 84 ) * 63
----
5292

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL - 54 + MAX( + 62 )
----
8

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL - 54 + MAX ( + 62 )
----
8

query I rowsort
SELECT DISTINCT - 72 + + 51 * 23 AS col2
----
1101

query I rowsort
SELECT 84 - 43
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8209
SELECT 64 * + CAST( 40 AS SIGNED ) * + NULLIF ( - - COUNT( * ), 46 ) AS col2
----
2560

skipif mysql # not compatible
query I rowsort label-8209
SELECT 64 * + CAST ( 40 AS INTEGER ) * + NULLIF ( - - COUNT ( * ), 46 ) AS col2
----
2560

query I rowsort
SELECT ( + - CASE - - 59 WHEN - 5 THEN NULL WHEN NULLIF ( + ( ( 6 ) ), + - 10 ) THEN NULL ELSE + + 4 END ) * - 77
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL + - 36 * - - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL + - 36 * - - COUNT ( * )
----
-36

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8212
SELECT CASE - AVG ( DISTINCT + + 8 ) WHEN - CAST( + 92 AS SIGNED ) THEN + 46 / + 55 * 4 * - 58 WHEN 3 THEN - 11 END + - CAST( + 21 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT CASE - AVG ( DISTINCT + + 8 ) WHEN - CAST ( + 92 AS INTEGER ) THEN + 46 / + 55 * 4 * - 58 WHEN 3 THEN - 11 END + - CAST ( + 21 AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT 4 * - + COALESCE ( MIN( ALL + + 9 ), + 86 ) * + 61 - - SUM( DISTINCT 33 )
----
-2163

skipif mysql # not compatible
query I rowsort label-8213
SELECT 4 * - + COALESCE ( MIN ( ALL + + 9 ), + 86 ) * + 61 - - SUM ( DISTINCT 33 )
----
-2163

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT - COUNT( * ) * + 49 * + COALESCE ( - 79, + + CASE + - 61 WHEN 54 THEN NULL WHEN - 25 * + NULLIF ( 27, + + 43 ) * - 15 - COUNT( * ) + + 80 THEN + 58 ELSE NULL END ) * 4 + COUNT( * )
----
15485

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT - COUNT ( * ) * + 49 * + COALESCE ( - 79, + + CASE + - 61 WHEN 54 THEN NULL WHEN - 25 * + NULLIF ( 27, + + 43 ) * - 15 - COUNT ( * ) + + 80 THEN + 58 ELSE NULL END ) * 4 + COUNT ( * )
----
15485

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT - COUNT( * ) * - 16 * + + 22 AS col0
----
352

skipif mysql # not compatible
query I rowsort label-8215
SELECT - COUNT ( * ) * - 16 * + + 22 AS col0
----
352

query II rowsort
SELECT + 58 AS col1, + 56 AS col0
----
58
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT - 40 DIV + 81 + 68 + - + 75 - 83 DIV ( 50 ) * - - 53
----
-60

skipif mysql # not compatible
query I rowsort label-8217
SELECT - 40 / + 81 + 68 + - + 75 - 83 / ( 50 ) * - - 53
----
-60

query I rowsort
SELECT 73 * 81
----
5913

query I rowsort
SELECT + COALESCE ( 14, - 98 ) AS col0
----
14

query I rowsort
SELECT ALL - - ( - - 67 )
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8221
SELECT + - COALESCE ( 17, + + ( + 25 ) + + 81, - - COALESCE ( + + 59, AVG ( DISTINCT + + ( + 20 ) ), - - 52 ) DIV - - 49 * - COUNT( * ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-8221
SELECT + - COALESCE ( 17, + + ( + 25 ) + + 81, - - COALESCE ( + + 59, AVG ( DISTINCT + + ( + 20 ) ), - - 52 ) / - - 49 * - COUNT ( * ) ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL - + MIN( - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL - + MIN ( - 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ALL - - COUNT( * ) + - 37 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL - - COUNT ( * ) + - 37 AS col2
----
-36

query I rowsort
SELECT ALL - 83 * + 47 * + 77
----
-300377

query I rowsort
SELECT ALL + 72 + ( - 8 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT 66 * - MIN( - - 41 ) - + 97 * + COUNT( * )
----
-2803

skipif mysql # not compatible
query I rowsort label-8226
SELECT 66 * - MIN ( - - 41 ) - + 97 * + COUNT ( * )
----
-2803

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT MAX( 88 ) + - 94
----
-6

skipif mysql # not compatible
query I rowsort label-8227
SELECT MAX ( 88 ) + - 94
----
-6

query II rowsort
SELECT DISTINCT 50 AS col0, - 61 AS col1
----
50
-61

query II rowsort
SELECT 53 AS col0, 46
----
53
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT COUNT( * ) + - + 51
----
-50

skipif mysql # not compatible
query I rowsort label-8230
SELECT COUNT ( * ) + - + 51
----
-50

query I rowsort
SELECT 49 + - 4 * + + 96 AS col0
----
-335

query I rowsort
SELECT DISTINCT 73 + + 5
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8233
SELECT - 66 AS col0, - 92 * + COUNT( * ) + - COUNT( DISTINCT - 27 ) * + COUNT( * ) AS col0
----
-66
-93

skipif mysql # not compatible
query II rowsort label-8233
SELECT - 66 AS col0, - 92 * + COUNT ( * ) + - COUNT ( DISTINCT - 27 ) * + COUNT ( * ) AS col0
----
-66
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8234
SELECT 68 * + 63 * - CASE + + 47 WHEN MAX( ALL 72 ) + + SUM( 57 ) THEN NULL WHEN + - 95 THEN ( + + 93 ) + CAST( NULL AS SIGNED ) + + 31 * + COALESCE ( + MAX( ALL 59 ), - - 19 * + 17 + - 3 ) END * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT 68 * + 63 * - CASE + + 47 WHEN MAX ( ALL 72 ) + + SUM ( 57 ) THEN NULL WHEN + - 95 THEN ( + + 93 ) + CAST ( NULL AS INTEGER ) + + 31 * + COALESCE ( + MAX ( ALL 59 ), - - 19 * + 17 + - 3 ) END * 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT CAST( - 28 AS SIGNED ) + - + CAST( - 49 AS SIGNED ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT CAST ( - 28 AS INTEGER ) + - + CAST ( - 49 AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 13 - + ( + NULLIF ( + ( - 70 ), 59 ) ) AS col0
----
83

query II rowsort
SELECT ALL 30, 20 * - 82 + - + 10 * 80 * - 76 * + 10 AS col1
----
30
606360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8238
SELECT 94 + + 85 DIV + - COUNT( * ) + + 25 DIV - - 94 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8238
SELECT 94 + + 85 / + - COUNT ( * ) + + 25 / - - 94 AS col2
----
9

query II rowsort
SELECT 12 AS col0, + 24 + + - 58 + - + 13 AS col1
----
12
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-8240
SELECT 82 col1, + 31 * + 89 + - - COUNT( * )
----
82
2760

skipif mysql # not compatible
query II rowsort label-8240
SELECT 82 col1, + 31 * + 89 + - - COUNT ( * )
----
82
2760

query I rowsort
SELECT ALL 77 * ( - 29 ) AS col0
----
-2233

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL COALESCE ( 23, COUNT( DISTINCT + 27 ) )
----
23

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL COALESCE ( 23, COUNT ( DISTINCT + 27 ) )
----
23

query II rowsort
SELECT ALL - 29, 84 AS col2
----
-29
84

query I rowsort
SELECT ALL ( - - 87 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8245
SELECT - COUNT( DISTINCT - COALESCE ( + - ( 46 ), + 47 + + 41 ) ) AS col0, - CASE 73 WHEN 95 THEN - COUNT( * ) END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8245
SELECT - COUNT ( DISTINCT - COALESCE ( + - ( 46 ), + 47 + + 41 ) ) AS col0, - CASE 73 WHEN 95 THEN - COUNT ( * ) END
----
-1
NULL

query I rowsort
SELECT ALL 48 * + + 72 AS col2
----
3456

query I rowsort
SELECT + 96 * 81 - - + 29
----
7805

query II rowsort
SELECT 42 AS col0, 21 * - 23 AS col0
----
42
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT ALL - COALESCE ( 74, - SUM( + 43 ) - + 88 )
----
-74

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL - COALESCE ( 74, - SUM ( + 43 ) - + 88 )
----
-74

query I rowsort
SELECT 68 * COALESCE ( + 47, - 49, - - 41 ) AS col1
----
3196

query II rowsort
SELECT ALL - + 84, - 61 AS col0
----
-84
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT + - MAX( ALL 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-8252
SELECT + - MAX ( ALL 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT + CASE MAX( 33 ) WHEN + 41 THEN NULL WHEN + - 7 * - ( + - 9 ) THEN - 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT + CASE MAX ( 33 ) WHEN + 41 THEN NULL WHEN + - 7 * - ( + - 9 ) THEN - 36 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT + CASE - 88 WHEN 95 THEN 25 * - + ( + 30 ) ELSE NULL END - - CASE 3 WHEN - + 20 - - + 14 THEN NULL WHEN + + 64 * + - 14 - - CASE - 70 WHEN CAST( + 33 AS SIGNED ) THEN - 86 END THEN - + 58 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT + CASE - 88 WHEN 95 THEN 25 * - + ( + 30 ) ELSE NULL END - - CASE 3 WHEN - + 20 - - + 14 THEN NULL WHEN + + 64 * + - 14 - - CASE - 70 WHEN CAST ( + 33 AS INTEGER ) THEN - 86 END THEN - + 58 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8255
SELECT ALL + 67 DIV 52 DIV - - COUNT( * ) + + - 1 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL + 67 / 52 / - - COUNT ( * ) + + - 1 AS col0
----
0

query I rowsort
SELECT ALL + 87 * + 75 * 36
----
234900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8257
SELECT + - 68, + 35 * - + CAST( NULL AS SIGNED ) AS col1
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-8257
SELECT + - 68, + 35 * - + CAST ( NULL AS INTEGER ) AS col1
----
-68
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8258
SELECT DISTINCT + 76 + ( 52 ) DIV - COALESCE ( 74, 25 * 33 ) * + 24 col0
----
76

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT + 76 + ( 52 ) / - COALESCE ( 74, 25 * 33 ) * + 24 col0
----
76

query I rowsort
SELECT ALL - - 25 + - 27 * ( - 48 ) AS col1
----
1321

onlyif mysql # aggregate syntax: 
query II rowsort label-8260
SELECT DISTINCT - 95 + 59 + 67 * 0 + - COUNT( ALL + 39 ) AS col0, - COUNT( * ) col1
----
-37
-1

skipif mysql # not compatible
query II rowsort label-8260
SELECT DISTINCT - 95 + 59 + 67 * 0 + - COUNT ( ALL + 39 ) AS col0, - COUNT ( * ) col1
----
-37
-1

query I rowsort
SELECT ALL + 26 * 82 AS col1
----
2132

query I rowsort
SELECT + ( 15 ) + + 22
----
37

query I rowsort
SELECT 53 - 42 AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8264
SELECT 52 + + - ( + CAST( + - 19 AS SIGNED ) ) col2
----
71

skipif mysql # not compatible
query I rowsort label-8264
SELECT 52 + + - ( + CAST ( + - 19 AS INTEGER ) ) col2
----
71

query II rowsort
SELECT ALL 32 * - 23, + 95 AS col1
----
-736
95

query I rowsort
SELECT ALL + 72 - COALESCE ( + - 58, - 90 ) col2
----
130

query I rowsort
SELECT DISTINCT 67 * + 62 * 60
----
249240

onlyif mysql # DIV for integer division: 
query I rowsort label-8268
SELECT DISTINCT - 8 DIV - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT - 8 / - 78 AS col0
----
0

query I rowsort
SELECT ALL - 99 * - ( + 26 ) AS col0
----
2574

onlyif mysql # DIV for integer division: 
query I rowsort label-8270
SELECT + ( + 72 ) + + 47 + 70 + - 43 DIV 6
----
182

skipif mysql # not compatible
query I rowsort label-8270
SELECT + ( + 72 ) + + 47 + 70 + - 43 / 6
----
182

query II rowsort
SELECT DISTINCT 31 * - - 49 AS col2, 11 + 19
----
1519
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - 54 * + ( + SUM( + - 79 ) ) AS col0
----
4266

skipif mysql # not compatible
query I rowsort label-8272
SELECT - 54 * + ( + SUM ( + - 79 ) ) AS col0
----
4266

onlyif mysql # DIV for integer division: 
query I rowsort label-8273
SELECT + 60 * 99 DIV - + 40 AS col0
----
-148

skipif mysql # not compatible
query I rowsort label-8273
SELECT + 60 * 99 / - + 40 AS col0
----
-148

query I rowsort
SELECT ALL - 91 * 10 AS col2
----
-910

query I rowsort
SELECT DISTINCT - 82 * + - 74 AS col2
----
6068

onlyif mysql # DIV for integer division: 
query I rowsort label-8276
SELECT ALL 93 DIV 5 * + 66
----
1188

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL 93 / 5 * + 66
----
1188

query I rowsort
SELECT - - 42 + - + 75 - - 18 + - + 17 * 78 * - ( + 48 )
----
63633

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT + - COUNT( * ) - 69 col2
----
-70

skipif mysql # not compatible
query I rowsort label-8278
SELECT + - COUNT ( * ) - 69 col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ( + COUNT( DISTINCT + 45 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8279
SELECT ( + COUNT ( DISTINCT + 45 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT ALL - SUM( DISTINCT 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL - SUM ( DISTINCT 24 ) AS col1
----
-24

query II rowsort
SELECT + + 68 + + - 37 * - - 83 AS col1, 84 AS col2
----
-3003
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8282
SELECT + + CAST( - + 61 AS SIGNED ) - + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-8282
SELECT + + CAST ( - + 61 AS INTEGER ) - + COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT + - COUNT( ALL - + 36 ) * + 40
----
-40

skipif mysql # not compatible
query I rowsort label-8283
SELECT + - COUNT ( ALL - + 36 ) * + 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT ALL + + 8 * + 75 + + COUNT( * ) + - 43
----
558

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL + + 8 * + 75 + + COUNT ( * ) + - 43
----
558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8285
SELECT - COUNT( DISTINCT 33 ) * 68 * - COUNT( * ) * COUNT( * ) + - COUNT( * ) DIV - 5 - + 61 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8285
SELECT - COUNT ( DISTINCT 33 ) * 68 * - COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) / - 5 - + 61 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8286
SELECT ALL + - 9 * - CAST( NULL AS SIGNED ) * 35 - + 1 + 0 + + CASE - 85 WHEN - 63 - - COUNT( * ) THEN 1 * + + COUNT( * ) + + COUNT( * ) WHEN 0 * - - NULLIF ( 33, + - 92 * + 73 ) THEN NULL ELSE 12 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL + - 9 * - CAST ( NULL AS INTEGER ) * 35 - + 1 + 0 + + CASE - 85 WHEN - 63 - - COUNT ( * ) THEN 1 * + + COUNT ( * ) + + COUNT ( * ) WHEN 0 * - - NULLIF ( 33, + - 92 * + 73 ) THEN NULL ELSE 12 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT - + 73 DIV - + 87 * - + 70 + + - 11 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-8287
SELECT - + 73 / - + 87 * - + 70 + + - 11 / + 99
----
0

query I rowsort
SELECT DISTINCT - 38 * + 24 AS col0
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT DISTINCT + MIN( 4 ) * - 82 + - 89
----
-417

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT + MIN ( 4 ) * - 82 + - 89
----
-417

query I rowsort
SELECT DISTINCT 67 * - ( 73 )
----
-4891

query I rowsort
SELECT DISTINCT - 72 * ( - - COALESCE ( - 80, + + 91 * + + 63, 13 ) ) * - 72 + 3 AS col2
----
-414717

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8292
SELECT 50 DIV + 88 + + 37 * - + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-8292
SELECT 50 / + 88 + + 37 * - + COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8293
SELECT - - 86 + - COUNT( * ) + - COUNT( * ) - 77 + - 84 DIV 39 * + + 0
----
7

skipif mysql # not compatible
query I rowsort label-8293
SELECT - - 86 + - COUNT ( * ) + - COUNT ( * ) - 77 + - 84 / 39 * + + 0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT - COUNT( * ) * 75 + - 49 + + 19 + - 46 * 5 - - + 87
----
-248

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT - COUNT ( * ) * 75 + - 49 + + 19 + - 46 * 5 - - + 87
----
-248

query I rowsort
SELECT ALL + 0 * - + 33 + + 85
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8296
SELECT + 68 * - + MIN( DISTINCT + 59 ) AS col1, - 69
----
-4012
-69

skipif mysql # not compatible
query II rowsort label-8296
SELECT + 68 * - + MIN ( DISTINCT + 59 ) AS col1, - 69
----
-4012
-69

query II rowsort
SELECT NULLIF ( + 35, - + 74 ) col2, + 2 col0
----
35
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8298
SELECT ALL 99 * - + 87 - - + COUNT( * ) + 74 * ( + 9 ) AS col2, - 70
----
-7946
-70

skipif mysql # not compatible
query II rowsort label-8298
SELECT ALL 99 * - + 87 - - + COUNT ( * ) + 74 * ( + 9 ) AS col2, - 70
----
-7946
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT + CAST( + + 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-8299
SELECT + CAST ( + + 17 AS INTEGER )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8300
SELECT - 21 DIV - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8300
SELECT - 21 / - 67 AS col2
----
0

query I rowsort
SELECT ALL + 67 * - 28 AS col2
----
-1876

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT - COUNT( * ) * ( - ( - 3 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-8302
SELECT - COUNT ( * ) * ( - ( - 3 ) )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8303
SELECT DISTINCT + COALESCE ( 99, + 97 ) col1, 1 + - - MAX( DISTINCT + 6 )
----
99
7

skipif mysql # not compatible
query II rowsort label-8303
SELECT DISTINCT + COALESCE ( 99, + 97 ) col1, 1 + - - MAX ( DISTINCT + 6 )
----
99
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT DISTINCT + 85 * - SUM( ALL - 99 )
----
8415

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT + 85 * - SUM ( ALL - 99 )
----
8415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8305
SELECT - CAST( - ( 65 ) AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-8305
SELECT - CAST ( - ( 65 ) AS INTEGER )
----
65

query I rowsort
SELECT - COALESCE ( + 45, + ( - 0 ) * 26 + - - 27 ) + + 79
----
34

query I rowsort
SELECT - 67 * 14 * - 52
----
48776

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT - CASE 64 WHEN - ( + - 4 ) / 32 THEN - COUNT( * ) + - 72 * + - COUNT( * ) END + 42 / + COUNT( * ) + - 4 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT - CASE 64 WHEN - ( + - 4 ) / 32 THEN - COUNT ( * ) + - 72 * + - COUNT ( * ) END + 42 / + COUNT ( * ) + - 4 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8309
SELECT DISTINCT CAST( 76 AS SIGNED ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT CAST ( 76 AS INTEGER ) AS col0
----
76

query I rowsort
SELECT ALL NULLIF ( + 96, 58 * - + 47 - - ( - - 54 ) + 69 )
----
96

query I rowsort
SELECT DISTINCT 77 * - + 85
----
-6545

query I rowsort
SELECT - 1 * 5 * 17
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT - + 72 * 19 * 25 * + + ( COALESCE ( - + ( 96 ), - COUNT( * ) ) ) AS col1
----
3283200

skipif mysql # not compatible
query I rowsort label-8313
SELECT - + 72 * 19 * 25 * + + ( COALESCE ( - + ( 96 ), - COUNT ( * ) ) ) AS col1
----
3283200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8314
SELECT + + 66 + - 93 + - + COUNT( * ) * - CAST( NULL AS SIGNED ) - + 27 + 13, 50 * + COUNT( * ) * 68 * + 10 AS col0
----
NULL
34000

skipif mysql # not compatible
query II rowsort label-8314
SELECT + + 66 + - 93 + - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) - + 27 + 13, 50 * + COUNT ( * ) * 68 * + 10 AS col0
----
NULL
34000

query I rowsort
SELECT DISTINCT - - 0 * - + 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT DISTINCT - COUNT( * ) + - 18 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT - COUNT ( * ) + - 18 AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8317
SELECT - + 22 DIV + 46 + - 44 + + 38 * - 11 + 90 + - 35 DIV - + MAX( DISTINCT - + 56 ) AS col2
----
-372

skipif mysql # not compatible
query I rowsort label-8317
SELECT - + 22 / + 46 + - 44 + + 38 * - 11 + 90 + - 35 / - + MAX ( DISTINCT - + 56 ) AS col2
----
-372

onlyif mysql # aggregate syntax: 
query II rowsort label-8318
SELECT - 26 AS col1, + COUNT( * ) - 41 AS col2
----
-26
-40

skipif mysql # not compatible
query II rowsort label-8318
SELECT - 26 AS col1, + COUNT ( * ) - 41 AS col2
----
-26
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-8319
SELECT ALL SUM( DISTINCT - 75 ) + + + ( + COUNT( * ) ), - 98 AS col1
----
-74
-98

skipif mysql # not compatible
query II rowsort label-8319
SELECT ALL SUM ( DISTINCT - 75 ) + + + ( + COUNT ( * ) ), - 98 AS col1
----
-74
-98

query I rowsort
SELECT ALL + 50 + - 86 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-8321
SELECT - + COUNT( * ) AS col1, 96 * - 2 AS col1
----
-1
-192

skipif mysql # not compatible
query II rowsort label-8321
SELECT - + COUNT ( * ) AS col1, 96 * - 2 AS col1
----
-1
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT - - CASE - - 14 WHEN NULLIF ( 73, - 36 ) * - 65 THEN NULL ELSE - ( - - 68 ) * + COALESCE ( - COUNT( * ), 31 + - + 60 + + 68, + 38 ) END * - 87 - 78 + + 99 AS col1
----
-5895

skipif mysql # not compatible
query I rowsort label-8322
SELECT - - CASE - - 14 WHEN NULLIF ( 73, - 36 ) * - 65 THEN NULL ELSE - ( - - 68 ) * + COALESCE ( - COUNT ( * ), 31 + - + 60 + + 68, + 38 ) END * - 87 - 78 + + 99 AS col1
----
-5895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8323
SELECT ALL 69 / - - 70 + - + NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL 69 / - - 70 + - + NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT ALL + CASE 14 WHEN - 66 * 51 THEN NULL WHEN + - 44 THEN NULL ELSE 94 + + 92 - + 28 * - MAX( ALL - + 35 ) END
----
-794

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL + CASE 14 WHEN - 66 * 51 THEN NULL WHEN + - 44 THEN NULL ELSE 94 + + 92 - + 28 * - MAX ( ALL - + 35 ) END
----
-794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8325
SELECT - 62 DIV - + 62 + + ( + 94 ) AS col1, CAST( NULL AS SIGNED ) * + - 23 col2, + 90 + + + 74 * + COUNT( * ) - + 53
----
95
NULL
111

skipif mysql # not compatible
query III rowsort label-8325
SELECT - 62 / - + 62 + + ( + 94 ) AS col1, CAST ( NULL AS INTEGER ) * + - 23 col2, + 90 + + + 74 * + COUNT ( * ) - + 53
----
95
NULL
111

query II rowsort
SELECT DISTINCT + 17 AS col2, 65 AS col1
----
17
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT + 45 - + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-8327
SELECT + 45 - + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL 56 * + MAX( + - 62 ) AS col0
----
-3472

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL 56 * + MAX ( + - 62 ) AS col0
----
-3472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8329
SELECT ALL CAST( NULL AS SIGNED ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL CAST ( NULL AS INTEGER ) - + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 72 - 43 + + + 2
----
31

query I rowsort
SELECT CASE - 69 WHEN 89 THEN - 64 WHEN + 89 THEN - + 56 ELSE NULL END * 63 * COALESCE ( + 81, - + 90 ) * - + 79 * + - 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT + 88 * + 63 * - 52 + - 89 - 10 + - 21 + + 45 + NULLIF ( + NULLIF ( - + 9, + COUNT( * ) ), + + 77 ) * - 5 * - - 16 AS col1
----
-287643

skipif mysql # not compatible
query I rowsort label-8332
SELECT + 88 * + 63 * - 52 + - 89 - 10 + - 21 + + 45 + NULLIF ( + NULLIF ( - + 9, + COUNT ( * ) ), + + 77 ) * - 5 * - - 16 AS col1
----
-287643

query II rowsort
SELECT 87 - + 4, ( - - 63 ) AS col1
----
83
63

query I rowsort
SELECT 94 * - 95 * - 75
----
669750

onlyif mysql # DIV for integer division: 
query I rowsort label-8335
SELECT DISTINCT + 54 DIV - + 26
----
-2

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT + 54 / - + 26
----
-2

query II rowsort
SELECT ( 29 ) + + - 99 * - 8, 20 AS col1
----
821
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8337
SELECT ALL 54 / + + 8 * + 76 * 83 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL 54 / + + 8 * + 76 * 83 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT 93 * + 10 * - MIN( ALL 4 ) AS col0
----
-3720

skipif mysql # not compatible
query I rowsort label-8338
SELECT 93 * + 10 * - MIN ( ALL 4 ) AS col0
----
-3720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8339
SELECT ALL - 64 + + - 75 + - + 59 * + 59 AS col1, + CAST( NULL AS SIGNED ) - - CAST( - CASE - + COUNT( ALL 58 ) WHEN 89 + + 83 THEN + 59 * 51 + - ( + 41 ) END AS DECIMAL )
----
-3620
NULL

skipif mysql # not compatible
query II rowsort label-8339
SELECT ALL - 64 + + - 75 + - + 59 * + 59 AS col1, + CAST ( NULL AS INTEGER ) - - CAST ( - CASE - + COUNT ( ALL 58 ) WHEN 89 + + 83 THEN + 59 * 51 + - ( + 41 ) END AS REAL )
----
-3620
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL COUNT( * ) + - 74 * 30
----
-2219

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL COUNT ( * ) + - 74 * 30
----
-2219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8341
SELECT CAST( - - 52 AS SIGNED ) + - 40 + + 10 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8341
SELECT CAST ( - - 52 AS INTEGER ) + - 40 + + 10 AS col0
----
22

query I rowsort
SELECT 9 * + 62
----
558

query II rowsort
SELECT ALL - 15 + + + 41 AS col1, 59 - 46 AS col1
----
26
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT + COUNT( * ) - - + 51
----
52

skipif mysql # not compatible
query I rowsort label-8344
SELECT + COUNT ( * ) - - + 51
----
52

query I rowsort
SELECT ALL 95 * - 87 + + 4 col2
----
-8261

query I rowsort
SELECT DISTINCT 99 + + 15 AS col1
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8347
SELECT DISTINCT - SUM( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT - SUM ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL CASE WHEN NOT 24 BETWEEN NULL AND + 90 THEN NULL WHEN NOT ( 76 ) IS NULL THEN NULL ELSE 19 - - 41 + 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT NULLIF ( - 67, 29 ) + - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-8349
SELECT NULLIF ( - 67, 29 ) + - COUNT ( * )
----
-68

query I rowsort
SELECT ALL - + 93 + + 18 AS col2
----
-75

query I rowsort
SELECT DISTINCT - NULLIF ( + NULLIF ( - ( - 88 ), + - 12 + - 64 ), 86 ) AS col2
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-8352
SELECT - ( - - 70 ) AS col0, - 22 DIV - + 32 AS col1
----
-70
0

skipif mysql # not compatible
query II rowsort label-8352
SELECT - ( - - 70 ) AS col0, - 22 / - + 32 AS col1
----
-70
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8353
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) / - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) / - - 5
----
NULL

query I rowsort
SELECT - 70 * + 78 * + 3 AS col1
----
-16380

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8355
SELECT - - ( 5 ) col0, COUNT( * ) DIV + - 12 AS col1
----
5
0

skipif mysql # not compatible
query II rowsort label-8355
SELECT - - ( 5 ) col0, COUNT ( * ) / + - 12 AS col1
----
5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT 22 + + SUM( ALL + 44 )
----
66

skipif mysql # not compatible
query I rowsort label-8356
SELECT 22 + + SUM ( ALL + 44 )
----
66

query I rowsort
SELECT 66 - - 13 AS col2
----
79

query I rowsort
SELECT ALL + 55 * 2
----
110

query I rowsort
SELECT - 27 + 64 col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8360
SELECT + CAST( NULL AS SIGNED ) * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8360
SELECT + CAST ( NULL AS INTEGER ) * 51
----
NULL

query I rowsort
SELECT - 11 + - 25 col2
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8362
SELECT ALL - 64 - 11, + CAST( NULL AS DECIMAL ) AS col2
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-8362
SELECT ALL - 64 - 11, + CAST ( NULL AS REAL ) AS col2
----
-75
NULL

query I rowsort
SELECT + 77 + + 61 AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT ALL - COUNT( * ) - + COUNT( * ) + + 20 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL - COUNT ( * ) - + COUNT ( * ) + + 20 AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8365
SELECT DISTINCT - CAST( - - 68 AS SIGNED ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT - CAST ( - - 68 AS INTEGER ) AS col1
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8366
SELECT ALL COUNT( * ) DIV 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL COUNT ( * ) / 76 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8367
SELECT ( - 8 ) DIV 26 * + COUNT( * ) + ( - - 86 ) * - - 27 AS col0
----
2322

skipif mysql # not compatible
query I rowsort label-8367
SELECT ( - 8 ) / 26 * + COUNT ( * ) + ( - - 86 ) * - - 27 AS col0
----
2322

query I rowsort
SELECT ALL - COALESCE ( + + 83, - + 15 ) AS col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8369
SELECT DISTINCT 56 DIV + NULLIF ( + 50, + - ( - ( + COALESCE ( + 98, 33 + - 31 + COUNT( * ) ) ) ) ) AS col1, NULLIF ( + SUM( DISTINCT - 33 ), 35 * + COUNT( * ) + 69 ) AS col1
----
1
-33

skipif mysql # not compatible
query II rowsort label-8369
SELECT DISTINCT 56 / + NULLIF ( + 50, + - ( - ( + COALESCE ( + 98, 33 + - 31 + COUNT ( * ) ) ) ) ) AS col1, NULLIF ( + SUM ( DISTINCT - 33 ), 35 * + COUNT ( * ) + 69 ) AS col1
----
1
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT CASE - 2 WHEN + + ( 83 ) THEN - NULLIF ( - - 71, + - 4 ) + - + 31 + - ( + ( - 69 ) ) END + + + NULLIF ( 37, + 89 * COUNT( * ) + - + 58 - - 71 * - 97 + + 70 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT CASE - 2 WHEN + + ( 83 ) THEN - NULLIF ( - - 71, + - 4 ) + - + 31 + - ( + ( - 69 ) ) END + + + NULLIF ( 37, + 89 * COUNT ( * ) + - + 58 - - 71 * - 97 + + 70 ) AS col2
----
NULL

query I rowsort
SELECT ALL 67 * + 11
----
737

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT + 96 * 30 + NULLIF ( + + 22, 2 DIV - - 10 ) + + 19 DIV + 54 * - + 76 col0
----
2902

skipif mysql # not compatible
query I rowsort label-8372
SELECT + 96 * 30 + NULLIF ( + + 22, 2 / - - 10 ) + + 19 / + 54 * - + 76 col0
----
2902

query I rowsort
SELECT DISTINCT - ( 81 ) AS col2
----
-81

query II rowsort
SELECT 70 AS col0, - 21 * - ( + 9 ) col1
----
70
189

query I rowsort
SELECT ALL 13 * + - 41 col0
----
-533

onlyif mysql # DIV for integer division: 
query I rowsort label-8376
SELECT DISTINCT 48 * + + 29 DIV + 29 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT 48 * + + 29 / + 29 AS col0
----
48

query I rowsort
SELECT ALL 7 + + 31 + + 37
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8378
SELECT + 29 AS col1, COUNT( + - 36 ) AS col1
----
29
1

skipif mysql # not compatible
query II rowsort label-8378
SELECT + 29 AS col1, COUNT ( + - 36 ) AS col1
----
29
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8379
SELECT 9 + + CAST( + 44 AS SIGNED ), CAST( + COALESCE ( 60, - - 7 + 82 + + CAST( NULL AS SIGNED ) + + 17 ) AS SIGNED ) * - 63 + + - COUNT( * ) * 46 + 67 AS col1
----
53
-3759

skipif mysql # not compatible
query II rowsort label-8379
SELECT 9 + + CAST ( + 44 AS INTEGER ), CAST ( + COALESCE ( 60, - - 7 + 82 + + CAST ( NULL AS INTEGER ) + + 17 ) AS INTEGER ) * - 63 + + - COUNT ( * ) * 46 + 67 AS col1
----
53
-3759

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT CASE + - 72 WHEN + COUNT( * ) + - + 28 + - 66 THEN + - 11 + - COUNT( * ) WHEN + 17 * + ( + 97 ) + NULLIF ( - + 53, - 18 ) * MAX( + 74 ) THEN + COUNT( * ) ELSE NULL END / - ( + + 82 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8380
SELECT CASE + - 72 WHEN + COUNT ( * ) + - + 28 + - 66 THEN + - 11 + - COUNT ( * ) WHEN + 17 * + ( + 97 ) + NULLIF ( - + 53, - 18 ) * MAX ( + 74 ) THEN + COUNT ( * ) ELSE NULL END / - ( + + 82 ) col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8381
SELECT CAST( NULL AS DECIMAL ) + + + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8381
SELECT CAST ( NULL AS REAL ) + + + 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT ALL NULLIF ( + 85, + COUNT( * ) ) + + 44 AS col0
----
129

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL NULLIF ( + 85, + COUNT ( * ) ) + + 44 AS col0
----
129

query I rowsort
SELECT 19 + 3 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT - NULLIF ( COUNT( * ), + 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-8384
SELECT - NULLIF ( COUNT ( * ), + 90 )
----
-1

query II rowsort
SELECT ALL + 94 + + 48 * 89 AS col1, 42 - 10 AS col1
----
4366
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT + COALESCE ( + - 52, - + 1 ) + - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-8386
SELECT + COALESCE ( + - 52, - + 1 ) + - COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL + ( 52 ) + - COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL + ( 52 ) + - COUNT ( * ) AS col2
----
51

query I rowsort
SELECT 88 + 5
----
93

query I rowsort
SELECT DISTINCT - 17 * 23 AS col1
----
-391

query I rowsort
SELECT DISTINCT + 1 - - - 81
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT 50 * + - 23 - + COUNT( * ) + - 50 AS col2
----
-1201

skipif mysql # not compatible
query I rowsort label-8391
SELECT 50 * + - 23 - + COUNT ( * ) + - 50 AS col2
----
-1201

onlyif mysql # aggregate syntax: 
query II rowsort label-8392
SELECT - - COUNT( * ), 95 * 44 - + + SUM( 22 ) + + ( - 50 ) AS col1
----
1
4108

skipif mysql # not compatible
query II rowsort label-8392
SELECT - - COUNT ( * ), 95 * 44 - + + SUM ( 22 ) + + ( - 50 ) AS col1
----
1
4108

onlyif mysql # aggregate syntax: 
query II rowsort label-8393
SELECT 80 + ( - 0 ) * - + 56 * - NULLIF ( + CASE + 87 WHEN - 83 THEN + - 48 * + 43 + - 50 + 14 ELSE + 42 END, + COUNT( * ) + - COUNT( * ) + - - 8 + + 99 + 83 + + 64 * + 98 ) AS col1, 52 AS col2
----
80
52

skipif mysql # not compatible
query II rowsort label-8393
SELECT 80 + ( - 0 ) * - + 56 * - NULLIF ( + CASE + 87 WHEN - 83 THEN + - 48 * + 43 + - 50 + 14 ELSE + 42 END, + COUNT ( * ) + - COUNT ( * ) + - - 8 + + 99 + 83 + + 64 * + 98 ) AS col1, 52 AS col2
----
80
52

query I rowsort
SELECT ALL - 68 - - - 20 * + 18
----
-428

query I rowsort
SELECT ALL + 9 * - 7 col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT MIN( ALL + - 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-8396
SELECT MIN ( ALL + - 52 ) AS col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8397
SELECT + 34 * + 31 * CAST( NULL AS SIGNED ) * + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT + 34 * + 31 * CAST ( NULL AS INTEGER ) * + 4
----
NULL

query I rowsort
SELECT ALL 17 - 32 AS col2
----
-15

query I rowsort
SELECT ALL ( - 11 ) AS col2
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-8400
SELECT ALL 2 AS col2, 27 DIV - - 81
----
2
0

skipif mysql # not compatible
query II rowsort label-8400
SELECT ALL 2 AS col2, 27 / - - 81
----
2
0

query I rowsort
SELECT - 70 * ( + 38 )
----
-2660

query I rowsort
SELECT DISTINCT COALESCE ( + 32, + 48, - 16 )
----
32

query II rowsort
SELECT + 39 AS col1, + COALESCE ( - 21, + 6 ) - 35
----
39
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8404
SELECT COALESCE ( - 46, ( + 58 ) * + CAST( + COALESCE ( + + 21, COUNT( * ), + - 36 ) AS SIGNED ) )
----
-46

skipif mysql # not compatible
query I rowsort label-8404
SELECT COALESCE ( - 46, ( + 58 ) * + CAST ( + COALESCE ( + + 21, COUNT ( * ), + - 36 ) AS INTEGER ) )
----
-46

query I rowsort
SELECT - NULLIF ( + + 86, - 84 * - 28 ) * + 64
----
-5504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8406
SELECT MIN( ALL 54 ) / - CAST( NULL AS SIGNED ) - - + NULLIF ( + - 60, + COUNT( * ) * + COUNT( * ) + + 77 ) + 75 / + COALESCE ( + - 66, 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8406
SELECT MIN ( ALL 54 ) / - CAST ( NULL AS INTEGER ) - - + NULLIF ( + - 60, + COUNT ( * ) * + COUNT ( * ) + + 77 ) + 75 / + COALESCE ( + - 66, 75 ) AS col1
----
NULL

query II rowsort
SELECT + 47 AS col1, - 56
----
47
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8408
SELECT + 49 col2, CASE 24 WHEN CASE CAST( NULL AS SIGNED ) WHEN - - 47 THEN - 31 WHEN ( - 1 ) THEN NULL ELSE NULL END / + + COUNT( - 32 ) THEN + COALESCE ( - 31, 70, + 91 ) END + + - 31 AS col2
----
49
NULL

skipif mysql # not compatible
query II rowsort label-8408
SELECT + 49 col2, CASE 24 WHEN CASE CAST ( NULL AS INTEGER ) WHEN - - 47 THEN - 31 WHEN ( - 1 ) THEN NULL ELSE NULL END / + + COUNT ( - 32 ) THEN + COALESCE ( - 31, 70, + 91 ) END + + - 31 AS col2
----
49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT + 44 * + ( + SUM( DISTINCT - 67 ) )
----
-2948

skipif mysql # not compatible
query I rowsort label-8409
SELECT + 44 * + ( + SUM ( DISTINCT - 67 ) )
----
-2948

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT NULLIF ( + 17, - 81 * - - 32 + + CASE + 51 WHEN + MAX( ALL 99 ) + + + ( - 45 ) * + - 22 THEN + ( - + 38 ) + + 1 * 62 WHEN + 62 THEN + - 1 / - + 92 + + 68 - - 6 + - 30 ELSE - 0 END - + COUNT( * ) + + ( + 83 ) / - 97 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8410
SELECT NULLIF ( + 17, - 81 * - - 32 + + CASE + 51 WHEN + MAX ( ALL 99 ) + + + ( - 45 ) * + - 22 THEN + ( - + 38 ) + + 1 * 62 WHEN + 62 THEN + - 1 / - + 92 + + 68 - - 6 + - 30 ELSE - 0 END - + COUNT ( * ) + + ( + 83 ) / - 97 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL 80 * - + COUNT( * ) + MIN( + 71 ) + + 55 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL 80 * - + COUNT ( * ) + MIN ( + 71 ) + + 55 AS col0
----
46

query I rowsort
SELECT + 92 * + + 91 - 60 * + + 52 + - 32 col1
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT 82 * - COALESCE ( + 60, + ( + 41 ) + + 81 ) + - COUNT( * ) AS col0
----
-4921

skipif mysql # not compatible
query I rowsort label-8413
SELECT 82 * - COALESCE ( + 60, + ( + 41 ) + + 81 ) + - COUNT ( * ) AS col0
----
-4921

query I rowsort
SELECT ALL 48 * + 89 + + 95 AS col1
----
4367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8415
SELECT ALL + 10 * - 62 + + CAST( MIN( - 83 ) AS SIGNED ) + - 62 + - + 36 + - 99 * + 45 * 91 AS col2
----
-406206

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL + 10 * - 62 + + CAST ( MIN ( - 83 ) AS INTEGER ) + - 62 + - + 36 + - 99 * + 45 * 91 AS col2
----
-406206

query I rowsort
SELECT ALL + ( 42 ) col0
----
42

query I rowsort
SELECT - NULLIF ( + 38, - + 39 ) * + 39 * + 64 - - 26
----
-94822

onlyif mysql # DIV for integer division: 
query I rowsort label-8418
SELECT + 95 DIV - 74 col2
----
-1

skipif mysql # not compatible
query I rowsort label-8418
SELECT + 95 / - 74 col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8419
SELECT DISTINCT - 16 * - CAST( NULL AS SIGNED ) + - + 76 * + 25 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT - 16 * - CAST ( NULL AS INTEGER ) + - + 76 * + 25 col2
----
NULL

query II rowsort
SELECT + 81 AS col2, COALESCE ( 10, 97 * 52 * + + 36, 80 )
----
81
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT COUNT( - 58 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8421
SELECT COUNT ( - 58 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8422
SELECT ALL + 73 AS col0, MAX( + - 67 )
----
73
-67

skipif mysql # not compatible
query II rowsort label-8422
SELECT ALL + 73 AS col0, MAX ( + - 67 )
----
73
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-8423
SELECT DISTINCT - COUNT( * ) - + 46 AS col2, 41
----
-47
41

skipif mysql # not compatible
query II rowsort label-8423
SELECT DISTINCT - COUNT ( * ) - + 46 AS col2, 41
----
-47
41

query II rowsort
SELECT - 73 * + - 79 AS col2, ( + 1 ) * + 35 AS col0
----
5767
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT + ( - COUNT( * ) ) * + 56 + COALESCE ( ( 83 ), COUNT( * ), - COUNT( DISTINCT 60 ) ) * - 88
----
-7360

skipif mysql # not compatible
query I rowsort label-8425
SELECT + ( - COUNT ( * ) ) * + 56 + COALESCE ( ( 83 ), COUNT ( * ), - COUNT ( DISTINCT 60 ) ) * - 88
----
-7360

query I rowsort
SELECT ALL + 88 * + 2 + 40 AS col0
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8427
SELECT - - CASE - - 61 WHEN + 79 * - - CAST( NULL AS SIGNED ) + 80 * + 50 - - - 72 + - - ( + COUNT( * ) ) * SUM( - 86 ) THEN NULL ELSE - 62 * COUNT( * ) END + + 24
----
-38

skipif mysql # not compatible
query I rowsort label-8427
SELECT - - CASE - - 61 WHEN + 79 * - - CAST ( NULL AS INTEGER ) + 80 * + 50 - - - 72 + - - ( + COUNT ( * ) ) * SUM ( - 86 ) THEN NULL ELSE - 62 * COUNT ( * ) END + + 24
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT + - 77 / - 42 * CASE + - 3 WHEN + 67 / - - CASE - 72 WHEN - + COUNT( * ) THEN + 79 END / + COUNT( DISTINCT 14 ) THEN NULL WHEN 79 THEN NULL ELSE + 55 * 97 + + + CASE + + 37 WHEN 89 THEN + + 74 WHEN 94 + - ( + + COUNT( * ) ) THEN - + MAX( - + 64 ) ELSE NULL END + + 73 END + + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT + - 77 / - 42 * CASE + - 3 WHEN + 67 / - - CASE - 72 WHEN - + COUNT ( * ) THEN + 79 END / + COUNT ( DISTINCT 14 ) THEN NULL WHEN 79 THEN NULL ELSE + 55 * 97 + + + CASE + + 37 WHEN 89 THEN + + 74 WHEN 94 + - ( + + COUNT ( * ) ) THEN - + MAX ( - + 64 ) ELSE NULL END + + 73 END + + + 13
----
NULL

query I rowsort
SELECT DISTINCT - 72 - 69 + - 1 + + + 24 + + 24 + + NULLIF ( - 6, - 20 ) * + 11 * + 7 * - ( - + 45 ) + + - 72 AS col1
----
-20956

query I rowsort
SELECT + + 8 + + - 40
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL + MAX( DISTINCT - 19 ) - - 99 * + 9 + - + 54 AS col2
----
818

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL + MAX ( DISTINCT - 19 ) - - 99 * + 9 + - + 54 AS col2
----
818

query II rowsort
SELECT + 13 AS col1, + 70 AS col0
----
13
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT + COUNT( * ) + 14 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8433
SELECT + COUNT ( * ) + 14 AS col1
----
15

query II rowsort
SELECT 83 AS col1, 78
----
83
78

query II rowsort
SELECT ALL 74 AS col1, + 25
----
74
25

query I rowsort
SELECT + 32 + 95
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8437
SELECT ALL - + NULLIF ( - - COALESCE ( - 83, COALESCE ( COUNT( 97 ), + CAST( - 8 AS SIGNED ) * - 87 * 0, - 44 ), + - 10 * - - 29 ), COUNT( * ) ) * - 99 * + COUNT( * ) * + COUNT( * ) AS col1
----
-8217

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL - + NULLIF ( - - COALESCE ( - 83, COALESCE ( COUNT ( 97 ), + CAST ( - 8 AS INTEGER ) * - 87 * 0, - 44 ), + - 10 * - - 29 ), COUNT ( * ) ) * - 99 * + COUNT ( * ) * + COUNT ( * ) AS col1
----
-8217

onlyif mysql # DIV for integer division: 
query I rowsort label-8438
SELECT - 73 DIV 36 * + - 13 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8438
SELECT - 73 / 36 * + - 13 AS col0
----
26

query I rowsort
SELECT ALL - 12 * - + CASE - 51 WHEN + + 8 THEN + 61 WHEN - + 57 THEN - 7 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8440
SELECT - + CAST( NULL AS SIGNED ) + + - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT - + CAST ( NULL AS INTEGER ) + + - 39 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8441
SELECT + 3 DIV - 26 AS col1, 52 * + 48
----
0
2496

skipif mysql # not compatible
query II rowsort label-8441
SELECT + 3 / - 26 AS col1, 52 * + 48
----
0
2496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8442
SELECT - CAST( - CASE - + 81 WHEN + 15 THEN NULL WHEN - 72 * + - SUM( ALL - + 16 ) THEN + 49 ELSE NULL END AS SIGNED ) + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT - CAST ( - CASE - + 81 WHEN + 15 THEN NULL WHEN - 72 * + - SUM ( ALL - + 16 ) THEN + 49 ELSE NULL END AS INTEGER ) + - 34
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8443
SELECT DISTINCT + 68 + + COUNT( * ) AS col2, 33 * 20 AS col0
----
69
660

skipif mysql # not compatible
query II rowsort label-8443
SELECT DISTINCT + 68 + + COUNT ( * ) AS col2, 33 * 20 AS col0
----
69
660

query I rowsort
SELECT ALL 38 * - - 36
----
1368

query I rowsort
SELECT - 49 * 96 * 34 AS col2
----
-159936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8446
SELECT - COALESCE ( + ( + 49 ), CAST( + 83 AS SIGNED ) - + + COALESCE ( + CASE COUNT( * ) WHEN 80 - CASE WHEN - 82 NOT IN ( 77 ) THEN COUNT( * ) * + + SUM( 3 ) WHEN NULL IS NOT NULL THEN - 9 - - + 39 WHEN NULL IS NULL THEN + 43 ELSE NULL END + + CASE + + 26 WHEN - 0 * + 91 THEN NULL ELSE + + COALESCE ( + 76, + - COUNT( * ) - 95 ) * - - 54 + 57 END * + + 73 THEN 33 ELSE + 24 END, - ( - CASE - CAST( NULL AS SIGNED ) WHEN - 94 THEN NULL ELSE - 93 END ) DIV - 13 - 27, 74 ) * COUNT( * ), - 82 ) + - 56 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-8446
SELECT - COALESCE ( + ( + 49 ), CAST ( + 83 AS INTEGER ) - + + COALESCE ( + CASE COUNT ( * ) WHEN 80 - CASE WHEN - 82 NOT IN ( 77 ) THEN COUNT ( * ) * + + SUM ( 3 ) WHEN NULL IS NOT NULL THEN - 9 - - + 39 WHEN NULL IS NULL THEN + 43 ELSE NULL END + + CASE + + 26 WHEN - 0 * + 91 THEN NULL ELSE + + COALESCE ( + 76, + - COUNT ( * ) - 95 ) * - - 54 + 57 END * + + 73 THEN 33 ELSE + 24 END, - ( - CASE - CAST ( NULL AS INTEGER ) WHEN - 94 THEN NULL ELSE - 93 END ) / - 13 - 27, 74 ) * COUNT ( * ), - 82 ) + - 56 AS col0
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-8447
SELECT ALL 75 DIV 74 * - - 2 + 29 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL 75 / 74 * - - 2 + 29 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ALL COALESCE ( - - 83, - + 77 + ( - 64 ), + 84 ) / + 14 + + AVG ( DISTINCT - - 80 ) + COALESCE ( - SUM( + - 63 ), 59 ) / CASE - MAX( DISTINCT + 41 ) WHEN + COUNT( * ) + + 75 THEN + - 66 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL COALESCE ( - - 83, - + 77 + ( - 64 ), + 84 ) / + 14 + + AVG ( DISTINCT - - 80 ) + COALESCE ( - SUM ( + - 63 ), 59 ) / CASE - MAX ( DISTINCT + 41 ) WHEN + COUNT ( * ) + + 75 THEN + - 66 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT 5 * + - 71 * 81 + - COUNT( * )
----
-28756

skipif mysql # not compatible
query I rowsort label-8449
SELECT 5 * + - 71 * 81 + - COUNT ( * )
----
-28756

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT - 75 * COUNT( DISTINCT - 31 ) + ( - COUNT( * ) ) * + + MAX( DISTINCT - 95 ) col1
----
20

skipif mysql # not compatible
query I rowsort label-8450
SELECT - 75 * COUNT ( DISTINCT - 31 ) + ( - COUNT ( * ) ) * + + MAX ( DISTINCT - 95 ) col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL + COALESCE ( + 9, + ( + + COUNT( * ) ) ) col0
----
9

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL + COALESCE ( + 9, + ( + + COUNT ( * ) ) ) col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT ( + MIN( DISTINCT - 79 ) ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-8452
SELECT ( + MIN ( DISTINCT - 79 ) ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT DISTINCT MIN( - 23 ) * 29 + 36 + + ( - + SUM( + 56 ) ) AS col0
----
-687

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT MIN ( - 23 ) * 29 + 36 + + ( - + SUM ( + 56 ) ) AS col0
----
-687

query I rowsort
SELECT - 49 * - ( + 78 ) + + 97 * - 12 AS col2
----
2658

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT - COUNT( * ) * - ( + + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-8455
SELECT - COUNT ( * ) * - ( + + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT ALL + MIN( 47 )
----
47

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL + MIN ( 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT DISTINCT + - ( ( MAX( + + 65 ) ) ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT + - ( ( MAX ( + + 65 ) ) ) col2
----
-65

query I rowsort
SELECT DISTINCT + - 37 * + 46 - + + 43 AS col0
----
-1745

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT + MAX( ALL + + 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8459
SELECT + MAX ( ALL + + 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT + NULLIF ( - + 12, 57 * - - COALESCE ( 29, + 96 + + - 43 - + 28 ) - + 9 + COUNT( * ) + 27 ) + 6 * + - 19 AS col2
----
-126

skipif mysql # not compatible
query I rowsort label-8460
SELECT + NULLIF ( - + 12, 57 * - - COALESCE ( 29, + 96 + + - 43 - + 28 ) - + 9 + COUNT ( * ) + 27 ) + 6 * + - 19 AS col2
----
-126

query I rowsort
SELECT DISTINCT - 51 * + - 96 - - 17 AS col1
----
4913

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8462
SELECT ALL + 68 DIV - SUM( 30 ) AS col0, + 68 + - 39 * 67 col0
----
-2
-2545

skipif mysql # not compatible
query II rowsort label-8462
SELECT ALL + 68 / - SUM ( 30 ) AS col0, + 68 + - 39 * 67 col0
----
-2
-2545

query I rowsort
SELECT - 94 * - + 6 + 60
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8464
SELECT - 7 * - CAST( NULL AS SIGNED ) + AVG ( - 54 ) + + 80 * - 45 + + COALESCE ( - NULLIF ( + 62, + 24 ), 47 ) * 72 col2, - 74
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-8464
SELECT - 7 * - CAST ( NULL AS INTEGER ) + AVG ( - 54 ) + + 80 * - 45 + + COALESCE ( - NULLIF ( + 62, + 24 ), 47 ) * 72 col2, - 74
----
NULL
-74

query I rowsort
SELECT ALL 47 * - 15 AS col1
----
-705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8466
SELECT DISTINCT + CAST( 11 AS SIGNED ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT + CAST ( 11 AS INTEGER ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT 89 * 98 * CASE - 57 WHEN - 57 * MAX( ALL - 43 ) THEN - 69 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT 89 * 98 * CASE - 57 WHEN - 57 * MAX ( ALL - 43 ) THEN - 69 END AS col0
----
NULL

query I rowsort
SELECT ALL - - 19 * + 34 AS col1
----
646

query I rowsort
SELECT ALL + NULLIF ( ( 2 ), - 72 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ( + NULLIF ( - NULLIF ( - 0, - + 94 * 94 ), 73 ) ) * - MAX( - COALESCE ( 54, + 46, - 84 * - 21 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8470
SELECT ( + NULLIF ( - NULLIF ( - 0, - + 94 * 94 ), 73 ) ) * - MAX ( - COALESCE ( 54, + 46, - 84 * - 21 ) )
----
0

query I rowsort
SELECT - 79 * - 69 * - 43
----
-234393

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8472
SELECT DISTINCT 92 + AVG ( ALL - CAST( NULL AS SIGNED ) ) + 69, 0 * - + 74 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8472
SELECT DISTINCT 92 + AVG ( ALL - CAST ( NULL AS INTEGER ) ) + 69, 0 * - + 74 AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL COUNT( - 37 ) + 39 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL COUNT ( - 37 ) + 39 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL 26 + - COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL 26 + - COUNT ( * ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT DISTINCT 56 + - 85 * - COUNT( * ) * + 23
----
2011

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT 56 + - 85 * - COUNT ( * ) * + 23
----
2011

query II rowsort
SELECT ALL 20 + - 96 * 12 AS col2, 8 * 51 AS col1
----
-1132
408

query II rowsort
SELECT - 3 AS col2, + 56 AS col1
----
-3
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8478
SELECT NULLIF ( - COUNT( * ), + + MAX( 49 ) ) * 31 * - + 14 * - - CASE 51 WHEN 81 - 57 * 85 + 11 + + 42 * + + 27 * ( - ( - - AVG ( ALL 68 ) ) ) THEN - 86 WHEN - + SUM( DISTINCT 65 ) THEN 83 END - + - CAST( NULL AS DECIMAL ) - + 80 + CASE WHEN NOT 9 IS NULL THEN NULL WHEN ( + + 76 ) BETWEEN ( 12 ) AND NULL THEN COALESCE ( - 56, + 67, - 45 * 26 + + COUNT( * ) ) END * - 41 * 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT NULLIF ( - COUNT ( * ), + + MAX ( 49 ) ) * 31 * - + 14 * - - CASE 51 WHEN 81 - 57 * 85 + 11 + + 42 * + + 27 * ( - ( - - AVG ( ALL 68 ) ) ) THEN - 86 WHEN - + SUM ( DISTINCT 65 ) THEN 83 END - + - CAST ( NULL AS REAL ) - + 80 + CASE WHEN NOT 9 IS NULL THEN NULL WHEN ( + + 76 ) BETWEEN ( 12 ) AND NULL THEN COALESCE ( - 56, + 67, - 45 * 26 + + COUNT ( * ) ) END * - 41 * 73 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8479
SELECT COALESCE ( - 23, 29 * + + 31 ) DIV CAST( - 63 AS SIGNED ) + + COALESCE ( - 58, - - 59, 89, + 23 ) col1
----
-58

skipif mysql # not compatible
query I rowsort label-8479
SELECT COALESCE ( - 23, 29 * + + 31 ) / CAST ( - 63 AS INTEGER ) + + COALESCE ( - 58, - - 59, 89, + 23 ) col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL 84 * COUNT( ALL - 82 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL 84 * COUNT ( ALL - 82 ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8481
SELECT DISTINCT COUNT( * ) * + ( + CAST( + 32 AS SIGNED ) ) * 93 - + 74
----
2902

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT COUNT ( * ) * + ( + CAST ( + 32 AS INTEGER ) ) * 93 - + 74
----
2902

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8482
SELECT 22 DIV - + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-8482
SELECT 22 / - + COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT CASE - 82 WHEN + + 19 / - - 59 * COALESCE ( - + 74, - 24 + - 13 - - + 21 ) THEN - MIN( ALL + 3 ) WHEN - COUNT( * ) THEN NULL END * - - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT CASE - 82 WHEN + + 19 / - - 59 * COALESCE ( - + 74, - 24 + - 13 - - + 21 ) THEN - MIN ( ALL + 3 ) WHEN - COUNT ( * ) THEN NULL END * - - 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8484
SELECT DISTINCT - SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8485
SELECT ALL - 19 - + COUNT( * ) + + MAX( ( + 63 ) ) + - 80 - 16 DIV 85 * - - 50 * + 6
----
-37

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL - 19 - + COUNT ( * ) + + MAX ( ( + 63 ) ) + - 80 - 16 / 85 * - - 50 * + 6
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT 2 - - 23 + + 71 * + SUM( - 83 ) AS col2
----
-5868

skipif mysql # not compatible
query I rowsort label-8486
SELECT 2 - - 23 + + 71 * + SUM ( - 83 ) AS col2
----
-5868

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL 48 * - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL 48 * - COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ALL - CASE + COUNT( * ) WHEN - 24 * + ( 62 ) - + COUNT( * ) THEN - 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL - CASE + COUNT ( * ) WHEN - 24 * + ( 62 ) - + COUNT ( * ) THEN - 82 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8489
SELECT 99 AS col0, - COUNT( * ) AS col0
----
99
-1

skipif mysql # not compatible
query II rowsort label-8489
SELECT 99 AS col0, - COUNT ( * ) AS col0
----
99
-1

query I rowsort
SELECT 28 * - 36 AS col0
----
-1008

query I rowsort
SELECT ALL - + 39 * + NULLIF ( + 30, - ( 61 ) ) AS col0
----
-1170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT ( 61 ) + - 17 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT ( 61 ) + - 17 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT CAST( 91 AS SIGNED ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8493
SELECT CAST ( 91 AS INTEGER ) AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8494
SELECT 55 - - 20 + COUNT( - - 94 ) AS col1, COUNT( * ) DIV - 15 col2
----
76
0

skipif mysql # not compatible
query II rowsort label-8494
SELECT 55 - - 20 + COUNT ( - - 94 ) AS col1, COUNT ( * ) / - 15 col2
----
76
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8495
SELECT ALL - + ( ( - MIN( + 65 ) ) ) DIV + + COUNT( * ) - COALESCE ( - 14, + 24 DIV - 97 * + 54 ) + - 74 AS col2, COALESCE ( 23, - - 77 - - CASE 93 WHEN - + 98 * - 82 THEN + 0 + + 28 * - - 71 * - SUM( - 27 ) WHEN 79 THEN - - 64 END * + + NULLIF ( + 12, 14 ) + - CASE 87 WHEN + ( - + ( - COUNT( * ) ) ) THEN 41 * ( 8 ) WHEN 51 DIV + 40 + + 2 DIV COUNT( * ) THEN + 97 DIV + 93 ELSE NULL END, 31 * 94, COUNT( * ) * + COALESCE ( NULLIF ( 73, ( + 80 ) - + ( 51 + 92 ) ), + 93 ) - - 24 ) - 56 AS col1
----
5
-33

skipif mysql # not compatible
query II rowsort label-8495
SELECT ALL - + ( ( - MIN ( + 65 ) ) ) / + + COUNT ( * ) - COALESCE ( - 14, + 24 / - 97 * + 54 ) + - 74 AS col2, COALESCE ( 23, - - 77 - - CASE 93 WHEN - + 98 * - 82 THEN + 0 + + 28 * - - 71 * - SUM ( - 27 ) WHEN 79 THEN - - 64 END * + + NULLIF ( + 12, 14 ) + - CASE 87 WHEN + ( - + ( - COUNT ( * ) ) ) THEN 41 * ( 8 ) WHEN 51 / + 40 + + 2 / COUNT ( * ) THEN + 97 / + 93 ELSE NULL END, 31 * 94, COUNT ( * ) * + COALESCE ( NULLIF ( 73, ( + 80 ) - + ( 51 + 92 ) ), + 93 ) - - 24 ) - 56 AS col1
----
5
-33

query I rowsort
SELECT 43 * + - ( + 11 ) AS col1
----
-473

query I rowsort
SELECT + + 89 col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8498
SELECT + - 32, ( COUNT( * ) ) - 78 * + 98 AS col0
----
-32
-7643

skipif mysql # not compatible
query II rowsort label-8498
SELECT + - 32, ( COUNT ( * ) ) - 78 * + 98 AS col0
----
-32
-7643

onlyif mysql # DIV for integer division: 
query I rowsort label-8499
SELECT 35 DIV - 90 - - - ( - 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8499
SELECT 35 / - 90 - - - ( - 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT ALL + COALESCE ( 78, COUNT( * ) + + 38, - 28 + + 12, - - 27 ) * 54 * + + 38 AS col1
----
160056

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL + COALESCE ( 78, COUNT ( * ) + + 38, - 28 + + 12, - - 27 ) * 54 * + + 38 AS col1
----
160056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8501
SELECT CAST( + 91 AS SIGNED ) * + 80 + + MIN( 15 ) * + + 31 - 56
----
7689

skipif mysql # not compatible
query I rowsort label-8501
SELECT CAST ( + 91 AS INTEGER ) * + 80 + + MIN ( 15 ) * + + 31 - 56
----
7689

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT - 5 + - + MIN( ALL - + 97 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-8502
SELECT - 5 + - + MIN ( ALL - + 97 ) AS col1
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8503
SELECT + ( COUNT( * ) ) DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-8503
SELECT + ( COUNT ( * ) ) / - 89
----
0

query I rowsort
SELECT - 37 - + 39
----
-76

query II rowsort
SELECT + 98 AS col0, - 44
----
98
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8506
SELECT ALL + 95 DIV 12
----
7

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL + 95 / 12
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8507
SELECT - 94 + - - COUNT( * ) DIV + 87
----
-94

skipif mysql # not compatible
query I rowsort label-8507
SELECT - 94 + - - COUNT ( * ) / + 87
----
-94

query I rowsort
SELECT 81 * + - 48 AS col1
----
-3888

query II rowsort
SELECT - 71 AS col0, 42 AS col1
----
-71
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8510
SELECT - 77 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8510
SELECT - 77 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL - + 92 + + NULLIF ( 10, + 64 - + 72 / 12 * 81 * - ( + 3 ) * + 78 + - COUNT( * ) * MIN( - 47 ) ) + - + 91 + 7
----
-166

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL - + 92 + + NULLIF ( 10, + 64 - + 72 / 12 * 81 * - ( + 3 ) * + 78 + - COUNT ( * ) * MIN ( - 47 ) ) + - + 91 + 7
----
-166

onlyif mysql # aggregate syntax: 
query II rowsort label-8512
SELECT 14 + + - 67 + - + MIN( DISTINCT - + 84 ) AS col2, + 59 * + 63 * - + COUNT( + 31 ) + - - 57
----
31
-3660

skipif mysql # not compatible
query II rowsort label-8512
SELECT 14 + + - 67 + - + MIN ( DISTINCT - + 84 ) AS col2, + 59 * + 63 * - + COUNT ( + 31 ) + - - 57
----
31
-3660

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT MAX( DISTINCT - 40 ) + 36 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8513
SELECT MAX ( DISTINCT - 40 ) + 36 AS col1
----
-4

query I rowsort
SELECT ALL 3 * 42 * + - 62 AS col0
----
-7812

query II rowsort
SELECT ALL - 50 + - - 29 AS col0, 87
----
-21
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8516
SELECT CASE 15 WHEN 99 THEN 68 ELSE + 58 DIV + 61 END + + + 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8516
SELECT CASE 15 WHEN 99 THEN 68 ELSE + 58 / + 61 END + + + 32 AS col1
----
32

query I rowsort
SELECT 77 * + - 40
----
-3080

query I rowsort
SELECT 22 + + 64 * - + 4 AS col0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT NULLIF ( 18, + 5 ) + 40 + COUNT( * ) * 20
----
78

skipif mysql # not compatible
query I rowsort label-8519
SELECT NULLIF ( 18, + 5 ) + 40 + COUNT ( * ) * 20
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8520
SELECT - 67 DIV - + 60 + - + 25 * + 74 AS col1
----
-1849

skipif mysql # not compatible
query I rowsort label-8520
SELECT - 67 / - + 60 + - + 25 * + 74 AS col1
----
-1849

query I rowsort
SELECT ALL - ( - 21 ) col1
----
21

query I rowsort
SELECT 12 + - - 26 + + - 44 AS col0
----
-6

query II rowsort
SELECT DISTINCT ( - 62 ) * 24 + + 80 + + 49 AS col0, - 75 * + - 69 AS col1
----
-1359
5175

query I rowsort
SELECT - 79 * - + 9 + - NULLIF ( 37, + 57 / + - 95 )
----
674

query I rowsort
SELECT ( + 92 ) * + 76
----
6992

query I rowsort
SELECT 11 * 63
----
693

query I rowsort
SELECT + 18 * - + 25 * - 49 AS col2
----
22050

query I rowsort
SELECT ( 1 ) * 47 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL + 9 * + COUNT( ALL + 50 )
----
9

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL + 9 * + COUNT ( ALL + 50 )
----
9

query I rowsort
SELECT + ( 82 ) col1
----
82

query I rowsort
SELECT + + 57 * 5 * - - 11 + - ( 93 )
----
3042

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8532
SELECT ALL 68 + + CAST( NULL AS SIGNED ) AS col2, ( + + ( + 70 ) )
----
NULL
70

skipif mysql # not compatible
query II rowsort label-8532
SELECT ALL 68 + + CAST ( NULL AS INTEGER ) AS col2, ( + + ( + 70 ) )
----
NULL
70

query I rowsort
SELECT DISTINCT + + 94 + + 8 * + 25 AS col1
----
294

onlyif mysql # aggregate syntax: 
query II rowsort label-8534
SELECT - 69 * - - 24 * 98 - 22, COUNT( * ) - + 98 AS col0
----
-162310
-97

skipif mysql # not compatible
query II rowsort label-8534
SELECT - 69 * - - 24 * 98 - 22, COUNT ( * ) - + 98 AS col0
----
-162310
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT + 65 * - - SUM( DISTINCT 61 )
----
3965

skipif mysql # not compatible
query I rowsort label-8535
SELECT + 65 * - - SUM ( DISTINCT 61 )
----
3965

query I rowsort
SELECT ALL - + 39 + + 98
----
59

query I rowsort
SELECT ALL + 33 + + 11 * - 73
----
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT DISTINCT 80 + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT 80 + COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT DISTINCT - COUNT( * ) + 25 * - + 1
----
-26

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT - COUNT ( * ) + 25 * - + 1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - 62 * NULLIF ( - + 41, + + 31 ) * 34 * - COUNT( * ) AS col2
----
-86428

skipif mysql # not compatible
query I rowsort label-8540
SELECT - 62 * NULLIF ( - + 41, + + 31 ) * 34 * - COUNT ( * ) AS col2
----
-86428

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8541
SELECT ALL CASE - 46 WHEN - + 90 * + COALESCE ( SUM( ALL - 22 ), + 20, - 24 ) * - - 57 + - - 45 * 94 + - + 78 - - 23 / - 77 - + - 4 + + 97 / + - 90 + + 80 * CASE - COUNT( * ) WHEN + 70 THEN - 55 * - + 15 ELSE NULL END * - - 59 THEN - + CAST( COUNT( ( 67 ) ) AS DECIMAL ) + - 49 WHEN - - ( - 26 ) * 19 / + COUNT( * ) + - 9 THEN NULL WHEN + + 19 * + 7 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL CASE - 46 WHEN - + 90 * + COALESCE ( SUM ( ALL - 22 ), + 20, - 24 ) * - - 57 + - - 45 * 94 + - + 78 - - 23 / - 77 - + - 4 + + 97 / + - 90 + + 80 * CASE - COUNT ( * ) WHEN + 70 THEN - 55 * - + 15 ELSE NULL END * - - 59 THEN - + CAST ( COUNT ( ( 67 ) ) AS REAL ) + - 49 WHEN - - ( - 26 ) * 19 / + COUNT ( * ) + - 9 THEN NULL WHEN + + 19 * + 7 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 91 * 10
----
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT ALL + COUNT( * ) - - COUNT( * ) + + - ( 43 ) * - 30 * + COALESCE ( + - 4, + + 92 + 59 + 44 * - 3 ) - 41
----
-5199

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL + COUNT ( * ) - - COUNT ( * ) + + - ( 43 ) * - 30 * + COALESCE ( + - 4, + + 92 + 59 + 44 * - 3 ) - 41
----
-5199

onlyif mysql # aggregate syntax: 
query II rowsort label-8544
SELECT 16 col2, COUNT( * ) AS col0
----
16
1

skipif mysql # not compatible
query II rowsort label-8544
SELECT 16 col2, COUNT ( * ) AS col0
----
16
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT - MAX( ALL + 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-8545
SELECT - MAX ( ALL + 93 )
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT - 43 DIV + 28 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8546
SELECT - 43 / + 28 AS col0
----
-1

query I rowsort
SELECT DISTINCT NULLIF ( + 22, + 64 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT ALL COALESCE ( + 83, - COUNT( * ) ) * + 90 AS col2
----
7470

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL COALESCE ( + 83, - COUNT ( * ) ) * + 90 AS col2
----
7470

query I rowsort
SELECT DISTINCT CASE + 95 WHEN - 82 THEN + - 28 WHEN + ( + 89 ) * - 38 + - ( + 69 ) * + 77 * NULLIF ( 15, - 0 ) THEN + 67 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8550
SELECT - 83 + - + CASE - CAST( + + 62 AS SIGNED ) WHEN + 16 * + 79 - - + SUM( - 39 ) THEN - 8 * + 65 * COUNT( * ) * + - 28 * - COUNT( * ) + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT - 83 + - + CASE - CAST ( + + 62 AS INTEGER ) WHEN + 16 * + 79 - - + SUM ( - 39 ) THEN - 8 * + 65 * COUNT ( * ) * + - 28 * - COUNT ( * ) + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT + MAX( ALL - + 42 ) * + 14 * + COUNT( * ) AS col2
----
-588

skipif mysql # not compatible
query I rowsort label-8551
SELECT + MAX ( ALL - + 42 ) * + 14 * + COUNT ( * ) AS col2
----
-588

query I rowsort
SELECT ALL + ( ( - + 17 ) ) * - - 98
----
-1666

query I rowsort
SELECT - 1 * + 77 AS col0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8554
SELECT 93 DIV ( - - MAX( 46 ) ) + + 68 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-8554
SELECT 93 / ( - - MAX ( 46 ) ) + + 68 AS col2
----
70

query I rowsort
SELECT + 83 + 88 * + 52 AS col0
----
4659

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT + CASE - + COALESCE ( + ( 53 ), - - 36 * - 37 + MIN( + 61 ) + COUNT( * ) ) WHEN + - 1 / + - ( - 18 ) + + + 61 THEN NULL ELSE + 1 END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8556
SELECT + CASE - + COALESCE ( + ( 53 ), - - 36 * - 37 + MIN ( + 61 ) + COUNT ( * ) ) WHEN + - 1 / + - ( - 18 ) + + + 61 THEN NULL ELSE + 1 END AS col0
----
1

query I rowsort
SELECT + - 44 * - 66 * 86 col0
----
249744

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT - + CASE COUNT( * ) WHEN 20 * + 91 + - 82 THEN + 3 WHEN + + 3 * 16 + ( + 66 ) THEN NULL ELSE - 7 + - 59 END + + COUNT( * ) + 23 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8558
SELECT - + CASE COUNT ( * ) WHEN 20 * + 91 + - 82 THEN + 3 WHEN + + 3 * 16 + ( + 66 ) THEN NULL ELSE - 7 + - 59 END + + COUNT ( * ) + 23 AS col1
----
90

query I rowsort
SELECT DISTINCT + 88 * + 66 + 36 + + + 74 * ( - - ( - 10 ) ) AS col2
----
5104

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT ALL 13 DIV - + 11 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL 13 / - + 11 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8561
SELECT + COUNT( ALL 56 ) / - CAST( NULL AS SIGNED ) + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8561
SELECT + COUNT ( ALL 56 ) / - CAST ( NULL AS INTEGER ) + - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8562
SELECT + + 67 DIV + COUNT( * ) + + 82 col1
----
149

skipif mysql # not compatible
query I rowsort label-8562
SELECT + + 67 / + COUNT ( * ) + + 82 col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT ALL + - 56 * - + 5 + - 89 + + 30 + 58 - + 15 * + COUNT( * ) * + 62
----
-651

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL + - 56 * - + 5 + - 89 + + 30 + 58 - + 15 * + COUNT ( * ) * + 62
----
-651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8564
SELECT DISTINCT - 61 DIV + + 64 + + 69 + - + 29 * + 34 DIV COUNT( - 0 ) * - 61 AS col0
----
60215

skipif mysql # not compatible
query I rowsort label-8564
SELECT DISTINCT - 61 / + + 64 + + 69 + - + 29 * + 34 / COUNT ( - 0 ) * - 61 AS col0
----
60215

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT COUNT( * ) * - 73 + + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-8565
SELECT COUNT ( * ) * - 73 + + COUNT ( * ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT ALL + ( + 44 ) * + COUNT( * ) * - 58 * - 73 + + COUNT( * ) * + - 31 AS col0
----
186265

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL + ( + 44 ) * + COUNT ( * ) * - 58 * - 73 + + COUNT ( * ) * + - 31 AS col0
----
186265

onlyif mysql # DIV for integer division: 
query I rowsort label-8567
SELECT - + 23 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-8567
SELECT - + 23 / - 60
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT + + 17 * - CAST( 69 AS SIGNED ) * 98 - - 93 + - 58 + - 65
----
-114984

skipif mysql # not compatible
query I rowsort label-8568
SELECT + + 17 * - CAST ( 69 AS INTEGER ) * 98 - - 93 + - 58 + - 65
----
-114984

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT + - 59 - NULLIF ( - COUNT( * ), + 77 )
----
-58

skipif mysql # not compatible
query I rowsort label-8569
SELECT + - 59 - NULLIF ( - COUNT ( * ), + 77 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT + - 42 * COUNT( * ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-8570
SELECT + - 42 * COUNT ( * ) col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT ALL - 52 * + ( - - COUNT( * ) ) + - COUNT( ALL - - 86 ) + + 59 + - - 16
----
22

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL - 52 * + ( - - COUNT ( * ) ) + - COUNT ( ALL - - 86 ) + + 59 + - - 16
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8572
SELECT DISTINCT + - 24, 43 * - CAST( NULL AS SIGNED ) + + 42 AS col0
----
-24
NULL

skipif mysql # not compatible
query II rowsort label-8572
SELECT DISTINCT + - 24, 43 * - CAST ( NULL AS INTEGER ) + + 42 AS col0
----
-24
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( 53, 84 ) AS col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8574
SELECT ALL NULLIF ( - + COUNT( * ), - 77 ) * + NULLIF ( 21, + - 45 * ( 55 ) DIV + ( + 87 ) + - 43 ) + - + 92 DIV ( - 15 ) + + - 85 - + 46 AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL NULLIF ( - + COUNT ( * ), - 77 ) * + NULLIF ( 21, + - 45 * ( 55 ) / + ( + 87 ) + - 43 ) + - + 92 / ( - 15 ) + + - 85 - + 46 AS col2
----
-146

query I rowsort
SELECT ALL - + 63 * - 10 - - + 27 AS col1
----
657

query I rowsort
SELECT + ( - + 13 ) + + 23
----
10

query I rowsort
SELECT + 3 - - 53 * 89
----
4720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8578
SELECT + CAST( - - AVG ( - CAST( - - 83 AS SIGNED ) ) AS SIGNED ) + + 30 + - + COUNT( * ) * + COUNT( * ) * - + 85 * 77 - + ( + 74 )
----
6418

skipif mysql # not compatible
query I rowsort label-8578
SELECT + CAST ( - - AVG ( - CAST ( - - 83 AS INTEGER ) ) AS INTEGER ) + + 30 + - + COUNT ( * ) * + COUNT ( * ) * - + 85 * 77 - + ( + 74 )
----
6418

query I rowsort
SELECT + 43 + - 14 AS col1
----
29

query I rowsort
SELECT ALL - 60 * - 99 AS col2
----
5940

query I rowsort
SELECT - 20 + - 67 AS col0
----
-87

query I rowsort
SELECT ALL 25 * - 78 AS col2
----
-1950

query I rowsort
SELECT - 96 + - 19
----
-115

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8584
SELECT DISTINCT 60 * - + COALESCE ( 23, + CAST( NULL AS SIGNED ) DIV 13 * + 46, 97 * - + 41 + - 99 * + 73 DIV - 6 ) AS col0, CAST( + - 88 AS SIGNED ) * 56
----
-1380
-4928

skipif mysql # not compatible
query II rowsort label-8584
SELECT DISTINCT 60 * - + COALESCE ( 23, + CAST ( NULL AS INTEGER ) / 13 * + 46, 97 * - + 41 + - 99 * + 73 / - 6 ) AS col0, CAST ( + - 88 AS INTEGER ) * 56
----
-1380
-4928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8585
SELECT - 89 + - + COUNT( * ) DIV + ( - 35 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-8585
SELECT - 89 + - + COUNT ( * ) / + ( - 35 ) AS col1
----
-89

query II rowsort
SELECT 96 AS col1, 82 + - - 3 AS col2
----
96
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8587
SELECT - MAX( ALL - 23 ) + - ( 52 ), - 51 + - 4 + - 85 DIV + 41 AS col0
----
-29
-57

skipif mysql # not compatible
query II rowsort label-8587
SELECT - MAX ( ALL - 23 ) + - ( 52 ), - 51 + - 4 + - 85 / + 41 AS col0
----
-29
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT - 77 * - MAX( - 70 )
----
-5390

skipif mysql # not compatible
query I rowsort label-8588
SELECT - 77 * - MAX ( - 70 )
----
-5390

query I rowsort
SELECT - 36 * + - 31 AS col1
----
1116

onlyif mysql # DIV for integer division: 
query II rowsort label-8590
SELECT - 42 + + NULLIF ( 65, + 81 ) + - 58 * 26 * 32, + 81 + + - 76 DIV + 9 AS col2
----
-48233
73

skipif mysql # not compatible
query II rowsort label-8590
SELECT - 42 + + NULLIF ( 65, + 81 ) + - 58 * 26 * 32, + 81 + + - 76 / + 9 AS col2
----
-48233
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8591
SELECT 63 DIV + - ( + 45 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8591
SELECT 63 / + - ( + 45 ) col1
----
-1

query I rowsort
SELECT ALL COALESCE ( - 6, 55 + - 0 - - - ( 7 ) * - 55 ) + - 10 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT ALL - - SUM( ALL - 29 ) + + 43 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL - - SUM ( ALL - 29 ) + + 43 AS col0
----
14

query I rowsort
SELECT DISTINCT + 60 + - NULLIF ( - 32, - - AVG ( ALL 86 ) )
----
92

query I rowsort
SELECT ALL + 43 * + 83
----
3569

query I rowsort
SELECT ALL + - 60 * - ( + 16 ) + 11
----
971

query II rowsort
SELECT + - 10 col1, - 29 AS col1
----
-10
-29

query II rowsort
SELECT + 88, 60 * 76 AS col2
----
88
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT + 21 + + 5 + - + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8599
SELECT + 21 + + 5 + - + COUNT ( * ) AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT DISTINCT - COUNT( ALL CAST( - 80 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT - COUNT ( ALL CAST ( - 80 AS INTEGER ) ) AS col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8601
SELECT DISTINCT - - 18 + - + CAST( NULL AS DECIMAL ) + - 67 * 21 * + - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT - - 18 + - + CAST ( NULL AS REAL ) + - 67 * 21 * + - 26 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT - MAX( - 93 ) * 53 AS col1
----
4929

skipif mysql # not compatible
query I rowsort label-8602
SELECT - MAX ( - 93 ) * 53 AS col1
----
4929

query I rowsort
SELECT ALL - 5 - + 31 * - + 18 * + + 1 * 14 AS col1
----
7807

query I rowsort
SELECT + 96 + 60
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT ALL + COUNT( * ) - + - ( 30 )
----
31

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL + COUNT ( * ) - + - ( 30 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8606
SELECT ALL - 67 * 25 DIV 85 col2
----
-19

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL - 67 * 25 / 85 col2
----
-19

query I rowsort
SELECT 58 * 23
----
1334

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8608
SELECT ALL - 56 DIV + ( - 30 ) * - 1 - - 26 + COUNT( * ) + - - 71 * - 37
----
-2601

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL - 56 / + ( - 30 ) * - 1 - - 26 + COUNT ( * ) + - - 71 * - 37
----
-2601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8609
SELECT + + NULLIF ( + + 0, + CASE + CASE + 75 WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 42 THEN + 8 END WHEN - 35 * 79 THEN NULL WHEN - 16 THEN NULL ELSE - 29 + + CAST( NULL AS SIGNED ) END )
----
0

skipif mysql # not compatible
query I rowsort label-8609
SELECT + + NULLIF ( + + 0, + CASE + CASE + 75 WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 42 THEN + 8 END WHEN - 35 * 79 THEN NULL WHEN - 16 THEN NULL ELSE - 29 + + CAST ( NULL AS INTEGER ) END )
----
0

query I rowsort
SELECT 89 + - 28 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT + + NULLIF ( ( COUNT( * ) ), 54 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8611
SELECT + + NULLIF ( ( COUNT ( * ) ), 54 ) AS col1
----
1

query I rowsort
SELECT 87 * - 89 AS col2
----
-7743

onlyif mysql # aggregate syntax: 
query II rowsort label-8613
SELECT DISTINCT - COUNT( - 82 ) * - 25 AS col0, + 84 * - - 91
----
25
7644

skipif mysql # not compatible
query II rowsort label-8613
SELECT DISTINCT - COUNT ( - 82 ) * - 25 AS col0, + 84 * - - 91
----
25
7644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8614
SELECT COUNT( * ) DIV 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8614
SELECT COUNT ( * ) / 67 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT COUNT( * ) * ( + 30 ) * + 60 AS col0
----
1800

skipif mysql # not compatible
query I rowsort label-8615
SELECT COUNT ( * ) * ( + 30 ) * + 60 AS col0
----
1800

query I rowsort
SELECT DISTINCT 7 * + 75 AS col0
----
525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8617
SELECT DISTINCT CASE + - NULLIF ( + - COUNT( * ), + 74 ) WHEN + 23 THEN - 23 END + 40 + 79 + + 52 * + - COUNT( * ) + - CAST( 70 AS SIGNED ) - 23 * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT CASE + - NULLIF ( + - COUNT ( * ), + 74 ) WHEN + 23 THEN - 23 END + 40 + 79 + + 52 * + - COUNT ( * ) + - CAST ( 70 AS INTEGER ) - 23 * + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT ALL + 66 + + 97 + - SUM( - 21 ) AS col1
----
184

skipif mysql # not compatible
query I rowsort label-8618
SELECT ALL + 66 + + 97 + - SUM ( - 21 ) AS col1
----
184

query I rowsort
SELECT DISTINCT - 12 + + 8
----
-4

query I rowsort
SELECT DISTINCT 16 * + 61 AS col0
----
976

query I rowsort
SELECT + 56 * + 70 * - 99 AS col0
----
-388080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL - CAST( 69 AS SIGNED ) + + NULLIF ( + + 51, 84 + + 97 * + + 16 ) * + 76
----
3807

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL - CAST ( 69 AS INTEGER ) + + NULLIF ( + + 51, 84 + + 97 * + + 16 ) * + 76
----
3807

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT - NULLIF ( + 71, COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-8623
SELECT - NULLIF ( + 71, COUNT ( * ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL 34 * - MAX( - 4 )
----
136

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL 34 * - MAX ( - 4 )
----
136

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8625
SELECT NULLIF ( - 33, - + 67 DIV - CAST( NULL AS DECIMAL ) ) + 43 + + 0 + + - SUM( + 91 ) DIV NULLIF ( + 95, + 18 )
----
10

skipif mysql # not compatible
query I rowsort label-8625
SELECT NULLIF ( - 33, - + 67 / - CAST ( NULL AS REAL ) ) + 43 + + 0 + + - SUM ( + 91 ) / NULLIF ( + 95, + 18 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8626
SELECT 23 DIV - - 36 - 3 + - - 72 - 34 * 6 * + - 87 * 28 + - + 26 DIV + 64 + - + COALESCE ( 19, COUNT( * ) ) col0
----
496994

skipif mysql # not compatible
query I rowsort label-8626
SELECT 23 / - - 36 - 3 + - - 72 - 34 * 6 * + - 87 * 28 + - + 26 / + 64 + - + COALESCE ( 19, COUNT ( * ) ) col0
----
496994

query I rowsort
SELECT 25 * - - 90 + - - 61 * - + 7
----
1823

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT - MIN( - 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8628
SELECT - MIN ( - 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT DISTINCT - 9 - 81 - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT - 9 - 81 - COUNT ( * )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8630
SELECT ALL - SUM( DISTINCT + 11 ) - COALESCE ( - 61, - - CAST( NULL AS SIGNED ) ) * SUM( + 14 ) * + 52 + - CAST( NULL AS SIGNED ) + + 79 + - - 66 + - COUNT( * ) + + 82 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL - SUM ( DISTINCT + 11 ) - COALESCE ( - 61, - - CAST ( NULL AS INTEGER ) ) * SUM ( + 14 ) * + 52 + - CAST ( NULL AS INTEGER ) + + 79 + - - 66 + - COUNT ( * ) + + 82 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8631
SELECT + COALESCE ( + NULLIF ( + CAST( NULL AS SIGNED ), + - 99 + - COUNT( * ) ), + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8631
SELECT + COALESCE ( + NULLIF ( + CAST ( NULL AS INTEGER ), + - 99 + - COUNT ( * ) ), + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL - - ( - - 94 ) AS col0
----
94

query I rowsort
SELECT DISTINCT - ( + 82 ) * + 74
----
-6068

query I rowsort
SELECT + 38 * - 2 AS col0
----
-76

query I rowsort
SELECT 73 * 61 AS col0
----
4453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - 67 * - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - 67 * - + 62
----
NULL

query I rowsort
SELECT 96 * + 13 AS col0
----
1248

query I rowsort
SELECT DISTINCT - 87 * + + 20 AS col1
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT ALL - COUNT( DISTINCT 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL - COUNT ( DISTINCT 22 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT DISTINCT - CAST( - 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT - CAST ( - 55 AS INTEGER )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8641
SELECT 21, CAST( NULL AS SIGNED ) AS col0
----
21
NULL

skipif mysql # not compatible
query II rowsort label-8641
SELECT 21, CAST ( NULL AS INTEGER ) AS col0
----
21
NULL

query I rowsort
SELECT 12 + + 35 * - - 90 AS col1
----
3162

query I rowsort
SELECT 21 * + 64
----
1344

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8644
SELECT - 54 + - CAST( NULL AS DECIMAL ) + 31, - 43 AS col2
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-8644
SELECT - 54 + - CAST ( NULL AS REAL ) + 31, - 43 AS col2
----
NULL
-43

query I rowsort
SELECT DISTINCT 66 * + - 62 AS col0
----
-4092

query I rowsort
SELECT ALL + 25 * + - 3 * + 7 AS col1
----
-525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8647
SELECT + 7 + ( 39 ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT + 7 + ( 39 ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 94 + + 44
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8649
SELECT - 77, + CAST( + MAX( + 23 ) AS SIGNED ) AS col1
----
-77
23

skipif mysql # not compatible
query II rowsort label-8649
SELECT - 77, + CAST ( + MAX ( + 23 ) AS INTEGER ) AS col1
----
-77
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8650
SELECT + + 38 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8650
SELECT + + 38 + - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL 23 + + 73 col2
----
96

query I rowsort
SELECT + 93 * 7
----
651

query I rowsort
SELECT ALL + NULLIF ( - ( - - 22 ), - + 63 )
----
-22

query I rowsort
SELECT - 90 + 37
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8655
SELECT + + 61 * ( + + 36 ) - + 87 + ( 76 ) * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT + + 61 * ( + + 36 ) - + 87 + ( 76 ) * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + 50 * + - 48
----
-2400

query II rowsort
SELECT ALL 90, - 76 AS col2
----
90
-76

query II rowsort
SELECT - 1 AS col0, + 35 col0
----
-1
35

query II rowsort
SELECT + 34, 13 + + 9 AS col2
----
34
22

query I rowsort
SELECT ALL + - 18 * + + 62 col0
----
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT + COUNT( + + 3 ) * - 36 + + + 90 - + 26
----
28

skipif mysql # not compatible
query I rowsort label-8661
SELECT + COUNT ( + + 3 ) * - 36 + + + 90 - + 26
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT + 5 * - + COUNT( * ) * - + COUNT( - - ( 74 ) ) + + - ( + 26 ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-8662
SELECT + 5 * - + COUNT ( * ) * - + COUNT ( - - ( 74 ) ) + + - ( + 26 ) col1
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8663
SELECT + 74 AS col1, + COUNT( * ) AS col2
----
74
1

skipif mysql # not compatible
query II rowsort label-8663
SELECT + 74 AS col1, + COUNT ( * ) AS col2
----
74
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8664
SELECT - MIN( 2 ) DIV + + 37
----
0

skipif mysql # not compatible
query I rowsort label-8664
SELECT - MIN ( 2 ) / + + 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT + - 34 * SUM( 64 ) AS col1
----
-2176

skipif mysql # not compatible
query I rowsort label-8665
SELECT + - 34 * SUM ( 64 ) AS col1
----
-2176

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT - - 24 * - 3 + - 8 * COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-8666
SELECT - - 24 * - 3 + - 8 * COUNT ( * ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT + SUM( 50 )
----
50

skipif mysql # not compatible
query I rowsort label-8667
SELECT + SUM ( 50 )
----
50

query I rowsort
SELECT + - NULLIF ( + 41, + + 12 * 86 + - 79 + - ( - + 44 ) / + 18 ) AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8669
SELECT + - 84 DIV CAST( COUNT( * ) AS SIGNED ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8669
SELECT + - 84 / CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8670
SELECT ALL + 28 DIV - - ( + COUNT( * ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL + 28 / - - ( + COUNT ( * ) ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - COUNT( * ) * - 23 + - - 80 + + 69 * 37 AS col0
----
2656

skipif mysql # not compatible
query I rowsort label-8671
SELECT - COUNT ( * ) * - 23 + - - 80 + + 69 * 37 AS col0
----
2656

onlyif mysql # aggregate syntax: 
query II rowsort label-8672
SELECT 37 * + - 74 - + SUM( ALL - 62 ) AS col2, - COUNT( * )
----
-2676
-1

skipif mysql # not compatible
query II rowsort label-8672
SELECT 37 * + - 74 - + SUM ( ALL - 62 ) AS col2, - COUNT ( * )
----
-2676
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8673
SELECT 28 * 75 DIV - 97 + + + 57 + + + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-8673
SELECT 28 * 75 / - 97 + + + 57 + + + COUNT ( * ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT DISTINCT + MAX( ALL + - 50 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT + MAX ( ALL + - 50 ) AS col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT ALL + CAST( NULL AS SIGNED ) * COALESCE ( 50, ( + 9 ), 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL + CAST ( NULL AS INTEGER ) * COALESCE ( 50, ( + 9 ), 27 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT + ( - MIN( - 18 ) )
----
18

skipif mysql # not compatible
query I rowsort label-8676
SELECT + ( - MIN ( - 18 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT - 73 * COUNT( * ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-8677
SELECT - 73 * COUNT ( * ) col0
----
-73

query II rowsort
SELECT + 85 * + 81 * - COALESCE ( - 15, + - 11 ), 26 + - 7 AS col0
----
103275
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-8679
SELECT - 90 + + ( COUNT( * ) ) * + 7 DIV - 41 * + CASE + 11 WHEN - 73 * 65 - + COUNT( * ) THEN NULL WHEN - 3 * - CAST( NULL AS DECIMAL ) THEN - CAST( NULL AS SIGNED ) + - - 45 ELSE 17 END AS col2, - ( - COUNT( - 29 ) )
----
-90
1

skipif mysql # not compatible
query II rowsort label-8679
SELECT - 90 + + ( COUNT ( * ) ) * + 7 / - 41 * + CASE + 11 WHEN - 73 * 65 - + COUNT ( * ) THEN NULL WHEN - 3 * - CAST ( NULL AS REAL ) THEN - CAST ( NULL AS INTEGER ) + - - 45 ELSE 17 END AS col2, - ( - COUNT ( - 29 ) )
----
-90
1

query I rowsort
SELECT - 67 + + + 60 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL + 38 * - COUNT( + 6 ) col2
----
-38

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL + 38 * - COUNT ( + 6 ) col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT DISTINCT + 21 * 37 + - COUNT( * ) + - - 81
----
857

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT + 21 * 37 + - COUNT ( * ) + - - 81
----
857

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8683
SELECT ALL 90 * - - 70 + 38 - 22 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL 90 * - - 70 + 38 - 22 * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT DISTINCT 58 * COUNT( - 79 ) * + 0 + - 97
----
-97

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT 58 * COUNT ( - 79 ) * + 0 + - 97
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT - COUNT( * ) * - + 63 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8685
SELECT - COUNT ( * ) * - + 63 AS col2
----
63

query I rowsort
SELECT DISTINCT ( + ( + - 65 ) ) AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8687
SELECT ALL - CAST( + ( + 56 ) AS SIGNED ) + - CAST( - SUM( ALL + 59 ) AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL - CAST ( + ( + 56 ) AS INTEGER ) + - CAST ( - SUM ( ALL + 59 ) AS INTEGER )
----
3

query I rowsort
SELECT - 95 - 8
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-8689
SELECT ALL + + 54 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL + + 54 / - 63
----
0

query I rowsort
SELECT - + 62 col1
----
-62

query I rowsort
SELECT - + NULLIF ( + 44, + 66 ) AS col2
----
-44

query I rowsort
SELECT DISTINCT - 42 - - + 18 + 4 * + ( + 63 )
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-8693
SELECT DISTINCT - - 11 * 89, COUNT( * ) AS col0
----
979
1

skipif mysql # not compatible
query II rowsort label-8693
SELECT DISTINCT - - 11 * 89, COUNT ( * ) AS col0
----
979
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT + 49 * 34 + - + 57 - CAST( - AVG ( + + 87 ) AS SIGNED )
----
1696

skipif mysql # not compatible
query I rowsort label-8694
SELECT + 49 * 34 + - + 57 - CAST ( - AVG ( + + 87 ) AS INTEGER )
----
1696

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT DISTINCT SUM( - 3 ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT SUM ( - 3 ) col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8696
SELECT - 93 + 83 + 19 * - 58 * + CAST( COUNT( * ) AS SIGNED ) AS col2
----
-1112

skipif mysql # not compatible
query I rowsort label-8696
SELECT - 93 + 83 + 19 * - 58 * + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-1112

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT + + COUNT( * ) * - 60 + + 45 - 6 * - 75 * - 73 * 19 * + 64 AS col2
----
-39945615

skipif mysql # not compatible
query I rowsort label-8697
SELECT + + COUNT ( * ) * - 60 + + 45 - 6 * - 75 * - 73 * 19 * + 64 AS col2
----
-39945615

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT + COALESCE ( ( COUNT( ALL 97 ) ), + COUNT( * ), + 99 )
----
1

skipif mysql # not compatible
query I rowsort label-8698
SELECT + COALESCE ( ( COUNT ( ALL 97 ) ), + COUNT ( * ), + 99 )
----
1

query II rowsort
SELECT - 7 + + NULLIF ( + 43, 5 ), 39 AS col1
----
36
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL + MIN( DISTINCT + - 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL + MIN ( DISTINCT + - 24 ) AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT + + SUM( ALL 79 ) + + + ( + + 94 ) * - CAST( NULL AS SIGNED ) * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT + + SUM ( ALL 79 ) + + + ( + + 94 ) * - CAST ( NULL AS INTEGER ) * - 39
----
NULL

query II rowsort
SELECT + - 88 * - + 51 col2, - 61 AS col0
----
4488
-61

query I rowsort
SELECT + 99 * + 36 * 7 * + 34
----
848232

query I rowsort
SELECT DISTINCT + - 8 col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT ALL - CAST( NULL AS SIGNED ) * + 21 + + + 16 + + + COUNT( * ) * - COUNT( * ) + - 3 * 47 * 19 - + COALESCE ( + 79, - - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL - CAST ( NULL AS INTEGER ) * + 21 + + + 16 + + + COUNT ( * ) * - COUNT ( * ) + - 3 * 47 * 19 - + COALESCE ( + 79, - - 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT - 15 * ( - 8 ) + + COUNT( * ) AS col2
----
121

skipif mysql # not compatible
query I rowsort label-8706
SELECT - 15 * ( - 8 ) + + COUNT ( * ) AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT DISTINCT + MAX( ALL - 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT + MAX ( ALL - 47 ) AS col0
----
-47

query I rowsort
SELECT 42 * - 9 * - - 32 + + 0
----
-12096

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8709
SELECT ALL + 26 DIV + - COUNT( * ) + COUNT( * ) * + COUNT( * ) DIV 23, 70 AS col0
----
-26
70

skipif mysql # not compatible
query II rowsort label-8709
SELECT ALL + 26 / + - COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) / 23, 70 AS col0
----
-26
70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8710
SELECT + 85 + + 1 + - 78 DIV CAST( 11 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-8710
SELECT + 85 + + 1 + - 78 / CAST ( 11 AS INTEGER )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8711
SELECT 57 DIV COUNT( * ) DIV + COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8711
SELECT 57 / COUNT ( * ) / + COUNT ( * ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT 61 * + CAST( NULL AS SIGNED ) * 17 - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT 61 * + CAST ( NULL AS INTEGER ) * 17 - 94 AS col0
----
NULL

query I rowsort
SELECT 40 * - - 82 col2
----
3280

query I rowsort
SELECT DISTINCT - 53 * + 3 col2
----
-159

query I rowsort
SELECT 37 + - + 2
----
35

query II rowsort
SELECT ALL 27, - 3 AS col2
----
27
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL + 8 * + COALESCE ( - 52, + ( + COUNT( * ) ) + - 23, - 31 )
----
-416

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL + 8 * + COALESCE ( - 52, + ( + COUNT ( * ) ) + - 23, - 31 )
----
-416

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8718
SELECT CAST( NULL AS SIGNED ) + + 91 * 67, + 7 AS col0
----
NULL
7

skipif mysql # not compatible
query II rowsort label-8718
SELECT CAST ( NULL AS INTEGER ) + + 91 * 67, + 7 AS col0
----
NULL
7

query I rowsort
SELECT - 84 * - + 97 AS col2
----
8148

query I rowsort
SELECT DISTINCT + 83 * - 55
----
-4565

query I rowsort
SELECT DISTINCT + ( + 48 ) - 81 + - 91 AS col0
----
-124

query I rowsort
SELECT 10 + - 58
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT + CASE - SUM( ALL - - 24 ) WHEN - MAX( DISTINCT + 29 ) + + + 57 * - + 39 * - 68 * - 14 + 2 + - 97 THEN - 3 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8723
SELECT + CASE - SUM ( ALL - - 24 ) WHEN - MAX ( DISTINCT + 29 ) + + + 57 * - + 39 * - 68 * - 14 + 2 + - 97 THEN - 3 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8724
SELECT CAST( + - 74 AS SIGNED ) + - COUNT( - 43 )
----
-75

skipif mysql # not compatible
query I rowsort label-8724
SELECT CAST ( + - 74 AS INTEGER ) + - COUNT ( - 43 )
----
-75

query II rowsort
SELECT + 19 AS col1, 99 * 38
----
19
3762

query I rowsort
SELECT + 74 + - - 38 + + - 82 + + 13 AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8727
SELECT 12 DIV - 25 * - + 56 * 20
----
0

skipif mysql # not compatible
query I rowsort label-8727
SELECT 12 / - 25 * - + 56 * 20
----
0

query I rowsort
SELECT DISTINCT - + 34 + - 81 + + - 55 + + 43 * - CASE - - ( - + 96 ) WHEN 56 THEN 3 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8729
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) / 44
----
0

query I rowsort
SELECT DISTINCT - 46 + + 61
----
15

query I rowsort
SELECT 65 * + 12 + - + 69 * + 83
----
-4947

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT DISTINCT COUNT( * ) + + + 45 * 38
----
1711

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT COUNT ( * ) + + + 45 * 38
----
1711

onlyif mysql # DIV for integer division: 
query I rowsort label-8733
SELECT - 25 DIV 53 - + 8 + - 72 + + 88 * 9 AS col0
----
712

skipif mysql # not compatible
query I rowsort label-8733
SELECT - 25 / 53 - + 8 + - 72 + + 88 * 9 AS col0
----
712

query II rowsort
SELECT DISTINCT - 79 AS col1, 29
----
-79
29

query II rowsort
SELECT 80, - 29 AS col0
----
80
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT 27 DIV + + 2 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8736
SELECT 27 / + + 2 AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT DISTINCT 7 * - - 51 * + + CAST( NULL AS SIGNED ) * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT 7 * - - 51 * + + CAST ( NULL AS INTEGER ) * + 89
----
NULL

query I rowsort
SELECT ( - - 5 ) + + ( 38 )
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-8739
SELECT 75 * 27, + 63 - 31 + + ( - - 58 ) DIV - 70 - - ( + 52 ) AS col0
----
2025
84

skipif mysql # not compatible
query II rowsort label-8739
SELECT 75 * 27, + 63 - 31 + + ( - - 58 ) / - 70 - - ( + 52 ) AS col0
----
2025
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ALL 42 * + - 17 * CASE - CASE - 24 WHEN + CASE - COUNT( * ) WHEN + + NULLIF ( - 45, + ( + - 25 ) - - - 42 * - + 94 ) THEN + AVG ( ALL 96 ) * 78 * - 61 WHEN - - 89 + - - COUNT( * ) THEN NULL END + + 73 THEN - 29 WHEN - 71 THEN + + 26 END WHEN + COUNT( * ) THEN 58 * + 52 ELSE + 70 END AS col0
----
-49980

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL 42 * + - 17 * CASE - CASE - 24 WHEN + CASE - COUNT ( * ) WHEN + + NULLIF ( - 45, + ( + - 25 ) - - - 42 * - + 94 ) THEN + AVG ( ALL 96 ) * 78 * - 61 WHEN - - 89 + - - COUNT ( * ) THEN NULL END + + 73 THEN - 29 WHEN - 71 THEN + + 26 END WHEN + COUNT ( * ) THEN 58 * + 52 ELSE + 70 END AS col0
----
-49980

query I rowsort
SELECT NULLIF ( + - 18, 74 ) * 43 + + + 95 AS col0
----
-679

query I rowsort
SELECT 53 * - 49 * + 40 AS col1
----
-103880

query I rowsort
SELECT + 24 * - + 13 + - 26
----
-338

query I rowsort
SELECT 48 * + 60 AS col2
----
2880

query II rowsort
SELECT ALL 30 col0, - 99
----
30
-99

query II rowsort
SELECT 17 * 33, + 41 AS col1
----
561
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT COUNT( * ) - COUNT( * ), - COUNT( DISTINCT 57 ) * - 9 AS col1
----
0
9

skipif mysql # not compatible
query II rowsort label-8747
SELECT COUNT ( * ) - COUNT ( * ), - COUNT ( DISTINCT 57 ) * - 9 AS col1
----
0
9

query I rowsort
SELECT 35 * - 35 AS col1
----
-1225

onlyif mysql # aggregate syntax: 
query II rowsort label-8749
SELECT - 92 col1, COALESCE ( - NULLIF ( COUNT( 23 ), - 15 ), ( + 57 ) )
----
-92
-1

skipif mysql # not compatible
query II rowsort label-8749
SELECT - 92 col1, COALESCE ( - NULLIF ( COUNT ( 23 ), - 15 ), ( + 57 ) )
----
-92
-1

query II rowsort
SELECT - - 24 AS col1, 52 * + 75 AS col0
----
24
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ALL - + COUNT( * ) + 5
----
4

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL - + COUNT ( * ) + 5
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT COUNT( * ) - COALESCE ( 81, + 62 * + COUNT( * ) )
----
-80

skipif mysql # not compatible
query I rowsort label-8752
SELECT COUNT ( * ) - COALESCE ( 81, + 62 * + COUNT ( * ) )
----
-80

query I rowsort
SELECT ALL + ( 25 ) * 7 AS col0
----
175

query I rowsort
SELECT ALL 85 + ( + 38 )
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8755
SELECT DISTINCT - 50 + COUNT( * ) / - 65 - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT - 50 + COUNT ( * ) / - 65 - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT ALL COALESCE ( - COALESCE ( - 39, - COALESCE ( 99, - 91 ) ), COUNT( * ) * + + 41 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL COALESCE ( - COALESCE ( - 39, - COALESCE ( 99, - 91 ) ), COUNT ( * ) * + + 41 ) AS col0
----
39

query I rowsort
SELECT ALL - + 56 + - 82 AS col0
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8758
SELECT ALL - + 40 + + COUNT( * ) + + - 28 - + COUNT( * ) * - ( + CAST( + 65 AS SIGNED ) ) + + ( - 98 )
----
-100

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL - + 40 + + COUNT ( * ) + + - 28 - + COUNT ( * ) * - ( + CAST ( + 65 AS INTEGER ) ) + + ( - 98 )
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8759
SELECT 5 + - 12 + + COUNT( * ) + - CASE - - 59 WHEN 70 THEN 18 WHEN 13 + + 1 * - 61 - + 80 THEN NULL END * 95 * - CASE + 28 WHEN - 81 * + COUNT( * ) - + 97 * - - 96 THEN NULL ELSE - 34 * + 80 * + 88 + ( - COUNT( * ) ) - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT 5 + - 12 + + COUNT ( * ) + - CASE - - 59 WHEN 70 THEN 18 WHEN 13 + + 1 * - 61 - + 80 THEN NULL END * 95 * - CASE + 28 WHEN - 81 * + COUNT ( * ) - + 97 * - - 96 THEN NULL ELSE - 34 * + 80 * + 88 + ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT DISTINCT + ( + COALESCE ( 16, - 13 * COUNT( * ) * - - COALESCE ( - COUNT( DISTINCT + 68 ), + 95 + - 43 + 0 * ( - - 22 ), COUNT( * ) ) ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT + ( + COALESCE ( 16, - 13 * COUNT ( * ) * - - COALESCE ( - COUNT ( DISTINCT + 68 ), + 95 + - 43 + 0 * ( - - 22 ), COUNT ( * ) ) ) ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8761
SELECT - 20 + - - CAST( - SUM( - 30 ) AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-8761
SELECT - 20 + - - CAST ( - SUM ( - 30 ) AS INTEGER )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT + 16 * + COUNT( * ) * + 58 * + 93 - + COUNT( * )
----
86303

skipif mysql # not compatible
query I rowsort label-8762
SELECT + 16 * + COUNT ( * ) * + 58 * + 93 - + COUNT ( * )
----
86303

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT + MIN( - - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-8763
SELECT + MIN ( - - 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT ALL - 22 * + - COUNT( * ) + MAX( DISTINCT - - 54 )
----
76

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL - 22 * + - COUNT ( * ) + MAX ( DISTINCT - - 54 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT - 14 * + COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-8765
SELECT - 14 * + COUNT ( * ) AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8766
SELECT DISTINCT + ( - CAST( - + COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT + ( - CAST ( - + COUNT ( * ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT NULLIF ( + 96, - - COUNT( * ) + - 38 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8767
SELECT NULLIF ( + 96, - - COUNT ( * ) + - 38 ) AS col1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8768
SELECT - COUNT( * ) DIV - ( + 77 ) + + 58 col1
----
58

skipif mysql # not compatible
query I rowsort label-8768
SELECT - COUNT ( * ) / - ( + 77 ) + + 58 col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8769
SELECT - 72 + - COALESCE ( - - SUM( DISTINCT + + 39 ), 49, 5 - + + 80 + - 39 DIV - - ( 0 ) DIV + + 60 )
----
-111

skipif mysql # not compatible
query I rowsort label-8769
SELECT - 72 + - COALESCE ( - - SUM ( DISTINCT + + 39 ), 49, 5 - + + 80 + - 39 / - - ( 0 ) / + + 60 )
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT SUM( DISTINCT + - 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8770
SELECT SUM ( DISTINCT + - 21 ) AS col2
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8771
SELECT 36 * + - 31 * + + COUNT( * ) - + ( MAX( ALL + 0 ) ) DIV 39 AS col1, - 88 AS col2
----
-1116
-88

skipif mysql # not compatible
query II rowsort label-8771
SELECT 36 * + - 31 * + + COUNT ( * ) - + ( MAX ( ALL + 0 ) ) / 39 AS col1, - 88 AS col2
----
-1116
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT SUM( ALL ( - 93 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-8772
SELECT SUM ( ALL ( - 93 ) )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-8773
SELECT ALL + ( - + COUNT( * ) ), 36 AS col1
----
-1
36

skipif mysql # not compatible
query II rowsort label-8773
SELECT ALL + ( - + COUNT ( * ) ), 36 AS col1
----
-1
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT ALL + 33 * - - MAX( - - 38 )
----
1254

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL + 33 * - - MAX ( - - 38 )
----
1254

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL + - MAX( ALL + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + - MAX ( ALL + 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT + COUNT( * ) - - + 63 col1
----
64

skipif mysql # not compatible
query I rowsort label-8776
SELECT + COUNT ( * ) - - + 63 col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT + ( MAX( ALL + 2 ) ) * - COALESCE ( - 58, 82, - 34 + + 11 ) AS col1
----
116

skipif mysql # not compatible
query I rowsort label-8777
SELECT + ( MAX ( ALL + 2 ) ) * - COALESCE ( - 58, 82, - 34 + + 11 ) AS col1
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-8778
SELECT ALL 90 + + 36 DIV - 16 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL 90 + + 36 / - 16 AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8779
SELECT + CAST( 44 AS SIGNED ) + - - MIN( 43 ) + 45 - - - 79
----
53

skipif mysql # not compatible
query I rowsort label-8779
SELECT + CAST ( 44 AS INTEGER ) + - - MIN ( 43 ) + 45 - - - 79
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8780
SELECT + 73 + 19 DIV 52
----
73

skipif mysql # not compatible
query I rowsort label-8780
SELECT + 73 + 19 / 52
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8781
SELECT + COUNT( * ) + + 2 + - 52 * - 48 + - 40 DIV - 30 col0
----
2500

skipif mysql # not compatible
query I rowsort label-8781
SELECT + COUNT ( * ) + + 2 + - 52 * - 48 + - 40 / - 30 col0
----
2500

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT ALL + 81 + + 2 + + - COALESCE ( - - 80, + COUNT( * ) * + COUNT( * ) + - 42 * - COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL + 81 + + 2 + + - COALESCE ( - - 80, + COUNT ( * ) * + COUNT ( * ) + - 42 * - COUNT ( * ) )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8783
SELECT + ( + 18 ) DIV - + 7 + - 94 + NULLIF ( 17, 69 DIV 19 * - - 2 )
----
-79

skipif mysql # not compatible
query I rowsort label-8783
SELECT + ( + 18 ) / - + 7 + - 94 + NULLIF ( 17, 69 / 19 * - - 2 )
----
-79

query II rowsort
SELECT ALL - 12 + - 82, + 73 * + 27 + + 47 AS col0
----
-94
2018

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL + COUNT( * ) + - 88
----
-87

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL + COUNT ( * ) + - 88
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL + ( - 13 ) + - ( + 37 ) + + 2 * + + COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL + ( - 13 ) + - ( + 37 ) + + 2 * + + COUNT ( * ) AS col1
----
-48

query I rowsort
SELECT ALL + 57 + 20 AS col2
----
77

query I rowsort
SELECT ALL 92 + - + ( + 51 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT DISTINCT MIN( DISTINCT + ( - 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT MIN ( DISTINCT + ( - 21 ) )
----
-21

query II rowsort
SELECT + + 76 + - 15, - 94 * 73 AS col2
----
61
-6862

query I rowsort
SELECT ALL 19 + - - 78 AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8792
SELECT - 59 + + 15 - + 59 + 68 * - + 49, + COUNT( * ) AS col2
----
-3435
1

skipif mysql # not compatible
query II rowsort label-8792
SELECT - 59 + + 15 - + 59 + 68 * - + 49, + COUNT ( * ) AS col2
----
-3435
1

query I rowsort
SELECT - - 42 col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT - COUNT( * ) + 39 col0
----
38

skipif mysql # not compatible
query I rowsort label-8794
SELECT - COUNT ( * ) + 39 col0
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-8795
SELECT DISTINCT ( + 92 ) - 93, 96 DIV - 77
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8795
SELECT DISTINCT ( + 92 ) - 93, 96 / - 77
----
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8796
SELECT CAST( NULL AS SIGNED ) col2, + 77
----
NULL
77

skipif mysql # not compatible
query II rowsort label-8796
SELECT CAST ( NULL AS INTEGER ) col2, + 77
----
NULL
77

query I rowsort
SELECT 3 * - 69 + + 42 * 72 AS col1
----
2817

query I rowsort
SELECT + 67 * - 11 + 66 AS col2
----
-671

query II rowsort
SELECT ALL + 17 AS col2, - 41 AS col2
----
17
-41

query I rowsort
SELECT ALL + 49 * + - 15
----
-735

query I rowsort
SELECT ALL - 77 * + - 70 AS col0
----
5390

query I rowsort
SELECT ALL + 49 * - 90 * + + 86
----
-379260

query I rowsort
SELECT ALL - 86 * + 64 * + 95
----
-522880

query I rowsort
SELECT DISTINCT + - 2 * + 59
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-8805
SELECT + 3 AS col0, + COUNT( * ) AS col1
----
3
1

skipif mysql # not compatible
query II rowsort label-8805
SELECT + 3 AS col0, + COUNT ( * ) AS col1
----
3
1

query I rowsort
SELECT - - 65 + + + 75 + + 3 + 38 AS col2
----
181

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8807
SELECT - + 96 * + 46 + - CASE 10 WHEN + + CASE - + 52 WHEN + - 13 * - 85 THEN - COUNT( * ) + 53 END THEN NULL WHEN AVG ( DISTINCT - + CAST( NULL AS DECIMAL ) ) THEN + 0 * 44 END * + ( + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8807
SELECT - + 96 * + 46 + - CASE 10 WHEN + + CASE - + 52 WHEN + - 13 * - 85 THEN - COUNT ( * ) + 53 END THEN NULL WHEN AVG ( DISTINCT - + CAST ( NULL AS REAL ) ) THEN + 0 * 44 END * + ( + 60 )
----
NULL

query I rowsort
SELECT + + 90 + + 3 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT - - COALESCE ( - + 58, ( - 65 ) ) * + - COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8809
SELECT - - COALESCE ( - + 58, ( - 65 ) ) * + - COUNT ( * ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8810
SELECT ALL + + COUNT( * ) AS col2, 19 AS col0
----
1
19

skipif mysql # not compatible
query II rowsort label-8810
SELECT ALL + + COUNT ( * ) AS col2, 19 AS col0
----
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT - MAX( ALL 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8811
SELECT - MAX ( ALL 18 )
----
-18

query II rowsort
SELECT ALL - 10 * + - 53 + - 37 AS col2, - 55 AS col2
----
493
-55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8813
SELECT ALL + COUNT( * ) * + - ( + - CAST( NULL AS DECIMAL ) ) + + + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL + COUNT ( * ) * + - ( + - CAST ( NULL AS REAL ) ) + + + 61 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8814
SELECT DISTINCT + ( - ( - - CAST( NULL AS SIGNED ) ) ) col2, - COALESCE ( CAST( COUNT( DISTINCT + 42 ) AS SIGNED ), + COUNT( * ) + - - 57 )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8814
SELECT DISTINCT + ( - ( - - CAST ( NULL AS INTEGER ) ) ) col2, - COALESCE ( CAST ( COUNT ( DISTINCT + 42 ) AS INTEGER ), + COUNT ( * ) + - - 57 )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8815
SELECT ALL + MAX( ALL COALESCE ( + 95, + 2, - 94 * + - 57 ) ) * + 36 + + - 71, + ( - 87 ) AS col1
----
3349
-87

skipif mysql # not compatible
query II rowsort label-8815
SELECT ALL + MAX ( ALL COALESCE ( + 95, + 2, - 94 * + - 57 ) ) * + 36 + + - 71, + ( - 87 ) AS col1
----
3349
-87

query I rowsort
SELECT + + 89 * - 8 AS col1
----
-712

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT MAX( ALL + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-8817
SELECT MAX ( ALL + 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT - - COUNT( 8 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8818
SELECT - - COUNT ( 8 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8819
SELECT COALESCE ( - 88, + NULLIF ( + 2, - - 48 ) + + 42 ) DIV ( - 20 ) + 19
----
23

skipif mysql # not compatible
query I rowsort label-8819
SELECT COALESCE ( - 88, + NULLIF ( + 2, - - 48 ) + + 42 ) / ( - 20 ) + 19
----
23

query I rowsort
SELECT ALL + 34 - + 90
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT ALL + COUNT( * ) * - COALESCE ( - - COUNT( * ), - 59, - ( - 57 ) ) + + + COUNT( DISTINCT + 61 ) * + 13
----
12

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL + COUNT ( * ) * - COALESCE ( - - COUNT ( * ), - 59, - ( - 57 ) ) + + + COUNT ( DISTINCT + 61 ) * + 13
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8822
SELECT ( 6 ) - + + 72 + + - 8 - - - COUNT( DISTINCT + 33 ) + - - 74 * + 34 + - 71 * 18 + CAST( NULL AS SIGNED ) + 5 + + ( + 19 ) * + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8822
SELECT ( 6 ) - + + 72 + + - 8 - - - COUNT ( DISTINCT + 33 ) + - - 74 * + 34 + - 71 * 18 + CAST ( NULL AS INTEGER ) + 5 + + ( + 19 ) * + 47 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8823
SELECT CAST( NULL AS SIGNED ) * + ( - MAX( 68 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT CAST ( NULL AS INTEGER ) * + ( - MAX ( 68 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8824
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - 10 AS col2, CAST( - - 41 AS SIGNED ) * NULLIF ( 84, - - COUNT( * ) ) * + + MAX( DISTINCT 99 ) - + 92 - + 48 - - - 84 - + - 36 AS col2
----
NULL
340768

skipif mysql # not compatible
query II rowsort label-8824
SELECT DISTINCT CAST ( NULL AS REAL ) / - 10 AS col2, CAST ( - - 41 AS INTEGER ) * NULLIF ( 84, - - COUNT ( * ) ) * + + MAX ( DISTINCT 99 ) - + 92 - + 48 - - - 84 - + - 36 AS col2
----
NULL
340768

onlyif mysql # aggregate syntax: 
query II rowsort label-8825
SELECT COUNT( * ) + + COUNT( * ) AS col1, 65
----
2
65

skipif mysql # not compatible
query II rowsort label-8825
SELECT COUNT ( * ) + + COUNT ( * ) AS col1, 65
----
2
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT COUNT( * ) * 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-8826
SELECT COUNT ( * ) * 51 AS col2
----
51

query I rowsort
SELECT DISTINCT 24 * + - 21 AS col1
----
-504

query I rowsort
SELECT DISTINCT 42 * + - 11 AS col0
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT 91 * + - MIN( - 22 ) * 91 col2
----
182182

skipif mysql # not compatible
query I rowsort label-8829
SELECT 91 * + - MIN ( - 22 ) * 91 col2
----
182182

query I rowsort
SELECT ALL 77 + - 79
----
-2

query II rowsort
SELECT 10 + 19, + 70 AS col2
----
29
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8832
SELECT DISTINCT - ( - + 29 ) + - 39 + - + COALESCE ( - ( NULLIF ( 57, - 27 + - MAX( + - 13 ) ) ), - 54 * - MIN( + - 19 ) + + 10, + 19 ) + - + ( - COUNT( * ) ) + - - 74 / - + 69 * - CAST( NULL AS DECIMAL ) / 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT - ( - + 29 ) + - 39 + - + COALESCE ( - ( NULLIF ( 57, - 27 + - MAX ( + - 13 ) ) ), - 54 * - MIN ( + - 19 ) + + 10, + 19 ) + - + ( - COUNT ( * ) ) + - - 74 / - + 69 * - CAST ( NULL AS REAL ) / 30 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8833
SELECT + - 21 * - 87 + + + 34 DIV + 11, 76 + - + 43 + ( 46 ) - 94 + - - 27 AS col0
----
1830
12

skipif mysql # not compatible
query II rowsort label-8833
SELECT + - 21 * - 87 + + + 34 / + 11, 76 + - + 43 + ( 46 ) - 94 + - - 27 AS col0
----
1830
12

query II rowsort
SELECT ( + 44 ) * + 65 + + 69 AS col0, - 50
----
2929
-50

query I rowsort
SELECT DISTINCT - 12 + - 86
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8836
SELECT ALL + - 25 + + 99 DIV 93
----
-24

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL + - 25 + + 99 / 93
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT DISTINCT - COUNT( + + 38 ) * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8837
SELECT DISTINCT - COUNT ( + + 38 ) * - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL - 29 * 65 * 70 + + NULLIF ( + - 32, - - 8 ) AS col1
----
-131982

query I rowsort
SELECT + 58 + + - 68 + + + 4
----
-6

query I rowsort
SELECT NULLIF ( + 75, + 83 )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT + 41 + 60 AS col0, + 36 * + + 21 * ( 96 ) + - COUNT( * ) AS col1
----
101
72575

skipif mysql # not compatible
query II rowsort label-8841
SELECT + 41 + 60 AS col0, + 36 * + + 21 * ( 96 ) + - COUNT ( * ) AS col1
----
101
72575

onlyif mysql # DIV for integer division: 
query I rowsort label-8842
SELECT DISTINCT - + 91 - - 50 DIV + 55 * + 55 * + 90
----
-91

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT - + 91 - - 50 / + 55 * + 55 * + 90
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8843
SELECT ALL - CAST( NULL AS SIGNED ) - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL - CAST ( NULL AS INTEGER ) - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT 21 * - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-8844
SELECT 21 * - COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT DISTINCT + 67 * CASE + ( 80 ) WHEN 97 + 49 THEN - - 85 WHEN - 0 + - SUM( ALL 32 ) THEN + 68 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT + 67 * CASE + ( 80 ) WHEN 97 + 49 THEN - - 85 WHEN - 0 + - SUM ( ALL 32 ) THEN + 68 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT 37 + + 59 * - 63 + - COALESCE ( - 85, - 6 + - NULLIF ( + - 14, 6 * + 95 ), + - NULLIF ( - + 28, - 69 * + AVG ( - 37 ) + 65 / - 88 + 67 + - COUNT( * ) * + SUM( ALL - - 63 ) - + MAX( ALL + 19 ) ) + + + 81 ) col1
----
-3595

skipif mysql # not compatible
query I rowsort label-8846
SELECT 37 + + 59 * - 63 + - COALESCE ( - 85, - 6 + - NULLIF ( + - 14, 6 * + 95 ), + - NULLIF ( - + 28, - 69 * + AVG ( - 37 ) + 65 / - 88 + 67 + - COUNT ( * ) * + SUM ( ALL - - 63 ) - + MAX ( ALL + 19 ) ) + + + 81 ) col1
----
-3595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT CAST( + + 9 AS SIGNED ) + - ( - 15 ) col1
----
24

skipif mysql # not compatible
query I rowsort label-8847
SELECT CAST ( + + 9 AS INTEGER ) + - ( - 15 ) col1
----
24

query I rowsort
SELECT ALL 43 * + CASE WHEN NOT + 41 NOT BETWEEN + 32 + - + 71 AND + 5 THEN NULL ELSE 11 + 53 END
----
2752

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT COUNT( - 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT COUNT ( - 2 ) AS col2
----
1

query I rowsort
SELECT ALL - 49 * - ( - 89 )
----
-4361

query I rowsort
SELECT 72 + + 81 AS col1
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-8852
SELECT DISTINCT 30 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT 30 / - 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL 83 * - 29 + - COUNT( * ) + + - ( - COUNT( * ) ) AS col0
----
-2407

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL 83 * - 29 + - COUNT ( * ) + + - ( - COUNT ( * ) ) AS col0
----
-2407

query II rowsort
SELECT 62 * + COALESCE ( 67, - 41, 76 ), + 88 + - - 99 + + + ( - + 61 ) * + - ( - 25 ) - - 84 * 27 + - 14 AS col1
----
4154
916

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT MIN( - 27 ) - + COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8855
SELECT MIN ( - 27 ) - + COUNT ( * ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT - COALESCE ( COUNT( * ), + + 65 ) * + 79 + COUNT( * ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-8856
SELECT - COALESCE ( COUNT ( * ), + + 65 ) * + 79 + COUNT ( * ) col2
----
-78

query I rowsort
SELECT ALL 29 * - 87 * - 99
----
249777

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT MAX( ALL + + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-8858
SELECT MAX ( ALL + + 94 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8859
SELECT ( CAST( NULL AS SIGNED ) ) / + + COUNT( * ) + MAX( - 76 ) / - - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT ( CAST ( NULL AS INTEGER ) ) / + + COUNT ( * ) + MAX ( - 76 ) / - - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT DISTINCT - + MIN( + + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT - + MIN ( + + 80 )
----
-80

query I rowsort
SELECT + 48 + + - 66 * + 51 AS col2
----
-3318

query I rowsort
SELECT DISTINCT 56 * + 30 + + 70 + + NULLIF ( - 84, + 4 * - 4 + - 70 ) - - + 21
----
1687

query I rowsort
SELECT DISTINCT + + 41 * - ( - - 77 ) + 89
----
-3068

query I rowsort
SELECT DISTINCT - ( - - 26 )
----
-26

query II rowsort
SELECT + + 94 AS col2, 93 AS col2
----
94
93

query I rowsort
SELECT DISTINCT + ( 54 ) - + 24 + 96
----
126

query I rowsort
SELECT ALL - CASE 46 WHEN + ( - + 1 ) + + + 90 THEN - + 78 ELSE + - 63 END - - 19
----
82

query II rowsort
SELECT ALL + 76 AS col2, ( + 26 )
----
76
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT + - 79 * - 60 * - CASE + COUNT( * ) WHEN 37 * - - COUNT( * ) THEN 67 * 65 END + + 18 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT + - 79 * - 60 * - CASE + COUNT ( * ) WHEN 37 * - - COUNT ( * ) THEN 67 * 65 END + + 18 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT - 39 - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT - 39 - COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8871
SELECT ALL - 17 * 81 DIV + + COUNT( * ) AS col1
----
-1377

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL - 17 * 81 / + + COUNT ( * ) AS col1
----
-1377

query II rowsort
SELECT 56 col0, - 42 * - 43 * + + 91 AS col1
----
56
164346

onlyif mysql # DIV for integer division: 
query I rowsort label-8873
SELECT ALL + 6 DIV - + 51 col1
----
0

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL + 6 / - + 51 col1
----
0

query I rowsort
SELECT ALL + 26 * - + 19
----
-494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8875
SELECT ALL - - COALESCE ( - 23, 54 * - ( 36 ) + + + 43 * - + 10 + + NULLIF ( - 9, 15 * + + 41 * - ( NULLIF ( + - CAST( NULL AS SIGNED ), + + COUNT( * ) ) ) ) ) * + - 99 * - - 29 AS col1
----
66033

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL - - COALESCE ( - 23, 54 * - ( 36 ) + + + 43 * - + 10 + + NULLIF ( - 9, 15 * + + 41 * - ( NULLIF ( + - CAST ( NULL AS INTEGER ), + + COUNT ( * ) ) ) ) ) * + - 99 * - - 29 AS col1
----
66033

onlyif mysql # DIV for integer division: 
query I rowsort label-8876
SELECT - 85 DIV - + 81 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8876
SELECT - 85 / - + 81 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8877
SELECT ALL + CASE - ( + 47 ) WHEN + 10 THEN NULL WHEN + + NULLIF ( + + 49, 16 ) / + COUNT( ALL 17 ) THEN NULL WHEN + 45 THEN - CAST( NULL AS SIGNED ) * + NULLIF ( 33, 71 ) ELSE ( - + 53 ) END * - COUNT( ALL - + 53 ) + + + 31 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL + CASE - ( + 47 ) WHEN + 10 THEN NULL WHEN + + NULLIF ( + + 49, 16 ) / + COUNT ( ALL 17 ) THEN NULL WHEN + 45 THEN - CAST ( NULL AS INTEGER ) * + NULLIF ( 33, 71 ) ELSE ( - + 53 ) END * - COUNT ( ALL - + 53 ) + + + 31 AS col0
----
84

query I rowsort
SELECT - 56 + + 96 * + 98 - - + 96 AS col0
----
9448

onlyif mysql # aggregate syntax: 
query II rowsort label-8879
SELECT ALL + 80 * COUNT( * ) * - - 89 * 8 col2, 17 AS col1
----
56960
17

skipif mysql # not compatible
query II rowsort label-8879
SELECT ALL + 80 * COUNT ( * ) * - - 89 * 8 col2, 17 AS col1
----
56960
17

query I rowsort
SELECT - 32 + + 70
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-8881
SELECT 43, SUM( ALL + 1 ) * + 80 * + COALESCE ( - COALESCE ( + - 75, + - COUNT( * ) ), ( + 44 ), 46 + + - NULLIF ( 89, - 19 + - 42 / + ( + 18 ) * 21 ) ) AS col0
----
43
6000

skipif mysql # not compatible
query II rowsort label-8881
SELECT 43, SUM ( ALL + 1 ) * + 80 * + COALESCE ( - COALESCE ( + - 75, + - COUNT ( * ) ), ( + 44 ), 46 + + - NULLIF ( 89, - 19 + - 42 / + ( + 18 ) * 21 ) ) AS col0
----
43
6000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8882
SELECT ALL NULLIF ( ( + + CASE + 58 WHEN + 89 * - 35 THEN NULL WHEN - COALESCE ( COUNT( * ), + ( - 83 ), + + 44 + - 30 * CAST( - - 92 AS SIGNED ) ) THEN - - 64 END ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL NULLIF ( ( + + CASE + 58 WHEN + 89 * - 35 THEN NULL WHEN - COALESCE ( COUNT ( * ), + ( - 83 ), + + 44 + - 30 * CAST ( - - 92 AS INTEGER ) ) THEN - - 64 END ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT - NULLIF ( 4, 63 + - 8 + - - 26 ) + - CASE CASE + ( + 50 ) WHEN 46 THEN NULL WHEN - ( - - 49 ) * + - COUNT( * ) + + 7 + - CASE + + ( 54 ) WHEN COALESCE ( CASE - - 46 WHEN - + 6 THEN - 0 ELSE 27 END, + COALESCE ( + - 49, + COUNT( * ) * + + ( 11 ) * + + 83 + + + 24 + COUNT( * ), - + 3 ) * - ( 22 ) / + - 54 * 82 ) THEN NULL WHEN + 14 THEN NULL ELSE - 81 * COUNT( * ) + 60 END THEN - + 51 ELSE - COUNT( * ) END WHEN AVG ( + - 73 ) + 94 THEN NULL WHEN + - 34 * 95 THEN - 38 * + 93 WHEN + 62 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT - NULLIF ( 4, 63 + - 8 + - - 26 ) + - CASE CASE + ( + 50 ) WHEN 46 THEN NULL WHEN - ( - - 49 ) * + - COUNT ( * ) + + 7 + - CASE + + ( 54 ) WHEN COALESCE ( CASE - - 46 WHEN - + 6 THEN - 0 ELSE 27 END, + COALESCE ( + - 49, + COUNT ( * ) * + + ( 11 ) * + + 83 + + + 24 + COUNT ( * ), - + 3 ) * - ( 22 ) / + - 54 * 82 ) THEN NULL WHEN + 14 THEN NULL ELSE - 81 * COUNT ( * ) + 60 END THEN - + 51 ELSE - COUNT ( * ) END WHEN AVG ( + - 73 ) + 94 THEN NULL WHEN + - 34 * 95 THEN - 38 * + 93 WHEN + 62 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT - COUNT( 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-8884
SELECT - COUNT ( 40 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT - COUNT( * ) - 82 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8885
SELECT - COUNT ( * ) - 82 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT DISTINCT - 63 + + ( 99 ) + + 98 + - 77 * - + MIN( + - 82 )
----
-6180

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT - 63 + + ( 99 ) + + 98 + - 77 * - + MIN ( + - 82 )
----
-6180

query I rowsort
SELECT ALL 89 * 79
----
7031

onlyif mysql # aggregate syntax: 
query II rowsort label-8888
SELECT - 95 * + COUNT( * ) AS col2, + 43 + - - ( - 13 ) + ( ( 43 ) ) * + 97 + + - NULLIF ( + - 34, - 64 )
----
-95
4235

skipif mysql # not compatible
query II rowsort label-8888
SELECT - 95 * + COUNT ( * ) AS col2, + 43 + - - ( - 13 ) + ( ( 43 ) ) * + 97 + + - NULLIF ( + - 34, - 64 )
----
-95
4235

query I rowsort
SELECT ALL - 45 + + 64
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT ALL + 90 + + ( COUNT( * ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL + 90 + + ( COUNT ( * ) ) AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8891
SELECT 16 AS col1, - 38 DIV 76 * - SUM( + 27 ) DIV 30
----
16
0

skipif mysql # not compatible
query II rowsort label-8891
SELECT 16 AS col1, - 38 / 76 * - SUM ( + 27 ) / 30
----
16
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT - COUNT( ALL + 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-8892
SELECT - COUNT ( ALL + 67 )
----
-1

query I rowsort
SELECT ALL - 27 + - 7 * - - 2
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-8894
SELECT - 42 + - + 5 + 87 DIV - + 46
----
-48

skipif mysql # not compatible
query I rowsort label-8894
SELECT - 42 + - + 5 + 87 / - + 46
----
-48

query I rowsort
SELECT + 24 - 13 AS col0
----
11

query II rowsort
SELECT - 73 AS col1, + 63 AS col1
----
-73
63

query I rowsort
SELECT ( + - 91 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8898
SELECT ALL 22 DIV 98 + 82 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL 22 / 98 + 82 AS col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8899
SELECT + + 17 DIV 80 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8899
SELECT + + 17 / 80 * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8900
SELECT ALL + + 7 AS col1, + 21 DIV COUNT( * ) AS col2
----
7
21

skipif mysql # not compatible
query II rowsort label-8900
SELECT ALL + + 7 AS col1, + 21 / COUNT ( * ) AS col2
----
7
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL - 73 / + CASE + 77 WHEN - 98 THEN NULL WHEN - - 58 * + 33 * + 65 THEN - 96 END * + COALESCE ( + 84, 94 * + 91 / + COUNT( * ) ) + + 82 + - - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL - 73 / + CASE + 77 WHEN - 98 THEN NULL WHEN - - 58 * + 33 * + 65 THEN - 96 END * + COALESCE ( + 84, 94 * + 91 / + COUNT ( * ) ) + + 82 + - - 31 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8902
SELECT + CAST( - AVG ( - 70 ) AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-8902
SELECT + CAST ( - AVG ( - 70 ) AS INTEGER )
----
70

query I rowsort
SELECT + + 8 col0
----
8

query I rowsort
SELECT - 12 + + ( + 86 ) * 73
----
6266

query I rowsort
SELECT + 82 * - - ( + + 12 ) + ( + + 39 )
----
1023

query II rowsort
SELECT DISTINCT + 83 AS col2, + 46 AS col2
----
83
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT + COUNT( * ) + - 81 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8907
SELECT + COUNT ( * ) + - 81 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT COALESCE ( + + 21, + 66, - + COUNT( * ) * - MIN( DISTINCT + - 99 ) )
----
21

skipif mysql # not compatible
query I rowsort label-8908
SELECT COALESCE ( + + 21, + 66, - + COUNT ( * ) * - MIN ( DISTINCT + - 99 ) )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8909
SELECT ALL + - 70, ( CAST( - 87 AS SIGNED ) ) col0, - COUNT( ALL 16 ) + + 33 AS col2
----
-70
-87
32

skipif mysql # not compatible
query III rowsort label-8909
SELECT ALL + - 70, ( CAST ( - 87 AS INTEGER ) ) col0, - COUNT ( ALL 16 ) + + 33 AS col2
----
-70
-87
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8910
SELECT COUNT( * ) * + COALESCE ( - CAST( + + 55 AS SIGNED ), 87 ) + + 26 * NULLIF ( 37, - + 91 ) * 35 AS col0
----
33615

skipif mysql # not compatible
query I rowsort label-8910
SELECT COUNT ( * ) * + COALESCE ( - CAST ( + + 55 AS INTEGER ), 87 ) + + 26 * NULLIF ( 37, - + 91 ) * 35 AS col0
----
33615

onlyif mysql # aggregate syntax: 
query II rowsort label-8911
SELECT ALL + 21 AS col1, 88 * + + ( - ( - COUNT( * ) ) ) AS col1
----
21
88

skipif mysql # not compatible
query II rowsort label-8911
SELECT ALL + 21 AS col1, 88 * + + ( - ( - COUNT ( * ) ) ) AS col1
----
21
88

query I rowsort
SELECT - + 4 * - + 11 + + + 22 AS col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8913
SELECT ALL + 98, COUNT( * ) + + 31 AS col0
----
98
32

skipif mysql # not compatible
query II rowsort label-8913
SELECT ALL + 98, COUNT ( * ) + + 31 AS col0
----
98
32

query II rowsort
SELECT ALL + + 20 AS col2, ( - + 61 ) col0
----
20
-61

query I rowsort
SELECT - 65 * + + 83 + + 51 + 45 AS col2
----
-5299

query I rowsort
SELECT - 94 * + 49 + + - 94 * + NULLIF ( - 43, + 59 + 75 ) AS col0
----
-564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8917
SELECT + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8917
SELECT + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT - 69 * + 4 - - COUNT( * ) * + + 90 AS col2
----
-186

skipif mysql # not compatible
query I rowsort label-8918
SELECT - 69 * + 4 - - COUNT ( * ) * + + 90 AS col2
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT + COUNT( * ) + + 73 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8919
SELECT + COUNT ( * ) + + 73 AS col1
----
74

query I rowsort
SELECT + 8 * - + 52 * - 70 col0
----
29120

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT ALL + SUM( ALL + 66 ) + + 69 col2
----
135

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL + SUM ( ALL + 66 ) + + 69 col2
----
135

query I rowsort
SELECT + ( + + 72 ) + + 56 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT DISTINCT 66 + - COALESCE ( 4, + COUNT( * ), - + COUNT( * ) * + ( + 28 ) * 13 + + 52 + + 16 + - 42 - - 47 )
----
62

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT 66 + - COALESCE ( 4, + COUNT ( * ), - + COUNT ( * ) * + ( + 28 ) * 13 + + 52 + + 16 + - 42 - - 47 )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8924
SELECT DISTINCT - 31 + CAST( NULL AS SIGNED ) * 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT - 31 + CAST ( NULL AS INTEGER ) * 97 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8925
SELECT - 54 + - NULLIF ( 84, - + 70 ) DIV + 70, + 34 AS col2
----
-55
34

skipif mysql # not compatible
query II rowsort label-8925
SELECT - 54 + - NULLIF ( 84, - + 70 ) / + 70, + 34 AS col2
----
-55
34

query I rowsort
SELECT ALL - 59 + + + 51 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT + 4 * + - NULLIF ( CASE + 20 WHEN 32 THEN NULL WHEN + COUNT( * ) * 58 - + ( - + 33 ) THEN 58 END, + - 12 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT + 4 * + - NULLIF ( CASE + 20 WHEN 32 THEN NULL WHEN + COUNT ( * ) * 58 - + ( - + 33 ) THEN 58 END, + - 12 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT + COUNT( * ) * - 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-8928
SELECT + COUNT ( * ) * - 34 AS col1
----
-34

query I rowsort
SELECT - 48 * 93
----
-4464

query I rowsort
SELECT ALL ( + + 77 ) col0
----
77

query I rowsort
SELECT - 18 * - 91 * 80
----
131040

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8932
SELECT - 24 + 90 + + NULLIF ( + + 61, COUNT( - CAST( + 98 AS DECIMAL ) ) )
----
127

skipif mysql # not compatible
query I rowsort label-8932
SELECT - 24 + 90 + + NULLIF ( + + 61, COUNT ( - CAST ( + 98 AS REAL ) ) )
----
127

query I rowsort
SELECT DISTINCT - 14 + 35 + + 88 * 85 * - 45 AS col1
----
-336579

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT ALL - CASE + 46 WHEN - 92 THEN + COUNT( * ) WHEN ( + 92 ) THEN 94 + - - 32 * + 9 END - - + COALESCE ( + ( + 14 ), 54 + - 13 ) + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL - CASE + 46 WHEN - 92 THEN + COUNT ( * ) WHEN ( + 92 ) THEN 94 + - - 32 * + 9 END - - + COALESCE ( + ( + 14 ), 54 + - 13 ) + - 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8935
SELECT - 88 * + COUNT( * ), 74 col1
----
-88
74

skipif mysql # not compatible
query II rowsort label-8935
SELECT - 88 * + COUNT ( * ), 74 col1
----
-88
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8936
SELECT ALL NULLIF ( + + 77, + COALESCE ( NULLIF ( 54, - 69 * - COUNT( * ) * - 59 + + - 14 ), 35, - 48 / + + CAST( - COUNT( * ) AS DECIMAL ) ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL NULLIF ( + + 77, + COALESCE ( NULLIF ( 54, - 69 * - COUNT ( * ) * - 59 + + - 14 ), 35, - 48 / + + CAST ( - COUNT ( * ) AS REAL ) ) ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT DISTINCT ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT ( - - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8938
SELECT - 44 + - 81 AS col0, ( - - 87 ) DIV 67 * - - ( - ( + 90 ) ) DIV - SUM( + 13 ) + - - 32 + + 86
----
-125
124

skipif mysql # not compatible
query II rowsort label-8938
SELECT - 44 + - 81 AS col0, ( - - 87 ) / 67 * - - ( - ( + 90 ) ) / - SUM ( + 13 ) + - - 32 + + 86
----
-125
124

query I rowsort
SELECT + + CASE 13 WHEN - - 98 THEN NULL WHEN 85 THEN + - 5 END AS col1
----
NULL

query I rowsort
SELECT - 1 - 36 + + 34
----
-3

query II rowsort
SELECT + NULLIF ( - 39, - 26 / 20 + + - NULLIF ( - 23, + 47 - - 25 ) * - + 73 + + 4 * + 36 * + + 56 ), 91 + - 24 AS col1
----
-39
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT ( + 13 ) * SUM( ALL + 19 )
----
247

skipif mysql # not compatible
query I rowsort label-8942
SELECT ( + 13 ) * SUM ( ALL + 19 )
----
247

query I rowsort
SELECT DISTINCT + 39 * - - 59 + - - 25 AS col2
----
2326

query I rowsort
SELECT DISTINCT - COALESCE ( - + ( - + 27 ), - 31 ) AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8945
SELECT + AVG ( ALL - - ( 2 ) ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT + AVG ( ALL - - ( 2 ) ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( - 14, 76 * + 12 + + 44 )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT DISTINCT + 68 DIV + ( 30 ) col2
----
2

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT + 68 / + ( 30 ) col2
----
2

query I rowsort
SELECT + 26 * - 54 * - 32
----
44928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8949
SELECT ALL + COUNT( * ) / - 38 + CASE + + 64 WHEN CAST( - 92 AS SIGNED ) * - MIN( ALL - CAST( NULL AS SIGNED ) ) + - 99 / 81 + - + 96 THEN CAST( NULL AS SIGNED ) * - 28 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL + COUNT ( * ) / - 38 + CASE + + 64 WHEN CAST ( - 92 AS INTEGER ) * - MIN ( ALL - CAST ( NULL AS INTEGER ) ) + - 99 / 81 + - + 96 THEN CAST ( NULL AS INTEGER ) * - 28 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8950
SELECT ALL - - CASE - - 57 WHEN + + 9 - - ( + + 52 ) THEN 21 * - ( - 99 ) * + 34 + - - 33 ELSE - + 50 - CAST( + 10 AS SIGNED ) DIV - 65 + - ( + MIN( - 70 ) ) * + 33 - - - 30 END
----
2230

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - - CASE - - 57 WHEN + + 9 - - ( + + 52 ) THEN 21 * - ( - 99 ) * + 34 + - - 33 ELSE - + 50 - CAST ( + 10 AS INTEGER ) / - 65 + - ( + MIN ( - 70 ) ) * + 33 - - - 30 END
----
2230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8951
SELECT ALL - CAST( 60 AS SIGNED ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL - CAST ( 60 AS INTEGER ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8952
SELECT DISTINCT SUM( ALL - 92 ) + + 19 col0, + 30 AS col1
----
-73
30

skipif mysql # not compatible
query II rowsort label-8952
SELECT DISTINCT SUM ( ALL - 92 ) + + 19 col0, + 30 AS col1
----
-73
30

query I rowsort
SELECT ALL 14 * - 1
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-8954
SELECT DISTINCT 26 + - + 77 + 50, - 75 DIV + 62 AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8954
SELECT DISTINCT 26 + - + 77 + 50, - 75 / + 62 AS col2
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL 84 + - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL 84 + - COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL 60 + CASE - 96 WHEN + + 97 * + 48 / 43 + COUNT( 64 ) THEN + 37 END + + 71 * - - 89 + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL 60 + CASE - 96 WHEN + + 97 * + 48 / 43 + COUNT ( 64 ) THEN + 37 END + + 71 * - - 89 + 83
----
NULL

query I rowsort
SELECT 65 + - - 42
----
107

query II rowsort
SELECT 68, 15 AS col2
----
68
15

query I rowsort
SELECT 10 * ( + + ( - 9 ) ) AS col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT 16 + + CAST( NULL AS SIGNED ) - 91 / - - 2 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT 16 + + CAST ( NULL AS INTEGER ) - 91 / - - 2 col2
----
NULL

query I rowsort
SELECT ALL 7 - - 48 col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8962
SELECT DISTINCT COUNT( * ) DIV + + 69 DIV - 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT COUNT ( * ) / + + 69 / - 27 AS col0
----
0

query II rowsort
SELECT - 27, 0 col0
----
-27
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT 15 + + MAX( ALL - 48 ) - + COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-8964
SELECT 15 + + MAX ( ALL - 48 ) - + COUNT ( * )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT ALL COALESCE ( 81, - 21 ) * 75 * + + 15 + + COALESCE ( - - 10, 12 ) + + - CAST( 21 AS SIGNED ) + 34 * 26 AS col0
----
91998

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL COALESCE ( 81, - 21 ) * 75 * + + 15 + + COALESCE ( - - 10, 12 ) + + - CAST ( 21 AS INTEGER ) + 34 * 26 AS col0
----
91998

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8966
SELECT 2 DIV + - COALESCE ( - - 65, + COUNT( * ) + + COUNT( * ) ) + - - COUNT( * ) * - 5
----
-5

skipif mysql # not compatible
query I rowsort label-8966
SELECT 2 / + - COALESCE ( - - 65, + COUNT ( * ) + + COUNT ( * ) ) + - - COUNT ( * ) * - 5
----
-5

query I rowsort
SELECT + 42 * + 9 AS col1
----
378

query I rowsort
SELECT ALL - 46 * - 6 col1
----
276

query I rowsort
SELECT + 86 + + + 70
----
156

query I rowsort
SELECT ALL - - 86 * - 66 AS col1
----
-5676

query II rowsort
SELECT 89 col1, 41 AS col1
----
89
41

query II rowsort
SELECT ALL - 12, - 62 AS col2
----
-12
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8973
SELECT DISTINCT + - COUNT( * ) DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT + - COUNT ( * ) / + 59
----
0

query II rowsort
SELECT DISTINCT - 30 AS col2, 12 + 54 AS col0
----
-30
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8975
SELECT NULLIF ( CASE 6 WHEN COALESCE ( + 96, 50 ) THEN COUNT( * ) END, - 5 ) AS col2, 17 * - - ( + - 1 ) col1
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-8975
SELECT NULLIF ( CASE 6 WHEN COALESCE ( + 96, 50 ) THEN COUNT ( * ) END, - 5 ) AS col2, 17 * - - ( + - 1 ) col1
----
NULL
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT ALL - CASE CASE 58 WHEN 33 * - 31 THEN 9 ELSE NULL END WHEN - MAX( + 26 ) + - 45 THEN + 93 * - 36 WHEN - 37 THEN - 97 + COUNT( * ) + 34 + - - 14 / 51 * + - 12 - + - 74 / - 73 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL - CASE CASE 58 WHEN 33 * - 31 THEN 9 ELSE NULL END WHEN - MAX ( + 26 ) + - 45 THEN + 93 * - 36 WHEN - 37 THEN - 97 + COUNT ( * ) + 34 + - - 14 / 51 * + - 12 - + - 74 / - 73 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL - + COUNT( * ) + + 33 col2
----
32

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL - + COUNT ( * ) + + 33 col2
----
32

query I rowsort
SELECT + 11 + ( + ( 91 ) ) * + 91 AS col2
----
8292

onlyif mysql # aggregate syntax: 
query II rowsort label-8979
SELECT + - 71 col0, + 28 - - 41 - - 48 * + COUNT( * ) * + + 37 col0
----
-71
1845

skipif mysql # not compatible
query II rowsort label-8979
SELECT + - 71 col0, + 28 - - 41 - - 48 * + COUNT ( * ) * + + 37 col0
----
-71
1845

query I rowsort
SELECT ALL + 94 * 87 * - 86 AS col1
----
-703308

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT - - 52 * - + 50 - - + COUNT( * ) + + - 59
----
-2658

skipif mysql # not compatible
query I rowsort label-8981
SELECT - - 52 * - + 50 - - + COUNT ( * ) + + - 59
----
-2658

query I rowsort
SELECT - 94 * - + 46 * - 54 - - - 62 + 32
----
-233526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8983
SELECT ALL + + CASE - + ( + - 16 ) WHEN 96 THEN - - 32 * + 2 WHEN - 59 THEN NULL ELSE NULL END + MIN( + 96 ) + + COALESCE ( + + 38, + 84, 57 - - 25 ) * 95 * - 3 * + 43 - - COALESCE ( COUNT( * ), CAST( NULL AS SIGNED ) * SUM( ALL + 91 ), - 31 + - - 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL + + CASE - + ( + - 16 ) WHEN 96 THEN - - 32 * + 2 WHEN - 59 THEN NULL ELSE NULL END + MIN ( + 96 ) + + COALESCE ( + + 38, + 84, 57 - - 25 ) * 95 * - 3 * + 43 - - COALESCE ( COUNT ( * ), CAST ( NULL AS INTEGER ) * SUM ( ALL + 91 ), - 31 + - - 56 )
----
NULL

query I rowsort
SELECT ALL - 3 + + 85
----
82

query I rowsort
SELECT 98 * + + 10 + - 70
----
910

query I rowsort
SELECT DISTINCT + 13 + - ( + 8 ) AS col1
----
5

query I rowsort
SELECT ALL - 58 + - 72
----
-130

query I rowsort
SELECT 56 * + - 87 AS col2
----
-4872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8989
SELECT CASE + 40 WHEN - AVG ( ALL + CAST( NULL AS SIGNED ) ) THEN NULL ELSE - 50 * - 6 END * - - COUNT( * )
----
300

skipif mysql # not compatible
query I rowsort label-8989
SELECT CASE + 40 WHEN - AVG ( ALL + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - 50 * - 6 END * - - COUNT ( * )
----
300

onlyif mysql # aggregate syntax: 
query II rowsort label-8990
SELECT 65 * 29, - COUNT( * ) AS col0
----
1885
-1

skipif mysql # not compatible
query II rowsort label-8990
SELECT 65 * 29, - COUNT ( * ) AS col0
----
1885
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT ALL 13 DIV + + 24 col2
----
0

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL 13 / + + 24 col2
----
0

query I rowsort
SELECT DISTINCT 72 - 87 + - 77
----
-92

query I rowsort
SELECT ALL 31 - 79 + + 70 AS col0
----
22

query I rowsort
SELECT 81 * 97 * - ( + - 14 ) * + 47 AS col0
----
5169906

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL COUNT( * ) - - MIN( 60 )
----
61

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL COUNT ( * ) - - MIN ( 60 )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-8996
SELECT DISTINCT COUNT( * ) * + 36 AS col2, CASE - + 38 WHEN 96 THEN 48 ELSE NULL END * - + 16 * - + 3
----
36
NULL

skipif mysql # not compatible
query II rowsort label-8996
SELECT DISTINCT COUNT ( * ) * + 36 AS col2, CASE - + 38 WHEN 96 THEN 48 ELSE NULL END * - + 16 * - + 3
----
36
NULL

query I rowsort
SELECT DISTINCT CASE + + 56 WHEN - 30 THEN 29 WHEN - 81 + 45 THEN - 3 / - - 28 END
----
NULL

query I rowsort
SELECT + 70 + - 46 + - 57
----
-33

query I rowsort
SELECT + - 5 * - 62 * + 31 AS col0
----
9610

query I rowsort
SELECT + 79 * - - 7 col1
----
553

query I rowsort
SELECT DISTINCT + NULLIF ( - + 54, - 29 )
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-9002
SELECT ALL + 34 DIV 82 * + + 9 + - + 26 * - ( - - 48 )
----
1248

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL + 34 / 82 * + + 9 + - + 26 * - ( - - 48 )
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT + + 28 + - CASE + - 44 WHEN - - COUNT( * ) + + 62 * - 76 THEN - MAX( ALL 47 ) + - - 95 ELSE NULL END + - + ( 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT + + 28 + - CASE + - 44 WHEN - - COUNT ( * ) + + 62 * - 76 THEN - MAX ( ALL 47 ) + - - 95 ELSE NULL END + - + ( 28 )
----
NULL

query I rowsort
SELECT ALL - ( - - 54 ) + - + 27
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9005
SELECT ALL + 90 DIV - 58 DIV - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL + 90 / - 58 / - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9006
SELECT DISTINCT - 26 * - + 86 + - CASE 28 WHEN - - NULLIF ( + 58, - + 99 ) THEN 70 ELSE NULL END * - 72 + + MAX( + + 89 ) + + - 27, 7 AS col0
----
NULL
7

skipif mysql # not compatible
query II rowsort label-9006
SELECT DISTINCT - 26 * - + 86 + - CASE 28 WHEN - - NULLIF ( + 58, - + 99 ) THEN 70 ELSE NULL END * - 72 + + MAX ( + + 89 ) + + - 27, 7 AS col0
----
NULL
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9007
SELECT + + 35 - + - 98 DIV + - COALESCE ( 13, 81 * + + ( + 2 ) * 3, 30 + - + SUM( DISTINCT - 21 ), - + CAST( + 97 AS SIGNED ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9007
SELECT + + 35 - + - 98 / + - COALESCE ( 13, 81 * + + ( + 2 ) * 3, 30 + - + SUM ( DISTINCT - 21 ), - + CAST ( + 97 AS INTEGER ) ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9008
SELECT + MIN( ALL - - 48 ), - COUNT( * ) col2
----
48
-1

skipif mysql # not compatible
query II rowsort label-9008
SELECT + MIN ( ALL - - 48 ), - COUNT ( * ) col2
----
48
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9009
SELECT ALL 54 * + + 74 / + 74 + 51 + - COUNT( + NULLIF ( + - 28, - + 73 ) ) + ( 40 ) + + CAST( NULL AS SIGNED ) + + 47 * - 57 / - NULLIF ( - 26, ( 35 ) ) - - 5 * + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL 54 * + + 74 / + 74 + 51 + - COUNT ( + NULLIF ( + - 28, - + 73 ) ) + ( 40 ) + + CAST ( NULL AS INTEGER ) + + 47 * - 57 / - NULLIF ( - 26, ( 35 ) ) - - 5 * + 71 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9010
SELECT - CASE - NULLIF ( 15, - 25 + + 52 ) WHEN + 21 * CAST( + 38 AS SIGNED ) * - + 68 THEN + 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT - CASE - NULLIF ( 15, - 25 + + 52 ) WHEN + 21 * CAST ( + 38 AS INTEGER ) * - + 68 THEN + 15 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9011
SELECT ALL CASE 75 WHEN + SUM( ALL + + 89 ) THEN CAST( + + 80 AS SIGNED ) WHEN 84 THEN NULL WHEN - 48 THEN + MIN( DISTINCT 50 ) * 51 - + 20 + - 40 + - 14 END * - - COUNT( * ) + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL CASE 75 WHEN + SUM ( ALL + + 89 ) THEN CAST ( + + 80 AS INTEGER ) WHEN 84 THEN NULL WHEN - 48 THEN + MIN ( DISTINCT 50 ) * 51 - + 20 + - 40 + - 14 END * - - COUNT ( * ) + - 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9012
SELECT ALL 62 * + 62 - + 6 DIV + 29 + + - 16
----
3828

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL 62 * + 62 - + 6 / + 29 + + - 16
----
3828

query I rowsort
SELECT ALL + ( + + 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT - ( + COUNT( * ) ) * - ( 0 ) * - 52
----
0

skipif mysql # not compatible
query I rowsort label-9014
SELECT - ( + COUNT ( * ) ) * - ( 0 ) * - 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT NULLIF ( + 50, + - 17 / - + COUNT( * ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-9015
SELECT NULLIF ( + 50, + - 17 / - + COUNT ( * ) ) AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9016
SELECT CASE + ( 28 ) WHEN + + CAST( + 25 AS DECIMAL ) + 40 * + COUNT( * ) THEN + 86 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT CASE + ( 28 ) WHEN + + CAST ( + 25 AS REAL ) + 40 * + COUNT ( * ) THEN + 86 END col2
----
NULL

query I rowsort
SELECT NULLIF ( + 33, + 38 )
----
33

query I rowsort
SELECT ALL + ( - 85 ) AS col1
----
-85

query I rowsort
SELECT ALL 38 * - 17 * - + 91 - + 47 AS col2
----
58739

query I rowsort
SELECT ALL - 0 * 45 AS col1
----
0

query I rowsort
SELECT - 13 - - 54 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL + CASE COUNT( * ) WHEN - 34 THEN - - CASE + - 18 WHEN 79 * + - ( 96 ) + - - 13 THEN + MIN( 64 ) + + CASE 44 WHEN 76 THEN NULL ELSE - 99 END ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL + CASE COUNT ( * ) WHEN - 34 THEN - - CASE + - 18 WHEN 79 * + - ( 96 ) + - - 13 THEN + MIN ( 64 ) + + CASE 44 WHEN 76 THEN NULL ELSE - 99 END ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL - COUNT( DISTINCT - 12 ) * + 69 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL - COUNT ( DISTINCT - 12 ) * + 69 AS col0
----
-69

query I rowsort
SELECT DISTINCT ( + + 79 )
----
79

query I rowsort
SELECT DISTINCT ( + 61 ) AS col0
----
61

query I rowsort
SELECT - ( 23 ) + 98 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT SUM( + 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9027
SELECT SUM ( + 54 ) AS col2
----
54

query I rowsort
SELECT ALL ( - ( + ( - + 29 ) ) )
----
29

query I rowsort
SELECT - 29 + + 65 AS col0
----
36

query I rowsort
SELECT + 35 - - CASE + 35 WHEN 52 THEN NULL WHEN 77 THEN + 74 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9031
SELECT - 47 DIV - + COUNT( * ) col2
----
47

skipif mysql # not compatible
query I rowsort label-9031
SELECT - 47 / - + COUNT ( * ) col2
----
47

query I rowsort
SELECT - 6 + 6
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9033
SELECT - CASE - 1 WHEN ( 52 ) THEN 86 + + 53 ELSE - AVG ( + 65 ) + - CAST( ( CASE 10 WHEN ( 17 ) THEN NULL WHEN - 51 * NULLIF ( 22, COUNT( * ) * + 53 - + 48 ) - - ( - 47 ) THEN + 78 END ) AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT - CASE - 1 WHEN ( 52 ) THEN 86 + + 53 ELSE - AVG ( + 65 ) + - CAST ( ( CASE 10 WHEN ( 17 ) THEN NULL WHEN - 51 * NULLIF ( 22, COUNT ( * ) * + 53 - + 48 ) - - ( - 47 ) THEN + 78 END ) AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT - 23 * 62 AS col1
----
-1426

query I rowsort
SELECT ALL - NULLIF ( - 71, 8 ) + - 94 AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9036
SELECT ALL COUNT( * ) + 44 DIV + MAX( ALL 84 * - 78 )
----
1

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL COUNT ( * ) + 44 / + MAX ( ALL 84 * - 78 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT ALL CAST( + 94 AS SIGNED ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL CAST ( + 94 AS INTEGER ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT + COUNT( DISTINCT - 87 ) * 24
----
24

skipif mysql # not compatible
query I rowsort label-9038
SELECT + COUNT ( DISTINCT - 87 ) * 24
----
24

query I rowsort
SELECT + 52 + 24
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9040
SELECT ALL - COALESCE ( + 78, 51 DIV - 49, + 60, COUNT( * ) ) + + NULLIF ( - COUNT( * ), 90 ) * + 31 AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL - COALESCE ( + 78, 51 / - 49, + 60, COUNT ( * ) ) + + NULLIF ( - COUNT ( * ), 90 ) * + 31 AS col1
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9041
SELECT DISTINCT CAST( NULL AS SIGNED ) * CASE MAX( 20 ) WHEN 90 * + 23 THEN NULL WHEN COUNT( * ) THEN COALESCE ( - MIN( ALL 10 ), - CASE - COUNT( * ) WHEN 40 * 48 + COUNT( * ) THEN NULL WHEN - COALESCE ( 66, - COUNT( * ), 69 * + 79 + + 13 / 44 ) + 31 THEN - 71 WHEN + 32 * 10 THEN NULL END ) - - 67 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT CAST ( NULL AS INTEGER ) * CASE MAX ( 20 ) WHEN 90 * + 23 THEN NULL WHEN COUNT ( * ) THEN COALESCE ( - MIN ( ALL 10 ), - CASE - COUNT ( * ) WHEN 40 * 48 + COUNT ( * ) THEN NULL WHEN - COALESCE ( 66, - COUNT ( * ), 69 * + 79 + + 13 / 44 ) + 31 THEN - 71 WHEN + 32 * 10 THEN NULL END ) - - 67 END AS col0
----
NULL

query I rowsort
SELECT ALL 51 * 21
----
1071

query I rowsort
SELECT - 57 * - 79
----
4503

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT - 16 + ( + COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-9044
SELECT - 16 + ( + COUNT ( * ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT - CASE 43 WHEN 26 THEN NULL ELSE - 73 - - COUNT( * ) END
----
72

skipif mysql # not compatible
query I rowsort label-9045
SELECT - CASE 43 WHEN 26 THEN NULL ELSE - 73 - - COUNT ( * ) END
----
72

query I rowsort
SELECT DISTINCT 45 + 29 * 86 AS col2
----
2539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9047
SELECT DISTINCT CAST( + 15 AS SIGNED ) col1
----
15

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT CAST ( + 15 AS INTEGER ) col1
----
15

query I rowsort
SELECT ALL - 30 * - 67
----
2010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9049
SELECT DISTINCT + 38 DIV 73 + + NULLIF ( 60, CASE + 0 WHEN 9 + - MAX( DISTINCT + 11 ) THEN NULL ELSE + COALESCE ( + 52, 25 + COALESCE ( 13 + COUNT( * ), + 86 ) ) END ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT + 38 / 73 + + NULLIF ( 60, CASE + 0 WHEN 9 + - MAX ( DISTINCT + 11 ) THEN NULL ELSE + COALESCE ( + 52, 25 + COALESCE ( 13 + COUNT ( * ), + 86 ) ) END ) AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9050
SELECT DISTINCT 39 DIV - CASE 52 WHEN + 63 DIV 51 THEN 0 * 94 WHEN + 66 THEN + 85 ELSE - 71 END
----
0

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT 39 / - CASE 52 WHEN + 63 / 51 THEN 0 * 94 WHEN + 66 THEN + 85 ELSE - 71 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT COALESCE ( 29, - 17 * - 74, + MIN( ALL - 57 ) ) * 65 + 6 * - 20
----
1765

skipif mysql # not compatible
query I rowsort label-9051
SELECT COALESCE ( 29, - 17 * - 74, + MIN ( ALL - 57 ) ) * 65 + 6 * - 20
----
1765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9052
SELECT DISTINCT 54 DIV + SUM( ALL 35 * 99 ) + - 50
----
-50

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT 54 / + SUM ( ALL 35 * 99 ) + - 50
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT CAST( + AVG ( 73 ) AS SIGNED ) col2
----
73

skipif mysql # not compatible
query I rowsort label-9053
SELECT CAST ( + AVG ( 73 ) AS INTEGER ) col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9054
SELECT + CAST( 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-9054
SELECT + CAST ( 56 AS INTEGER )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9055
SELECT + ( 44 ) DIV + 98 + 51 DIV NULLIF ( 18 DIV - 26, 31 DIV + 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT + ( 44 ) / + 98 + 51 / NULLIF ( 18 / - 26, 31 / + 68 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT - COUNT( * ) * 72 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9056
SELECT - COUNT ( * ) * 72 AS col1
----
-72

query I rowsort
SELECT ALL 38 * - 39 AS col0
----
-1482

query I rowsort
SELECT + 43 + + 51
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9059
SELECT 95 DIV 78 - + 51 col0
----
-50

skipif mysql # not compatible
query I rowsort label-9059
SELECT 95 / 78 - + 51 col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL 55 * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL 55 * + COUNT ( * )
----
55

query I rowsort
SELECT + 41 * 71 + + 84
----
2995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9062
SELECT ALL MIN( DISTINCT - 99 ) DIV 61 - 13
----
-14

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL MIN ( DISTINCT - 99 ) / 61 - 13
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9063
SELECT ALL 2 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL 2 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 60 * 11
----
660

query I rowsort
SELECT ( - COALESCE ( 16, 61 + ( 69 ), 64 ) ) AS col0
----
-16

query I rowsort
SELECT ALL + ( + 84 ) col0
----
84

query I rowsort
SELECT - 89 + - 63
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT 84 * COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9068
SELECT 84 * COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL - MAX( - 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - MAX ( - 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT - 46 * 64 + MAX( DISTINCT + 79 )
----
-2865

skipif mysql # not compatible
query I rowsort label-9070
SELECT - 46 * 64 + MAX ( DISTINCT + 79 )
----
-2865

query I rowsort
SELECT 9 * 75
----
675

query I rowsort
SELECT 45 + + 89 AS col2
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9073
SELECT ALL - 33 * + CAST( MIN( DISTINCT 30 ) AS SIGNED ) AS col0
----
-990

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL - 33 * + CAST ( MIN ( DISTINCT 30 ) AS INTEGER ) AS col0
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT DISTINCT - COUNT( * ) + 55 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT - COUNT ( * ) + 55 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9075
SELECT DISTINCT 40 * - ( + COUNT( * ) * CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT 40 * - ( + COUNT ( * ) * CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9076
SELECT ALL + + 67 + - 9 DIV + 44
----
67

skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL + + 67 + - 9 / + 44
----
67

query I rowsort
SELECT ALL - + 4 + - 76 AS col0
----
-80

query I rowsort
SELECT DISTINCT COALESCE ( + 12, 66 + + 29 * 77 )
----
12

query I rowsort
SELECT DISTINCT + 1 + + 73
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT ALL + COUNT( * ) + + NULLIF ( + 29, CASE WHEN ( + 77 ) IS NOT NULL THEN - COALESCE ( + 86, 39 ) - + 78 * 16 ELSE NULL END ) * - CASE 71 WHEN 3 THEN NULL ELSE 6 + 32 * - 26 END
----
23955

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL + COUNT ( * ) + + NULLIF ( + 29, CASE WHEN ( + 77 ) IS NOT NULL THEN - COALESCE ( + 86, 39 ) - + 78 * 16 ELSE NULL END ) * - CASE 71 WHEN 3 THEN NULL ELSE 6 + 32 * - 26 END
----
23955

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL - CASE 55 WHEN + 37 THEN NULL WHEN 90 * 6 THEN 15 * 93 WHEN + ( - 32 ) THEN - COALESCE ( COUNT( * ), - 79 / - 69 ) ELSE NULL END + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - CASE 55 WHEN + 37 THEN NULL WHEN 90 * 6 THEN 15 * 93 WHEN + ( - 32 ) THEN - COALESCE ( COUNT ( * ), - 79 / - 69 ) ELSE NULL END + - 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9082
SELECT DISTINCT - - 62 + COUNT( DISTINCT 27 + CAST( NULL AS SIGNED ) * - 40 ) * 1 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT - - 62 + COUNT ( DISTINCT 27 + CAST ( NULL AS INTEGER ) * - 40 ) * 1 AS col1
----
62

query I rowsort
SELECT + 47 * + 38 col0
----
1786

query I rowsort
SELECT 38 * - 89
----
-3382

onlyif mysql # DIV for integer division: 
query I rowsort label-9085
SELECT ALL + + 12 DIV 19
----
0

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL + + 12 / 19
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9086
SELECT ALL 30 + 93 DIV 30 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL 30 + 93 / 30 AS col2
----
33

query I rowsort
SELECT DISTINCT + 79 + - 63 * 28 AS col2
----
-1685

query I rowsort
SELECT ALL 43 * 47
----
2021

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT - 13 + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9089
SELECT - 13 + COUNT ( * ) AS col0
----
-12

query I rowsort
SELECT - 27 + - 47
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9091
SELECT DISTINCT - 24 - - 46 DIV COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT - 24 - - 46 / COUNT ( * )
----
22

query I rowsort
SELECT ALL - - 8 * 25
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT + COUNT( ALL ( + 48 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9093
SELECT + COUNT ( ALL ( + 48 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT 97 * - + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT 97 * - + COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT DISTINCT MAX( ALL + 98 ) - + 57
----
41

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT MAX ( ALL + 98 ) - + 57
----
41

query I rowsort
SELECT 0 * + 55 + 83
----
83

query I rowsort
SELECT 94 * - - 38 AS col0
----
3572

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9098
SELECT ALL 84 DIV CAST( 15 AS SIGNED ) * + 82
----
410

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL 84 / CAST ( 15 AS INTEGER ) * + 82
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT DISTINCT - MIN( DISTINCT - 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT - MIN ( DISTINCT - 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9100
SELECT DISTINCT COUNT( * ) * + COUNT( * ) DIV 53 col2
----
0

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) / 53 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT 81 - CASE COUNT( - 13 ) WHEN COUNT( * ) * - 71 THEN ( 6 ) WHEN + COUNT( * ) THEN 70 ELSE NULL END + - 46 * + 48
----
-2197

skipif mysql # not compatible
query I rowsort label-9101
SELECT 81 - CASE COUNT ( - 13 ) WHEN COUNT ( * ) * - 71 THEN ( 6 ) WHEN + COUNT ( * ) THEN 70 ELSE NULL END + - 46 * + 48
----
-2197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9102
SELECT NULLIF ( - MIN( DISTINCT 72 ), MAX( + 52 ) ) * CASE 12 WHEN + ( 79 ) THEN NULL WHEN + 37 THEN 62 / 65 WHEN COALESCE ( 51, 30 ) THEN CAST( - 45 AS SIGNED ) + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT NULLIF ( - MIN ( DISTINCT 72 ), MAX ( + 52 ) ) * CASE 12 WHEN + ( 79 ) THEN NULL WHEN + 37 THEN 62 / 65 WHEN COALESCE ( 51, 30 ) THEN CAST ( - 45 AS INTEGER ) + - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9103
SELECT ALL COUNT( * ) DIV - 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL COUNT ( * ) / - 15 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT MIN( 15 ) - 97 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9104
SELECT MIN ( 15 ) - 97 AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9105
SELECT ALL NULLIF ( + 46, + CASE WHEN NULL IS NOT NULL THEN + COUNT( * ) WHEN NULLIF ( CAST( NULL AS SIGNED ), - COUNT( * ) ) * 29 + - 90 < 34 + + 49 THEN + COUNT( * ) END * 45 ) * 72 AS col0
----
3312

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL NULLIF ( + 46, + CASE WHEN NULL IS NOT NULL THEN + COUNT ( * ) WHEN NULLIF ( CAST ( NULL AS INTEGER ), - COUNT ( * ) ) * 29 + - 90 < 34 + + 49 THEN + COUNT ( * ) END * 45 ) * 72 AS col0
----
3312

query I rowsort
SELECT NULLIF ( - 79, 7 ) * + 75 AS col2
----
-5925

query I rowsort
SELECT 45 * 72 AS col0
----
3240

query I rowsort
SELECT 19 * - 72 col2
----
-1368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9109
SELECT ALL - CAST( NULL AS SIGNED ) + CAST( + 65 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL - CAST ( NULL AS INTEGER ) + CAST ( + 65 AS INTEGER )
----
NULL

query I rowsort
SELECT 25 - 97 AS col2
----
-72

query I rowsort
SELECT ALL 6 * - 64 AS col0
----
-384

query I rowsort
SELECT ALL + ( + 81 ) + - 13 * 70
----
-829

query I rowsort
SELECT 92 * + 58 AS col2
----
5336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9114
SELECT ALL + + 40 DIV - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL + + 40 / - COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT - COUNT( * ) + + - 65
----
-66

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT - COUNT ( * ) + + - 65
----
-66

query I rowsort
SELECT + 52 + + 58
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT MAX( - - 21 ) - 0 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9117
SELECT MAX ( - - 21 ) - 0 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT 92 + + MIN( ALL - 28 ) + 11
----
75

skipif mysql # not compatible
query I rowsort label-9118
SELECT 92 + + MIN ( ALL - 28 ) + 11
----
75

query I rowsort
SELECT DISTINCT - 78 * + 54
----
-4212

query I rowsort
SELECT 40 * + 71 * - 6
----
-17040

query I rowsort
SELECT ALL ( 72 ) * 23 AS col1
----
1656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9122
SELECT - 2 + - CAST( 9 AS SIGNED ) + + ( 76 - ( 9 ) ) DIV COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-9122
SELECT - 2 + - CAST ( 9 AS INTEGER ) + + ( 76 - ( 9 ) ) / COUNT ( * )
----
56

query I rowsort
SELECT DISTINCT + - 18 * 74 AS col2
----
-1332

query I rowsort
SELECT ALL - CASE - 13 WHEN AVG ( DISTINCT 52 ) / 88 THEN 5 ELSE + 36 END
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT COALESCE ( - COUNT( * ), + 33 * - CASE 19 WHEN + 35 - 8 THEN COUNT( * ) + + COALESCE ( - 67, - 43 * 88 ) END ) * + 24
----
-24

skipif mysql # not compatible
query I rowsort label-9125
SELECT COALESCE ( - COUNT ( * ), + 33 * - CASE 19 WHEN + 35 - 8 THEN COUNT ( * ) + + COALESCE ( - 67, - 43 * 88 ) END ) * + 24
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT 63 * - 98 * 42 - - CAST( - 61 + 98 AS SIGNED ) * 66 AS col0
----
-256866

skipif mysql # not compatible
query I rowsort label-9126
SELECT 63 * - 98 * 42 - - CAST ( - 61 + 98 AS INTEGER ) * 66 AS col0
----
-256866

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9127
SELECT 50 - CASE 99 WHEN - 63 THEN - 39 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT 50 - CASE 99 WHEN - 63 THEN - 39 END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT - ( MIN( ( - 47 ) ) )
----
47

skipif mysql # not compatible
query I rowsort label-9128
SELECT - ( MIN ( ( - 47 ) ) )
----
47

query I rowsort
SELECT DISTINCT - 93 - + 60 * + 79 AS col2
----
-4833

query I rowsort
SELECT 75 * - 41
----
-3075

query II rowsort
SELECT - 30 AS col0, - 16 - 25 AS col2
----
-30
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-9132
SELECT 32 DIV - 91 - + ( - 19 ) * 48 AS col1
----
912

skipif mysql # not compatible
query I rowsort label-9132
SELECT 32 / - 91 - + ( - 19 ) * 48 AS col1
----
912

onlyif mysql # DIV for integer division: 
query I rowsort label-9133
SELECT ALL + 41 DIV 14 * + 95 AS col2
----
190

skipif mysql # not compatible
query I rowsort label-9133
SELECT ALL + 41 / 14 * + 95 AS col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT COUNT( * ) - - 44 + ( - 61 ) * - 12 * - CASE COALESCE ( 29, - 8, - 14 ) + + 10 * - AVG ( - ( - 73 ) ) WHEN - NULLIF ( 89, 39 ) * 9 THEN NULL ELSE + 2 * - 59 END AS col1
----
86421

skipif mysql # not compatible
query I rowsort label-9134
SELECT COUNT ( * ) - - 44 + ( - 61 ) * - 12 * - CASE COALESCE ( 29, - 8, - 14 ) + + 10 * - AVG ( - ( - 73 ) ) WHEN - NULLIF ( 89, 39 ) * 9 THEN NULL ELSE + 2 * - 59 END AS col1
----
86421

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT 14 * COUNT( * ) + + + COUNT( * ) + 81 * COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9135
SELECT 14 * COUNT ( * ) + + + COUNT ( * ) + 81 * COUNT ( * ) AS col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9136
SELECT ALL MIN( - - 58 ) * - 1 * 32 + 36 DIV - COUNT( * ) AS col0
----
-1892

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL MIN ( - - 58 ) * - 1 * 32 + 36 / - COUNT ( * ) AS col0
----
-1892

query I rowsort
SELECT NULLIF ( 68, COALESCE ( + 21, 58 ) ) AS col0
----
68

query I rowsort
SELECT ( + - 24 ) * 73 + + 72
----
-1680

query I rowsort
SELECT COALESCE ( 20, 68 * 41, 5 ) AS col0
----
20

query I rowsort
SELECT - 94 * + - 76 - + 16 - - 92
----
7220

query I rowsort
SELECT + 19 * + 30
----
570

query I rowsort
SELECT - 30 + + ( - + 82 ) AS col2
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9143
SELECT 42 * + + COALESCE ( + COUNT( * ), 69 DIV CASE 41 WHEN - 35 THEN - 99 DIV + 32 END, + COALESCE ( 69, COUNT( * ), - 74 ) + 37, - 49 ) + + 39
----
81

skipif mysql # not compatible
query I rowsort label-9143
SELECT 42 * + + COALESCE ( + COUNT ( * ), 69 / CASE 41 WHEN - 35 THEN - 99 / + 32 END, + COALESCE ( 69, COUNT ( * ), - 74 ) + 37, - 49 ) + + 39
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL + 60 * + + 5 * + COALESCE ( 85, ( 99 ) ) + COUNT( 49 - 2 )
----
25501

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL + 60 * + + 5 * + COALESCE ( 85, ( 99 ) ) + COUNT ( 49 - 2 )
----
25501

query I rowsort
SELECT - 37 * - + COALESCE ( - 7, - 4 ) + + 41
----
-218

query I rowsort
SELECT ALL + ( - ( + + 59 ) )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9147
SELECT + 76 + - COUNT( * ) + - CAST( NULL AS SIGNED ) + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9147
SELECT + 76 + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + 26
----
NULL

query II rowsort
SELECT ALL + 5 AS col1, 67 AS col2
----
5
67

query I rowsort
SELECT - + 1 * + 53
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9150
SELECT + COUNT( * ), - NULLIF ( - 76, - 73 ) AS col0
----
1
76

skipif mysql # not compatible
query II rowsort label-9150
SELECT + COUNT ( * ), - NULLIF ( - 76, - 73 ) AS col0
----
1
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9151
SELECT NULLIF ( 60, + - ( 69 ) + 60 ) * CAST( NULL AS SIGNED ) + CASE 1 WHEN - 80 + - CASE - 85 WHEN + ( + 7 ) / 14 + 30 THEN ( - 79 ) * 86 + + 89 WHEN + 27 THEN 66 + + 48 END THEN NULL WHEN - 31 THEN NULLIF ( MAX( DISTINCT + ( 98 ) ), - 34 + - 26 ) ELSE NULL END * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT NULLIF ( 60, + - ( 69 ) + 60 ) * CAST ( NULL AS INTEGER ) + CASE 1 WHEN - 80 + - CASE - 85 WHEN + ( + 7 ) / 14 + 30 THEN ( - 79 ) * 86 + + 89 WHEN + 27 THEN 66 + + 48 END THEN NULL WHEN - 31 THEN NULLIF ( MAX ( DISTINCT + ( 98 ) ), - 34 + - 26 ) ELSE NULL END * - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT ALL - - 54 * - 41 + + + COUNT( * ) AS col0
----
-2213

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL - - 54 * - 41 + + + COUNT ( * ) AS col0
----
-2213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9153
SELECT DISTINCT + + ( CAST( - 73 AS DECIMAL ) ) * CASE - CASE 25 WHEN - 85 * 40 THEN NULL WHEN 44 + 41 THEN + CASE 18 WHEN - 96 - + 68 * + NULLIF ( CAST( MIN( 99 ) AS DECIMAL ) * 53, SUM( COALESCE ( + ( 61 ), 27 ) ) ) THEN NULL ELSE + 4 + 83 END + + CAST( NULL AS SIGNED ) END + + 26 WHEN + ( 95 ) * 16 THEN 37 + COALESCE ( - 87, - 33, 78 ) * - 26 ELSE NULL END + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT + + ( CAST ( - 73 AS REAL ) ) * CASE - CASE 25 WHEN - 85 * 40 THEN NULL WHEN 44 + 41 THEN + CASE 18 WHEN - 96 - + 68 * + NULLIF ( CAST ( MIN ( 99 ) AS REAL ) * 53, SUM ( COALESCE ( + ( 61 ), 27 ) ) ) THEN NULL ELSE + 4 + 83 END + + CAST ( NULL AS INTEGER ) END + + 26 WHEN + ( 95 ) * 16 THEN 37 + COALESCE ( - 87, - 33, 78 ) * - 26 ELSE NULL END + + 69
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9154
SELECT + + MAX( ALL - 29 ) DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-9154
SELECT + + MAX ( ALL - 29 ) / + 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9155
SELECT + 29 * - 44 - 74 + CASE + 85 + CAST( NULL AS SIGNED ) * - 46 WHEN + 95 * NULLIF ( + CAST( + 37 AS SIGNED ), MAX( 91 ) * + COUNT( * ) + - 10 * + 85 ) THEN + 90 * + MAX( DISTINCT + 75 ) - + CAST( NULL AS SIGNED ) * 96 WHEN CAST( NULL AS SIGNED ) THEN NULL END + 53 * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT + 29 * - 44 - 74 + CASE + 85 + CAST ( NULL AS INTEGER ) * - 46 WHEN + 95 * NULLIF ( + CAST ( + 37 AS INTEGER ), MAX ( 91 ) * + COUNT ( * ) + - 10 * + 85 ) THEN + 90 * + MAX ( DISTINCT + 75 ) - + CAST ( NULL AS INTEGER ) * 96 WHEN CAST ( NULL AS INTEGER ) THEN NULL END + 53 * 8
----
NULL

query I rowsort
SELECT ALL 76 * ( - + 38 )
----
-2888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT DISTINCT - CAST( - 85 AS SIGNED ) * 65 * - 87 AS col1
----
-480675

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT - CAST ( - 85 AS INTEGER ) * 65 * - 87 AS col1
----
-480675

query I rowsort
SELECT DISTINCT 85 * 59 + - 83 AS col0
----
4932

query I rowsort
SELECT DISTINCT + 12 * + 64 - 13 AS col2
----
755

query I rowsort
SELECT DISTINCT COALESCE ( + 64, - + 52 )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9161
SELECT + 73 DIV - + 62
----
-1

skipif mysql # not compatible
query I rowsort label-9161
SELECT + 73 / - + 62
----
-1

query II rowsort
SELECT - - 86 AS col2, - 86 AS col2
----
86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT ALL - COUNT( * ) - + 81 * - SUM( 87 ) + 36
----
7082

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL - COUNT ( * ) - + 81 * - SUM ( 87 ) + 36
----
7082

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT - - MAX( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-9164
SELECT - - MAX ( 73 )
----
73

query I rowsort
SELECT + - 49 - + 82
----
-131

query I rowsort
SELECT - - 44 * - 28 * - ( 7 ) + 56
----
8680

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + 62 + + MIN( + 84 )
----
146

skipif mysql # not compatible
query I rowsort label-9167
SELECT + 62 + + MIN ( + 84 )
----
146

query I rowsort
SELECT - ( - 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT - CASE + 92 WHEN 35 + ( MIN( 75 ) ) THEN NULL WHEN + ( + 97 ) * 65 THEN - 98 WHEN + 52 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9169
SELECT - CASE + 92 WHEN 35 + ( MIN ( 75 ) ) THEN NULL WHEN + ( + 97 ) * 65 THEN - 98 WHEN + 52 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9170
SELECT - 86, + 80 DIV - - 18 + 70 AS col0
----
-86
74

skipif mysql # not compatible
query II rowsort label-9170
SELECT - 86, + 80 / - - 18 + 70 AS col0
----
-86
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT - COALESCE ( - 93, COUNT( * ) ) + 89 AS col0
----
182

skipif mysql # not compatible
query I rowsort label-9171
SELECT - COALESCE ( - 93, COUNT ( * ) ) + 89 AS col0
----
182

query II rowsort
SELECT ALL + 70, 81 col0
----
70
81

query I rowsort
SELECT ALL + 36 * + 51 AS col2
----
1836

query I rowsort
SELECT - 49 - + ( + 87 ) * - 57 AS col0
----
4910

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT - 67 + MIN( DISTINCT - 67 ) * + 31 AS col1
----
-2144

skipif mysql # not compatible
query I rowsort label-9175
SELECT - 67 + MIN ( DISTINCT - 67 ) * + 31 AS col1
----
-2144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9176
SELECT ALL + COUNT( * ) + + COUNT( ALL 18 ) DIV COALESCE ( + 40, 42, 68 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL + COUNT ( * ) + + COUNT ( ALL 18 ) / COALESCE ( + 40, 42, 68 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9177
SELECT DISTINCT - 48 DIV - - 61 * - + 95 + 1 + ( - 70 ) * + 59 AS col0
----
-4129

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT - 48 / - - 61 * - + 95 + 1 + ( - 70 ) * + 59 AS col0
----
-4129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9178
SELECT + CAST( SUM( + 51 ) AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-9178
SELECT + CAST ( SUM ( + 51 ) AS INTEGER )
----
51

query I rowsort
SELECT - 28 * - 77 + - 28
----
2128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9180
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 32 * - 65 + + ( - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 32 * - 65 + + ( - 57 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9181
SELECT ALL - 65 DIV - - 30 + + - 93
----
-95

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL - 65 / - - 30 + + - 93
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9182
SELECT ALL + COUNT( * ) DIV + 24 + + ( 7 ) + MAX( + 72 ) * 42
----
3031

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL + COUNT ( * ) / + 24 + + ( 7 ) + MAX ( + 72 ) * 42
----
3031

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT - 1 * + MIN( DISTINCT + + ( 23 ) ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-9183
SELECT - 1 * + MIN ( DISTINCT + + ( 23 ) ) col2
----
-23

query I rowsort
SELECT DISTINCT - 65 * - - 63 * 86
----
-352170

onlyif mysql # DIV for integer division: 
query I rowsort label-9185
SELECT DISTINCT - 72 DIV - NULLIF ( + NULLIF ( ( + 50 ), + 31 ), - AVG ( DISTINCT + 47 ) ) + 58 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9185
SELECT DISTINCT - 72 / - NULLIF ( + NULLIF ( ( + 50 ), + 31 ), - AVG ( DISTINCT + 47 ) ) + 58 AS col2
----
59

query I rowsort
SELECT ALL 88 * 64 AS col2
----
5632

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL + ( + + 30 ) * + 22 + - + COUNT( * ) AS col2
----
659

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL + ( + + 30 ) * + 22 + - + COUNT ( * ) AS col2
----
659

query I rowsort
SELECT - 65 - + + ( + 5 ) AS col2
----
-70

query I rowsort
SELECT ( + ( + - 80 ) ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT - COUNT( * ) * 30 * - COALESCE ( - SUM( - 9 ), + 25 ) * + 39 - 53 AS col0
----
10477

skipif mysql # not compatible
query I rowsort label-9190
SELECT - COUNT ( * ) * 30 * - COALESCE ( - SUM ( - 9 ), + 25 ) * + 39 - 53 AS col0
----
10477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9191
SELECT ALL + COALESCE ( + - 19, + 97 DIV + SUM( ALL 9 ), + 40 * 21 + 14 ) * + COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + COALESCE ( + - 19, + 97 / + SUM ( ALL 9 ), + 40 * 21 + 14 ) * + COUNT ( * ) AS col2
----
-19

query I rowsort
SELECT - - 89 * - - ( 19 ) AS col1
----
1691

query I rowsort
SELECT ALL + 83 * + 2 AS col0
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9194
SELECT - + COALESCE ( + CAST( NULL AS SIGNED ), + - 55 + ( - COUNT( * ) ) ) - 68
----
-12

skipif mysql # not compatible
query I rowsort label-9194
SELECT - + COALESCE ( + CAST ( NULL AS INTEGER ), + - 55 + ( - COUNT ( * ) ) ) - 68
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT + 9 * 90 * + 44 * COUNT( * ) * + 17 - + 54 * + 36
----
603936

skipif mysql # not compatible
query I rowsort label-9195
SELECT + 9 * 90 * + 44 * COUNT ( * ) * + 17 - + 54 * + 36
----
603936

query I rowsort
SELECT ALL + 28 * + 92
----
2576

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT + - 90 * + 89 * + 70 + - 32 DIV - 57 AS col0
----
-560700

skipif mysql # not compatible
query I rowsort label-9197
SELECT + - 90 * + 89 * + 70 + - 32 / - 57 AS col0
----
-560700

query I rowsort
SELECT - 37 + - 66
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9199
SELECT + COUNT( * ) DIV - - MIN( ALL - 27 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT + COUNT ( * ) / - - MIN ( ALL - 27 ) AS col0
----
0

query I rowsort
SELECT + 50 + - - 23
----
73

query I rowsort
SELECT + 20 - 62
----
-42

query I rowsort
SELECT DISTINCT 94 * + 95 AS col0
----
8930

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT + CASE 85 WHEN - + 81 * 60 * + 15 + ( + 21 ) THEN NULL ELSE + 57 / + 12 - + CASE COUNT( * ) + - 23 * 8 WHEN ( + MIN( ALL 57 ) ) THEN - 85 * 69 END END + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT + CASE 85 WHEN - + 81 * 60 * + 15 + ( + 21 ) THEN NULL ELSE + 57 / + 12 - + CASE COUNT ( * ) + - 23 * 8 WHEN ( + MIN ( ALL 57 ) ) THEN - 85 * 69 END END + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL ( + 29 ) * - 24 * MAX( + 47 ) AS col0
----
-32712

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL ( + 29 ) * - 24 * MAX ( + 47 ) AS col0
----
-32712

onlyif mysql # DIV for integer division: 
query I rowsort label-9205
SELECT + + 12 DIV 87 - - 20
----
20

skipif mysql # not compatible
query I rowsort label-9205
SELECT + + 12 / 87 - - 20
----
20

query II rowsort
SELECT 77 AS col0, + 50
----
77
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT 3 + + + SUM( ( + 95 ) ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9207
SELECT 3 + + + SUM ( ( + 95 ) ) AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9208
SELECT 10 DIV - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9208
SELECT 10 / - 57 AS col1
----
0

query II rowsort
SELECT 58 AS col0, 52 * 66
----
58
3432

query I rowsort
SELECT DISTINCT ( - 41 ) + + + NULLIF ( + 22, + 10 * - 62 ) - 12
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT DISTINCT SUM( + 67 ) + + COUNT( * ) * - + ( + 91 )
----
-24

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT SUM ( + 67 ) + + COUNT ( * ) * - + ( + 91 )
----
-24

query I rowsort
SELECT ALL + 6 + - - 87
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9213
SELECT - 92 / + 86 - + - 85 * - 92 * CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9213
SELECT - 92 / + 86 - + - 85 * - 92 * CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9214
SELECT ALL - CAST( 74 AS SIGNED ) * - 51, 43 AS col0
----
3774
43

skipif mysql # not compatible
query II rowsort label-9214
SELECT ALL - CAST ( 74 AS INTEGER ) * - 51, 43 AS col0
----
3774
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9215
SELECT 35 + - 23 * 88 - + + 72 + + - NULLIF ( 18, + ( CAST( + 90 AS SIGNED ) ) + 28 ) + ( 15 ) AS col0
----
-2064

skipif mysql # not compatible
query I rowsort label-9215
SELECT 35 + - 23 * 88 - + + 72 + + - NULLIF ( 18, + ( CAST ( + 90 AS INTEGER ) ) + 28 ) + ( 15 ) AS col0
----
-2064

onlyif mysql # DIV for integer division: 
query II rowsort label-9216
SELECT ALL 83 + 84 + 43 AS col1, 89 DIV 51 col0
----
210
1

skipif mysql # not compatible
query II rowsort label-9216
SELECT ALL 83 + 84 + 43 AS col1, 89 / 51 col0
----
210
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9217
SELECT ALL - NULLIF ( + - COUNT( * ), + 20 + + COUNT( * ) + + + CAST( 67 AS SIGNED ) * 28 )
----
1

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL - NULLIF ( + - COUNT ( * ), + 20 + + COUNT ( * ) + + + CAST ( 67 AS INTEGER ) * 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT ALL CASE - 13 WHEN - - COUNT( * ) * - 64 - CASE - 28 WHEN - 92 THEN NULL WHEN + 39 THEN NULL ELSE - 4 / CASE 38 WHEN 92 / 91 THEN 6 + 14 * 99 WHEN - 30 * 99 THEN - 68 END END THEN - 3 / 46 WHEN 11 + - 89 THEN NULL ELSE NULL END - 79 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL CASE - 13 WHEN - - COUNT ( * ) * - 64 - CASE - 28 WHEN - 92 THEN NULL WHEN + 39 THEN NULL ELSE - 4 / CASE 38 WHEN 92 / 91 THEN 6 + 14 * 99 WHEN - 30 * 99 THEN - 68 END END THEN - 3 / 46 WHEN 11 + - 89 THEN NULL ELSE NULL END - 79 col2
----
NULL

query I rowsort
SELECT 25 + + 94 + - 31 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT COUNT( * ) * - MAX( - + 63 ) * - NULLIF ( - COUNT( * ), COUNT( * ) ) + + 26 - - 39 * 9
----
440

skipif mysql # not compatible
query I rowsort label-9220
SELECT COUNT ( * ) * - MAX ( - + 63 ) * - NULLIF ( - COUNT ( * ), COUNT ( * ) ) + + 26 - - 39 * 9
----
440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9221
SELECT ALL - CASE - 67 WHEN - - 81 THEN CAST( 93 AS SIGNED ) * - 43 WHEN + MIN( ALL + 23 ) THEN COUNT( * ) * 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL - CASE - 67 WHEN - - 81 THEN CAST ( 93 AS INTEGER ) * - 43 WHEN + MIN ( ALL + 23 ) THEN COUNT ( * ) * 17 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT 70 - - ( + - 37 ) + + ( - + 65 ) * + COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-9222
SELECT 70 - - ( + - 37 ) + + ( - + 65 ) * + COUNT ( * ) AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT + 70 * + 76 - + - 81 + 77 + + 88 * + 46 * CAST( NULL AS SIGNED ) + + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT + 70 * + 76 - + - 81 + 77 + + 88 * + 46 * CAST ( NULL AS INTEGER ) + + 99 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9224
SELECT CAST( NULL AS SIGNED ) / - 11 + - 36 AS col1, 24 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-9224
SELECT CAST ( NULL AS INTEGER ) / - 11 + - 36 AS col1, 24 AS col0
----
NULL
24

query I rowsort
SELECT ALL - - ( - + 5 ) * + 9 AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9226
SELECT + CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) + CAST( - - 77 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT + CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) + CAST ( - - 77 AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9227
SELECT ALL - 63 DIV + MIN( DISTINCT - 30 ) AS col0, - COUNT( * ) + + 27 AS col0
----
2
26

skipif mysql # not compatible
query II rowsort label-9227
SELECT ALL - 63 / + MIN ( DISTINCT - 30 ) AS col0, - COUNT ( * ) + + 27 AS col0
----
2
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT 38 + + - 61 * + + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-9228
SELECT 38 + + - 61 * + + COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT DISTINCT + - COUNT( * ) * + 89 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT + - COUNT ( * ) * + 89 AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9230
SELECT + 53 * - - 22 + - + 11 + 43 + - COUNT( * ) * + 3 DIV + 98
----
1198

skipif mysql # not compatible
query I rowsort label-9230
SELECT + 53 * - - 22 + - + 11 + 43 + - COUNT ( * ) * + 3 / + 98
----
1198

query I rowsort
SELECT DISTINCT - + ( + - 68 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9232
SELECT CAST( NULL AS SIGNED ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT CAST ( NULL AS INTEGER ) * - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT DISTINCT - COUNT( * ) + + + 93
----
92

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT - COUNT ( * ) + + + 93
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT - - MIN( + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-9234
SELECT - - MIN ( + 8 )
----
8

query I rowsort
SELECT ALL - + 7 + 27
----
20

query I rowsort
SELECT - 80 + + 59
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT DISTINCT - 45 + - + MIN( - - 56 )
----
-101

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT - 45 + - + MIN ( - - 56 )
----
-101

query I rowsort
SELECT 13 * - 14 AS col0
----
-182

query I rowsort
SELECT ALL - 10 + 52 - - 91 + COALESCE ( + 53, - - 4 ) AS col0
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9240
SELECT 90 + - 38 + - COUNT( * ) DIV 81 * 39 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9240
SELECT 90 + - 38 + - COUNT ( * ) / 81 * 39 AS col2
----
52

onlyif mysql # DIV for integer division: 
query II rowsort label-9241
SELECT ALL 83 AS col1, 30 - - 89 DIV - 79 + + + 20
----
83
49

skipif mysql # not compatible
query II rowsort label-9241
SELECT ALL 83 AS col1, 30 - - 89 / - 79 + + + 20
----
83
49

query I rowsort
SELECT DISTINCT 84 + 11 + ( - + 88 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT 3 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT 3 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9244
SELECT COUNT( * ) * - - 69 AS col1, 36 AS col1
----
69
36

skipif mysql # not compatible
query II rowsort label-9244
SELECT COUNT ( * ) * - - 69 AS col1, 36 AS col1
----
69
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL COUNT( * ) + - 36 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL COUNT ( * ) + - 36 AS col2
----
-35

query II rowsort
SELECT ALL 92 AS col2, ( 98 )
----
92
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9247
SELECT - 93, COUNT( * ) - - - 93 * - + ( - 35 ) * + 72 * - 3 AS col0
----
-93
703081

skipif mysql # not compatible
query II rowsort label-9247
SELECT - 93, COUNT ( * ) - - - 93 * - + ( - 35 ) * + 72 * - 3 AS col0
----
-93
703081

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL MIN( ALL + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL MIN ( ALL + 49 )
----
49

query I rowsort
SELECT DISTINCT - 92 + + 82 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT COUNT( * ) * - - ( - + 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9250
SELECT COUNT ( * ) * - - ( - + 24 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT ALL SUM( - 65 ) - + CASE 2 WHEN + 92 THEN + + 39 WHEN MIN( DISTINCT + 61 ) - + 85 THEN NULL ELSE NULL END * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL SUM ( - 65 ) - + CASE 2 WHEN + 92 THEN + + 39 WHEN MIN ( DISTINCT + 61 ) - + 85 THEN NULL ELSE NULL END * + 90
----
NULL

query I rowsort
SELECT ALL 42 * 54 AS col1
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT 15 * + 55 * + - MAX( DISTINCT - 96 )
----
79200

skipif mysql # not compatible
query I rowsort label-9253
SELECT 15 * + 55 * + - MAX ( DISTINCT - 96 )
----
79200

onlyif mysql # aggregate syntax: 
query II rowsort label-9254
SELECT COUNT( * ) * - 44 AS col2, + 9
----
-44
9

skipif mysql # not compatible
query II rowsort label-9254
SELECT COUNT ( * ) * - 44 AS col2, + 9
----
-44
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9255
SELECT CASE 88 WHEN + - NULLIF ( + 85, - - 99 ) THEN - + 12 DIV 72 ELSE + 71 END * 98 AS col2
----
6958

skipif mysql # not compatible
query I rowsort label-9255
SELECT CASE 88 WHEN + - NULLIF ( + 85, - - 99 ) THEN - + 12 / 72 ELSE + 71 END * 98 AS col2
----
6958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9256
SELECT ALL NULLIF ( COUNT( * ), 82 ) DIV - 47 * 14 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL NULLIF ( COUNT ( * ), 82 ) / - 47 * 14 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9257
SELECT ( - COUNT( * ) ) + 74 + - 37 * CAST( NULL AS SIGNED ) / 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT ( - COUNT ( * ) ) + 74 + - 37 * CAST ( NULL AS INTEGER ) / 96
----
NULL

query I rowsort
SELECT 12 * + 55 + 86 AS col2
----
746

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT SUM( - 78 ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-9259
SELECT SUM ( - 78 ) col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9260
SELECT CASE + CAST( NULL AS SIGNED ) WHEN - - 28 THEN NULL WHEN + CAST( NULL AS DECIMAL ) * + 82 + - ( - ( 54 ) ) + 52 / + 91 THEN + 62 / - CASE - 9 WHEN 56 * 68 THEN NULL WHEN + 56 THEN + 53 * - 45 ELSE - CAST( NULL AS SIGNED ) END END * 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN - - 28 THEN NULL WHEN + CAST ( NULL AS REAL ) * + 82 + - ( - ( 54 ) ) + 52 / + 91 THEN + 62 / - CASE - 9 WHEN 56 * 68 THEN NULL WHEN + 56 THEN + 53 * - 45 ELSE - CAST ( NULL AS INTEGER ) END END * 78 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9261
SELECT DISTINCT 13 * - CAST( 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT 13 * - CAST ( 0 AS INTEGER )
----
0

query I rowsort
SELECT 63 * - 6 col0
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT - 52 * COUNT( DISTINCT 9 ) + + 76 + 22 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9263
SELECT - 52 * COUNT ( DISTINCT 9 ) + + 76 + 22 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT DISTINCT - 1 * 24 * - - SUM( ALL - - 78 ) * - + ( + NULLIF ( + 29, 70 ) )
----
54288

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT - 1 * 24 * - - SUM ( ALL - - 78 ) * - + ( + NULLIF ( + 29, 70 ) )
----
54288

query I rowsort
SELECT ALL - - ( - 83 ) AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9266
SELECT + 38 * + 37 - - 29 + 81 DIV - 23 + - 0
----
1432

skipif mysql # not compatible
query I rowsort label-9266
SELECT + 38 * + 37 - - 29 + 81 / - 23 + - 0
----
1432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9267
SELECT 62 * + + 19 + + + ( - CASE - - 90 WHEN SUM( ALL - 43 ) / 42 THEN + NULLIF ( 99, + CAST( NULL AS SIGNED ) * 95 - - 10 * - COUNT( * ) ) WHEN 54 + 19 THEN CASE - 38 WHEN 67 THEN + 52 / CAST( + 85 / + CAST( NULL AS SIGNED ) AS SIGNED ) + + CAST( NULL AS DECIMAL ) END WHEN 2 THEN NULL END ) / + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT 62 * + + 19 + + + ( - CASE - - 90 WHEN SUM ( ALL - 43 ) / 42 THEN + NULLIF ( 99, + CAST ( NULL AS INTEGER ) * 95 - - 10 * - COUNT ( * ) ) WHEN 54 + 19 THEN CASE - 38 WHEN 67 THEN + 52 / CAST ( + 85 / + CAST ( NULL AS INTEGER ) AS INTEGER ) + + CAST ( NULL AS REAL ) END WHEN 2 THEN NULL END ) / + 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9268
SELECT + COUNT( * ), 48 + 6 + - 80 AS col0
----
1
-26

skipif mysql # not compatible
query II rowsort label-9268
SELECT + COUNT ( * ), 48 + 6 + - 80 AS col0
----
1
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9269
SELECT DISTINCT MIN( 50 ) + + COALESCE ( MIN( - - 12 ), + 65 DIV SUM( - 85 * 51 ) + 66, - 8 )
----
62

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT MIN ( 50 ) + + COALESCE ( MIN ( - - 12 ), + 65 / SUM ( - 85 * 51 ) + 66, - 8 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9270
SELECT ALL - - NULLIF ( + 47, COUNT( * ) * - 80 - - - COUNT( * ) ) + + MAX( DISTINCT - 17 ) - COALESCE ( + COUNT( * ), 20 + + CASE - 46 WHEN CASE - 67 WHEN - NULLIF ( - CAST( 74 AS SIGNED ), - 90 + 94 ) THEN + 47 - 80 ELSE NULL END THEN NULL ELSE + 9 END, - 32 )
----
29

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL - - NULLIF ( + 47, COUNT ( * ) * - 80 - - - COUNT ( * ) ) + + MAX ( DISTINCT - 17 ) - COALESCE ( + COUNT ( * ), 20 + + CASE - 46 WHEN CASE - 67 WHEN - NULLIF ( - CAST ( 74 AS INTEGER ), - 90 + 94 ) THEN + 47 - 80 ELSE NULL END THEN NULL ELSE + 9 END, - 32 )
----
29

query II rowsort
SELECT + 4 AS col1, + ( 43 ) AS col1
----
4
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT DISTINCT - MAX( ALL - 35 ) + - 46 - - 82 * + 51 + 70 AS col1
----
4241

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT - MAX ( ALL - 35 ) + - 46 - - 82 * + 51 + 70 AS col1
----
4241

query I rowsort
SELECT DISTINCT - 49 + + + 44 + NULLIF ( + + 66, + 75 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9274
SELECT ALL + + CAST( NULL AS SIGNED ) * - 93 AS col1, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9274
SELECT ALL + + CAST ( NULL AS INTEGER ) * - 93 AS col1, + COUNT ( * ) AS col0
----
NULL
1

query II rowsort
SELECT ALL - - 71 + - 55 col2, - 51 + - 34
----
16
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL - COUNT( * ) + - 39 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - COUNT ( * ) + - 39 AS col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT DISTINCT + 57 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT + 57 / + 67
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9278
SELECT - 82 DIV - 5 + 57 + + 4 * - MAX( DISTINCT - NULLIF ( 29, + 88 ) ) AS col1
----
189

skipif mysql # not compatible
query I rowsort label-9278
SELECT - 82 / - 5 + 57 + + 4 * - MAX ( DISTINCT - NULLIF ( 29, + 88 ) ) AS col1
----
189

query I rowsort
SELECT + + 35 * - + 75
----
-2625

query II rowsort
SELECT - 88, 12 AS col0
----
-88
12

query I rowsort
SELECT ALL + + 42 * 41
----
1722

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT ALL - 23 + + - CAST( NULL AS SIGNED ) + - ( 88 ) * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL - 23 + + - CAST ( NULL AS INTEGER ) + - ( 88 ) * + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT - 14 + + 64 + + 61 * - SUM( + 56 ) AS col0
----
-3366

skipif mysql # not compatible
query I rowsort label-9283
SELECT - 14 + + 64 + + 61 * - SUM ( + 56 ) AS col0
----
-3366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9284
SELECT - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) - + ( - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-9284
SELECT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) - + ( - 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL MIN( + ( - 36 ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL MIN ( + ( - 36 ) ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL - ( + COUNT( ALL 57 ) ) + + 29 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL - ( + COUNT ( ALL 57 ) ) + + 29 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9287
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), + 62 + - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) / ( - MAX( - 0 ) ) * NULLIF ( - 92, 27 ) - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), + 62 + - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / ( - MAX ( - 0 ) ) * NULLIF ( - 92, 27 ) - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT DISTINCT - 6 - COUNT( * ) + 48 col2
----
41

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT - 6 - COUNT ( * ) + 48 col2
----
41

query I rowsort
SELECT - 36 + + + 81 + 4 AS col1
----
49

query I rowsort
SELECT - 48 * - - 55 col0
----
-2640

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL COALESCE ( - MAX( DISTINCT + - 90 ), + 31, - + CASE + 57 WHEN - 24 THEN - MAX( + 24 ) + MIN( ALL + 91 ) ELSE NULL END * - 68 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL COALESCE ( - MAX ( DISTINCT + - 90 ), + 31, - + CASE + 57 WHEN - 24 THEN - MAX ( + 24 ) + MIN ( ALL + 91 ) ELSE NULL END * - 68 ) AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT - 0 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-9292
SELECT - 0 / - 37
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT + COUNT( * ) * + + 55
----
55

skipif mysql # not compatible
query I rowsort label-9293
SELECT + COUNT ( * ) * + + 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT + COUNT( 40 ) * - 3 * - 31
----
93

skipif mysql # not compatible
query I rowsort label-9294
SELECT + COUNT ( 40 ) * - 3 * - 31
----
93

query I rowsort
SELECT DISTINCT ( 11 ) AS col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9296
SELECT - 67 DIV - 4 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9296
SELECT - 67 / - 4 AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9297
SELECT + + COUNT( * ) DIV + - 73 * + 16 + + 59 * + MIN( ALL 14 )
----
826

skipif mysql # not compatible
query I rowsort label-9297
SELECT + + COUNT ( * ) / + - 73 * + 16 + + 59 * + MIN ( ALL 14 )
----
826

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT + CASE + 9 WHEN COALESCE ( + 93, + 36 / + - 43 + + - 33, - 19 + COUNT( * ) ) THEN NULL WHEN + 78 + 7 / 51 THEN NULL WHEN + 88 * 92 + 94 THEN 35 * 47 ELSE 89 END AS col2
----
89

skipif mysql # not compatible
query I rowsort label-9298
SELECT + CASE + 9 WHEN COALESCE ( + 93, + 36 / + - 43 + + - 33, - 19 + COUNT ( * ) ) THEN NULL WHEN + 78 + 7 / 51 THEN NULL WHEN + 88 * 92 + 94 THEN 35 * 47 ELSE 89 END AS col2
----
89

query I rowsort
SELECT + - 77 * + 69
----
-5313

query I rowsort
SELECT ALL - 71 * - + 16 + 45 + + 31 AS col2
----
1212

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT + - 66 + + - 29 + + 53 DIV 18 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-9301
SELECT + - 66 + + - 29 + + 53 / 18 AS col2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9302
SELECT COUNT( DISTINCT + 26 ) * + CASE - ( + 2 ) WHEN + - 0 * + + 78 - 56 * 37 THEN NULL WHEN - 13 THEN 63 WHEN COUNT( * ) * COUNT( * ) THEN NULL ELSE 86 END - + 47 * COALESCE ( + ( - 18 ) * + 35, COUNT( * ) ) - - ( 17 ) DIV 46 AS col2
----
29696

skipif mysql # not compatible
query I rowsort label-9302
SELECT COUNT ( DISTINCT + 26 ) * + CASE - ( + 2 ) WHEN + - 0 * + + 78 - 56 * 37 THEN NULL WHEN - 13 THEN 63 WHEN COUNT ( * ) * COUNT ( * ) THEN NULL ELSE 86 END - + 47 * COALESCE ( + ( - 18 ) * + 35, COUNT ( * ) ) - - ( 17 ) / 46 AS col2
----
29696

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT + - 6 * + 26 + + SUM( ALL + 4 )
----
-152

skipif mysql # not compatible
query I rowsort label-9303
SELECT + - 6 * + 26 + + SUM ( ALL + 4 )
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9304
SELECT ALL 15 * 0 * - ( 6 ) + + CASE + 57 WHEN + 46 THEN - 91 * - CAST( 40 * - ( CAST( 45 AS SIGNED ) ) AS SIGNED ) END / 99 + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL 15 * 0 * - ( 6 ) + + CASE + 57 WHEN + 46 THEN - 91 * - CAST ( 40 * - ( CAST ( 45 AS INTEGER ) ) AS INTEGER ) END / 99 + - 0
----
NULL

query I rowsort
SELECT ALL + - 68 * 53 + - 88 * - 70 + 11
----
2567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9306
SELECT COUNT( * ) DIV COUNT( * ) + CAST( + COALESCE ( - - ( - 91 ), 96, + 10 * ( - 59 * + 45 ) ) AS SIGNED ) * + 53
----
-4822

skipif mysql # not compatible
query I rowsort label-9306
SELECT COUNT ( * ) / COUNT ( * ) + CAST ( + COALESCE ( - - ( - 91 ), 96, + 10 * ( - 59 * + 45 ) ) AS INTEGER ) * + 53
----
-4822

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL - + 69 * + 80 - - + MIN( ALL - 80 ) + + ( + 64 ) * 21 AS col2
----
-4256

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL - + 69 * + 80 - - + MIN ( ALL - 80 ) + + ( + 64 ) * 21 AS col2
----
-4256

query I rowsort
SELECT + + 50 + - 16 AS col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9309
SELECT COUNT( DISTINCT 15 ) AS col1, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9309
SELECT COUNT ( DISTINCT 15 ) AS col1, + COUNT ( * )
----
1
1

query I rowsort
SELECT DISTINCT - 84 * + 79 + + 87 * - + 95 + + + 51 AS col0
----
-14850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT ALL - COUNT( * ) * 72 * 16 * + - CAST( - 36 AS SIGNED ) + - 41 AS col0
----
-41513

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL - COUNT ( * ) * 72 * 16 * + - CAST ( - 36 AS INTEGER ) + - 41 AS col0
----
-41513

query I rowsort
SELECT + + 90 * - 55 AS col0
----
-4950

query I rowsort
SELECT + 28 + NULLIF ( + - 70, - + 66 )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9314
SELECT DISTINCT - COUNT( * ) * 1 DIV + 9 + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT - COUNT ( * ) * 1 / + 9 + - 6
----
-6

query I rowsort
SELECT DISTINCT CASE + 74 WHEN + 89 THEN NULL ELSE - 71 END AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT ALL 87 * + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL 87 * + COUNT ( * )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT ALL + + 19 * - CAST( NULL AS SIGNED ) + - 77 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL + + 19 * - CAST ( NULL AS INTEGER ) + - 77 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT - 84 + - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-9318
SELECT - 84 + - COUNT ( * )
----
-85

query I rowsort
SELECT - - 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT MAX( + ( - 41 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-9320
SELECT MAX ( + ( - 41 ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT + NULLIF ( + 48, - COUNT( * ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9321
SELECT + NULLIF ( + 48, - COUNT ( * ) ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9322
SELECT ALL - + MAX( ALL + - ( + 88 ) ) AS col2, + 17 AS col0
----
88
17

skipif mysql # not compatible
query II rowsort label-9322
SELECT ALL - + MAX ( ALL + - ( + 88 ) ) AS col2, + 17 AS col0
----
88
17

query I rowsort
SELECT DISTINCT - + 9
----
-9

query I rowsort
SELECT DISTINCT - + 83 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT COUNT( DISTINCT 50 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9325
SELECT COUNT ( DISTINCT 50 ) AS col0
----
1

query I rowsort
SELECT ALL + + 20 + + - 69 AS col2
----
-49

query I rowsort
SELECT - + ( 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT DISTINCT COUNT( DISTINCT 10 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT COUNT ( DISTINCT 10 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9329
SELECT ALL 16 / - + NULLIF ( + CAST( NULL AS SIGNED ), COUNT( * ) ) + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL 16 / - + NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( * ) ) + - 31
----
NULL

query I rowsort
SELECT + ( - + 84 )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT 29 DIV - 86 * + + 41 + - + 28 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9331
SELECT 29 / - 86 * + + 41 + - + 28 AS col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-9332
SELECT - 86 DIV - 22 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9332
SELECT - 86 / - 22 AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9333
SELECT + ( + COUNT( * ) ) AS col2, - ( 30 )
----
1
-30

skipif mysql # not compatible
query II rowsort label-9333
SELECT + ( + COUNT ( * ) ) AS col2, - ( 30 )
----
1
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9334
SELECT + 50 DIV - + COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9334
SELECT + 50 / - + COUNT ( * ) AS col0
----
-50

query I rowsort
SELECT ALL 32 * + - 44
----
-1408

query I rowsort
SELECT ALL ( 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT - - 19 * COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-9337
SELECT - - 19 * COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT DISTINCT COUNT( * ) * + 67
----
67

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT COUNT ( * ) * + 67
----
67

query I rowsort
SELECT - 54 + - - 55
----
1

query I rowsort
SELECT DISTINCT - 84 + 51 AS col2
----
-33

query I rowsort
SELECT ALL + 66 + - - 83 - - - 54 AS col0
----
95

query II rowsort
SELECT + 68 AS col2, + 27
----
68
27

query I rowsort
SELECT DISTINCT - + 20 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT + SUM( DISTINCT 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9344
SELECT + SUM ( DISTINCT 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL COUNT( * ) * - 11 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL COUNT ( * ) * - 11 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT + COUNT( * ) + + + 61
----
62

skipif mysql # not compatible
query I rowsort label-9346
SELECT + COUNT ( * ) + + + 61
----
62

query I rowsort
SELECT + 86 * 75 col1
----
6450

query I rowsort
SELECT + 50 + 2 AS col1
----
52

query I rowsort
SELECT + ( + 78 ) AS col0
----
78

query II rowsort
SELECT ALL - 25, + 97 AS col0
----
-25
97

query I rowsort
SELECT ALL - + 71 AS col2
----
-71

query I rowsort
SELECT ALL - + 38
----
-38

query I rowsort
SELECT DISTINCT + - 9 - + 95 AS col0
----
-104

query I rowsort
SELECT 28 * - 19
----
-532

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT ALL + 39 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL + 39 / 72
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT ALL + CAST( NULL AS SIGNED ) / + 65 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL + CAST ( NULL AS INTEGER ) / + 65 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT ALL COUNT( DISTINCT + + 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL COUNT ( DISTINCT + + 56 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT 53 + + ( + COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-9358
SELECT 53 + + ( + COUNT ( * ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL COUNT( + 49 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL COUNT ( + 49 ) col1
----
1

query II rowsort
SELECT 43 + + 74 AS col0, 23
----
117
23

query I rowsort
SELECT DISTINCT - - 37 AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9362
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 42 AS col2, 90 AS col2
----
42
90

query I rowsort
SELECT + 51 * 24 col2
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT + 45 + - 34 * + COUNT( * ) + ( + + COUNT( * ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9365
SELECT + 45 + - 34 * + COUNT ( * ) + ( + + COUNT ( * ) ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT + - COUNT( + 54 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9366
SELECT + - COUNT ( + 54 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT MIN( + 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9367
SELECT MIN ( + 5 ) AS col0
----
5

query I rowsort
SELECT ALL - ( + 65 ) AS col0
----
-65

query I rowsort
SELECT ALL ( 8 )
----
8

query I rowsort
SELECT 83 - - 17 AS col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-9371
SELECT ALL + 14 DIV - + 74
----
0

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL + 14 / - + 74
----
0

query I rowsort
SELECT ALL ( - + 86 ) AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9373
SELECT ALL ( - - 35 ) DIV + - 97
----
0

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL ( - - 35 ) / + - 97
----
0

query I rowsort
SELECT DISTINCT - ( - - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-9375
SELECT - 69 AS col2, - COUNT( * )
----
-69
-1

skipif mysql # not compatible
query II rowsort label-9375
SELECT - 69 AS col2, - COUNT ( * )
----
-69
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT ALL MAX( - 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL MAX ( - 59 ) AS col0
----
-59

query I rowsort
SELECT - 47 + 41 AS col2
----
-6

query I rowsort
SELECT - + 0 AS col0
----
0

query I rowsort
SELECT ( 97 ) AS col0
----
97

query I rowsort
SELECT ( - 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT DISTINCT - COUNT( + 17 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT - COUNT ( + 17 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT + 91 * + 65 + - COUNT( * ) AS col1
----
5914

skipif mysql # not compatible
query I rowsort label-9382
SELECT + 91 * + 65 + - COUNT ( * ) AS col1
----
5914

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT + COUNT( * ) * - + 88 + - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-9383
SELECT + COUNT ( * ) * - + 88 + - COUNT ( * )
----
-89

query I rowsort
SELECT ALL - 43 col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT 88 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT 88 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 65 * + 88 AS col0
----
-5720

query I rowsort
SELECT DISTINCT 39 * - - 74 col2
----
2886

query I rowsort
SELECT - ( 87 ) AS col1
----
-87

query I rowsort
SELECT ALL - 70 * - 18 + 82
----
1342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT 98 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT 98 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT ( + COUNT( * ) ) * 21 + 29 + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-9391
SELECT ( + COUNT ( * ) ) * 21 + 29 + COUNT ( * )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT ALL - 79 - 21 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL - 79 - 21 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT - MIN( DISTINCT - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-9393
SELECT - MIN ( DISTINCT - 78 )
----
78

query I rowsort
SELECT DISTINCT - 15 * - + 33
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT ALL MAX( ALL 92 )
----
92

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL MAX ( ALL 92 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9396
SELECT ALL - 83 * + CAST( NULL AS SIGNED ) + + + 85 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL - 83 * + CAST ( NULL AS INTEGER ) + + + 85 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT + + COUNT( * ) - - 31 + ( - + 71 ) + - 50 * - + 60 col0
----
2961

skipif mysql # not compatible
query I rowsort label-9397
SELECT + + COUNT ( * ) - - 31 + ( - + 71 ) + - 50 * - + 60 col0
----
2961

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT + COUNT( * ) + - - 77 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9398
SELECT + COUNT ( * ) + - - 77 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9399
SELECT 89 AS col2, COUNT( * ) + + - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
89
NULL

skipif mysql # not compatible
query II rowsort label-9399
SELECT 89 AS col2, COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
89
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9400
SELECT - CAST( - + 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-9400
SELECT - CAST ( - + 58 AS INTEGER )
----
58

query I rowsort
SELECT ALL + ( + 25 ) + + 1 + - 17 AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9402
SELECT CAST( + 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-9402
SELECT CAST ( + 49 AS INTEGER )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9403
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / - + 29 - + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / - + 29 - + 35 AS col1
----
NULL

query I rowsort
SELECT ALL - + 1 AS col1
----
-1

query I rowsort
SELECT 7 + 70 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT + ( - 8 ) + + COUNT( * ) * + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-9406
SELECT + ( - 8 ) + + COUNT ( * ) * + COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT SUM( DISTINCT + + 65 ) col2
----
65

skipif mysql # not compatible
query I rowsort label-9407
SELECT SUM ( DISTINCT + + 65 ) col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT + SUM( ALL + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-9408
SELECT + SUM ( ALL + 23 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT - 32 * + + 1 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT - 32 * + + 1 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - ( 89 ) AS col2
----
89

query I rowsort
SELECT - 13 * - 42
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT ALL + + ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL + + ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9413
SELECT + + CAST( + - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9413
SELECT + + CAST ( + - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9414
SELECT ALL 52 DIV - COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL 52 / - COUNT ( * ) AS col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT + CAST( + - 8 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-9415
SELECT + CAST ( + - 8 AS INTEGER )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL + SUM( + + 66 ) col1
----
66

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL + SUM ( + + 66 ) col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + 74 * - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-9417
SELECT + 74 * - COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT - COUNT( * ) * + 47 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-9418
SELECT - COUNT ( * ) * + 47 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT - COUNT( ALL 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-9419
SELECT - COUNT ( ALL 75 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT ALL COUNT( * ) + - - 70
----
71

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL COUNT ( * ) + - - 70
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT - ( - ( - MIN( DISTINCT + 17 ) ) )
----
-17

skipif mysql # not compatible
query I rowsort label-9421
SELECT - ( - ( - MIN ( DISTINCT + 17 ) ) )
----
-17

query I rowsort
SELECT 1 * - - 3 AS col0
----
3

query I rowsort
SELECT DISTINCT - 8 + 47
----
39

query I rowsort
SELECT - 12 - 62 AS col0
----
-74

query I rowsort
SELECT + ( + 35 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9426
SELECT 36 * CAST( + COUNT( * ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-9426
SELECT 36 * CAST ( + COUNT ( * ) AS INTEGER )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL - COUNT( ALL - 44 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL - COUNT ( ALL - 44 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT + - COUNT( * ) + + 32 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9428
SELECT + - COUNT ( * ) + + 32 AS col2
----
31

query I rowsort
SELECT ALL + 62 col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9430
SELECT ALL + 80 AS col2, - CAST( NULL AS SIGNED ) AS col0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-9430
SELECT ALL + 80 AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
80
NULL

query I rowsort
SELECT + ( - 39 ) col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9432
SELECT ALL - - 87 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL - - 87 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( - 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ALL - ( - 9 ) * + - MIN( DISTINCT + 3 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL - ( - 9 ) * + - MIN ( DISTINCT + 3 ) AS col1
----
-27

query I rowsort
SELECT ALL 90 * - 17 AS col1
----
-1530

query I rowsort
SELECT - - 85 * + 2 AS col2
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9437
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT + - 25 AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9439
SELECT + CAST( - + COUNT( * ) AS SIGNED ) + - ( + 86 ) + 20 * + + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-9439
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) + - ( + 86 ) + 20 * + + COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT DISTINCT - COUNT( * ) + - + 44 * 51 AS col1
----
-2245

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT - COUNT ( * ) + - + 44 * 51 AS col1
----
-2245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT CAST( NULL AS SIGNED ) * CASE - COUNT( * ) WHEN 12 THEN COUNT( DISTINCT 74 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT CAST ( NULL AS INTEGER ) * CASE - COUNT ( * ) WHEN 12 THEN COUNT ( DISTINCT 74 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT 59 * COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT 59 * COUNT ( * ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9443
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COUNT( - 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( - 46 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT ALL + CAST( NULL AS SIGNED ) + 65 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL + CAST ( NULL AS INTEGER ) + 65 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT DISTINCT COUNT( DISTINCT 32 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT COUNT ( DISTINCT 32 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT ALL + 19 * + COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL + 19 * + COUNT ( * ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT DISTINCT + + ( COUNT( - 71 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT + + ( COUNT ( - 71 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT - NULLIF ( CAST( 47 AS SIGNED ), - ( - 70 ) * + 88 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-9448
SELECT - NULLIF ( CAST ( 47 AS INTEGER ), - ( - 70 ) * + 88 ) AS col1
----
-47

query I rowsort
SELECT + ( - 18 ) col1
----
-18

query I rowsort
SELECT - 75 * + - 99 AS col2
----
7425

query I rowsort
SELECT - 88 * 32
----
-2816

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT ALL + + COUNT( 76 )
----
1

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL + + COUNT ( 76 )
----
1

query I rowsort
SELECT DISTINCT + - 48
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9454
SELECT 80 DIV + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-9454
SELECT 80 / + COUNT ( * )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9455
SELECT 51 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT 51 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9456
SELECT DISTINCT - - COUNT( * ) AS col2, 37 * + 2 + - 96
----
1
-22

skipif mysql # not compatible
query II rowsort label-9456
SELECT DISTINCT - - COUNT ( * ) AS col2, 37 * + 2 + - 96
----
1
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9457
SELECT - 48 + - CAST( 52 AS SIGNED )
----
-100

skipif mysql # not compatible
query I rowsort label-9457
SELECT - 48 + - CAST ( 52 AS INTEGER )
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-9458
SELECT 8 AS col0, - COUNT( * ) + + 25 + COUNT( * ) AS col0
----
8
25

skipif mysql # not compatible
query II rowsort label-9458
SELECT 8 AS col0, - COUNT ( * ) + + 25 + COUNT ( * ) AS col0
----
8
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9459
SELECT + 67 AS col0, CAST( + - 64 AS SIGNED )
----
67
-64

skipif mysql # not compatible
query II rowsort label-9459
SELECT + 67 AS col0, CAST ( + - 64 AS INTEGER )
----
67
-64

query I rowsort
SELECT ALL + 41 + 98 AS col2
----
139

query I rowsort
SELECT DISTINCT + + 52 + - + 97
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT MAX( ALL - + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-9462
SELECT MAX ( ALL - + 45 )
----
-45

query I rowsort
SELECT + 26 + - 77 col0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9464
SELECT ALL NULLIF ( 67, - CAST( + + 66 AS DECIMAL ) )
----
67

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL NULLIF ( 67, - CAST ( + + 66 AS REAL ) )
----
67

query I rowsort
SELECT 12 col2
----
12

query I rowsort
SELECT ALL - 34 + + 20
----
-14

query I rowsort
SELECT - - 29 - - + 40 AS col0
----
69

query I rowsort
SELECT DISTINCT + + 99 * - 43 col2
----
-4257

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT - 92 * 34 + - SUM( ALL - + 49 ) AS col2
----
-3079

skipif mysql # not compatible
query I rowsort label-9469
SELECT - 92 * 34 + - SUM ( ALL - + 49 ) AS col2
----
-3079

query I rowsort
SELECT - 85 + - - 44 AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9471
SELECT - CAST( NULLIF ( - + 31, + 76 ) AS SIGNED ) col1
----
31

skipif mysql # not compatible
query I rowsort label-9471
SELECT - CAST ( NULLIF ( - + 31, + 76 ) AS INTEGER ) col1
----
31

query I rowsort
SELECT ALL - 89 * - 3 AS col1
----
267

onlyif mysql # aggregate syntax: 
query II rowsort label-9473
SELECT 39 col2, + COUNT( * )
----
39
1

skipif mysql # not compatible
query II rowsort label-9473
SELECT 39 col2, + COUNT ( * )
----
39
1

query I rowsort
SELECT ALL - - 29 * - + 62
----
-1798

query I rowsort
SELECT ALL + 54 + - - 33 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT SUM( ALL - + 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9476
SELECT SUM ( ALL - + 12 ) AS col0
----
-12

query I rowsort
SELECT DISTINCT - 64 * - 31
----
1984

query I rowsort
SELECT ALL - 92 + + + 30 col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT COUNT( * ) + - 37 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-9479
SELECT COUNT ( * ) + - 37 AS col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9480
SELECT - CAST( - + 30 AS SIGNED ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9480
SELECT - CAST ( - + 30 AS INTEGER ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT ALL + MAX( DISTINCT ( 89 ) ) * - 69
----
-6141

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL + MAX ( DISTINCT ( 89 ) ) * - 69
----
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT + + MAX( - + 57 ) * COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-9482
SELECT + + MAX ( - + 57 ) * COUNT ( * )
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9483
SELECT DISTINCT + 71 + CAST( NULL AS DECIMAL ) * + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT + 71 + CAST ( NULL AS REAL ) * + - 96
----
NULL

query I rowsort
SELECT - - ( 65 ) col0
----
65

query I rowsort
SELECT - 39 * + + 39 AS col1
----
-1521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9486
SELECT DISTINCT SUM( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL SUM( ALL 44 )
----
44

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL SUM ( ALL 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT MIN( DISTINCT - + 14 ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT MIN ( DISTINCT - + 14 ) col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9489
SELECT - 61 + - CAST( AVG ( - + 89 ) AS SIGNED ) col2
----
28

skipif mysql # not compatible
query I rowsort label-9489
SELECT - 61 + - CAST ( AVG ( - + 89 ) AS INTEGER ) col2
----
28

query I rowsort
SELECT - ( - 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT - COUNT( * ) * + - 11
----
11

skipif mysql # not compatible
query I rowsort label-9491
SELECT - COUNT ( * ) * + - 11
----
11

query I rowsort
SELECT - + ( 26 ) + + 1 AS col1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-9493
SELECT + 4 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-9493
SELECT + 4 / 25
----
0

query I rowsort
SELECT - ( - 54 ) * + 53 AS col1
----
2862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9495
SELECT ALL COUNT( * ) DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL COUNT ( * ) / - 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT COUNT( * ) * - - 36
----
36

skipif mysql # not compatible
query I rowsort label-9496
SELECT COUNT ( * ) * - - 36
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-9497
SELECT ALL 85 AS col1, + COUNT( * ) AS col0
----
85
1

skipif mysql # not compatible
query II rowsort label-9497
SELECT ALL 85 AS col1, + COUNT ( * ) AS col0
----
85
1

query I rowsort
SELECT 19 * + ( ( - - 39 ) ) AS col2
----
741

onlyif mysql # aggregate syntax: 
query II rowsort label-9499
SELECT - 42 AS col2, COUNT( * )
----
-42
1

skipif mysql # not compatible
query II rowsort label-9499
SELECT - 42 AS col2, COUNT ( * )
----
-42
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9500
SELECT - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 22 - 1 AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9502
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), + 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), + 51 ) AS col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9503
SELECT DISTINCT - 16 DIV + - 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT - 16 / + - 31 AS col2
----
0

query II rowsort
SELECT DISTINCT 20 AS col1, + 27 AS col0
----
20
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT - + MIN( DISTINCT 70 ) + + 14
----
-56

skipif mysql # not compatible
query I rowsort label-9505
SELECT - + MIN ( DISTINCT 70 ) + + 14
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT SUM( DISTINCT 15 )
----
15

skipif mysql # not compatible
query I rowsort label-9506
SELECT SUM ( DISTINCT 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT DISTINCT - + COUNT( * ) + - 73 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT - + COUNT ( * ) + - 73 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT ALL + COUNT( ALL - + ( + 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL + COUNT ( ALL - + ( + 11 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT - 41 * - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-9509
SELECT - 41 * - COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT - 68 * + COUNT( DISTINCT + 31 )
----
-68

skipif mysql # not compatible
query I rowsort label-9510
SELECT - 68 * + COUNT ( DISTINCT + 31 )
----
-68

query I rowsort
SELECT ALL - ( - - 37 ) AS col2
----
-37

query I rowsort
SELECT 58 * - 50
----
-2900

query I rowsort
SELECT 48 * + - 66
----
-3168

query I rowsort
SELECT - + ( + 8 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT ALL + 87 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL + 87 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT - + SUM( + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-9516
SELECT - + SUM ( + 87 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9517
SELECT + + 83 DIV - CAST( + COUNT( * ) AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-9517
SELECT + + 83 / - CAST ( + COUNT ( * ) AS INTEGER )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT + - 39 * ( COUNT( * ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-9518
SELECT + - 39 * ( COUNT ( * ) ) AS col2
----
-39

query II rowsort
SELECT ALL 12 col0, - 39
----
12
-39

query I rowsort
SELECT ( + 94 ) AS col1
----
94

query I rowsort
SELECT ALL + ( + - 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT - COUNT( * ) + 71
----
70

skipif mysql # not compatible
query I rowsort label-9522
SELECT - COUNT ( * ) + 71
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT ALL - 59 * - COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL - 59 * - COUNT ( * ) AS col1
----
59

query I rowsort
SELECT DISTINCT + ( - - ( + + 5 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL + COUNT( * ) * - + 65 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL + COUNT ( * ) * - + 65 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT ALL + - COUNT( DISTINCT - 42 ) - 40
----
-41

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL + - COUNT ( DISTINCT - 42 ) - 40
----
-41

query I rowsort
SELECT ( 69 ) AS col1
----
69

query I rowsort
SELECT + 63 + 99
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9529
SELECT + 26 DIV SUM( 70 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9529
SELECT + 26 / SUM ( 70 ) AS col1
----
0

query I rowsort
SELECT 8 * 96 + - + 10
----
758

query I rowsort
SELECT - - 57 col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT + ( - - 99 ) * COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9532
SELECT + ( - - 99 ) * COUNT ( * ) AS col1
----
99

query I rowsort
SELECT ALL - 30 + - 3 + - 91 AS col1
----
-124

query I rowsort
SELECT 67 - - 52
----
119

query I rowsort
SELECT - 72 + 18
----
-54

query I rowsort
SELECT DISTINCT 97 + + 83
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL MAX( 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL MAX ( 41 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT COALESCE ( - 68, + + 52 * + - 21 + MAX( DISTINCT + 14 ) ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-9538
SELECT COALESCE ( - 68, + + 52 * + - 21 + MAX ( DISTINCT + 14 ) ) AS col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9539
SELECT + - MIN( DISTINCT + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT + - MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + + 18 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT - COUNT( * ) * - 54 * 43 - MIN( DISTINCT - 87 )
----
2409

skipif mysql # not compatible
query I rowsort label-9541
SELECT - COUNT ( * ) * - 54 * 43 - MIN ( DISTINCT - 87 )
----
2409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9542
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 98 + 43 + + + 88
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT SUM( ALL + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9544
SELECT SUM ( ALL + 63 ) AS col2
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9545
SELECT CAST( NULL AS DECIMAL ) + - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9545
SELECT CAST ( NULL AS REAL ) + - 73 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9546
SELECT CAST( NULL AS DECIMAL ) * + - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9546
SELECT CAST ( NULL AS REAL ) * + - 53 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9547
SELECT - 75 DIV + + 64
----
-1

skipif mysql # not compatible
query I rowsort label-9547
SELECT - 75 / + + 64
----
-1

query I rowsort
SELECT ALL - 28 + + ( 43 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT SUM( - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-9549
SELECT SUM ( - 57 ) AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9550
SELECT ALL - CAST( NULL AS SIGNED ), + 36 AS col0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-9550
SELECT ALL - CAST ( NULL AS INTEGER ), + 36 AS col0
----
NULL
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL - COUNT( * ) + + 39 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL - COUNT ( * ) + + 39 AS col0
----
38

query I rowsort
SELECT 69 + 28
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT + 96 * - MIN( DISTINCT - + 51 ) + - + 79 AS col1
----
4817

skipif mysql # not compatible
query I rowsort label-9553
SELECT + 96 * - MIN ( DISTINCT - + 51 ) + - + 79 AS col1
----
4817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9554
SELECT ALL 31 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL 31 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + ( + 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL - 99 + - SUM( ALL - 37 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL - 99 + - SUM ( ALL - 37 ) AS col1
----
-62

query I rowsort
SELECT 92 - + + 30 col1
----
62

query I rowsort
SELECT DISTINCT - + ( + 36 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-9559
SELECT + 50 AS col2, MAX( DISTINCT - 1 ) + - ( 38 ) AS col1
----
50
-39

skipif mysql # not compatible
query II rowsort label-9559
SELECT + 50 AS col2, MAX ( DISTINCT - 1 ) + - ( 38 ) AS col1
----
50
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT + - 56 * MAX( DISTINCT + 71 )
----
-3976

skipif mysql # not compatible
query I rowsort label-9560
SELECT + - 56 * MAX ( DISTINCT + 71 )
----
-3976

query I rowsort
SELECT ALL + 43 col0
----
43

query I rowsort
SELECT DISTINCT + + 1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9563
SELECT ALL 85 DIV 52
----
1

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL 85 / 52
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL SUM( DISTINCT 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL SUM ( DISTINCT 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT COUNT( + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-9565
SELECT COUNT ( + 95 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9566
SELECT ALL - COUNT( * ), - 38 AS col1
----
-1
-38

skipif mysql # not compatible
query II rowsort label-9566
SELECT ALL - COUNT ( * ), - 38 AS col1
----
-1
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT DISTINCT + 27 * - COUNT( * ) * - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT + 27 * - COUNT ( * ) * - COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT DISTINCT COUNT( * ) + 55 + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT COUNT ( * ) + 55 + COUNT ( * )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT ALL CAST( NULL AS SIGNED ) + ( + 36 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL CAST ( NULL AS INTEGER ) + ( + 36 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 25 * - - ( 49 )
----
-1225

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT + COUNT( * ) * 59 col0
----
59

skipif mysql # not compatible
query I rowsort label-9571
SELECT + COUNT ( * ) * 59 col0
----
59

query I rowsort
SELECT ALL + + 84 * - 26 AS col0
----
-2184

query I rowsort
SELECT + 91 * + - 86
----
-7826

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ALL - SUM( - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL - SUM ( - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT DISTINCT + 61 + + + COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT + 61 + + + COUNT ( * ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT COUNT( * ) * 11
----
11

skipif mysql # not compatible
query I rowsort label-9576
SELECT COUNT ( * ) * 11
----
11

query I rowsort
SELECT DISTINCT - + 99
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9578
SELECT + CAST( + SUM( 70 ) AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9578
SELECT + CAST ( + SUM ( 70 ) AS INTEGER ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT ( - + ( - + COUNT( DISTINCT 31 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9579
SELECT ( - + ( - + COUNT ( DISTINCT 31 ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL SUM( + 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL SUM ( + 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT DISTINCT + COUNT( + 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT + COUNT ( + 89 ) AS col2
----
1

query I rowsort
SELECT ALL + ( 92 )
----
92

query I rowsort
SELECT - 23 + + 5 + - 58 * - 22 AS col1
----
1258

query I rowsort
SELECT + ( + 27 ) AS col0
----
27

query I rowsort
SELECT + + 72 + + ( 54 )
----
126

query I rowsort
SELECT ALL + + 43 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT - + 17 * + + COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-9587
SELECT - + 17 * + + COUNT ( * ) AS col0
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9588
SELECT ALL CAST( NULL AS DECIMAL ) + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL CAST ( NULL AS REAL ) + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT DISTINCT - COUNT( * ) * - 22 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT - COUNT ( * ) * - 22 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9590
SELECT - COUNT( ALL + + CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9590
SELECT - COUNT ( ALL + + CAST ( NULL AS REAL ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL + 34 * - - COUNT( * ) col0
----
34

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL + 34 * - - COUNT ( * ) col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9592
SELECT 46 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9592
SELECT 46 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL COUNT( * ) * + 55 + + 77 + + + 15 + - 47 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL COUNT ( * ) * + 55 + + 77 + + + 15 + - 47 AS col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9594
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) * - + 98 - + + 82
----
16

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * - + 98 - + + 82
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT + 72 + - ( - COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-9595
SELECT + 72 + - ( - COUNT ( * ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT ALL COUNT( ALL + 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL COUNT ( ALL + 89 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT - 18 + + 27 - + NULLIF ( COUNT( * ), + 11 * + COUNT( * ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-9597
SELECT - 18 + + 27 - + NULLIF ( COUNT ( * ), + 11 * + COUNT ( * ) ) AS col2
----
8

query I rowsort
SELECT ALL ( + 21 )
----
21

query I rowsort
SELECT DISTINCT ( - 72 )
----
-72

query I rowsort
SELECT + - 19 col1
----
-19

query I rowsort
SELECT DISTINCT - 66 * - 52 AS col0
----
3432

query I rowsort
SELECT ( 52 ) AS col1
----
52

query I rowsort
SELECT + 85 + - - 89
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-9604
SELECT - COUNT( * ), + COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-9604
SELECT - COUNT ( * ), + COUNT ( * ) AS col0
----
-1
1

query I rowsort
SELECT DISTINCT 29 * - 67 + + 98
----
-1845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9606
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9607
SELECT + - COUNT( * ), COUNT( * ) col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-9607
SELECT + - COUNT ( * ), COUNT ( * ) col1
----
-1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9608
SELECT + - CAST( + - COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9608
SELECT + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9609
SELECT 51 AS col2, COUNT( * ) AS col2
----
51
1

skipif mysql # not compatible
query II rowsort label-9609
SELECT 51 AS col2, COUNT ( * ) AS col2
----
51
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9610
SELECT ALL 89 DIV - SUM( + 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL 89 / - SUM ( + 67 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9611
SELECT ALL + ( - + COUNT( * ) ) - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL + ( - + COUNT ( * ) ) - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9612
SELECT ( - - 74 ) DIV - COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-9612
SELECT ( - - 74 ) / - COUNT ( * ) AS col0
----
-74

query I rowsort
SELECT DISTINCT 66 + 43
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL COUNT( * ) * 64 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL COUNT ( * ) * 64 AS col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9615
SELECT MAX( DISTINCT - + 92 ), - COUNT( * ) AS col2
----
-92
-1

skipif mysql # not compatible
query II rowsort label-9615
SELECT MAX ( DISTINCT - + 92 ), - COUNT ( * ) AS col2
----
-92
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9616
SELECT - - MIN( DISTINCT - - ( + - ( - 33 ) ) ) DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-9616
SELECT - - MIN ( DISTINCT - - ( + - ( - 33 ) ) ) / - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT COUNT( - 17 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9617
SELECT COUNT ( - 17 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT - + 82 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT - + 82 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( - 76 ) AS col2
----
-76

query I rowsort
SELECT ALL + 8 - + 7
----
1

query I rowsort
SELECT 74 * 89
----
6586

query I rowsort
SELECT ALL - - 13 + 36 AS col1
----
49

query I rowsort
SELECT - - 83 AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9624
SELECT ALL - COUNT( * ) AS col1, + 19 AS col0
----
-1
19

skipif mysql # not compatible
query II rowsort label-9624
SELECT ALL - COUNT ( * ) AS col1, + 19 AS col0
----
-1
19

query I rowsort
SELECT DISTINCT 56 + - 80
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9626
SELECT ALL CAST( + - 11 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL CAST ( + - 11 AS INTEGER )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT ALL CAST( NULL AS SIGNED ) * + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL CAST ( NULL AS INTEGER ) * + - 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9628
SELECT - CAST( - 67 AS SIGNED ) * - ( 13 )
----
-871

skipif mysql # not compatible
query I rowsort label-9628
SELECT - CAST ( - 67 AS INTEGER ) * - ( 13 )
----
-871

query I rowsort
SELECT ALL 22 * + 59 AS col2
----
1298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9630
SELECT + 10 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT + 10 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT 82 * + 46 + - + COUNT( * ) + + 88 AS col0
----
3859

skipif mysql # not compatible
query I rowsort label-9631
SELECT 82 * + 46 + - + COUNT ( * ) + + 88 AS col0
----
3859

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9632
SELECT - COUNT( * ) * - 64 DIV - - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-9632
SELECT - COUNT ( * ) * - 64 / - - COUNT ( * )
----
64

query I rowsort
SELECT DISTINCT + 56 col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT + MIN( DISTINCT + + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-9634
SELECT + MIN ( DISTINCT + + 61 )
----
61

query I rowsort
SELECT - ( - 56 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9636
SELECT CAST( + - 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-9636
SELECT CAST ( + - 18 AS INTEGER )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT - MAX( DISTINCT 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-9637
SELECT - MAX ( DISTINCT 80 )
----
-80

query I rowsort
SELECT - 55 + - - 68
----
13

query I rowsort
SELECT ALL + NULLIF ( + + 78, + 39 + - 71 ) AS col1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT ALL - 64 DIV - 37 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL - 64 / - 37 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9641
SELECT + 88 + COUNT( ALL CAST( NULL AS SIGNED ) )
----
88

skipif mysql # not compatible
query I rowsort label-9641
SELECT + 88 + COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
88

query I rowsort
SELECT ALL + 32 + 66 col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT COUNT( * ) + 41
----
42

skipif mysql # not compatible
query I rowsort label-9643
SELECT COUNT ( * ) + 41
----
42

query I rowsort
SELECT 34 + 45
----
79

query I rowsort
SELECT ALL - 48 * + + 58
----
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT MIN( 33 )
----
33

skipif mysql # not compatible
query I rowsort label-9646
SELECT MIN ( 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9647
SELECT + - CAST( ( CAST( NULL AS SIGNED ) ) AS DECIMAL ) * CAST( NULL AS SIGNED ) - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT + - CAST ( ( CAST ( NULL AS INTEGER ) ) AS REAL ) * CAST ( NULL AS INTEGER ) - 54 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 38 + - + 67
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT ALL - COUNT( * ) - - + COUNT( * ) + 50
----
50

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL - COUNT ( * ) - - + COUNT ( * ) + 50
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9650
SELECT - + COUNT( * ) DIV + 7
----
0

skipif mysql # not compatible
query I rowsort label-9650
SELECT - + COUNT ( * ) / + 7
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9651
SELECT - 72 / + - ( ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT - 72 / + - ( ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + - ( + 55 ) AS col2
----
-55

query II rowsort
SELECT + 71 AS col1, + 11 AS col1
----
71
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL COUNT( * ) * COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL COUNT ( * ) * COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT DISTINCT COUNT( * ) * + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9656
SELECT ALL - CAST( - - COUNT( ALL + + 52 ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL - CAST ( - - COUNT ( ALL + + 52 ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT + - 52 AS col0
----
-52

query I rowsort
SELECT ALL - - 51 AS col2
----
51

query I rowsort
SELECT ALL ( - 95 ) * - 19 AS col0
----
1805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9660
SELECT DISTINCT + COUNT( * ) DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT + COUNT ( * ) / - 89 AS col0
----
0

query I rowsort
SELECT ALL - 73 - + 35
----
-108

query I rowsort
SELECT ALL - 1 * - - 81 col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9663
SELECT DISTINCT + 56 - - SUM( - + COALESCE ( - CAST( NULL AS SIGNED ), ( + 33 ) ) ) + CAST( NULL AS DECIMAL ) * MIN( + + 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT + 56 - - SUM ( - + COALESCE ( - CAST ( NULL AS INTEGER ), ( + 33 ) ) ) + CAST ( NULL AS REAL ) * MIN ( + + 23 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9664
SELECT DISTINCT 17 AS col2, CAST( NULL AS SIGNED ) * - COUNT( * )
----
17
NULL

skipif mysql # not compatible
query II rowsort label-9664
SELECT DISTINCT 17 AS col2, CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
17
NULL

query I rowsort
SELECT + ( + + 75 ) - - 41 + + 90 AS col0
----
206

query I rowsort
SELECT 75 + + + 50 AS col2
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9667
SELECT 38 + + + COUNT( * ) / + + ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT 38 + + + COUNT ( * ) / + + ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT ALL - 79 DIV - + 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL - 79 / - + 48 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9669
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) - - - 34 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) - - - 34 AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9670
SELECT ALL - 84 DIV + - 77 + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL - 84 / + - 77 + + COUNT ( * )
----
2

query I rowsort
SELECT ( 66 ) col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT + COUNT( * ) * + 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9672
SELECT + COUNT ( * ) * + 67 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL + COUNT( + 57 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL + COUNT ( + 57 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9674
SELECT DISTINCT + 93 * - + COUNT( * ) + + ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT + 93 * - + COUNT ( * ) + + ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT + 70 + 18 col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT - CAST( 74 AS SIGNED ) * + 62
----
-4588

skipif mysql # not compatible
query I rowsort label-9676
SELECT - CAST ( 74 AS INTEGER ) * + 62
----
-4588

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT DISTINCT - 58 * + COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT - 58 * + COUNT ( * ) AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT DISTINCT CAST( 1 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT CAST ( 1 AS INTEGER ) AS col0
----
1

query I rowsort
SELECT - 32 + + 30 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9680
SELECT ( 29 ) DIV - COUNT( * ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-9680
SELECT ( 29 ) / - COUNT ( * ) col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL COUNT( * ) * + 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL COUNT ( * ) * + 93 AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9682
SELECT DISTINCT + 28 + - MIN( 16 ) DIV - 28 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT + 28 + - MIN ( 16 ) / - 28 AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9683
SELECT 37 * COUNT( * ) DIV + 36
----
1

skipif mysql # not compatible
query I rowsort label-9683
SELECT 37 * COUNT ( * ) / + 36
----
1

query I rowsort
SELECT ( - 16 ) * + 83 AS col2
----
-1328

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT DISTINCT + + 10 - COUNT( * ) - - 90 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT + + 10 - COUNT ( * ) - - 90 AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT + + AVG ( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT + + AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT - + ( - - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9687
SELECT - + ( - - COUNT ( * ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT ALL - + COUNT( * ) * - - 91 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL - + COUNT ( * ) * - - 91 AS col1
----
-91

query I rowsort
SELECT DISTINCT - 2 + - - 79 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT + + COUNT( * ) * - 51 - - ( COUNT( * ) )
----
-50

skipif mysql # not compatible
query I rowsort label-9690
SELECT + + COUNT ( * ) * - 51 - - ( COUNT ( * ) )
----
-50

query I rowsort
SELECT - ( + ( 19 ) )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT + 20 * - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-9692
SELECT + 20 * - COUNT ( * )
----
-20

query I rowsort
SELECT - NULLIF ( ( - + 52 ), 6 + + 18 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9694
SELECT + COUNT( * ) + - CAST( - 63 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-9694
SELECT + COUNT ( * ) + - CAST ( - 63 AS INTEGER )
----
64

query I rowsort
SELECT ALL + - 6
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT ALL + - ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL + - ( - - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9697
SELECT - ( - - CAST( NULL AS SIGNED ) ) AS col0, 35
----
NULL
35

skipif mysql # not compatible
query II rowsort label-9697
SELECT - ( - - CAST ( NULL AS INTEGER ) ) AS col0, 35
----
NULL
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT 37 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9698
SELECT 37 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 33 + 68 AS col1
----
101

query I rowsort
SELECT 68 + + - 90 AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT ALL - 57 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL - 57 / 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT + COUNT( ALL - 41 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9702
SELECT + COUNT ( ALL - 41 ) AS col0
----
1

query I rowsort
SELECT ALL 89 col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT ALL MAX( - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL MAX ( - 45 )
----
-45

query II rowsort
SELECT ALL + 83 AS col2, ( 76 ) AS col0
----
83
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT + COUNT( DISTINCT 29 )
----
1

skipif mysql # not compatible
query I rowsort label-9706
SELECT + COUNT ( DISTINCT 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT - 53 + - COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9707
SELECT - 53 + - COUNT ( * ) AS col2
----
-54

query I rowsort
SELECT DISTINCT 77 * - + 93
----
-7161

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ALL MIN( - 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL MIN ( - 11 ) AS col2
----
-11

query I rowsort
SELECT ( - - 24 ) + + + 35
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT 68 + - COUNT( * ) col2
----
67

skipif mysql # not compatible
query I rowsort label-9711
SELECT 68 + - COUNT ( * ) col2
----
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9712
SELECT NULLIF ( 99, - 28 ) - - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT NULLIF ( 99, - 28 ) - - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 64 * 87 AS col1
----
5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT ALL - CAST( - - 20 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL - CAST ( - - 20 AS INTEGER )
----
-20

query I rowsort
SELECT + - ( - 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL SUM( ALL ( 86 ) ) + + - 12
----
74

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL SUM ( ALL ( 86 ) ) + + - 12
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT + MIN( DISTINCT + + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-9717
SELECT + MIN ( DISTINCT + + 62 )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9718
SELECT COUNT( * ) AS col0, 0 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-9718
SELECT COUNT ( * ) AS col0, 0 AS col0
----
1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9719
SELECT + + 80 DIV + 50 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9719
SELECT + + 80 / + 50 AS col2
----
1

query II rowsort
SELECT ALL 15 AS col2, - 97 AS col0
----
15
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9721
SELECT 79, COUNT( * ) col0
----
79
1

skipif mysql # not compatible
query II rowsort label-9721
SELECT 79, COUNT ( * ) col0
----
79
1

query I rowsort
SELECT - ( - - 98 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 7 * 45 * - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 7 * 45 * - 54 AS col1
----
NULL

query I rowsort
SELECT ALL 13 * 53
----
689

query I rowsort
SELECT + COALESCE ( + 94, + - 75 ) AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9726
SELECT CAST( - CASE WHEN NULL IS NOT NULL THEN NULL ELSE COUNT( * ) END AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9726
SELECT CAST ( - CASE WHEN NULL IS NOT NULL THEN NULL ELSE COUNT ( * ) END AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT 61 * 74
----
4514

query I rowsort
SELECT 91 + 32 - + 47 * - 81 * + 11
----
42000

query I rowsort
SELECT + + 25 col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9730
SELECT ALL + ( - - 30 ), - CAST( NULL AS SIGNED ) * - + MAX( - 99 ) AS col0
----
30
NULL

skipif mysql # not compatible
query II rowsort label-9730
SELECT ALL + ( - - 30 ), - CAST ( NULL AS INTEGER ) * - + MAX ( - 99 ) AS col0
----
30
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9731
SELECT 29, + MAX( ALL 47 ) + 3 AS col1
----
29
50

skipif mysql # not compatible
query II rowsort label-9731
SELECT 29, + MAX ( ALL 47 ) + 3 AS col1
----
29
50

query I rowsort
SELECT DISTINCT - 89 col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9733
SELECT DISTINCT - SUM( - CAST( + 18 AS SIGNED ) ) * + 14 AS col0
----
252

skipif mysql # not compatible
query I rowsort label-9733
SELECT DISTINCT - SUM ( - CAST ( + 18 AS INTEGER ) ) * + 14 AS col0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT + 79 - - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-9734
SELECT + 79 - - COUNT ( * )
----
80

query I rowsort
SELECT DISTINCT 65 * - 12
----
-780

query I rowsort
SELECT ALL - 78 * + + 92 AS col2
----
-7176

query I rowsort
SELECT - ( 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT SUM( ALL + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT SUM ( ALL + 63 ) AS col2
----
63

query I rowsort
SELECT + 24 - - 40
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9740
SELECT ALL 99 AS col1, COUNT( * ) AS col2
----
99
1

skipif mysql # not compatible
query II rowsort label-9740
SELECT ALL 99 AS col1, COUNT ( * ) AS col2
----
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ALL - 23 * + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL - 23 * + COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT DISTINCT ( COUNT( * ) ) * - 14
----
-14

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT ( COUNT ( * ) ) * - 14
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT COUNT( * ) - + - 11
----
12

skipif mysql # not compatible
query I rowsort label-9743
SELECT COUNT ( * ) - + - 11
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9744
SELECT ALL SUM( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL SUM ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - - 14 AS col1
----
14

query I rowsort
SELECT ALL + 61 - + - 99 col0
----
160

query I rowsort
SELECT + 57 col1
----
57

query I rowsort
SELECT ( + + 29 ) AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT NULLIF ( CAST( NULL AS SIGNED ), ( + 17 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT NULLIF ( CAST ( NULL AS INTEGER ), ( + 17 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT - COUNT( * ) * + COUNT( - ( 66 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9750
SELECT - COUNT ( * ) * + COUNT ( - ( 66 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT + 54 * COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9751
SELECT + 54 * COUNT ( * ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT + NULLIF ( - - 83, + COUNT( * ) * - COUNT( * ) ) col1
----
83

skipif mysql # not compatible
query I rowsort label-9752
SELECT + NULLIF ( - - 83, + COUNT ( * ) * - COUNT ( * ) ) col1
----
83

query I rowsort
SELECT + 0 - 46
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-9754
SELECT - - 18 - + - ( - + ( + COUNT( * ) ) ) AS col2, - 23 AS col2
----
17
-23

skipif mysql # not compatible
query II rowsort label-9754
SELECT - - 18 - + - ( - + ( + COUNT ( * ) ) ) AS col2, - 23 AS col2
----
17
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - 97 * - COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - 97 * - COUNT ( * ) AS col1
----
97

query I rowsort
SELECT ALL ( 27 ) col0
----
27

query I rowsort
SELECT ( - - 8 ) AS col1
----
8

query I rowsort
SELECT ALL 17 + + 40 AS col1
----
57

query II rowsort
SELECT 48 AS col0, 45 AS col0
----
48
45

query I rowsort
SELECT ALL - 47 + 68
----
21

query I rowsort
SELECT + 97 + 18 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT DISTINCT + COUNT( ALL - + 79 )
----
1

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT + COUNT ( ALL - + 79 )
----
1

query I rowsort
SELECT ( - 42 ) col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9764
SELECT DISTINCT + NULLIF ( + - COUNT( - + 77 ), + CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT + NULLIF ( + - COUNT ( - + 77 ), + CAST ( CAST ( NULL AS REAL ) AS REAL ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9765
SELECT - 38 * + + CAST( NULL AS SIGNED ), - 82 AS col0
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-9765
SELECT - 38 * + + CAST ( NULL AS INTEGER ), - 82 AS col0
----
NULL
-82

query I rowsort
SELECT - + 23 col1
----
-23

query I rowsort
SELECT - - 87 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT DISTINCT ( MIN( + 21 ) )
----
21

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT ( MIN ( + 21 ) )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9769
SELECT DISTINCT 75, - MAX( 90 ) * + COUNT( * ) AS col0
----
75
-90

skipif mysql # not compatible
query II rowsort label-9769
SELECT DISTINCT 75, - MAX ( 90 ) * + COUNT ( * ) AS col0
----
75
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9770
SELECT - COUNT( * ) * - CAST( + 69 AS SIGNED ) * COUNT( * ) - + - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-9770
SELECT - COUNT ( * ) * - CAST ( + 69 AS INTEGER ) * COUNT ( * ) - + - COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9771
SELECT DISTINCT + 17, - COUNT( * ) col1
----
17
-1

skipif mysql # not compatible
query II rowsort label-9771
SELECT DISTINCT + 17, - COUNT ( * ) col1
----
17
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9772
SELECT ( - - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT ( - - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9773
SELECT ALL - - 48 + - CAST( 98 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL - - 48 + - CAST ( 98 AS INTEGER )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT ALL - CAST( 0 AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL - CAST ( 0 AS INTEGER ) col2
----
0

query I rowsort
SELECT ALL 65 + 29
----
94

query I rowsort
SELECT ALL - 98 - + - 77
----
-21

query I rowsort
SELECT DISTINCT - - 35 col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT - + MIN( ALL + 47 ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-9778
SELECT - + MIN ( ALL + 47 ) col0
----
-47

query I rowsort
SELECT ALL ( - + ( + + 75 ) )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT ( + CAST( NULL AS SIGNED ) ) * ( + 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT ( + CAST ( NULL AS INTEGER ) ) * ( + 82 )
----
NULL

query I rowsort
SELECT ALL + ( 65 )
----
65

query I rowsort
SELECT ALL + + 15 AS col0
----
15

query I rowsort
SELECT ALL - 63 * + 54
----
-3402

onlyif mysql # aggregate syntax: 
query II rowsort label-9784
SELECT + COUNT( * ) + + ( - COUNT( - 90 ) ) col1, 69
----
0
69

skipif mysql # not compatible
query II rowsort label-9784
SELECT + COUNT ( * ) + + ( - COUNT ( - 90 ) ) col1, 69
----
0
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT DISTINCT 66 + COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT 66 + COUNT ( * ) AS col0
----
67

query I rowsort
SELECT DISTINCT 83 * - - 0 AS col2
----
0

query I rowsort
SELECT - - ( 23 ) AS col0
----
23

query I rowsort
SELECT 65 + - 98 + + 35
----
2

query I rowsort
SELECT DISTINCT - - 11 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT 69 - + COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9790
SELECT 69 - + COUNT ( * ) AS col0
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-9791
SELECT 94 DIV - ( - 16 ) col0, + 20 AS col2
----
5
20

skipif mysql # not compatible
query II rowsort label-9791
SELECT 94 / - ( - 16 ) col0, + 20 AS col2
----
5
20

onlyif mysql # aggregate syntax: 
query II rowsort label-9792
SELECT ALL MIN( ALL ( 38 ) ), ( - 39 ) AS col0
----
38
-39

skipif mysql # not compatible
query II rowsort label-9792
SELECT ALL MIN ( ALL ( 38 ) ), ( - 39 ) AS col0
----
38
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT - MAX( 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-9793
SELECT - MAX ( 35 )
----
-35

query I rowsort
SELECT + ( 27 ) col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9795
SELECT ALL - 87 + - COUNT( * ) col1, COUNT( * )
----
-88
1

skipif mysql # not compatible
query II rowsort label-9795
SELECT ALL - 87 + - COUNT ( * ) col1, COUNT ( * )
----
-88
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9796
SELECT ALL + 96 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL + 96 * + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 31 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT + 64 * + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-9798
SELECT + 64 * + COUNT ( * ) AS col0
----
64

query I rowsort
SELECT + 48 + + ( 93 ) AS col1
----
141

query I rowsort
SELECT + ( - 37 ) AS col2
----
-37

query I rowsort
SELECT - 91 * 93
----
-8463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT ALL - - 23 + CAST( - 64 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - - 23 + CAST ( - 64 AS INTEGER )
----
-41

query I rowsort
SELECT + 57 - 64
----
-7

query I rowsort
SELECT ALL - ( - 38 )
----
38

query I rowsort
SELECT ALL 63 - 82
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9806
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL MIN( ALL + ( + + 47 ) )
----
47

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL MIN ( ALL + ( + + 47 ) )
----
47

query I rowsort
SELECT ALL - + 29 col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT ALL CAST( NULL AS SIGNED ) + + + 55 * - - NULLIF ( 42, + 18 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL CAST ( NULL AS INTEGER ) + + + 55 * - - NULLIF ( 42, + 18 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT COUNT( * ) + + COUNT( * ) * + 68 + - 88 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9810
SELECT COUNT ( * ) + + COUNT ( * ) * + 68 + - 88 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ( - COUNT( * ) ) + 25 * + 3 col2
----
74

skipif mysql # not compatible
query I rowsort label-9811
SELECT ( - COUNT ( * ) ) + 25 * + 3 col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT DISTINCT + COUNT( - 11 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT + COUNT ( - 11 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9813
SELECT - 99 * - SUM( CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9813
SELECT - 99 * - SUM ( CAST ( NULL AS REAL ) ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9814
SELECT DISTINCT 16 DIV - - COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT 16 / - - COUNT ( * ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT DISTINCT + - COUNT( * ) + + + 45 + + 88 * + COUNT( * ) col0
----
132

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT + - COUNT ( * ) + + + 45 + + 88 * + COUNT ( * ) col0
----
132

query I rowsort
SELECT ALL 73 + - - 23
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT - SUM( ALL 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9817
SELECT - SUM ( ALL 73 ) AS col1
----
-73

query I rowsort
SELECT - ( + + 23 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9819
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9819
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9820
SELECT + 41 + - - 20, - COUNT( * ) AS col1
----
61
-1

skipif mysql # not compatible
query II rowsort label-9820
SELECT + 41 + - - 20, - COUNT ( * ) AS col1
----
61
-1

query I rowsort
SELECT 97 * - 72
----
-6984

query I rowsort
SELECT DISTINCT + 96 * 92
----
8832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT ALL CAST( NULL AS SIGNED ) / - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL CAST ( NULL AS INTEGER ) / - 62
----
NULL

query I rowsort
SELECT ALL - ( + 39 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT + MIN( DISTINCT + + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-9825
SELECT + MIN ( DISTINCT + + 89 )
----
89

query I rowsort
SELECT DISTINCT - - 87 AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9827
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, 59
----
NULL
59

skipif mysql # not compatible
query II rowsort label-9827
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 59
----
NULL
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9828
SELECT ALL - COUNT( * ) * - 44 + MAX( - + 17 ) DIV COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL - COUNT ( * ) * - 44 + MAX ( - + 17 ) / COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL + COUNT( ALL 7 ) - - + 13
----
14

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + COUNT ( ALL 7 ) - - + 13
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT CAST( CAST( - - 33 AS SIGNED ) AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-9830
SELECT CAST ( CAST ( - - 33 AS INTEGER ) AS INTEGER )
----
33

query I rowsort
SELECT DISTINCT + ( + 56 ) AS col1
----
56

query I rowsort
SELECT - ( + 22 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT COUNT( 20 )
----
1

skipif mysql # not compatible
query I rowsort label-9833
SELECT COUNT ( 20 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ALL 11 + + COUNT( - 59 ) * - + 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL 11 + + COUNT ( - 59 ) * - + 11 AS col2
----
0

query I rowsort
SELECT 43 * - 77
----
-3311

query I rowsort
SELECT ALL - 13 col2
----
-13

query I rowsort
SELECT DISTINCT - - ( - + 66 ) AS col2
----
-66

query I rowsort
SELECT DISTINCT - + ( 76 )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 32 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 32 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9840
SELECT + ( + CAST( NULL AS SIGNED ) ), + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9840
SELECT + ( + CAST ( NULL AS INTEGER ) ), + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL ( + + 34 ) * COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL ( + + 34 ) * COUNT ( * ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT MIN( DISTINCT + - 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-9842
SELECT MIN ( DISTINCT + - 84 ) AS col1
----
-84

query I rowsort
SELECT ( 36 ) + - - 8 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL 65 + COUNT( * ) * + - COUNT( * ) col0
----
64

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL 65 + COUNT ( * ) * + - COUNT ( * ) col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9845
SELECT ALL + COUNT( * ) AS col2, + 13
----
1
13

skipif mysql # not compatible
query II rowsort label-9845
SELECT ALL + COUNT ( * ) AS col2, + 13
----
1
13

query I rowsort
SELECT - 58 * + - 16
----
928

query I rowsort
SELECT ALL ( + + 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT DISTINCT MAX( ALL - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT MAX ( ALL - 25 )
----
-25

query I rowsort
SELECT - 75 * - 90 col0
----
6750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT DISTINCT + + 62 * CAST( + - 31 AS SIGNED ) AS col0
----
-1922

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT + + 62 * CAST ( + - 31 AS INTEGER ) AS col0
----
-1922

query I rowsort
SELECT + ( - - 2 ) * + 76 AS col2
----
152

query I rowsort
SELECT DISTINCT + ( 42 ) AS col0
----
42

query I rowsort
SELECT ALL ( + 94 ) AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9854
SELECT 87 AS col0, + NULLIF ( AVG ( - 39 ), - - 8 ) * + CAST( NULL AS SIGNED )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-9854
SELECT 87 AS col0, + NULLIF ( AVG ( - 39 ), - - 8 ) * + CAST ( NULL AS INTEGER )
----
87
NULL

query I rowsort
SELECT DISTINCT ( - 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT - + ( - COUNT( * ) ) + 71
----
72

skipif mysql # not compatible
query I rowsort label-9856
SELECT - + ( - COUNT ( * ) ) + 71
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9857
SELECT ALL + - ( + COUNT( * ) ), 35 AS col0
----
-1
35

skipif mysql # not compatible
query II rowsort label-9857
SELECT ALL + - ( + COUNT ( * ) ), 35 AS col0
----
-1
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9858
SELECT DISTINCT - CAST( + + ( 6 ) AS SIGNED ) * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT - CAST ( + + ( 6 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9859
SELECT ALL - COUNT( DISTINCT + - 40 ), + ( + - ( + ( + 20 ) ) ) * + 2 AS col0
----
-1
-40

skipif mysql # not compatible
query II rowsort label-9859
SELECT ALL - COUNT ( DISTINCT + - 40 ), + ( + - ( + ( + 20 ) ) ) * + 2 AS col0
----
-1
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL - - MAX( + 23 ) + - - 63
----
86

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - - MAX ( + 23 ) + - - 63
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9861
SELECT ALL - 11 AS col0, - COUNT( * )
----
-11
-1

skipif mysql # not compatible
query II rowsort label-9861
SELECT ALL - 11 AS col0, - COUNT ( * )
----
-11
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9862
SELECT ALL 99 DIV COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL 99 / COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9863
SELECT DISTINCT - COUNT( * ), - SUM( - 20 ) AS col0
----
-1
20

skipif mysql # not compatible
query II rowsort label-9863
SELECT DISTINCT - COUNT ( * ), - SUM ( - 20 ) AS col0
----
-1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT DISTINCT - MIN( 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9864
SELECT DISTINCT - MIN ( 81 ) AS col1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9865
SELECT + 65 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9865
SELECT + 65 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 75 * + 91 AS col2
----
6825

query I rowsort
SELECT + + 29 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT + COALESCE ( 78, - 3 ) * - COUNT( DISTINCT - - 72 )
----
-78

skipif mysql # not compatible
query I rowsort label-9868
SELECT + COALESCE ( 78, - 3 ) * - COUNT ( DISTINCT - - 72 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT DISTINCT COUNT( * ) * + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT COUNT ( * ) * + 62 AS col0
----
62

query I rowsort
SELECT - ( + - 67 )
----
67

query I rowsort
SELECT ALL 52 * 94 AS col0
----
4888

query I rowsort
SELECT ( + - 43 ) AS col2
----
-43

query II rowsort
SELECT ALL - 16 AS col1, 96
----
-16
96

query I rowsort
SELECT 57 + + 54 col2
----
111

query I rowsort
SELECT 66 * 32
----
2112

query I rowsort
SELECT ALL ( + - 77 ) - - 80 AS col0
----
3

query II rowsort
SELECT ALL 46 AS col2, - 49 * - 24 AS col1
----
46
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ( 31 ) + + MAX( ALL - 54 )
----
-23

skipif mysql # not compatible
query I rowsort label-9878
SELECT ( 31 ) + + MAX ( ALL - 54 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT DISTINCT MIN( 77 )
----
77

skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT MIN ( 77 )
----
77

query I rowsort
SELECT ALL + 18 * + 92
----
1656

query I rowsort
SELECT - 12 * + 2 - - 36
----
12

query I rowsort
SELECT DISTINCT + 71 col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9883
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0, + 51
----
NULL
51

skipif mysql # not compatible
query II rowsort label-9883
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0, + 51
----
NULL
51

query I rowsort
SELECT ALL ( + 60 ) + + - 84 col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL SUM( - - 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL SUM ( - - 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT - COUNT( * ) * + + 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9886
SELECT - COUNT ( * ) * + + 3 AS col1
----
-3

query I rowsort
SELECT ( - 22 ) AS col1
----
-22

query I rowsort
SELECT + + 62 * - - 52 col0
----
3224

query I rowsort
SELECT - 5 * - ( + + 2 ) - - + 77
----
87

query I rowsort
SELECT DISTINCT 89 * - 18 AS col0
----
-1602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9891
SELECT - CAST( + - 26 AS SIGNED ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-9891
SELECT - CAST ( + - 26 AS INTEGER ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT MAX( ALL + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-9892
SELECT MAX ( ALL + 52 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9893
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) - + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT + CAST( NULL AS SIGNED ) + + 4 * 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT + CAST ( NULL AS INTEGER ) + + 4 * 16 AS col2
----
NULL

query I rowsort
SELECT ALL - + 62 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT ALL + 22 * - COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL + 22 * - COUNT ( * ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT DISTINCT 29 - - COUNT( * ) * 2 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT 29 - - COUNT ( * ) * 2 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT 26 + + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9898
SELECT 26 + + COUNT ( * ) AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9899
SELECT COUNT( * ) + - SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT COUNT ( * ) + - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 14 * 15 AS col1
----
210

query I rowsort
SELECT DISTINCT + 98 * 1
----
98

query I rowsort
SELECT ALL 49 * 96 + + 45
----
4749

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT MIN( ALL 42 )
----
42

skipif mysql # not compatible
query I rowsort label-9903
SELECT MIN ( ALL 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT + COUNT( * ) * ( + 41 ) - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-9904
SELECT + COUNT ( * ) * ( + 41 ) - COUNT ( * )
----
40

query I rowsort
SELECT + 66 * - 66 + + 5
----
-4351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9906
SELECT + CAST( + COUNT( ( + 16 ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9906
SELECT + CAST ( + COUNT ( ( + 16 ) ) AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT DISTINCT + ( + 61 ) DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT + ( + 61 ) / + 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT - CAST( 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-9908
SELECT - CAST ( 5 AS INTEGER )
----
-5

query I rowsort
SELECT - 19 * - 55 + + 87 AS col2
----
1132

query I rowsort
SELECT + 93 + + 23 AS col0
----
116

query I rowsort
SELECT ALL + 61 col1
----
61

query I rowsort
SELECT ALL ( 60 )
----
60

query I rowsort
SELECT ALL - + 30 + + 68 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT DISTINCT + MAX( - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT + MAX ( - 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT ALL - COUNT( * ) - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL - COUNT ( * ) - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT - ( + MIN( DISTINCT + 45 ) ) * - 5
----
225

skipif mysql # not compatible
query I rowsort label-9916
SELECT - ( + MIN ( DISTINCT + 45 ) ) * - 5
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT COUNT( * ) * - 87 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9917
SELECT COUNT ( * ) * - 87 AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9918
SELECT ALL 87 * CAST( - COUNT( * ) AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL 87 * CAST ( - COUNT ( * ) AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9919
SELECT ALL - ( 37 ) DIV 89 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL - ( 37 ) / 89 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT ALL - ( - 50 ) + ( + - COUNT( * ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL - ( - 50 ) + ( + - COUNT ( * ) ) AS col2
----
49

query I rowsort
SELECT DISTINCT + 84 * + 88 col0
----
7392

query I rowsort
SELECT - - 95 - 34 AS col0
----
61

query II rowsort
SELECT ALL + COALESCE ( + - 71, ( - + 61 ) ) AS col2, 46 AS col0
----
-71
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL - - COUNT( * ) * + 84
----
84

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL - - COUNT ( * ) * + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT - - COUNT( DISTINCT + - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-9925
SELECT - - COUNT ( DISTINCT + - 41 )
----
1

query I rowsort
SELECT 83 * - + 48 AS col0
----
-3984

query I rowsort
SELECT - + ( 73 )
----
-73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9928
SELECT DISTINCT + CAST( + 59 AS SIGNED ) + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT + CAST ( + 59 AS INTEGER ) + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9929
SELECT 54 - - + 53 AS col0, - SUM( + - 86 ) AS col0
----
107
86

skipif mysql # not compatible
query II rowsort label-9929
SELECT 54 - - + 53 AS col0, - SUM ( + - 86 ) AS col0
----
107
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9930
SELECT DISTINCT 10 * ( - COUNT( * ) ) / - - 35 + + + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT 10 * ( - COUNT ( * ) ) / - - 35 + + + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 27 * 44 AS col1
----
1188

query I rowsort
SELECT ALL - 18 + - + 49
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-9933
SELECT ALL - ( - + 24 ) + + + 93 AS col1, + COUNT( * ) AS col2
----
117
1

skipif mysql # not compatible
query II rowsort label-9933
SELECT ALL - ( - + 24 ) + + + 93 AS col1, + COUNT ( * ) AS col2
----
117
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT DISTINCT - 55 + - - ( COUNT( * ) )
----
-54

skipif mysql # not compatible
query I rowsort label-9934
SELECT DISTINCT - 55 + - - ( COUNT ( * ) )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT DISTINCT - - MIN( DISTINCT 25 ) + 39 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - - MIN ( DISTINCT 25 ) + 39 AS col1
----
64

query I rowsort
SELECT 50 + + 54 col0
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9937
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 36 AS col2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-9937
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 36 AS col2
----
NULL
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9938
SELECT + - 71 DIV + + 38 * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9938
SELECT + - 71 / + + 38 * COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ALL ( 29 ) AS col2
----
29

query I rowsort
SELECT - ( + 67 ) AS col2
----
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9941
SELECT ALL - CAST( NULL AS DECIMAL ) * 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL - CAST ( NULL AS REAL ) * 10 AS col0
----
NULL

query II rowsort
SELECT 8 AS col1, - 45
----
8
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9943
SELECT 78 DIV - 7 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9943
SELECT 78 / - 7 AS col1
----
-11

query I rowsort
SELECT - 59 + - - 77 AS col0
----
18

query I rowsort
SELECT 99 + + 36 AS col0
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9946
SELECT CAST( + COUNT( * ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9946
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col1
----
1

query II rowsort
SELECT 77, 33 AS col2
----
77
33

query I rowsort
SELECT 80 * - 56 * - ( 4 )
----
17920

query I rowsort
SELECT - - 56 + 91 AS col1
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9950
SELECT ALL + 80 * + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL + 80 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 61
----
NULL

query I rowsort
SELECT - 87 + 17 AS col2
----
-70

query I rowsort
SELECT DISTINCT + 21 col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT COUNT( DISTINCT + 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9953
SELECT COUNT ( DISTINCT + 72 ) AS col1
----
1

query I rowsort
SELECT - + 78 col2
----
-78

query II rowsort
SELECT 14 col0, 0 AS col0
----
14
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ALL 40 - - + COUNT( - 57 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL 40 - - + COUNT ( - 57 ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9957
SELECT CAST( NULL AS SIGNED ) * ( - + COUNT( * ) ) * 93 * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT CAST ( NULL AS INTEGER ) * ( - + COUNT ( * ) ) * 93 * 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT COUNT( * ) + - ( + 39 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-9958
SELECT COUNT ( * ) + - ( + 39 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT - MIN( DISTINCT - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9959
SELECT - MIN ( DISTINCT - 58 )
----
58

query I rowsort
SELECT 33 + + + 6
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT COUNT( * ) * 48 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9961
SELECT COUNT ( * ) * 48 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT + COUNT( ( 17 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9962
SELECT + COUNT ( ( 17 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT - COALESCE ( + 73, + COUNT( * ) ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-9963
SELECT - COALESCE ( + 73, + COUNT ( * ) ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT 10 + MIN( + - 10 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9964
SELECT 10 + MIN ( + - 10 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9965
SELECT ALL - COUNT( * ) DIV + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL - COUNT ( * ) / + 25 AS col0
----
0

query I rowsort
SELECT - + 44 + 88 + + ( + - 46 )
----
-2

query I rowsort
SELECT + 69 * 26
----
1794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9968
SELECT DISTINCT 34 DIV COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT 34 / COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT ( + ( - + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9969
SELECT ( + ( - + COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT - ( - COUNT( * ) ) + - - 95
----
96

skipif mysql # not compatible
query I rowsort label-9970
SELECT - ( - COUNT ( * ) ) + - - 95
----
96

query I rowsort
SELECT DISTINCT + ( 65 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL + 9 * - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL + 9 * - COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT COUNT( * ) * - 31 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9973
SELECT COUNT ( * ) * - 31 AS col1
----
-31

query II rowsort
SELECT ALL - + 86 AS col0, - 91 AS col1
----
-86
-91

query I rowsort
SELECT ALL ( - - 84 )
----
84

query I rowsort
SELECT ALL - - ( 8 )
----
8

query I rowsort
SELECT ALL + 71 * + - 66 col0
----
-4686

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9978
SELECT + CAST( NULL AS DECIMAL ) / 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT + CAST ( NULL AS REAL ) / 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9979
SELECT ALL + COUNT( + 88 ), + 65 AS col1
----
1
65

skipif mysql # not compatible
query II rowsort label-9979
SELECT ALL + COUNT ( + 88 ), + 65 AS col1
----
1
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9980
SELECT DISTINCT - CAST( - ( - CAST( NULL AS DECIMAL ) ) AS DECIMAL ) + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT - CAST ( - ( - CAST ( NULL AS REAL ) ) AS REAL ) + - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT - ( - 33 ) col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9982
SELECT - COUNT( * ) AS col1, 1
----
-1
1

skipif mysql # not compatible
query II rowsort label-9982
SELECT - COUNT ( * ) AS col1, 1
----
-1
1

query I rowsort
SELECT ALL + - 99 col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT ALL + - NULLIF ( COUNT( * ), + 27 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL + - NULLIF ( COUNT ( * ), + 27 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9985
SELECT DISTINCT + MAX( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT + MAX ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT DISTINCT COUNT( ALL + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT COUNT ( ALL + 96 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9987
SELECT DISTINCT + + 6 DIV + ( + MAX( 27 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT + + 6 / + ( + MAX ( 27 ) ) AS col0
----
0

query I rowsort
SELECT ALL - - ( + 52 ) AS col2
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9989
SELECT ALL ( + - CAST( NULL AS DECIMAL ) ) - + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL ( + - CAST ( NULL AS REAL ) ) - + 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9990
SELECT 67 * 53 AS col0, ( + - COUNT( * ) )
----
3551
-1

skipif mysql # not compatible
query II rowsort label-9990
SELECT 67 * 53 AS col0, ( + - COUNT ( * ) )
----
3551
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT DISTINCT - CAST( + 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT - CAST ( + 61 AS INTEGER )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL 3 + - - ( + + COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL 3 + - - ( + + COUNT ( * ) )
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9993
SELECT 54, + CAST( NULL AS DECIMAL ) AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-9993
SELECT 54, + CAST ( NULL AS REAL ) AS col2
----
54
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9994
SELECT SUM( DISTINCT + + 8 ) DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-9994
SELECT SUM ( DISTINCT + + 8 ) / - 87
----
0

query I rowsort
SELECT - + 69 col1
----
-69

query II rowsort
SELECT DISTINCT - 43, - 16 AS col2
----
-43
-16

query I rowsort
SELECT ALL + 78 col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9998
SELECT ALL + NULLIF ( - + CAST( NULL AS SIGNED ), - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL + NULLIF ( - + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 32 * - 60 + - 94
----
-2014

