sqllogictest
Artifact Content
Not logged in

Artifact b5a911140a13d4f267c0643eab1c4f6ca1c4ad4b:


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: 
qu