sqllogictest
Artifact Content
Not logged in

Artifact 07ec09db4fc982c3c66d6d43112896202913ec4e:


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 DISTINCT - 50 + 50 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT ALL 43 + - ( - 94 ) - 79 * - + COUNT( * ) + - ( 14 ) col2
----
202

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL 43 + - ( - 94 ) - 79 * - + COUNT ( * ) + - ( 14 ) col2
----
202

query I rowsort
SELECT + 88 * - 90 * 75 + + 6
----
-593994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3
SELECT ALL - CAST( - 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL - CAST ( - 15 AS INTEGER )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4
SELECT 78 * + CAST( - 84 AS SIGNED ) + + + COUNT( * ) * 36 * - - 71
----
-3996

skipif mysql # not compatible
query I rowsort label-4
SELECT 78 * + CAST ( - 84 AS INTEGER ) + + + COUNT ( * ) * 36 * - - 71
----
-3996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5
SELECT ALL - NULLIF ( + - 20, + + 6 - ( - 48 ) + 26 + CASE + 30 WHEN 57 + - AVG ( 34 ) THEN - 6 WHEN 81 * + - 97 / + - 82 + - - 17 THEN - + CAST( - ( - 52 ) AS SIGNED ) WHEN + 9 + 80 - + COALESCE ( - ( + 94 ), 13 + - ( + 6 ) ) * + 94 * + COUNT( * ) + COUNT( DISTINCT + 66 ) THEN NULL ELSE NULL END + + 85 * - 74 * - ( MIN( - 32 ) ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL - NULLIF ( + - 20, + + 6 - ( - 48 ) + 26 + CASE + 30 WHEN 57 + - AVG ( 34 ) THEN - 6 WHEN 81 * + - 97 / + - 82 + - - 17 THEN - + CAST ( - ( - 52 ) AS INTEGER ) WHEN + 9 + 80 - + COALESCE ( - ( + 94 ), 13 + - ( + 6 ) ) * + 94 * + COUNT ( * ) + COUNT ( DISTINCT + 66 ) THEN NULL ELSE NULL END + + 85 * - 74 * - ( MIN ( - 32 ) ) ) AS col2
----
20

query I rowsort
SELECT DISTINCT - 87 * + 19
----
-1653

query I rowsort
SELECT ALL + 33 + + - 48 AS col1
----
-15

query I rowsort
SELECT ALL - 69 * + - 8 * - 83 col0
----
-45816

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-10
SELECT ALL 19 - + + 82 DIV + NULLIF ( - - 4, - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL 19 - + + 82 / + NULLIF ( - - 4, - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-11
SELECT DISTINCT + 15 - 63 * - + COALESCE ( + CAST( + + 55 AS SIGNED ), + + COUNT( * ), 22 ) * + - 8 AS col1
----
-27705

skipif mysql # not compatible
query I rowsort label-11
SELECT DISTINCT + 15 - 63 * - + COALESCE ( + CAST ( + + 55 AS INTEGER ), + + COUNT ( * ), 22 ) * + - 8 AS col1
----
-27705

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT CASE - NULLIF ( 20, - 97 + + 14 ) WHEN COUNT( * ) THEN NULL WHEN + 79 / + 98 * 10 THEN COALESCE ( + 42, - 31 ) / - 35 WHEN + 25 THEN NULL END - 52 + - - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-12
SELECT CASE - NULLIF ( 20, - 97 + + 14 ) WHEN COUNT ( * ) THEN NULL WHEN + 79 / + 98 * 10 THEN COALESCE ( + 42, - 31 ) / - 35 WHEN + 25 THEN NULL END - 52 + - - 10
----
NULL

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

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT - COUNT ( * ) / - - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT ALL SUM( DISTINCT + + ( - 13 ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL SUM ( DISTINCT + + ( - 13 ) ) AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT COUNT( * ) + - + 90 - - - MIN( - 82 ) * - COUNT( * ) AS col1
----
-171

skipif mysql # not compatible
query I rowsort label-15
SELECT COUNT ( * ) + - + 90 - - - MIN ( - 82 ) * - COUNT ( * ) AS col1
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT MAX( ALL + - 5 ) * - + 76 + - NULLIF ( 83, 98 ) + 55
----
352

skipif mysql # not compatible
query I rowsort label-16
SELECT MAX ( ALL + - 5 ) * - + 76 + - NULLIF ( 83, 98 ) + 55
----
352

query I rowsort
SELECT ALL 97 * - - 78 + + 24 AS col1
----
7590

query I rowsort
SELECT + 67 + - 46
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-19
SELECT 98 - + + MAX( ALL - 2 ) + - - ( + CAST( + 24 AS SIGNED ) )
----
124

skipif mysql # not compatible
query I rowsort label-19
SELECT 98 - + + MAX ( ALL - 2 ) + - - ( + CAST ( + 24 AS INTEGER ) )
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT COALESCE ( + 95, + - MAX( - + NULLIF ( 11, 79 * + 71 ) ) * + 96 * - + 38 * 53 + + - 61 ) + 21
----
116

skipif mysql # not compatible
query I rowsort label-20
SELECT COALESCE ( + 95, + - MAX ( - + NULLIF ( 11, 79 * + 71 ) ) * + 96 * - + 38 * 53 + + - 61 ) + 21
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-21
SELECT - 89 * + - COUNT( * ) AS col2, COUNT( * ) * + - CAST( NULL AS SIGNED )
----
89
NULL

skipif mysql # not compatible
query II rowsort label-21
SELECT - 89 * + - COUNT ( * ) AS col2, COUNT ( * ) * + - CAST ( NULL AS INTEGER )
----
89
NULL

query I rowsort
SELECT 46 + - 47 * + 10 AS col0
----
-424

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-23
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 69 + 34 AS col1
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-25
SELECT ALL - SUM( ALL + - 4 ) AS col1, 52
----
4
52

skipif mysql # not compatible
query II rowsort label-25
SELECT ALL - SUM ( ALL + - 4 ) AS col1, 52
----
4
52

query I rowsort
SELECT ( 89 )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-27
SELECT DISTINCT - 48 + + COALESCE ( - - ( + + 38 ), - 83 * 4 * - COUNT( * ) * + 12 * 5 ) DIV - + 93
----
-48

skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT - 48 + + COALESCE ( - - ( + + 38 ), - 83 * 4 * - COUNT ( * ) * + 12 * 5 ) / - + 93
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-28
SELECT ALL 13 + ( CASE + - CAST( + ( + 93 ) AS SIGNED ) WHEN 55 THEN + SUM( + 40 ) END ) + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL 13 + ( CASE + - CAST ( + ( + 93 ) AS INTEGER ) WHEN 55 THEN + SUM ( + 40 ) END ) + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT ALL 27 + COUNT( * ) + - 15 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL 27 + COUNT ( * ) + - 15 AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-30
SELECT DISTINCT 31 + - ( + 91 ) - - - 14 * + + 10 DIV COUNT( * ) AS col1
----
-200

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT 31 + - ( + 91 ) - - - 14 * + + 10 / COUNT ( * ) AS col1
----
-200

query I rowsort
SELECT 95 * - 55
----
-5225

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-33
SELECT ALL - + 34 * - 44 - - + CAST( NULL AS DECIMAL )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT MAX( - 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-34
SELECT MAX ( - 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-35
SELECT 80 DIV COUNT( * ) * - - 93 * 24
----
178560

skipif mysql # not compatible
query I rowsort label-35
SELECT 80 / COUNT ( * ) * - - 93 * 24
----
178560

query I rowsort
SELECT DISTINCT - 64 + - 18 AS col2
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-37
SELECT DISTINCT COUNT( * ) + + 57 + + 0 - + 75 + 35 DIV 21 * - - 20 + - 83, 15 * + + 88 + COUNT( * ) * + 55 AS col1
----
-80
1375

skipif mysql # not compatible
query II rowsort label-37
SELECT DISTINCT COUNT ( * ) + + 57 + + 0 - + 75 + 35 / 21 * - - 20 + - 83, 15 * + + 88 + COUNT ( * ) * + 55 AS col1
----
-80
1375

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL - 46 + + 19 + + 15 * COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL - 46 + + 19 + + 15 * COUNT ( * )
----
-12

query I rowsort
SELECT 63 * - + 74 AS col1
----
-4662

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT DISTINCT - NULLIF ( ( - COUNT( * ) ), 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT - NULLIF ( ( - COUNT ( * ) ), 2 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-42
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + - 5 * COUNT( * ) DIV - COALESCE ( + + 23, - + 33 * 97 ) + 57 * + 28 AS col2
----
1594

skipif mysql # not compatible
query I rowsort label-42
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + - 5 * COUNT ( * ) / - COALESCE ( + + 23, - + 33 * 97 ) + 57 * + 28 AS col2
----
1594

query I rowsort
SELECT DISTINCT - 55 * + 10
----
-550

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

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

query I rowsort
SELECT ALL - 46 + - 55 AS col0
----
-101

query I rowsort
SELECT 89 * + ( + 88 ) * + 53
----
415096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-47
SELECT + 90 * - 16 + - COUNT( * ) DIV - ( + + NULLIF ( + 81, 85 * 95 ) )
----
-1440

skipif mysql # not compatible
query I rowsort label-47
SELECT + 90 * - 16 + - COUNT ( * ) / - ( + + NULLIF ( + 81, 85 * 95 ) )
----
-1440

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-48
SELECT COUNT( * ) AS col1, 22 + 7 - 15 * - + CAST( NULL AS DECIMAL )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-48
SELECT COUNT ( * ) AS col1, 22 + 7 - 15 * - + CAST ( NULL AS REAL )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL - COALESCE ( - MAX( DISTINCT - - 10 ), - - 39 )
----
10

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL - COALESCE ( - MAX ( DISTINCT - - 10 ), - - 39 )
----
10

query I rowsort
SELECT 85 + 29 AS col2
----
114

query I rowsort
SELECT 88 * - + 73 * - 2 AS col0
----
12848

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-53
SELECT CAST( NULL AS SIGNED ) * + NULLIF ( - 38, 51 / + + 60 * + 11 * - - 76 ) + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-53
SELECT CAST ( NULL AS INTEGER ) * + NULLIF ( - 38, 51 / + + 60 * + 11 * - - 76 ) + 77
----
NULL

query I rowsort
SELECT ALL - 66 - 76 AS col1
----
-142

query I rowsort
SELECT DISTINCT 89 * 98 AS col0
----
8722

query I rowsort
SELECT ALL 24 * 33 AS col2
----
792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-57
SELECT ALL - 39 * - COALESCE ( 88, + ( 85 ) * + CAST( - + 81 AS SIGNED ) * + 73 + ( + 33 ) ) * + + ( - 36 )
----
-123552

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL - 39 * - COALESCE ( 88, + ( 85 ) * + CAST ( - + 81 AS INTEGER ) * + 73 + ( + 33 ) ) * + + ( - 36 )
----
-123552

query I rowsort
SELECT + 7 * - - 85 AS col2
----
595

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-60
SELECT + ( + 12 ) + COUNT( * ), - 70 AS col2
----
13
-70

skipif mysql # not compatible
query II rowsort label-60
SELECT + ( + 12 ) + COUNT ( * ), - 70 AS col2
----
13
-70

query I rowsort
SELECT + - 52 * + 59 AS col1
----
-3068

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-62
SELECT - 74 DIV 46 * 48 + - 0 * 3, - COUNT( * ) + + 64 - - 87 AS col1
----
-48
150

skipif mysql # not compatible
query II rowsort label-62
SELECT - 74 / 46 * 48 + - 0 * 3, - COUNT ( * ) + + 64 - - 87 AS col1
----
-48
150

query I rowsort
SELECT DISTINCT CASE + 90 WHEN - 16 THEN + 62 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT DISTINCT - COUNT( * ) * 59 * - 24 AS col2
----
1416

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT - COUNT ( * ) * 59 * - 24 AS col2
----
1416

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT - + MAX( DISTINCT 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-65
SELECT - + MAX ( DISTINCT 33 ) AS col2
----
-33

query I rowsort
SELECT + - 50 * + 7
----
-350

query I rowsort
SELECT + - 39 - - + 67
----
28

query I rowsort
SELECT ALL + 70 + + 42
----
112

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

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT MAX( 5 )
----
5

skipif mysql # not compatible
query I rowsort label-70
SELECT MAX ( 5 )
----
5

query I rowsort
SELECT ALL ( 33 ) * - - ( - + 71 ) * 20
----
-46860

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL 44 + - NULLIF ( COUNT( * ), 20 )
----
43

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL 44 + - NULLIF ( COUNT ( * ), 20 )
----
43

query I rowsort
SELECT ALL + COALESCE ( + 5, + + 95 + - - ( - - 58 ) ) AS col1
----
5

query II rowsort
SELECT ( + + COALESCE ( + + 44, - 27 + - 81 + - + 11 ) ), 86 AS col0
----
44
86

query I rowsort
SELECT DISTINCT 92 * + - 53 + - 50 col1
----
-4926

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT + ( + SUM( 60 ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-76
SELECT + ( + SUM ( 60 ) ) AS col0
----
60

query I rowsort
SELECT ALL 67 * - 16 - + - 20 AS col1
----
-1052

query I rowsort
SELECT + 80 * 20 + + + 86
----
1686

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ( - ( COUNT( DISTINCT + 62 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-80
SELECT ( - ( COUNT ( DISTINCT + 62 ) ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-81
SELECT 15 * + 90 DIV 37 DIV - 77 - 21 DIV CAST( + - 63 AS SIGNED ) * 80 - - + ( + + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-81
SELECT 15 * + 90 / 37 / - 77 - 21 / CAST ( + - 63 AS INTEGER ) * 80 - - + ( + + 11 ) AS col1
----
11

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

query II rowsort
SELECT ALL + 50 AS col2, 26
----
50
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-84
SELECT ALL 66 DIV - COUNT( ALL - ( - 89 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL 66 / - COUNT ( ALL - ( - 89 ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT COUNT( * ) * 13 + + 69 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-85
SELECT COUNT ( * ) * 13 + + 69 AS col1
----
82

query I rowsort
SELECT NULLIF ( 30, - ( + - 91 ) )
----
30

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-88
SELECT + ( + MAX( - CAST( - 22 AS SIGNED ) ) ) + COUNT( DISTINCT - + 50 ), + 36 * - + 82 * + CASE - - 1 WHEN + + CAST( COUNT( + 47 ) AS SIGNED ) THEN + 85 WHEN - NULLIF ( + SUM( 7 ), + 35 * - ( + 24 ) * - - 21 + - 61 + - + 7 ) THEN - 42 ELSE - 74 + 37 * 27 * + COUNT( * ) * + 88 END AS col0
----
23
-250920

skipif mysql # not compatible
query II rowsort label-88
SELECT + ( + MAX ( - CAST ( - 22 AS INTEGER ) ) ) + COUNT ( DISTINCT - + 50 ), + 36 * - + 82 * + CASE - - 1 WHEN + + CAST ( COUNT ( + 47 ) AS INTEGER ) THEN + 85 WHEN - NULLIF ( + SUM ( 7 ), + 35 * - ( + 24 ) * - - 21 + - 61 + - + 7 ) THEN - 42 ELSE - 74 + 37 * 27 * + COUNT ( * ) * + 88 END AS col0
----
23
-250920

onlyif mysql # aggregate syntax: 
query II rowsort label-89
SELECT + 0 * + COUNT( - COALESCE ( 16, 46, + 4 + 78 ) ) col0, + 25 * + 86 AS col1
----
0
2150

skipif mysql # not compatible
query II rowsort label-89
SELECT + 0 * + COUNT ( - COALESCE ( 16, 46, + 4 + 78 ) ) col0, + 25 * + 86 AS col1
----
0
2150

query I rowsort
SELECT - 6 * + 35 * + + 48 * + 88
----
-887040

query I rowsort
SELECT + 18 + 72
----
90

query I rowsort
SELECT ALL + - ( - - 75 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT - COUNT( * ) * - + 10 * - NULLIF ( + - 3, + + SUM( 98 ) )
----
30

skipif mysql # not compatible
query I rowsort label-93
SELECT - COUNT ( * ) * - + 10 * - NULLIF ( + - 3, + + SUM ( 98 ) )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-94
SELECT - CAST( NULL AS SIGNED ) * MAX( DISTINCT - + 76 ) / 46 - + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-94
SELECT - CAST ( NULL AS INTEGER ) * MAX ( DISTINCT - + 76 ) / 46 - + 55
----
NULL

query II rowsort
SELECT - - NULLIF ( - 15, + 44 ) - - - 12 AS col1, 86 AS col0
----
-27
86

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT ALL - + 60 + COUNT( * ) + 34 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL - + 60 + COUNT ( * ) + 34 AS col2
----
-25

query I rowsort
SELECT - + 29 + 81 + - 3 - 94 * - + 73 * + 10
----
68669

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT ALL - + 43 + 75 + CASE 7 WHEN 97 + - 18 THEN NULL WHEN - + COUNT( * ) THEN 10 + + - COUNT( * ) WHEN - 59 THEN NULL ELSE 78 + - 40 END * + - 6 AS col0
----
-196

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL - + 43 + 75 + CASE 7 WHEN 97 + - 18 THEN NULL WHEN - + COUNT ( * ) THEN 10 + + - COUNT ( * ) WHEN - 59 THEN NULL ELSE 78 + - 40 END * + - 6 AS col0
----
-196

query II rowsort
SELECT - ( + 84 ), - 32 AS col2
----
-84
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-100
SELECT - CAST( - 45 AS SIGNED ) + - 29
----
16

skipif mysql # not compatible
query I rowsort label-100
SELECT - CAST ( - 45 AS INTEGER ) + - 29
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT ALL + 57 * - 40 * 0 DIV + - 6
----
0

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL + 57 * - 40 * 0 / + - 6
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-102
SELECT + COUNT( * ) - - - CAST( NULL AS DECIMAL ) * + 87 + + + 13 col0, 6 DIV MIN( ALL - 56 ) AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-102
SELECT + COUNT ( * ) - - - CAST ( NULL AS REAL ) * + 87 + + + 13 col0, 6 / MIN ( ALL - 56 ) AS col0
----
NULL
0

query I rowsort
SELECT - - 78 AS col1
----
78

query II rowsort
SELECT ALL 52 AS col2, 62
----
52
62

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT + + 27 + - - 99 + + 25 DIV + 95 * - 5
----
126

skipif mysql # not compatible
query I rowsort label-105
SELECT + + 27 + - - 99 + + 25 / + 95 * - 5
----
126

query I rowsort
SELECT ALL + 46 - + 0 + + - 15 + + NULLIF ( 81, + 65 * + 74 * - 19 + 73 ) AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT + ( COUNT( * ) ) * - 54 + 35 * + 74 AS col1
----
2536

skipif mysql # not compatible
query I rowsort label-107
SELECT + ( COUNT ( * ) ) * - 54 + 35 * + 74 AS col1
----
2536

query I rowsort
SELECT - 14 * + 74
----
-1036

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

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

query II rowsort
SELECT - ( + 65 ) * + 6 AS col2, 49
----
-390
49

onlyif mysql # aggregate syntax: 
query II rowsort label-111
SELECT ALL 96 * + COUNT( * ), + COUNT( * ) * + - 35 col2
----
96
-35

skipif mysql # not compatible
query II rowsort label-111
SELECT ALL 96 * + COUNT ( * ), + COUNT ( * ) * + - 35 col2
----
96
-35

query I rowsort
SELECT + ( - + CASE + 77 WHEN - 0 THEN - 78 END )
----
NULL

query II rowsort
SELECT DISTINCT 25 * - 56 AS col2, 19 AS col1
----
-1400
19

query I rowsort
SELECT + 54 + + + 7
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-115
SELECT ALL 60 * 56 AS col2, - COUNT( * ) + - 79
----
3360
-80

skipif mysql # not compatible
query II rowsort label-115
SELECT ALL 60 * 56 AS col2, - COUNT ( * ) + - 79
----
3360
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT COUNT( * ) * + 77 + + 58 AS col2
----
135

skipif mysql # not compatible
query I rowsort label-116
SELECT COUNT ( * ) * + 77 + + 58 AS col2
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-117
SELECT DISTINCT COALESCE ( 33, + 28 - - 6 - + 22 * + 0 DIV - + 60 * COUNT( * ) ) + 92 * + 95 AS col0
----
8773

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT COALESCE ( 33, + 28 - - 6 - + 22 * + 0 / - + 60 * COUNT ( * ) ) + 92 * + 95 AS col0
----
8773

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT + COALESCE ( + NULLIF ( - - 64, - 61 + + 78 ), + 54 + + MAX( - 26 ) )
----
64

skipif mysql # not compatible
query I rowsort label-118
SELECT + COALESCE ( + NULLIF ( - - 64, - 61 + + 78 ), + 54 + + MAX ( - 26 ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT DISTINCT COUNT( * ) + 49 * - - ( COUNT( DISTINCT - 76 ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT COUNT ( * ) + 49 * - - ( COUNT ( DISTINCT - 76 ) ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT ( + - COALESCE ( - 10, 36 + + MAX( DISTINCT - - 56 ) ) ) - + - 88 - - + COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-120
SELECT ( + - COALESCE ( - 10, 36 + + MAX ( DISTINCT - - 56 ) ) ) - + - 88 - - + COUNT ( * ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT - + 45 * 29 + + 38 + + 15 * - 62 * + + COUNT( * ) * + 4 + + CASE - COUNT( * ) WHEN - + 51 THEN NULL WHEN 26 THEN COALESCE ( + 4, - - 65 * COALESCE ( + - 16, + + 23 * + 43 ) * - + 57 * + COUNT( * ) / - + COALESCE ( + 15, + ( - - 60 ) ) + 77 - 59, 51 + - 35 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-121
SELECT - + 45 * 29 + + 38 + + 15 * - 62 * + + COUNT ( * ) * + 4 + + CASE - COUNT ( * ) WHEN - + 51 THEN NULL WHEN 26 THEN COALESCE ( + 4, - - 65 * COALESCE ( + - 16, + + 23 * + 43 ) * - + 57 * + COUNT ( * ) / - + COALESCE ( + 15, + ( - - 60 ) ) + 77 - 59, 51 + - 35 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 49, + 72 )
----
49

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-125
SELECT DISTINCT + CAST( + 74 AS SIGNED ) * - 27, - 6 + + 98 AS col2
----
-1998
92

skipif mysql # not compatible
query II rowsort label-125
SELECT DISTINCT + CAST ( + 74 AS INTEGER ) * - 27, - 6 + + 98 AS col2
----
-1998
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-126
SELECT + COALESCE ( + 18, + + NULLIF ( 2, 30 * - + COUNT( * ) * - - 65 * + 69 ) * - 75 - - - 2 ) + - COALESCE ( COUNT( * ), + COUNT( * ), CASE + 47 WHEN - + MIN( DISTINCT + - 50 ) * + COUNT( 22 ) + - COUNT( * ) * - COUNT( * ) * 33 THEN NULL WHEN + COUNT( * ) THEN - + 57 * + 66 DIV 68 ELSE NULL END, - - 8 DIV + COUNT( * ) * + NULLIF ( - NULLIF ( CASE - 17 WHEN ( + 88 ) * 5 THEN NULL WHEN 79 THEN - 48 ELSE CAST( + ( + 78 ) AS SIGNED ) END, ( - COUNT( * ) ) ), - AVG ( DISTINCT 64 ) * - 76 + ( 68 ) ) + - 60 * - 57 )
----
17

skipif mysql # not compatible
query I rowsort label-126
SELECT + COALESCE ( + 18, + + NULLIF ( 2, 30 * - + COUNT ( * ) * - - 65 * + 69 ) * - 75 - - - 2 ) + - COALESCE ( COUNT ( * ), + COUNT ( * ), CASE + 47 WHEN - + MIN ( DISTINCT + - 50 ) * + COUNT ( 22 ) + - COUNT ( * ) * - COUNT ( * ) * 33 THEN NULL WHEN + COUNT ( * ) THEN - + 57 * + 66 / 68 ELSE NULL END, - - 8 / + COUNT ( * ) * + NULLIF ( - NULLIF ( CASE - 17 WHEN ( + 88 ) * 5 THEN NULL WHEN 79 THEN - 48 ELSE CAST ( + ( + 78 ) AS INTEGER ) END, ( - COUNT ( * ) ) ), - AVG ( DISTINCT 64 ) * - 76 + ( 68 ) ) + - 60 * - 57 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT ALL + COUNT( - COALESCE ( - 65, + 19 * - 47, - COALESCE ( 81, - COALESCE ( - - 41, 33 + - 44 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL + COUNT ( - COALESCE ( - 65, + 19 * - 47, - COALESCE ( 81, - COALESCE ( - - 41, 33 + - 44 ) ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-128
SELECT DISTINCT - CAST( - 68 AS SIGNED ) + - 51 * 7 AS col1
----
-289

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT - CAST ( - 68 AS INTEGER ) + - 51 * 7 AS col1
----
-289

query I rowsort
SELECT ALL + 11 + - 81
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-130
SELECT MAX( - 31 ), COUNT( DISTINCT 2 ) AS col0
----
-31
1

skipif mysql # not compatible
query II rowsort label-130
SELECT MAX ( - 31 ), COUNT ( DISTINCT 2 ) AS col0
----
-31
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-131
SELECT ALL - - 28 + - - COUNT( * ) DIV + 77
----
28

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL - - 28 + - - COUNT ( * ) / + 77
----
28

query I rowsort
SELECT ALL ( ( - + 97 ) ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT DISTINCT - COUNT( * ) - - 72 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT - COUNT ( * ) - - 72 AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-134
SELECT ALL CAST( - - 84 AS SIGNED ) AS col2, - COUNT( * ) * + + 38 AS col2
----
84
-38

skipif mysql # not compatible
query II rowsort label-134
SELECT ALL CAST ( - - 84 AS INTEGER ) AS col2, - COUNT ( * ) * + + 38 AS col2
----
84
-38

query I rowsort
SELECT DISTINCT + - 90 * 21
----
-1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-136
SELECT MAX( ALL - 96 ) * - 17 * + COALESCE ( 38, - CASE COALESCE ( - + 16, - - COUNT( * ) ) WHEN - CASE COUNT( * ) WHEN - 22 THEN NULL WHEN + 13 THEN NULL ELSE + 39 END THEN 12 WHEN 76 THEN NULL END, - 16 * - + 13 DIV - - COUNT( ALL + + 32 ) ) col2
----
62016

skipif mysql # not compatible
query I rowsort label-136
SELECT MAX ( ALL - 96 ) * - 17 * + COALESCE ( 38, - CASE COALESCE ( - + 16, - - COUNT ( * ) ) WHEN - CASE COUNT ( * ) WHEN - 22 THEN NULL WHEN + 13 THEN NULL ELSE + 39 END THEN 12 WHEN 76 THEN NULL END, - 16 * - + 13 / - - COUNT ( ALL + + 32 ) ) col2
----
62016

query I rowsort
SELECT ALL + 42 * + - NULLIF ( 45, - 6 ) AS col1
----
-1890

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-138
SELECT ALL 34, CASE - ( - - 18 ) WHEN - - 50 * + 28 THEN + COUNT( * ) WHEN + CAST( + 54 AS DECIMAL ) THEN NULL END AS col1
----
34
NULL

skipif mysql # not compatible
query II rowsort label-138
SELECT ALL 34, CASE - ( - - 18 ) WHEN - - 50 * + 28 THEN + COUNT ( * ) WHEN + CAST ( + 54 AS REAL ) THEN NULL END AS col1
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT ALL + COUNT( * ) - 58 * + 5
----
-289

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL + COUNT ( * ) - 58 * + 5
----
-289

query I rowsort
SELECT 79 * + 20 AS col1
----
1580

query I rowsort
SELECT ALL + 42 * + - 30
----
-1260

query II rowsort
SELECT 35, - 47 AS col1
----
35
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-143
SELECT ALL 48 AS col0, SUM( DISTINCT - 78 )
----
48
-78

skipif mysql # not compatible
query II rowsort label-143
SELECT ALL 48 AS col0, SUM ( DISTINCT - 78 )
----
48
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-144
SELECT DISTINCT 50, + 40 * + 40 + + 96 + - ( - 2 ) + + 60 * + - 27 * - + COUNT( * ) * + COUNT( * ) AS col0
----
50
3318

skipif mysql # not compatible
query II rowsort label-144
SELECT DISTINCT 50, + 40 * + 40 + + 96 + - ( - 2 ) + + 60 * + - 27 * - + COUNT ( * ) * + COUNT ( * ) AS col0
----
50
3318

query I rowsort
SELECT 4 * - - 72
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT - 2 DIV - 87 - + - 90 * 46 DIV + 31 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-146
SELECT - 2 / - 87 - + - 90 * 46 / + 31 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT 52 * + 63 + - COUNT( * ) AS col0
----
3275

skipif mysql # not compatible
query I rowsort label-147
SELECT 52 * + 63 + - COUNT ( * ) AS col0
----
3275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-148
SELECT ALL - 80 DIV - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL - 80 / - COUNT ( * )
----
80

query I rowsort
SELECT 94 * 92 AS col1
----
8648

query II rowsort
SELECT 72 AS col1, + 33 / + + ( - + CASE - + 83 WHEN + 66 + 72 + - 86 * 35 THEN - + 5 END ) AS col2
----
72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT DISTINCT NULLIF ( - NULLIF ( CASE + + 83 WHEN + - COALESCE ( + 12, - + 92 + + 6 ) * + + 17 * COUNT( * ) THEN 45 * + 77 WHEN + + 37 - - 41 + 60 + + COUNT( * ) + + MIN( DISTINCT + 61 ) + - + 42 * + - 92 * + 86 * COUNT( * ) * + - 7 THEN + 64 ELSE NULL END, - COUNT( * ) ), - + 79 * + 7 + - - AVG ( 92 ) * - + 95 ) + - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-151
SELECT DISTINCT NULLIF ( - NULLIF ( CASE + + 83 WHEN + - COALESCE ( + 12, - + 92 + + 6 ) * + + 17 * COUNT ( * ) THEN 45 * + 77 WHEN + + 37 - - 41 + 60 + + COUNT ( * ) + + MIN ( DISTINCT + 61 ) + - + 42 * + - 92 * + 86 * COUNT ( * ) * + - 7 THEN + 64 ELSE NULL END, - COUNT ( * ) ), - + 79 * + 7 + - - AVG ( 92 ) * - + 95 ) + - 54 AS col0
----
NULL

query I rowsort
SELECT ALL 65 * + + NULLIF ( 51, + 93 ) * + 85 AS col1
----
281775

onlyif mysql # aggregate syntax: 
query II rowsort label-153
SELECT ALL - COUNT( DISTINCT + 65 ) + - 34 AS col2, + 19
----
-35
19

skipif mysql # not compatible
query II rowsort label-153
SELECT ALL - COUNT ( DISTINCT + 65 ) + - 34 AS col2, + 19
----
-35
19

onlyif mysql # aggregate syntax: 
query II rowsort label-154
SELECT ALL + 84 + + 74 - - + COUNT( * ) AS col1, + 17
----
159
17

skipif mysql # not compatible
query II rowsort label-154
SELECT ALL + 84 + + 74 - - + COUNT ( * ) AS col1, + 17
----
159
17

query II rowsort
SELECT 88 AS col2, 91
----
88
91

query II rowsort
SELECT ALL 84 + + 60 * + 11 AS col2, 84 * 35 AS col1
----
744
2940

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-157
SELECT 98 * + CAST( NULL AS DECIMAL ) + + + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-157
SELECT 98 * + CAST ( NULL AS REAL ) + + + 51 AS col2
----
NULL

query II rowsort
SELECT ALL - 0 col1, 90 * - 65 AS col2
----
0
-5850

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-159
SELECT ALL CAST( NULL AS DECIMAL ) + - ( 88 ) + 96 * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL CAST ( NULL AS REAL ) + - ( 88 ) + 96 * + 20
----
NULL

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

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

query I rowsort
SELECT ALL - CASE - 78 WHEN + 79 * 88 THEN - + 20 / - 62 / - + 32 END
----
NULL

query I rowsort
SELECT + 33 + - 7 AS col2
----
26

query I rowsort
SELECT + 8 * - 5 AS col0
----
-40

query II rowsort
SELECT + 92 * - - 2 + 26 AS col1, + ( + 60 ) col2
----
210
60

query I rowsort
SELECT DISTINCT - - NULLIF ( 48, 59 * + 67 ) AS col0
----
48

query I rowsort
SELECT ALL - - 0 * 38
----
0

query I rowsort
SELECT 38 + 93 + 70
----
201

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

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

query II rowsort
SELECT - 70 AS col2, - 96 + - - ( + 28 ) AS col2
----
-70
-68

query I rowsort
SELECT DISTINCT + ( + 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT + 50 + - NULLIF ( - 37, COUNT( * ) * - 14 + 30 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-171
SELECT + 50 + - NULLIF ( - 37, COUNT ( * ) * - 14 + 30 ) AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT 15 DIV 81 * 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-172
SELECT 15 / 81 * 61 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-173
SELECT 98 - - 6 DIV 9 + 85 AS col2, - 35 * - 15 + 66 * COUNT( * ) AS col1
----
183
591

skipif mysql # not compatible
query II rowsort label-173
SELECT 98 - - 6 / 9 + 85 AS col2, - 35 * - 15 + 66 * COUNT ( * ) AS col1
----
183
591

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT SUM( DISTINCT 48 ) + - 47
----
1

skipif mysql # not compatible
query I rowsort label-174
SELECT SUM ( DISTINCT 48 ) + - 47
----
1

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

skipif mysql # not compatible
query I rowsort label-175
SELECT ALL MIN ( ALL - - 19 )
----
19

query I rowsort
SELECT 7 + 52
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-177
SELECT - COALESCE ( - + MAX( ALL 96 ), - 86, - 44 * - - 80 + - NULLIF ( - + CAST( - COUNT( * ) AS SIGNED ), - - 61 ) - COUNT( * ) DIV - 62 * - + 35 )
----
96

skipif mysql # not compatible
query I rowsort label-177
SELECT - COALESCE ( - + MAX ( ALL 96 ), - 86, - 44 * - - 80 + - NULLIF ( - + CAST ( - COUNT ( * ) AS INTEGER ), - - 61 ) - COUNT ( * ) / - 62 * - + 35 )
----
96

query II rowsort
SELECT 14 * 59, + ( - 3 ) - - - 58 + NULLIF ( - 98, + - 90 + + 58 ) col2
----
826
-159

query I rowsort
SELECT ALL - 11 + 92 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL MIN( 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL MIN ( 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT - NULLIF ( 4, - - 45 ) + - COUNT( * ) + COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-181
SELECT - NULLIF ( 4, - - 45 ) + - COUNT ( * ) + COUNT ( * ) AS col1
----
-4

query I rowsort
SELECT - 83 + + NULLIF ( - 72, + 82 * - 9 + - 83 + 86 ) + - 54 + + 58 * 3 * - 81
----
-14303

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-183
SELECT - 95 DIV - MAX( DISTINCT + + 15 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-183
SELECT - 95 / - MAX ( DISTINCT + + 15 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT - 1 * + MIN( ALL + 80 ) * 69 AS col1
----
-5520

skipif mysql # not compatible
query I rowsort label-184
SELECT - 1 * + MIN ( ALL + 80 ) * 69 AS col1
----
-5520

query I rowsort
SELECT DISTINCT + ( 53 ) AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-186
SELECT 12 DIV + 89 + - + 43
----
-43

skipif mysql # not compatible
query I rowsort label-186
SELECT 12 / + 89 + - + 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT - - 16 + - 42 + + 68 - - COUNT( DISTINCT - 4 )
----
43

skipif mysql # not compatible
query I rowsort label-187
SELECT - - 16 + - 42 + + 68 - - COUNT ( DISTINCT - 4 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT ALL - COUNT( * ) * + 95 + + 31 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL - COUNT ( * ) * + 95 + + 31 AS col0
----
-64

query I rowsort
SELECT - + 47 * + + 61 + + 45 - + 91 * 26 AS col1
----
-5188

query I rowsort
SELECT 30 * 7 + - 60 - - + 34
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT - - 72 - - COUNT( * ) + - + 83 * + + 32 + 82
----
-2501

skipif mysql # not compatible
query I rowsort label-191
SELECT - - 72 - - COUNT ( * ) + - + 83 * + + 32 + 82
----
-2501

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-192
SELECT + CASE 72 WHEN 66 * - COUNT( * ) + + 32 + + + COUNT( ALL + ( - - CAST( NULL AS DECIMAL ) ) ) + + - 46 THEN + 13 + 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-192
SELECT + CASE 72 WHEN 66 * - COUNT ( * ) + + 32 + + + COUNT ( ALL + ( - - CAST ( NULL AS REAL ) ) ) + + - 46 THEN + 13 + 28 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT + COALESCE ( - ( 24 ), MIN( 29 ) ) * + COUNT( * ) + 84 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-193
SELECT + COALESCE ( - ( 24 ), MIN ( 29 ) ) * + COUNT ( * ) + 84 AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-194
SELECT DISTINCT - - 23 * + COUNT( * ) + 69 - COUNT( * ) AS col0, 61
----
91
61

skipif mysql # not compatible
query II rowsort label-194
SELECT DISTINCT - - 23 * + COUNT ( * ) + 69 - COUNT ( * ) AS col0, 61
----
91
61

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL - COUNT( * ) * + SUM( DISTINCT - - 53 ) * COUNT( ALL 66 ) + + 55
----
2

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - COUNT ( * ) * + SUM ( DISTINCT - - 53 ) * COUNT ( ALL 66 ) + + 55
----
2

query I rowsort
SELECT DISTINCT + - 94 * - 20
----
1880

query I rowsort
SELECT DISTINCT - 78 * - 36
----
2808

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-199
SELECT + + 14 * 83 * - 13 + + + 22 DIV - 78 + - + 45 + - 98 * - 69 * - 72 + 66 - - 29 + - + COUNT( * ) AS col2
----
-501921

skipif mysql # not compatible
query I rowsort label-199
SELECT + + 14 * 83 * - 13 + + + 22 / - 78 + - + 45 + - 98 * - 69 * - 72 + 66 - - 29 + - + COUNT ( * ) AS col2
----
-501921

query I rowsort
SELECT ALL + 57 * - 77 - - + 30 AS col0
----
-4359

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT - - 29 * + 67 * - - 29 - - + 81 * COALESCE ( - + 86, COUNT( * ) ) AS col0
----
49381

skipif mysql # not compatible
query I rowsort label-201
SELECT - - 29 * + 67 * - - 29 - - + 81 * COALESCE ( - + 86, COUNT ( * ) ) AS col0
----
49381

query I rowsort
SELECT + + 90 * + - 93
----
-8370

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT + 17 + + MAX( ALL - - 28 ) + + ( - 78 ) * - 19 AS col0
----
1527

skipif mysql # not compatible
query I rowsort label-203
SELECT + 17 + + MAX ( ALL - - 28 ) + + ( - 78 ) * - 19 AS col0
----
1527

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

skipif mysql # not compatible
query I rowsort label-204
SELECT SUM ( DISTINCT - 58 )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-205
SELECT - ( - MAX( + + 49 ) ) * - CAST( + 35 AS SIGNED ) + COUNT( * ) + - 65 AS col0
----
-1779

skipif mysql # not compatible
query I rowsort label-205
SELECT - ( - MAX ( + + 49 ) ) * - CAST ( + 35 AS INTEGER ) + COUNT ( * ) + - 65 AS col0
----
-1779

onlyif mysql # DIV for integer division: 
query I rowsort label-206
SELECT DISTINCT 38 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT 38 / + 53
----
0

query I rowsort
SELECT + 44 * - + 38 col1
----
-1672

query II rowsort
SELECT 73, + 28 AS col2
----
73
28

query I rowsort
SELECT ALL 73 * + + 88 AS col0
----
6424

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT ALL NULLIF ( - + COUNT( + ( + 60 ) ), + 34 ) + 96 * 63 + + ( + CASE + COUNT( * ) WHEN - COUNT( * ) THEN + 8 * + 16 + - + 75 - - 39 + - 61 ELSE - 55 END )
----
5992

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL NULLIF ( - + COUNT ( + ( + 60 ) ), + 34 ) + 96 * 63 + + ( + CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN + 8 * + 16 + - + 75 - - 39 + - 61 ELSE - 55 END )
----
5992

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

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT DISTINCT 2 * - + MAX( - 50 ) * + 61
----
6100

skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT 2 * - + MAX ( - 50 ) * + 61
----
6100

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT ALL CASE AVG ( 99 ) WHEN ( - 64 ) THEN NULL WHEN + COUNT( * ) + COUNT( * ) + 50 * + 99 + + MAX( - - 86 ) THEN NULLIF ( + + 97, - - 79 ) END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-213
SELECT ALL CASE AVG ( 99 ) WHEN ( - 64 ) THEN NULL WHEN + COUNT ( * ) + COUNT ( * ) + 50 * + 99 + + MAX ( - - 86 ) THEN NULLIF ( + + 97, - - 79 ) END + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT + 19 * - 48 * + COUNT( * )
----
-912

skipif mysql # not compatible
query I rowsort label-214
SELECT + 19 * - 48 * + COUNT ( * )
----
-912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-215
SELECT - 84 * - 0 * 92, 64 * - COUNT( * ) - + ( - + CAST( NULL AS SIGNED ) ) col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-215
SELECT - 84 * - 0 * 92, 64 * - COUNT ( * ) - + ( - + CAST ( NULL AS INTEGER ) ) col1
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-216
SELECT DISTINCT + 35 DIV + + 3
----
11

skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT + 35 / + + 3
----
11

query I rowsort
SELECT ALL - ( + 36 ) + - 31 + + - 55
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT DISTINCT 95 + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT 95 + COUNT ( * ) AS col2
----
96

query I rowsort
SELECT ALL - 62 + 75 + - 93 * 33 AS col2
----
-3056

query I rowsort
SELECT - 24 - + ( + 32 ) AS col2
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT DISTINCT + COUNT( 10 )
----
1

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT + COUNT ( 10 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT - COUNT( * ) + + 59 * - 97 - - 14
----
-5710

skipif mysql # not compatible
query I rowsort label-223
SELECT - COUNT ( * ) + + 59 * - 97 - - 14
----
-5710

query II rowsort
SELECT 80, 83 AS col2
----
80
83

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT + NULLIF ( + - COUNT( * ), - SUM( - 17 ) * 9 * + 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-225
SELECT + NULLIF ( + - COUNT ( * ), - SUM ( - 17 ) * 9 * + 29 )
----
-1

query II rowsort
SELECT 18 AS col1, + 6 * + - 0
----
18
0

query I rowsort
SELECT - 26 * NULLIF ( 54, - 58 + 37 ) + 64
----
-1340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-228
SELECT - + CASE + 46 WHEN - + 7 THEN - 48 * - 33 + - + 49 ELSE - ( + 72 ) * + - CAST( NULL AS SIGNED ) * - - 70 - - SUM( - + 91 ) END * MIN( ALL + - 34 ) + 80 * - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-228
SELECT - + CASE + 46 WHEN - + 7 THEN - 48 * - 33 + - + 49 ELSE - ( + 72 ) * + - CAST ( NULL AS INTEGER ) * - - 70 - - SUM ( - + 91 ) END * MIN ( ALL + - 34 ) + 80 * - ( - COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT DISTINCT - ( - ( + + ( + 50 ) ) ) DIV + 47 - + 71 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT - ( - ( + + ( + 50 ) ) ) / + 47 - + 71 AS col0
----
-70

query II rowsort
SELECT + 75 AS col0, 94
----
75
94

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT ALL - 41 * MAX( ALL - 21 ) - - - 94 + + 90 * + + 19 * + COUNT( * ) AS col2
----
2477

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL - 41 * MAX ( ALL - 21 ) - - - 94 + + 90 * + + 19 * + COUNT ( * ) AS col2
----
2477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-232
SELECT DISTINCT + 10 / + CAST( NULL AS SIGNED ) - - 1 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT + 10 / + CAST ( NULL AS INTEGER ) - - 1 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-233
SELECT DISTINCT + 1 col2, SUM( - 5 ) + + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-233
SELECT DISTINCT + 1 col2, SUM ( - 5 ) + + CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-234
SELECT - - 38 * - ( - 70 ) - + ( - - 21 ) * - 7 * - CAST( + 9 AS SIGNED ) + + - SUM( ALL 77 ) + 31
----
1291

skipif mysql # not compatible
query I rowsort label-234
SELECT - - 38 * - ( - 70 ) - + ( - - 21 ) * - 7 * - CAST ( + 9 AS INTEGER ) + + - SUM ( ALL 77 ) + 31
----
1291

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

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

query I rowsort
SELECT - 18 + + 16 col0
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT - COUNT( * ) + - 99 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-238
SELECT - COUNT ( * ) + - 99 AS col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT 33 * + 93 * COUNT( * ) + + 87 AS col1
----
3156

skipif mysql # not compatible
query I rowsort label-239
SELECT 33 * + 93 * COUNT ( * ) + + 87 AS col1
----
3156

query I rowsort
SELECT ALL + - 15
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-241
SELECT + + COUNT( * ) AS col1, CASE 95 WHEN + 76 - - 0 THEN NULL ELSE + - 11 END
----
1
-11

skipif mysql # not compatible
query II rowsort label-241
SELECT + + COUNT ( * ) AS col1, CASE 95 WHEN + 76 - - 0 THEN NULL ELSE + - 11 END
----
1
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT ALL + MAX( ALL - 2 ) * - + COUNT( * ) + 65
----
67

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL + MAX ( ALL - 2 ) * - + COUNT ( * ) + 65
----
67

query I rowsort
SELECT + 72 * 18 + - 32
----
1264

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT ALL + 83 * - + SUM( 51 )
----
-4233

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL + 83 * - + SUM ( 51 )
----
-4233

query I rowsort
SELECT ALL - ( - + 20 ) * 50 + 34 + - 91
----
943

query II rowsort
SELECT 30 * + 74 + + ( - 53 ) AS col2, + 87
----
2167
87

query II rowsort
SELECT DISTINCT CASE - 79 WHEN + + ( + 90 ) THEN - 9 END + + - 27, 57 + + 51 * + + 40 * + ( + 31 ) AS col1
----
NULL
63297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-248
SELECT CAST( NULL AS SIGNED ) - - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT CAST ( NULL AS INTEGER ) - - 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-249
SELECT ALL + 94 + + + CAST( - MAX( DISTINCT - 51 ) AS SIGNED ) * - + MIN( DISTINCT - - 25 )
----
-1181

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL + 94 + + + CAST ( - MAX ( DISTINCT - 51 ) AS INTEGER ) * - + MIN ( DISTINCT - - 25 )
----
-1181

query I rowsort
SELECT 23 + + + 97 - 77
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT NULLIF ( + - NULLIF ( - 60, + - 98 + + - 49 ), - + ( COALESCE ( 33, + 41, 64 ) ) * + 36 - - COUNT( ALL 48 ) ) + + 29
----
89

skipif mysql # not compatible
query I rowsort label-251
SELECT NULLIF ( + - NULLIF ( - 60, + - 98 + + - 49 ), - + ( COALESCE ( 33, + 41, 64 ) ) * + 36 - - COUNT ( ALL 48 ) ) + + 29
----
89

query I rowsort
SELECT ALL 36 * + 0
----
0

query I rowsort
SELECT ALL ( NULLIF ( + 56, + 48 ) ) * 0 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-254
SELECT COALESCE ( + 97, - - AVG ( ALL + CASE + - 14 WHEN + 76 THEN + 14 - + 56 + + + 40 * + 26 + - 35 - + + 29 + - 4 * + 7 DIV 80 * + 26 * + 60 END ) ) DIV - - 3 + 79 - + 18
----
93

skipif mysql # not compatible
query I rowsort label-254
SELECT COALESCE ( + 97, - - AVG ( ALL + CASE + - 14 WHEN + 76 THEN + 14 - + 56 + + + 40 * + 26 + - 35 - + + 29 + - 4 * + 7 / 80 * + 26 * + 60 END ) ) / - - 3 + 79 - + 18
----
93

query I rowsort
SELECT + 86 + + 13 AS col1
----
99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-257
SELECT + 13 * + 78 - + - CASE - + 39 WHEN ( 83 ) DIV - 60 * 21 + + COUNT( * ) + 94 THEN + 73 * + 71 * - 14 DIV AVG ( DISTINCT + 93 ) * + - 0 ELSE + - ( + - 93 ) END
----
1107

skipif mysql # not compatible
query I rowsort label-257
SELECT + 13 * + 78 - + - CASE - + 39 WHEN ( 83 ) / - 60 * 21 + + COUNT ( * ) + 94 THEN + 73 * + 71 * - 14 / AVG ( DISTINCT + 93 ) * + - 0 ELSE + - ( + - 93 ) END
----
1107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-258
SELECT ALL + - 69 DIV + 15 * COUNT( * ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL + - 69 / + 15 * COUNT ( * ) col2
----
-4

query I rowsort
SELECT DISTINCT 92 - - - 20 - - 4 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-260
SELECT ALL - + 97 AS col2, 48 * - CASE + + 60 WHEN + COUNT( 93 ) * + 51 * AVG ( 79 ) * + + 6 THEN - + 40 - - - 44 END, - 71 * + CAST( NULL AS SIGNED ) + - 19
----
-97
NULL
NULL

skipif mysql # not compatible
query III rowsort label-260
SELECT ALL - + 97 AS col2, 48 * - CASE + + 60 WHEN + COUNT ( 93 ) * + 51 * AVG ( 79 ) * + + 6 THEN - + 40 - - - 44 END, - 71 * + CAST ( NULL AS INTEGER ) + - 19
----
-97
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-261
SELECT + 73 DIV + 16 + + + 37 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-261
SELECT + 73 / + 16 + + + 37 AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-262
SELECT ALL - - 80, COUNT( + ( + + 57 ) ) - - + 92 AS col0
----
80
93

skipif mysql # not compatible
query II rowsort label-262
SELECT ALL - - 80, COUNT ( + ( + + 57 ) ) - - + 92 AS col0
----
80
93

query I rowsort
SELECT 44 + - 95 * + - 31
----
2989

query I rowsort
SELECT DISTINCT + + 64 * - + 29
----
-1856

query II rowsort
SELECT ALL - + 55, + 4 AS col2
----
-55
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT + COALESCE ( 30, - 97 ) * + - 52 + + COUNT( * ) - - - 41 + - 67 + + 46 * - 16 + + + 98 * - COALESCE ( + COUNT( * ), - 35 )
----
-2501

skipif mysql # not compatible
query I rowsort label-267
SELECT + COALESCE ( 30, - 97 ) * + - 52 + + COUNT ( * ) - - - 41 + - 67 + + 46 * - 16 + + + 98 * - COALESCE ( + COUNT ( * ), - 35 )
----
-2501

query II rowsort
SELECT ALL + 57 + - 85 AS col2, - ( + - 19 )
----
-28
19

query II rowsort
SELECT ALL - - ( - 95 ) AS col0, 2
----
-95
2

query I rowsort
SELECT ALL + - 22 * - - 98 AS col1
----
-2156

query I rowsort
SELECT 98 * + 13 AS col1
----
1274

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-273
SELECT DISTINCT + 79 + - 13 + 0 * - - COUNT( * ) * + 13 DIV - 79 * 75 * - 72 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT + 79 + - 13 + 0 * - - COUNT ( * ) * + 13 / - 79 * 75 * - 72 AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-274
SELECT ALL - 25 + - - CAST( NULL AS SIGNED ), 62 + + + 4 AS col1
----
NULL
66

skipif mysql # not compatible
query II rowsort label-274
SELECT ALL - 25 + - - CAST ( NULL AS INTEGER ), 62 + + + 4 AS col1
----
NULL
66

query I rowsort
SELECT 88 * 47 AS col1
----
4136

query I rowsort
SELECT ALL 43 col2
----
43

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

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT - 80 + COUNT ( * ) AS col0
----
-79

query I rowsort
SELECT DISTINCT - 7 + 9
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL COALESCE ( 25, 38 ) + 52 * SUM( 96 ) AS col2
----
5017

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL COALESCE ( 25, 38 ) + 52 * SUM ( 96 ) AS col2
----
5017

query I rowsort
SELECT 23 * + 64
----
1472

query I rowsort
SELECT ALL - 35 * - + 63 col1
----
2205

onlyif mysql # aggregate syntax: 
query II rowsort label-282
SELECT DISTINCT 77 - + 14, + 65 * 95 * - COUNT( * ) AS col2
----
63
-6175

skipif mysql # not compatible
query II rowsort label-282
SELECT DISTINCT 77 - + 14, + 65 * 95 * - COUNT ( * ) AS col2
----
63
-6175

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

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

query I rowsort
SELECT 13 - 82
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT + SUM( 90 ) * 22 * - 14
----
-27720

skipif mysql # not compatible
query I rowsort label-285
SELECT + SUM ( 90 ) * 22 * - 14
----
-27720

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

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

query II rowsort
SELECT + 11 - - 96 AS col0, 69 AS col2
----
107
69

query I rowsort
SELECT - 20 * 10 AS col0
----
-200

onlyif mysql # aggregate syntax: 
query II rowsort label-289
SELECT 82 - - 26 col0, COUNT( * ) * + 3 AS col0
----
108
3

skipif mysql # not compatible
query II rowsort label-289
SELECT 82 - - 26 col0, COUNT ( * ) * + 3 AS col0
----
108
3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-291
SELECT 59 DIV COUNT( * ), - 18 * - SUM( 34 ) AS col0
----
59
612

skipif mysql # not compatible
query II rowsort label-291
SELECT 59 / COUNT ( * ), - 18 * - SUM ( 34 ) AS col0
----
59
612

query II rowsort
SELECT + 87 * - 86 AS col0, - ( - 67 ) AS col0
----
-7482
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-293
SELECT ALL - NULLIF ( CAST( NULL AS SIGNED ), 6 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL - NULLIF ( CAST ( NULL AS INTEGER ), 6 ) col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT COUNT( * ) * - - 82 - - 3 * 33
----
181

skipif mysql # not compatible
query I rowsort label-295
SELECT COUNT ( * ) * - - 82 - - 3 * 33
----
181

query I rowsort
SELECT ALL - + 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT ALL COALESCE ( 71, - - COUNT( * ) + + - CASE + + 49 WHEN - - 69 THEN NULL ELSE - 27 END + + 82 * - + MAX( DISTINCT + 52 ) ) * 76 * 7 + - + 23
----
37749

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL COALESCE ( 71, - - COUNT ( * ) + + - CASE + + 49 WHEN - - 69 THEN NULL ELSE - 27 END + + 82 * - + MAX ( DISTINCT + 52 ) ) * 76 * 7 + - + 23
----
37749

query I rowsort
SELECT DISTINCT - + 76 AS col0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-299
SELECT DISTINCT - 0 * - + 46 + - - 49 + - - 9 + + 72 * - - CAST( NULL AS SIGNED ) * - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT - 0 * - + 46 + - - 49 + - - 9 + + 72 * - - CAST ( NULL AS INTEGER ) * - 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT DISTINCT - COALESCE ( 16, - COUNT( * ), - 71 + SUM( 63 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT - COALESCE ( 16, - COUNT ( * ), - 71 + SUM ( 63 ) )
----
-16

query I rowsort
SELECT + 63 * + + 52 * - 17 AS col2
----
-55692

query I rowsort
SELECT ALL 51 * - 2 + + ( - 84 )
----
-186

query I rowsort
SELECT + 64 * 30 + 48 - + 99 AS col2
----
1869

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT MAX( DISTINCT + + 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-304
SELECT MAX ( DISTINCT + + 93 ) AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-305
SELECT ALL CASE + 5 WHEN - 13 * - 62 THEN + COALESCE ( + + 51, - 10 * - + 78 ) WHEN + 54 * MAX( ALL - 21 ) THEN + 82 * - - COUNT( * ) * - 94 * + 33 + + - 31 + - 10 + + 82 * - 22 DIV + MAX( DISTINCT + + 13 ) ELSE - 99 END * COUNT( * ) AS col0, COUNT( * ) * 42 - + 60
----
-99
-18

skipif mysql # not compatible
query II rowsort label-305
SELECT ALL CASE + 5 WHEN - 13 * - 62 THEN + COALESCE ( + + 51, - 10 * - + 78 ) WHEN + 54 * MAX ( ALL - 21 ) THEN + 82 * - - COUNT ( * ) * - 94 * + 33 + + - 31 + - 10 + + 82 * - 22 / + MAX ( DISTINCT + + 13 ) ELSE - 99 END * COUNT ( * ) AS col0, COUNT ( * ) * 42 - + 60
----
-99
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-306
SELECT - COUNT( DISTINCT ( - 49 ) ) * + + 0 DIV - 40 DIV - 16 col2
----
0

skipif mysql # not compatible
query I rowsort label-306
SELECT - COUNT ( DISTINCT ( - 49 ) ) * + + 0 / - 40 / - 16 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT 66 * + - 60 + CAST( - 87 AS SIGNED ) AS col0
----
-4047

skipif mysql # not compatible
query I rowsort label-307
SELECT 66 * + - 60 + CAST ( - 87 AS INTEGER ) AS col0
----
-4047

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

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

query I rowsort
SELECT ALL + ( + - 89 ) AS col0
----
-89

query I rowsort
SELECT - 48 + - - 84
----
36

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

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT 72 * - CAST ( NULL AS INTEGER ) * 20
----
NULL

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

query I rowsort
SELECT - 1 + - 33 - + + 61 + - 92 + - 82
----
-269

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-314
SELECT ALL COUNT( * ) AS col1, + ( - 24 ) DIV - 12 AS col0
----
1
2

skipif mysql # not compatible
query II rowsort label-314
SELECT ALL COUNT ( * ) AS col1, + ( - 24 ) / - 12 AS col0
----
1
2

query I rowsort
SELECT 94 * + + 82 * - 3 * - 55 + 59
----
1271879

query I rowsort
SELECT - 18 * + - 21
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT - COUNT( DISTINCT - - 61 ) + + 41 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-317
SELECT - COUNT ( DISTINCT - - 61 ) + + 41 AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-318
SELECT ALL - ( 77 ) DIV - MAX( + 14 )
----
5

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL - ( 77 ) / - MAX ( + 14 )
----
5

query I rowsort
SELECT - 65 + - - 41 * - + 33
----
-1418

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-321
SELECT - 82 * - COUNT( * ) DIV + - COUNT( * ) * - NULLIF ( - + COUNT( * ), - - 62 ), - 19 * - MAX( DISTINCT 19 ) * - ( - - SUM( ALL - 21 ) ) * + 62 + - 21 + + ( - 48 ) + COUNT( * ) AS col0
----
-82
469954

skipif mysql # not compatible
query II rowsort label-321
SELECT - 82 * - COUNT ( * ) / + - COUNT ( * ) * - NULLIF ( - + COUNT ( * ), - - 62 ), - 19 * - MAX ( DISTINCT 19 ) * - ( - - SUM ( ALL - 21 ) ) * + 62 + - 21 + + ( - 48 ) + COUNT ( * ) AS col0
----
-82
469954

query I rowsort
SELECT DISTINCT - 86 * + 12
----
-1032

query I rowsort
SELECT - 95 + - + 86
----
-181

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

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

query I rowsort
SELECT - + 31 * + 24 AS col1
----
-744

query I rowsort
SELECT - - 62 * - 75 AS col1
----
-4650

onlyif mysql # DIV for integer division: 
query I rowsort label-327
SELECT - - 56 * 69 DIV + - 65 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-327
SELECT - - 56 * 69 / + - 65 AS col2
----
-59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT - ( - + CASE 68 WHEN + + 26 * 2 + COUNT( * ) / - 18 THEN - - 39 WHEN - 52 THEN NULL WHEN - - 34 + + 79 THEN - 44 - 47 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-329
SELECT - ( - + CASE 68 WHEN + + 26 * 2 + COUNT ( * ) / - 18 THEN - - 39 WHEN - 52 THEN NULL WHEN - - 34 + + 79 THEN - 44 - 47 ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT - + 70 + - 84 AS col1
----
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-331
SELECT + NULLIF ( 19, + 22 + + - COALESCE ( - 98, 43, - - 50, + 8 * AVG ( DISTINCT - + 61 ) ) * + 56 * + CAST( - 30 AS SIGNED ) ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-331
SELECT + NULLIF ( 19, + 22 + + - COALESCE ( - 98, 43, - - 50, + 8 * AVG ( DISTINCT - + 61 ) ) * + 56 * + CAST ( - 30 AS INTEGER ) ) AS col0
----
19

query I rowsort
SELECT - 84 + + + 90
----
6

query I rowsort
SELECT + + 32 + 11 + + 93
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-334
SELECT ALL 47 DIV NULLIF ( + 65, - 30 ) DIV - 93 + + 29
----
29

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL 47 / NULLIF ( + 65, - 30 ) / - 93 + + 29
----
29

query II rowsort
SELECT + 39 AS col1, + 66
----
39
66

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT ALL + - CASE - 54 WHEN + - 81 * COUNT( * ) THEN - 59 * - 79 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL + - CASE - 54 WHEN + - 81 * COUNT ( * ) THEN - 59 * - 79 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT + 14 * + - COUNT( * ) + - 83 + - - 64
----
-33

skipif mysql # not compatible
query I rowsort label-337
SELECT + 14 * + - COUNT ( * ) + - 83 + - - 64
----
-33

query I rowsort
SELECT ALL + - 64 AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-339
SELECT ALL - 11 * - CAST( NULL AS SIGNED ) + + SUM( + + 33 ) + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL - 11 * - CAST ( NULL AS INTEGER ) + + SUM ( + + 33 ) + - 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-340
SELECT - + CASE - - 54 WHEN + 12 + CAST( NULL AS SIGNED ) THEN - 33 WHEN - AVG ( DISTINCT 88 ) - ( - - 78 ) * + 87 * + COUNT( * ) * + 50 THEN NULL END * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-340
SELECT - + CASE - - 54 WHEN + 12 + CAST ( NULL AS INTEGER ) THEN - 33 WHEN - AVG ( DISTINCT 88 ) - ( - - 78 ) * + 87 * + COUNT ( * ) * + 50 THEN NULL END * + 63
----
NULL

query I rowsort
SELECT + 9 + + 42 + - 31 AS col2
----
20

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-343
SELECT ALL 73 * CASE CAST( NULL AS SIGNED ) WHEN 42 THEN - 72 ELSE 59 + + 13 END
----
5256

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL 73 * CASE CAST ( NULL AS INTEGER ) WHEN 42 THEN - 72 ELSE 59 + + 13 END
----
5256

query II rowsort
SELECT ( 87 ) AS col2, 93
----
87
93

query I rowsort
SELECT 62 * 54 + - 75
----
3273

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

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

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

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

query I rowsort
SELECT ALL + 69 * + 12 - + 70 AS col1
----
758

onlyif mysql # DIV for integer division: 
query I rowsort label-349
SELECT + 49 DIV + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-349
SELECT + 49 / + 97 AS col2
----
0

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

query I rowsort
SELECT + NULLIF ( 36, - 51 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT CASE - 90 WHEN 16 THEN - 68 WHEN + + CASE + 2 WHEN + 59 THEN + + COUNT( * ) WHEN - ( + 35 ) * 24 / - - COUNT( * ) THEN NULL END THEN + 0 * + 14 - COUNT( * ) + + 65 * + 47 + + + 32 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-352
SELECT CASE - 90 WHEN 16 THEN - 68 WHEN + + CASE + 2 WHEN + 59 THEN + + COUNT ( * ) WHEN - ( + 35 ) * 24 / - - COUNT ( * ) THEN NULL END THEN + 0 * + 14 - COUNT ( * ) + + 65 * + 47 + + + 32 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-353
SELECT CASE + 64 WHEN + + 99 THEN - ( + COALESCE ( + 45, - + MIN( - - CAST( + 73 AS SIGNED ) ) * 60 + ( - + 58 ) + - - 43 + - 52 ) ) END, - 10 + + 17 * - COUNT( * ) * - 24 + - CAST( NULL AS SIGNED ) + + ( 28 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-353
SELECT CASE + 64 WHEN + + 99 THEN - ( + COALESCE ( + 45, - + MIN ( - - CAST ( + 73 AS INTEGER ) ) * 60 + ( - + 58 ) + - - 43 + - 52 ) ) END, - 10 + + 17 * - COUNT ( * ) * - 24 + - CAST ( NULL AS INTEGER ) + + ( 28 )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT + ( SUM( DISTINCT + 78 ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-354
SELECT + ( SUM ( DISTINCT + 78 ) ) AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-355
SELECT NULLIF ( - CAST( + - ( + + ( - - 13 ) ) AS SIGNED ), + - 50 )
----
13

skipif mysql # not compatible
query I rowsort label-355
SELECT NULLIF ( - CAST ( + - ( + + ( - - 13 ) ) AS INTEGER ), + - 50 )
----
13

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

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

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

skipif mysql # not compatible
query I rowsort label-357
SELECT SUM ( 68 ) col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-358
SELECT - CAST( + 51 AS SIGNED ) AS col2, - 28 col0
----
-51
-28

skipif mysql # not compatible
query II rowsort label-358
SELECT - CAST ( + 51 AS INTEGER ) AS col2, - 28 col0
----
-51
-28

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-360
SELECT ALL - 0 * + CAST( + MIN( - 65 ) AS DECIMAL ) * 5 + NULLIF ( 48, 43 ) + - - AVG ( + 89 ) / + 39 * + + CAST( NULL AS SIGNED ) + - - 60 * 56 + + - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL - 0 * + CAST ( + MIN ( - 65 ) AS REAL ) * 5 + NULLIF ( 48, 43 ) + - - AVG ( + 89 ) / + 39 * + + CAST ( NULL AS INTEGER ) + - - 60 * 56 + + - 43 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-361
SELECT ALL 65 * MAX( DISTINCT + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL 65 * MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT ALL ( MAX( - - 6 ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL ( MAX ( - - 6 ) ) AS col2
----
6

query I rowsort
SELECT + + ( COALESCE ( - CASE 37 WHEN + 84 THEN - COALESCE ( - 99, 94 * 35 ) WHEN + 82 THEN NULLIF ( - 74, + 60 ) - + COALESCE ( - - 60, + + 2 * 54 ) * 27 END, + ( - 64 ) ) ) + + 88
----
24

query I rowsort
SELECT - 73 + - 67 AS col0
----
-140

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

query I rowsort
SELECT ALL - + 7 + - 33
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-367
SELECT DISTINCT - ( - 82 ) + - 66 * SUM( DISTINCT + - 99 ) DIV + + COALESCE ( ( + COUNT( * ) ), + + ( - 25 ) ) + COALESCE ( CASE - 1 WHEN + + 55 * 72 THEN - ( + - 28 ) DIV - 61 END, - - CAST( + 92 AS SIGNED ) DIV - 39 ) * + 43 AS col0, 34 + - - 84 AS col1
----
6530
118

skipif mysql # not compatible
query II rowsort label-367
SELECT DISTINCT - ( - 82 ) + - 66 * SUM ( DISTINCT + - 99 ) / + + COALESCE ( ( + COUNT ( * ) ), + + ( - 25 ) ) + COALESCE ( CASE - 1 WHEN + + 55 * 72 THEN - ( + - 28 ) / - 61 END, - - CAST ( + 92 AS INTEGER ) / - 39 ) * + 43 AS col0, 34 + - - 84 AS col1
----
6530
118

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT - - 0 - CASE + COUNT( * ) WHEN + COUNT( ALL + 35 ) THEN ( - NULLIF ( - 40, 50 + + 37 + 91 / - NULLIF ( - 45, - 50 ) + - + COUNT( * ) * 11 ) ) ELSE NULL END
----
-40

skipif mysql # not compatible
query I rowsort label-368
SELECT - - 0 - CASE + COUNT ( * ) WHEN + COUNT ( ALL + 35 ) THEN ( - NULLIF ( - 40, 50 + + 37 + 91 / - NULLIF ( - 45, - 50 ) + - + COUNT ( * ) * 11 ) ) ELSE NULL END
----
-40

query I rowsort
SELECT ( - 14 ) * - 34
----
476

query I rowsort
SELECT ALL + NULLIF ( - 97, - 63 + 59 ) * + + 97
----
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT 1 * - MIN( ALL - - 73 ) * - 6 + + 16
----
454

skipif mysql # not compatible
query I rowsort label-371
SELECT 1 * - MIN ( ALL - - 73 ) * - 6 + + 16
----
454

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT - 54 * COUNT( * ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-374
SELECT - 54 * COUNT ( * ) col2
----
-54

query I rowsort
SELECT ALL + ( 84 ) - - 66 AS col2
----
150

query II rowsort
SELECT DISTINCT - 84 AS col1, + 69 AS col1
----
-84
69

onlyif mysql # DIV for integer division: 
query II rowsort label-377
SELECT DISTINCT - 55 AS col2, 74 * 57 DIV 13 + + 96
----
-55
420

skipif mysql # not compatible
query II rowsort label-377
SELECT DISTINCT - 55 AS col2, 74 * 57 / 13 + + 96
----
-55
420

query I rowsort
SELECT 26 * 55 AS col2
----
1430

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT ALL COUNT( * ) * 97 * - - ( + - 6 ) * + 23 * - - 86
----
-1151196

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL COUNT ( * ) * 97 * - - ( + - 6 ) * + 23 * - - 86
----
-1151196

query II rowsort
SELECT DISTINCT - 0 AS col1, 28
----
0
28

onlyif mysql # DIV for integer division: 
query I rowsort label-381
SELECT 94 * 74 DIV - 27 + - 73 * - - 24 AS col1
----
-2009

skipif mysql # not compatible
query I rowsort label-381
SELECT 94 * 74 / - 27 + - 73 * - - 24 AS col1
----
-2009

query II rowsort
SELECT 25 AS col1, 0
----
25
0

query I rowsort
SELECT 16 * + + 19 col2
----
304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-384
SELECT 22 + - CASE + 2 WHEN + 2 / - - 71 * + + COUNT( * ) - - AVG ( + 40 ) THEN - - NULLIF ( + COUNT( * ), COUNT( * ) ) * - 19 WHEN CASE ( 15 ) WHEN + 46 / - 51 THEN NULL ELSE - CAST( NULL AS SIGNED ) END * + 9 + - - 82 THEN NULL WHEN 60 * 40 / + + 32 - + 73 + 47 THEN NULL ELSE NULL END * - 35 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-384
SELECT 22 + - CASE + 2 WHEN + 2 / - - 71 * + + COUNT ( * ) - - AVG ( + 40 ) THEN - - NULLIF ( + COUNT ( * ), COUNT ( * ) ) * - 19 WHEN CASE ( 15 ) WHEN + 46 / - 51 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END * + 9 + - - 82 THEN NULL WHEN 60 * 40 / + + 32 - + 73 + 47 THEN NULL ELSE NULL END * - 35 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-385
SELECT + COUNT( * ) * - CAST( - 53 AS SIGNED ) - + COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-385
SELECT + COUNT ( * ) * - CAST ( - 53 AS INTEGER ) - + COUNT ( * ) AS col0
----
52

query I rowsort
SELECT 4 * 25 + + 55
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT DISTINCT + 13 * + COUNT( ALL - 52 )
----
13

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT + 13 * + COUNT ( ALL - 52 )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-388
SELECT - 35 * + 84 + + + 4 + 17 DIV 62 + 63 AS col2
----
-2873

skipif mysql # not compatible
query I rowsort label-388
SELECT - 35 * + 84 + + + 4 + 17 / 62 + 63 AS col2
----
-2873

query II rowsort
SELECT - 72 * + - 89 + NULLIF ( 69, - + 88 ), ( - 4 ) AS col0
----
6477
-4

query I rowsort
SELECT 51 * - 17
----
-867

query I rowsort
SELECT ALL - 41 * - - 37
----
-1517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-392
SELECT DISTINCT ( COUNT( * ) ) + + COUNT( * ) AS col2, - 41 * 14 + + CAST( - 82 AS SIGNED )
----
2
-656

skipif mysql # not compatible
query II rowsort label-392
SELECT DISTINCT ( COUNT ( * ) ) + + COUNT ( * ) AS col2, - 41 * 14 + + CAST ( - 82 AS INTEGER )
----
2
-656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-393
SELECT ALL 6 + - + CASE - 59 WHEN + + ( 71 ) * 93 DIV + 81 THEN NULL ELSE + COALESCE ( + + COUNT( * ), 18 DIV + 92 * + CAST( - + 86 AS SIGNED ) * 19 + + ( 78 ) + - 42 * 71 * 98 ) END
----
5

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL 6 + - + CASE - 59 WHEN + + ( 71 ) * 93 / + 81 THEN NULL ELSE + COALESCE ( + + COUNT ( * ), 18 / + 92 * + CAST ( - + 86 AS INTEGER ) * 19 + + ( 78 ) + - 42 * 71 * 98 ) END
----
5

query I rowsort
SELECT 14 * + + 2 * + - 73
----
-2044

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT MAX( DISTINCT + 10 ) + + - SUM( ALL - - 59 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-395
SELECT MAX ( DISTINCT + 10 ) + + - SUM ( ALL - - 59 ) AS col1
----
-49

query I rowsort
SELECT ALL + 85 * - 58 AS col2
----
-4930

query I rowsort
SELECT - CASE WHEN NOT NULL BETWEEN NULL AND 84 THEN + ( - ( 30 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-398
SELECT ALL + CAST( - 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL + CAST ( - 84 AS INTEGER )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT DISTINCT ( - + 6 ) + COUNT( * ) * - - 72 + 30 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT ( - + 6 ) + COUNT ( * ) * - - 72 + 30 AS col0
----
96

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

skipif mysql # not compatible
query II rowsort label-400
SELECT DISTINCT + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT CASE AVG ( ( + 44 ) ) WHEN - NULLIF ( - + 40, + COUNT( * ) ) / + 78 THEN NULL WHEN - 68 - + + 67 + - 72 * 2 + 98 * COUNT( * ) * + 83 THEN 4 - COUNT( * ) / - - MAX( - + 78 ) * - 31 END + COUNT( * ) + - + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-401
SELECT CASE AVG ( ( + 44 ) ) WHEN - NULLIF ( - + 40, + COUNT ( * ) ) / + 78 THEN NULL WHEN - 68 - + + 67 + - 72 * 2 + 98 * COUNT ( * ) * + 83 THEN 4 - COUNT ( * ) / - - MAX ( - + 78 ) * - 31 END + COUNT ( * ) + - + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT 16 * + + COALESCE ( - 66, - MAX( - 71 ) )
----
-1056

skipif mysql # not compatible
query I rowsort label-402
SELECT 16 * + + COALESCE ( - 66, - MAX ( - 71 ) )
----
-1056

query I rowsort
SELECT - 30 * + - 96
----
2880

query II rowsort
SELECT ALL - 3 AS col2, 97
----
-3
97

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT + 69 + + 69 + MAX( + 67 ) + + 10 * - 45 * - 25 + 52 AS col1
----
11507

skipif mysql # not compatible
query I rowsort label-405
SELECT + 69 + + 69 + MAX ( + 67 ) + + 10 * - 45 * - 25 + 52 AS col1
----
11507

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT 93 + - MIN( DISTINCT 20 ) * - + 85
----
1793

skipif mysql # not compatible
query I rowsort label-407
SELECT 93 + - MIN ( DISTINCT 20 ) * - + 85
----
1793

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-409
SELECT ALL + 8 / + CAST( NULL AS SIGNED ) - + + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL + 8 / + CAST ( NULL AS INTEGER ) - + + 57 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-410
SELECT DISTINCT + CAST( - 60 AS SIGNED ) * + - SUM( - - 17 ) * + + 98 + + - 25 col1, + 60 + + 55 * + 41 + 97 AS col1
----
99935
2412

skipif mysql # not compatible
query II rowsort label-410
SELECT DISTINCT + CAST ( - 60 AS INTEGER ) * + - SUM ( - - 17 ) * + + 98 + + - 25 col1, + 60 + + 55 * + 41 + 97 AS col1
----
99935
2412

onlyif mysql # DIV for integer division: 
query II rowsort label-411
SELECT ALL - 88, 62 DIV - 70 AS col0
----
-88
0

skipif mysql # not compatible
query II rowsort label-411
SELECT ALL - 88, 62 / - 70 AS col0
----
-88
0

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

skipif mysql # not compatible
query I rowsort label-412
SELECT 98 * - COUNT ( * ) + + - 25 AS col0
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-413
SELECT DISTINCT - 58 AS col1, 1 + COUNT( * ) + + - ( + 19 ) AS col0
----
-58
-17

skipif mysql # not compatible
query II rowsort label-413
SELECT DISTINCT - 58 AS col1, 1 + COUNT ( * ) + + - ( + 19 ) AS col0
----
-58
-17

query I rowsort
SELECT ALL - ( + ( 28 ) ) AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-415
SELECT - 13 DIV + + 50 + + + NULLIF ( + + COUNT( * ), + 95 + 54 * + 42 * - - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-415
SELECT - 13 / + + 50 + + + NULLIF ( + + COUNT ( * ), + 95 + 54 * + 42 * - - 55 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT 42 + - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-416
SELECT 42 + - COUNT ( * )
----
41

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

query I rowsort
SELECT 61 * - 59 AS col2
----
-3599

query I rowsort
SELECT 32 * + 38
----
1216

onlyif mysql # aggregate syntax: 
query II rowsort label-420
SELECT ALL - COUNT( * ) col2, 86 * 39
----
-1
3354

skipif mysql # not compatible
query II rowsort label-420
SELECT ALL - COUNT ( * ) col2, 86 * 39
----
-1
3354

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

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT + ( + COUNT ( * ) ) * + - COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT 29, - 9 AS col2
----
29
-9

query II rowsort
SELECT + 56 AS col2, 94 AS col0
----
56
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-424
SELECT ALL 30 + - - COUNT( * ) DIV + + 70
----
30

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL 30 + - - COUNT ( * ) / + + 70
----
30

query I rowsort
SELECT ALL 6 + - 93
----
-87

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

query I rowsort
SELECT DISTINCT - COALESCE ( - 82, - 49 ) AS col1
----
82

query II rowsort
SELECT + 22 AS col0, + 1 AS col2
----
22
1

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

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL - + 28 + + + ( + CAST ( + 28 AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT ALL - NULLIF ( - - 41, 56 ) + 92 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT DISTINCT COUNT( DISTINCT NULLIF ( - 32, + 45 ) )
----
1

skipif mysql # not compatible
query I rowsort label-431
SELECT DISTINCT COUNT ( DISTINCT NULLIF ( - 32, + 45 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT - MAX( DISTINCT 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-432
SELECT - MAX ( DISTINCT 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-433
SELECT - COUNT( * ) AS col0, ( - 39 ) * - + 17 * 14 * + 84 * - - SUM( DISTINCT + - 4 ) AS col0
----
-1
-3118752

skipif mysql # not compatible
query II rowsort label-433
SELECT - COUNT ( * ) AS col0, ( - 39 ) * - + 17 * 14 * + 84 * - - SUM ( DISTINCT + - 4 ) AS col0
----
-1
-3118752

query II rowsort
SELECT ALL - 64 + - 55 AS col1, 39
----
-119
39

onlyif mysql # DIV for integer division: 
query I rowsort label-435
SELECT + 78 DIV - 81 * + 94 + - 85 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-435
SELECT + 78 / - 81 * + 94 + - 85 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-436
SELECT ALL 69, + MAX( ALL 30 ) * - 68 AS col2
----
69
-2040

skipif mysql # not compatible
query II rowsort label-436
SELECT ALL 69, + MAX ( ALL 30 ) * - 68 AS col2
----
69
-2040

query II rowsort
SELECT - 91, - 13 AS col2
----
-91
-13

query I rowsort
SELECT + 91 * - 40 + 6
----
-3634

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-441
SELECT COUNT( - + CAST( NULL AS SIGNED ) ) AS col0, - ( COUNT( * ) ) + + MIN( ALL - 93 ) * - 97 DIV + + COUNT( * )
----
0
9020

skipif mysql # not compatible
query II rowsort label-441
SELECT COUNT ( - + CAST ( NULL AS INTEGER ) ) AS col0, - ( COUNT ( * ) ) + + MIN ( ALL - 93 ) * - 97 / + + COUNT ( * )
----
0
9020

query I rowsort
SELECT - NULLIF ( - 96, - ( + 1 ) )
----
96

query I rowsort
SELECT + 58 + 39 AS col0
----
97

query I rowsort
SELECT + - 18 * 42 AS col2
----
-756

query I rowsort
SELECT + + 1 + + + 91 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL COUNT( * ) * - MIN( DISTINCT + 58 ) * - 75 + + 4 AS col0
----
4354

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL COUNT ( * ) * - MIN ( DISTINCT + 58 ) * - 75 + + 4 AS col0
----
4354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-447
SELECT ALL COALESCE ( + CAST( NULL AS SIGNED ), + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL COALESCE ( + CAST ( NULL AS INTEGER ), + 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-448
SELECT + 8 + 17 AS col0, - CAST( + + 67 AS SIGNED ) + + MAX( 16 ) AS col1
----
25
-51

skipif mysql # not compatible
query II rowsort label-448
SELECT + 8 + 17 AS col0, - CAST ( + + 67 AS INTEGER ) + + MAX ( 16 ) AS col1
----
25
-51

query I rowsort
SELECT + 85 + - 29
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT + COUNT( * ) * + COALESCE ( 62, - 94, + 30 * + - 22 * 59 + 36 ) col2
----
62

skipif mysql # not compatible
query I rowsort label-450
SELECT + COUNT ( * ) * + COALESCE ( 62, - 94, + 30 * + - 22 * 59 + 36 ) col2
----
62

query I rowsort
SELECT + 14 - + - 0 * + + 69
----
14

query I rowsort
SELECT + NULLIF ( - 99, + 40 )
----
-99

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

skipif mysql # not compatible
query I rowsort label-453
SELECT ( - + SUM ( + 55 ) )
----
-55

query II rowsort
SELECT ( + COALESCE ( 34, - ( + 75 ) ) ), + 78 AS col2
----
34
78

onlyif mysql # aggregate syntax: 
query II rowsort label-455
SELECT ( + - MIN( ALL 0 ) ), 11 AS col1
----
0
11

skipif mysql # not compatible
query II rowsort label-455
SELECT ( + - MIN ( ALL 0 ) ), 11 AS col1
----
0
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT CASE - MIN( - 42 ) WHEN 38 THEN - - 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-457
SELECT CASE - MIN ( - 42 ) WHEN 38 THEN - - 1 END
----
NULL

query I rowsort
SELECT DISTINCT - ( - NULLIF ( 67, + + 97 ) ) * 61 - + 2 + - - 36 + - 97 AS col0
----
4024

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT NULLIF ( + COUNT( * ), 65 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-459
SELECT NULLIF ( + COUNT ( * ), 65 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-460
SELECT ALL 21 * 30 * 39 * - + COUNT( ALL 67 ) + CAST( + 49 AS SIGNED ) + - + COUNT( * ) * CAST( - 95 AS SIGNED ) DIV + 68 AS col2
----
-24520

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL 21 * 30 * 39 * - + COUNT ( ALL 67 ) + CAST ( + 49 AS INTEGER ) + - + COUNT ( * ) * CAST ( - 95 AS INTEGER ) / + 68 AS col2
----
-24520

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-463
SELECT - 64 * MAX( 31 ) * + 58 + + 96 + 29 DIV - - ( - 55 ) + + 10 + 77 * - COALESCE ( MAX( 63 ), - + 40, - 23 + - + 47 - COUNT( * ) - + + 85 + + 78 )
----
-119817

skipif mysql # not compatible
query I rowsort label-463
SELECT - 64 * MAX ( 31 ) * + 58 + + 96 + 29 / - - ( - 55 ) + + 10 + 77 * - COALESCE ( MAX ( 63 ), - + 40, - 23 + - + 47 - COUNT ( * ) - + + 85 + + 78 )
----
-119817

onlyif mysql # DIV for integer division: 
query I rowsort label-464
SELECT - 88 DIV - - 55
----
-1

skipif mysql # not compatible
query I rowsort label-464
SELECT - 88 / - - 55
----
-1

query I rowsort
SELECT + 0 + + 50 col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-466
SELECT - 6 * + - 23 DIV COUNT( * )
----
138

skipif mysql # not compatible
query I rowsort label-466
SELECT - 6 * + - 23 / COUNT ( * )
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT COALESCE ( 1, - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-467
SELECT COALESCE ( 1, - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT - MIN( ALL + 56 ) + 66
----
10

skipif mysql # not compatible
query I rowsort label-468
SELECT - MIN ( ALL + 56 ) + 66
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-469
SELECT + 89 * - 3 - - 45 DIV - CAST( - 98 AS SIGNED ) DIV 10 * + 28 + 77 + + 51 - - - COUNT( * ) + - 94 * - 93 AS col2
----
8602

skipif mysql # not compatible
query I rowsort label-469
SELECT + 89 * - 3 - - 45 / - CAST ( - 98 AS INTEGER ) / 10 * + 28 + 77 + + 51 - - - COUNT ( * ) + - 94 * - 93 AS col2
----
8602

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL + 69 * - ( + MIN( ALL + - 23 ) )
----
1587

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL + 69 * - ( + MIN ( ALL + - 23 ) )
----
1587

query I rowsort
SELECT DISTINCT + + 70 AS col0
----
70

query I rowsort
SELECT DISTINCT - 9 * + ( + 96 ) - - 52 AS col1
----
-812

query I rowsort
SELECT ALL + - 92 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT - + 2 * - + COUNT( * ) + - 65 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-474
SELECT - + 2 * - + COUNT ( * ) + - 65 AS col2
----
-63

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-477
SELECT - 4 * + MIN( 71 ) + 14 + + 79 + + 5 + CAST( NULL AS SIGNED ) AS col1, 87 DIV - 6
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-477
SELECT - 4 * + MIN ( 71 ) + 14 + + 79 + + 5 + CAST ( NULL AS INTEGER ) AS col1, 87 / - 6
----
NULL
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT ALL - ( + 32 ) * + - NULLIF ( COUNT( * ), + 49 ) * + - 3
----
-96

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL - ( + 32 ) * + - NULLIF ( COUNT ( * ), + 49 ) * + - 3
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-479
SELECT - 51 * - 9, - MIN( ALL - 1 ) * - COUNT( + + 63 ) + - CASE + - 1 WHEN + 81 * - 95 + + 25 THEN + - 3 * + 52 WHEN + COUNT( * ) THEN NULL ELSE NULL END AS col1
----
459
NULL

skipif mysql # not compatible
query II rowsort label-479
SELECT - 51 * - 9, - MIN ( ALL - 1 ) * - COUNT ( + + 63 ) + - CASE + - 1 WHEN + 81 * - 95 + + 25 THEN + - 3 * + 52 WHEN + COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
459
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-480
SELECT - 78 DIV - 74 AS col2, - 83 * - 85
----
1
7055

skipif mysql # not compatible
query II rowsort label-480
SELECT - 78 / - 74 AS col2, - 83 * - 85
----
1
7055

onlyif mysql # DIV for integer division: 
query I rowsort label-481
SELECT DISTINCT + 59 DIV - - 24 + 40 + ( 26 )
----
68

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT + 59 / - - 24 + 40 + ( 26 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-482
SELECT - 97 DIV 13 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-482
SELECT - 97 / 13 AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-483
SELECT + 2 DIV 3
----
0

skipif mysql # not compatible
query I rowsort label-483
SELECT + 2 / 3
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT - 90 + - NULLIF ( MIN( ALL + 65 ), + + 70 ) + - + 59 + - COUNT( * ) AS col2
----
-215

skipif mysql # not compatible
query I rowsort label-485
SELECT - 90 + - NULLIF ( MIN ( ALL + 65 ), + + 70 ) + - + 59 + - COUNT ( * ) AS col2
----
-215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-486
SELECT + CASE 94 WHEN + ( NULLIF ( 15, + CASE - ( - COUNT( * ) ) WHEN COUNT( * ) THEN 75 * - - 75 + - SUM( ALL - - 41 ) - + 58 / - 27 + 18 * + 90 + + COUNT( * ) WHEN + ( - + 90 ) THEN NULL WHEN - - 22 THEN - 73 * + - 34 / + - 3 * - AVG ( DISTINCT 98 ) + CAST( NULL AS SIGNED ) - + + 90 / - + 81 * - - COUNT( * ) * + + 4 * - 17 * - 48 * - 24 ELSE - 94 END ) ) THEN - 25 WHEN - 74 THEN NULL END - + - 22 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-486
SELECT + CASE 94 WHEN + ( NULLIF ( 15, + CASE - ( - COUNT ( * ) ) WHEN COUNT ( * ) THEN 75 * - - 75 + - SUM ( ALL - - 41 ) - + 58 / - 27 + 18 * + 90 + + COUNT ( * ) WHEN + ( - + 90 ) THEN NULL WHEN - - 22 THEN - 73 * + - 34 / + - 3 * - AVG ( DISTINCT 98 ) + CAST ( NULL AS INTEGER ) - + + 90 / - + 81 * - - COUNT ( * ) * + + 4 * - 17 * - 48 * - 24 ELSE - 94 END ) ) THEN - 25 WHEN - 74 THEN NULL END - + - 22 + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-487
SELECT ALL 33 AS col2, + 2 DIV 62 AS col0
----
33
0

skipif mysql # not compatible
query II rowsort label-487
SELECT ALL 33 AS col2, + 2 / 62 AS col0
----
33
0

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT ALL + 18 + + + 68 + - + 18 + - 13 - - MIN( + 96 ) + - - 81 * + + 35 * ( - 27 ) - + - 4 * + + 44 AS col0
----
-76218

skipif mysql # not compatible
query I rowsort label-488
SELECT ALL + 18 + + + 68 + - + 18 + - 13 - - MIN ( + 96 ) + - - 81 * + + 35 * ( - 27 ) - + - 4 * + + 44 AS col0
----
-76218

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT - CASE - + COUNT( * ) WHEN - - 72 THEN - 68 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-489
SELECT - CASE - + COUNT ( * ) WHEN - - 72 THEN - 68 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-490
SELECT - 54 * - + CAST( - - 34 AS DECIMAL ) + 43 * - - ( - 56 ) * + 24 * + MIN( - 53 ) * - COUNT( * ) * + - 91 - + - ( + 39 ) + + + COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT - 54 * - + CAST ( - - 34 AS REAL ) + 43 * - - ( - 56 ) * + 24 * + MIN ( - 53 ) * - COUNT ( * ) * + - 91 - + - ( + 39 ) + + + COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + 83 AS col2, - 42
----
83
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-492
SELECT 73 DIV - + COALESCE ( + - 52, COUNT( * ), + + 10 + + 20 ) + - 10 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-492
SELECT 73 / - + COALESCE ( + - 52, COUNT ( * ), + + 10 + + 20 ) + - 10 AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT CAST( + AVG ( - ( - 82 ) ) AS SIGNED ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-493
SELECT CAST ( + AVG ( - ( - 82 ) ) AS INTEGER ) AS col0
----
82

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

query I rowsort
SELECT + NULLIF ( + 41, - + 58 * + 81 ) + - 41 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-496
SELECT CAST( 17 AS SIGNED ) * - 22 + + CAST( 97 AS SIGNED ) + - - 45 + - COALESCE ( - 64, + 50 ) * - 62 + + 92
----
-4108

skipif mysql # not compatible
query I rowsort label-496
SELECT CAST ( 17 AS INTEGER ) * - 22 + + CAST ( 97 AS INTEGER ) + - - 45 + - COALESCE ( - 64, + 50 ) * - 62 + + 92
----
-4108

onlyif mysql # aggregate syntax: 
query II rowsort label-497
SELECT ALL + COUNT( * ), 47 + 71 AS col1
----
1
118

skipif mysql # not compatible
query II rowsort label-497
SELECT ALL + COUNT ( * ), 47 + 71 AS col1
----
1
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-498
SELECT ALL 22 / - 96 * + CAST( - 63 AS SIGNED ) + + CAST( 11 AS SIGNED ) + - 15 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL 22 / - 96 * + CAST ( - 63 AS INTEGER ) + + CAST ( 11 AS INTEGER ) + - 15 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-499
SELECT ALL + NULLIF ( + 61, - - 61 ) / - 83 + + NULLIF ( + 39, + ( - 80 ) ) + + CAST( NULL AS SIGNED ) / COUNT( * ) * - 36 - + 22 + + COUNT( * ) * + 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL + NULLIF ( + 61, - - 61 ) / - 83 + + NULLIF ( + 39, + ( - 80 ) ) + + CAST ( NULL AS INTEGER ) / COUNT ( * ) * - 36 - + 22 + + COUNT ( * ) * + 69 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-500
SELECT + - MIN( ALL 76 ) DIV COALESCE ( + - ( 6 ), ( + 0 ), + COALESCE ( COUNT( * ), 63 ), + 39 DIV - 85 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-500
SELECT + - MIN ( ALL 76 ) / COALESCE ( + - ( 6 ), ( + 0 ), + COALESCE ( COUNT ( * ), 63 ), + 39 / - 85 ) AS col2
----
12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-502
SELECT ALL + - 36 * + + CASE + - NULLIF ( + 16, + + 42 + - 93 ) WHEN + 14 + - CAST( MAX( ALL 35 ) AS DECIMAL ) THEN NULL WHEN + + CASE + 66 WHEN - 55 THEN NULL WHEN + - 46 + - + 67 THEN NULL ELSE - CAST( - 93 AS SIGNED ) + - CAST( - MAX( + 15 ) AS DECIMAL ) END THEN - CAST( - 60 AS SIGNED ) ELSE + ( - 20 ) + + CASE - 76 WHEN + 65 + + + 50 + + + COUNT( * ) * - + SUM( 89 ) + - SUM( NULLIF ( 6, - 41 * + 62 + - - 22 + - 51 ) ) THEN NULL WHEN 27 + + COALESCE ( - - 43, - - 23, + COUNT( * ) * 98 + 7 * 51 ) * 61 THEN + COUNT( * ) * + 46 ELSE COUNT( * ) END END + 7
----
691

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL + - 36 * + + CASE + - NULLIF ( + 16, + + 42 + - 93 ) WHEN + 14 + - CAST ( MAX ( ALL 35 ) AS REAL ) THEN NULL WHEN + + CASE + 66 WHEN - 55 THEN NULL WHEN + - 46 + - + 67 THEN NULL ELSE - CAST ( - 93 AS INTEGER ) + - CAST ( - MAX ( + 15 ) AS REAL ) END THEN - CAST ( - 60 AS INTEGER ) ELSE + ( - 20 ) + + CASE - 76 WHEN + 65 + + + 50 + + + COUNT ( * ) * - + SUM ( 89 ) + - SUM ( NULLIF ( 6, - 41 * + 62 + - - 22 + - 51 ) ) THEN NULL WHEN 27 + + COALESCE ( - - 43, - - 23, + COUNT ( * ) * 98 + 7 * 51 ) * 61 THEN + COUNT ( * ) * + 46 ELSE COUNT ( * ) END END + 7
----
691

query I rowsort
SELECT + 90 * - 65 AS col0
----
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT 19 * - + MIN( + - 22 ) + + 24 + - + 79
----
363

skipif mysql # not compatible
query I rowsort label-504
SELECT 19 * - + MIN ( + - 22 ) + + 24 + - + 79
----
363

query I rowsort
SELECT ALL + + 69 * + 78 AS col1
----
5382

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT - 82 * + - MAX( - + 81 ) + + - 37 col0
----
-6679

skipif mysql # not compatible
query I rowsort label-506
SELECT - 82 * + - MAX ( - + 81 ) + + - 37 col0
----
-6679

query II rowsort
SELECT 81 * + 63 + - 48 AS col1, - 72 - - ( - - 26 )
----
5055
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-508
SELECT + - 68, 13 DIV - 16 + + 88 + + 17 AS col0
----
-68
105

skipif mysql # not compatible
query II rowsort label-508
SELECT + - 68, 13 / - 16 + + 88 + + 17 AS col0
----
-68
105

query II rowsort
SELECT + - 11 AS col2, 77
----
-11
77

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT - NULLIF ( - - 63, - COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT - NULLIF ( - - 63, - COUNT ( * ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT ALL 9 * - 6 * + 48 + - - MIN( DISTINCT + 21 )
----
-2571

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL 9 * - 6 * + 48 + - - MIN ( DISTINCT + 21 )
----
-2571

query I rowsort
SELECT - 49 * + - 89 AS col0
----
4361

query I rowsort
SELECT DISTINCT + 68 * + 5
----
340

query II rowsort
SELECT 37 - - + 97 + + - 15 AS col2, 35
----
119
35

query I rowsort
SELECT ALL - 30 * - 18 * 59
----
31860

query II rowsort
SELECT ( 4 ) * - - 81 AS col2, + 22 AS col1
----
324
22

query I rowsort
SELECT DISTINCT - - 52 + - + 19 AS col1
----
33

query II rowsort
SELECT - 11, 17 AS col2
----
-11
17

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL - CASE + - 78 WHEN + 78 * - + 53 * + 12 * + 57 + + 55 + 20 THEN NULL WHEN 28 THEN + 24 * - COUNT( * ) / + + 39 / - + 2 END + + + 25 + + 9 + - - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL - CASE + - 78 WHEN + 78 * - + 53 * + 12 * + 57 + + 55 + 20 THEN NULL WHEN 28 THEN + 24 * - COUNT ( * ) / + + 39 / - + 2 END + + + 25 + + 9 + - - 49 AS col0
----
NULL

query I rowsort
SELECT 23 * - + 36
----
-828

query I rowsort
SELECT ALL - 86 + - 39 AS col1
----
-125

query I rowsort
SELECT ALL 55 + ( + + 4 ) AS col0
----
59

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

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL 13 + - COUNT ( * ) * + + COUNT ( * ) AS col1
----
12

query II rowsort
SELECT 51 * + 89 AS col2, + 64
----
4539
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-525
SELECT + ( COALESCE ( - 33, 7 ) ) * ( ( + + 76 ) ) + - 55 - COUNT( * ) - + 25 DIV 37 AS col1
----
-2564

skipif mysql # not compatible
query I rowsort label-525
SELECT + ( COALESCE ( - 33, 7 ) ) * ( ( + + 76 ) ) + - 55 - COUNT ( * ) - + 25 / 37 AS col1
----
-2564

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT DISTINCT + 24 - - COUNT( ALL COALESCE ( 4, - 79 * + 55 + + - 14 + 89 * 9 ) ) + - + 20
----
5

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT + 24 - - COUNT ( ALL COALESCE ( 4, - 79 * + 55 + + - 14 + 89 * 9 ) ) + - + 20
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-527
SELECT + 81 DIV + 15 - - 60 + + COUNT( * ) DIV + 75 * + - 80 * - - 77 * - + 25 * + COUNT( + 83 ) * + 56 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-527
SELECT + 81 / + 15 - - 60 + + COUNT ( * ) / + 75 * + - 80 * - - 77 * - + 25 * + COUNT ( + 83 ) * + 56 AS col2
----
65

query I rowsort
SELECT + 31 - - 63
----
94

query II rowsort
SELECT + - ( - NULLIF ( 47, + 38 ) ) AS col0, + 74 AS col1
----
47
74

onlyif mysql # aggregate syntax: 
query II rowsort label-530
SELECT + COALESCE ( + COUNT( * ), ( ( + + 4 ) ), - 35 ) * - - 2 + - - 8 + 42 col2, - 39
----
52
-39

skipif mysql # not compatible
query II rowsort label-530
SELECT + COALESCE ( + COUNT ( * ), ( ( + + 4 ) ), - 35 ) * - - 2 + - - 8 + 42 col2, - 39
----
52
-39

query I rowsort
SELECT + 88 * + 79
----
6952

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT + 58 * - - MAX( + + 71 )
----
4118

skipif mysql # not compatible
query I rowsort label-532
SELECT + 58 * - - MAX ( + + 71 )
----
4118

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT - CASE COUNT( * ) WHEN + COUNT( * ) THEN + 74 WHEN + - 95 + - 45 THEN NULL WHEN - 95 THEN NULL ELSE NULL END + + - 54 AS col1
----
-128

skipif mysql # not compatible
query I rowsort label-533
SELECT - CASE COUNT ( * ) WHEN + COUNT ( * ) THEN + 74 WHEN + - 95 + - 45 THEN NULL WHEN - 95 THEN NULL ELSE NULL END + + - 54 AS col1
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-534
SELECT 34 DIV + + 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-534
SELECT 34 / + + 52 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-535
SELECT COUNT( * ) + 16, + 35 * - 37 - + 81 + - COUNT( ALL - 88 ) AS col0
----
17
-1377

skipif mysql # not compatible
query II rowsort label-535
SELECT COUNT ( * ) + 16, + 35 * - 37 - + 81 + - COUNT ( ALL - 88 ) AS col0
----
17
-1377

query I rowsort
SELECT - 80 - + 66
----
-146

query I rowsort
SELECT ALL - - 54
----
54

query I rowsort
SELECT 36 * + 93 + + - 86 * + 7
----
2746

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-539
SELECT ALL - CAST( - 57 AS SIGNED ) AS col0, 56
----
57
56

skipif mysql # not compatible
query II rowsort label-539
SELECT ALL - CAST ( - 57 AS INTEGER ) AS col0, 56
----
57
56

onlyif mysql # aggregate syntax: 
query II rowsort label-540
SELECT - - 92 * + 32 + + ( 82 ) AS col1, + CASE - 54 WHEN ( - - COUNT( * ) ) THEN NULL WHEN - + 70 THEN NULL ELSE 63 END + + 23 * - + 8
----
3026
-121

skipif mysql # not compatible
query II rowsort label-540
SELECT - - 92 * + 32 + + ( 82 ) AS col1, + CASE - 54 WHEN ( - - COUNT ( * ) ) THEN NULL WHEN - + 70 THEN NULL ELSE 63 END + + 23 * - + 8
----
3026
-121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ( + COUNT( * ) ) + - 50
----
-49

skipif mysql # not compatible
query I rowsort label-542
SELECT ( + COUNT ( * ) ) + - 50
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-543
SELECT 36 DIV + NULLIF ( - COUNT( DISTINCT + 54 ), + 24 ) * - - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-543
SELECT 36 / + NULLIF ( - COUNT ( DISTINCT + 54 ), + 24 ) * - - COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT ALL COALESCE ( - 75, - COUNT( * ), - 15, + 35 ) + + 98
----
23

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL COALESCE ( - 75, - COUNT ( * ), - 15, + 35 ) + + 98
----
23

query I rowsort
SELECT - + 70 * + NULLIF ( - + 71, - 6 ) + 41 + + 19 - + 16 * + 58 * - 22
----
25446

query I rowsort
SELECT 85 * + 60 * 17 * - - 65
----
5635500

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-548
SELECT - COUNT( * ) * - 38 DIV + ( + 27 ) + - 7
----
-6

skipif mysql # not compatible
query I rowsort label-548
SELECT - COUNT ( * ) * - 38 / + ( + 27 ) + - 7
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT 75 + + ( - - ( NULLIF ( 68, - NULLIF ( + MIN( 83 ), + + 91 ) ) ) ) + 27 AS col0
----
170

skipif mysql # not compatible
query I rowsort label-549
SELECT 75 + + ( - - ( NULLIF ( 68, - NULLIF ( + MIN ( 83 ), + + 91 ) ) ) ) + 27 AS col0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT DISTINCT + 26 + + CASE + - 15 WHEN + 73 THEN NULL WHEN + 82 THEN COUNT( * ) + + 5 END + + + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT + 26 + + CASE + - 15 WHEN + 73 THEN NULL WHEN + 82 THEN COUNT ( * ) + + 5 END + + + 80 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-551
SELECT - MAX( + - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-551
SELECT - MAX ( + - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 9 + + + 83 AS col2
----
92

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

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL - 55 + + COUNT ( * ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT COUNT( * ) * - 11 col2
----
-11

skipif mysql # not compatible
query I rowsort label-554
SELECT COUNT ( * ) * - 11 col2
----
-11

query II rowsort
SELECT 31, + 26 AS col1
----
31
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-556
SELECT 51 - + + 54 * - 31 + - 54 + - MIN( DISTINCT + 34 ) + CAST( NULL AS SIGNED ) / - 74 - - - 85 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-556
SELECT 51 - + + 54 * - 31 + - 54 + - MIN ( DISTINCT + 34 ) + CAST ( NULL AS INTEGER ) / - 74 - - - 85 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT 57 + + 28 * - 32 + + ( + - COUNT( * ) ) + - 97 + 52 AS col0
----
-885

skipif mysql # not compatible
query I rowsort label-558
SELECT 57 + + 28 * - 32 + + ( + - COUNT ( * ) ) + - 97 + 52 AS col0
----
-885

query I rowsort
SELECT 93 + - + 12 AS col0
----
81

query I rowsort
SELECT 96 * CASE - 19 WHEN + 79 * 18 / + 45 THEN - 0 END AS col1
----
NULL

query I rowsort
SELECT ALL + 10 * + 17 AS col2
----
170

query I rowsort
SELECT DISTINCT + 37 * 48 AS col2
----
1776

onlyif mysql # aggregate syntax: 
query II rowsort label-563
SELECT COUNT( * ) * + COUNT( * ) + - 59, 28 col1
----
-58
28

skipif mysql # not compatible
query II rowsort label-563
SELECT COUNT ( * ) * + COUNT ( * ) + - 59, 28 col1
----
-58
28

query I rowsort
SELECT - COALESCE ( - - 43, - - 43 ) * - 84
----
3612

query I rowsort
SELECT DISTINCT - 65 * + 52
----
-3380

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT NULLIF ( + 47, 73 / - 90 - COUNT( * ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-566
SELECT NULLIF ( + 47, 73 / - 90 - COUNT ( * ) ) AS col2
----
47

query I rowsort
SELECT - 0 + + 23
----
23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-569
SELECT - 72 DIV + 10
----
-7

skipif mysql # not compatible
query I rowsort label-569
SELECT - 72 / + 10
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-570
SELECT + ( + + COUNT( * ) ) * + 3 AS col2, + 37 AS col0
----
3
37

skipif mysql # not compatible
query II rowsort label-570
SELECT + ( + + COUNT ( * ) ) * + 3 AS col2, + 37 AS col0
----
3
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-571
SELECT + - 9 + + + COUNT( * ) + + NULLIF ( - 72, + CAST( - AVG ( ALL + + 17 ) AS SIGNED ) ) * + 11 + COUNT( * ) * CASE 53 WHEN + 88 THEN - 64 WHEN + 35 THEN - - 18 END AS col1, + 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-571
SELECT + - 9 + + + COUNT ( * ) + + NULLIF ( - 72, + CAST ( - AVG ( ALL + + 17 ) AS INTEGER ) ) * + 11 + COUNT ( * ) * CASE 53 WHEN + 88 THEN - 64 WHEN + 35 THEN - - 18 END AS col1, + 72
----
NULL
72

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT DISTINCT + 4 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT + 4 / - 81
----
0

query I rowsort
SELECT - 85 * - 1 + 74 + - 53
----
106

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

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

query II rowsort
SELECT DISTINCT 70 * + - 80 * - + 64, 71 + 62 AS col0
----
358400
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-576
SELECT DISTINCT + COUNT( * ) * - + 85 * + 81 + + 27 DIV + - COUNT( * ) DIV - + COUNT( * ) + + - MIN( - 29 ) DIV + - 75 col1
----
-6858

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT + COUNT ( * ) * - + 85 * + 81 + + 27 / + - COUNT ( * ) / - + COUNT ( * ) + + - MIN ( - 29 ) / + - 75 col1
----
-6858

query I rowsort
SELECT + 58 * - 32
----
-1856

query I rowsort
SELECT - 97 - + ( + 62 ) - 15 * - - 25 * + 65 AS col1
----
-24534

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT + 14 * + NULLIF ( - - COALESCE ( 45, + + 74 ), - 21 ) - - 1 * + - COUNT( * ) - + - 28 AS col0
----
657

skipif mysql # not compatible
query I rowsort label-579
SELECT + 14 * + NULLIF ( - - COALESCE ( 45, + + 74 ), - 21 ) - - 1 * + - COUNT ( * ) - + - 28 AS col0
----
657

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT + COUNT( ALL - - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-580
SELECT + COUNT ( ALL - - 58 )
----
1

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

query I rowsort
SELECT DISTINCT 73 + 77 col1
----
150

query I rowsort
SELECT ALL + 78 + - + 30
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT + COUNT( * ) - 56 col1
----
-55

skipif mysql # not compatible
query I rowsort label-584
SELECT + COUNT ( * ) - 56 col1
----
-55

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-586
SELECT + ( - 3 ) DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-586
SELECT + ( - 3 ) / 99 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-587
SELECT ALL 78 - + CASE - 64 WHEN + + 87 THEN - - ( - - CAST( NULL AS DECIMAL ) ) END, ( - 49 ) col0
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-587
SELECT ALL 78 - + CASE - 64 WHEN + + 87 THEN - - ( - - CAST ( NULL AS REAL ) ) END, ( - 49 ) col0
----
NULL
-49

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

skipif mysql # not compatible
query I rowsort label-588
SELECT - ( - ( COUNT ( * ) ) ) * - 53 / 67
----
0

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

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

query I rowsort
SELECT ALL 72 * + 13 * 56
----
52416

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT DISTINCT MAX( + - 31 ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-591
SELECT DISTINCT MAX ( + - 31 ) col1
----
-31

query I rowsort
SELECT + ( + + ( ( - 40 ) ) ) + - 61
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT ALL MAX( DISTINCT + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL MAX ( DISTINCT + 5 ) AS col2
----
5

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

skipif mysql # not compatible
query I rowsort label-594
SELECT + COUNT ( * ) * + 19 / 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-595
SELECT ALL 36 * - - 1 * - 3 * - 95, COUNT( * ) AS col2
----
10260
1

skipif mysql # not compatible
query II rowsort label-595
SELECT ALL 36 * - - 1 * - 3 * - 95, COUNT ( * ) AS col2
----
10260
1

query II rowsort
SELECT DISTINCT 4, - 70 AS col1
----
4
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT - ( - 24 ) + - + COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-597
SELECT - ( - 24 ) + - + COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-598
SELECT ALL MAX( ALL - - 46 ) col0, + 11 AS col0
----
46
11

skipif mysql # not compatible
query II rowsort label-598
SELECT ALL MAX ( ALL - - 46 ) col0, + 11 AS col0
----
46
11

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT + COUNT( + + 33 ) * + + 42 col2
----
42

skipif mysql # not compatible
query I rowsort label-599
SELECT + COUNT ( + + 33 ) * + + 42 col2
----
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT + COALESCE ( NULLIF ( CASE + ( + - COUNT( * ) ) WHEN + - COUNT( * ) THEN + + 7 WHEN + 95 * + COUNT( * ) / + 86 + - 13 + ( + 13 ) * - 95 * 77 THEN - 22 END, - + 72 + - + 16 * - 30 * 98 - + - 42 ), 20 * 74 ) - - 80 * - + 5
----
-393

skipif mysql # not compatible
query I rowsort label-601
SELECT + COALESCE ( NULLIF ( CASE + ( + - COUNT ( * ) ) WHEN + - COUNT ( * ) THEN + + 7 WHEN + 95 * + COUNT ( * ) / + 86 + - 13 + ( + 13 ) * - 95 * 77 THEN - 22 END, - + 72 + - + 16 * - 30 * 98 - + - 42 ), 20 * 74 ) - - 80 * - + 5
----
-393

query I rowsort
SELECT + + 44 + - - 3
----
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT - + SUM( DISTINCT 3 ) * + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-604
SELECT - + SUM ( DISTINCT 3 ) * + COUNT ( * )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-605
SELECT + CAST( - + 77 AS SIGNED ), - CASE + - 88 WHEN + 67 THEN NULL WHEN - + 25 THEN NULL ELSE - 59 END + - 2 - - + 52 AS col2
----
-77
109

skipif mysql # not compatible
query II rowsort label-605
SELECT + CAST ( - + 77 AS INTEGER ), - CASE + - 88 WHEN + 67 THEN NULL WHEN - + 25 THEN NULL ELSE - 59 END + - 2 - - + 52 AS col2
----
-77
109

onlyif mysql # DIV for integer division: 
query I rowsort label-606
SELECT - - 19 DIV + 30 * - 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-606
SELECT - - 19 / + 30 * - 21 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-607
SELECT DISTINCT COALESCE ( + 80, - 95, - 40 + + - MAX( 92 ) - 56 * - 28, - COALESCE ( - + COUNT( * ), - 16 ) + - 60 ) DIV - 88 * + 67 * 88 + - 2 + + 70 * COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT COALESCE ( + 80, - 95, - 40 + + - MAX ( 92 ) - 56 * - 28, - COALESCE ( - + COUNT ( * ), - 16 ) + - 60 ) / - 88 * + 67 * 88 + - 2 + + 70 * COUNT ( * )
----
68

query I rowsort
SELECT ( - - 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT - COUNT( * ) + - 54
----
-55

skipif mysql # not compatible
query I rowsort label-609
SELECT - COUNT ( * ) + - 54
----
-55

query I rowsort
SELECT + NULLIF ( - - 43, 0 * 26 )
----
43

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-612
SELECT + ( + - CAST( + - 8 AS SIGNED ) ) col2
----
8

skipif mysql # not compatible
query I rowsort label-612
SELECT + ( + - CAST ( + - 8 AS INTEGER ) ) col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT - - 67 + SUM( - + 34 ) * - + 65
----
2277

skipif mysql # not compatible
query I rowsort label-613
SELECT - - 67 + SUM ( - + 34 ) * - + 65
----
2277

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT + 86 * - MAX( ALL - 93 ) * 85 + ( + 34 ) + + 94 * + + COUNT( * )
----
679958

skipif mysql # not compatible
query I rowsort label-614
SELECT + 86 * - MAX ( ALL - 93 ) * 85 + ( + 34 ) + + 94 * + + COUNT ( * )
----
679958

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

skipif mysql # not compatible
query I rowsort label-615
SELECT + + 87 - + ( + COUNT ( * ) ) * - 65 AS col2
----
152

query I rowsort
SELECT NULLIF ( + 11, 24 * + ( - - 47 ) ) AS col0
----
11

query II rowsort
SELECT DISTINCT + 43 AS col0, ( - 62 )
----
43
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL + - COALESCE ( + CASE + COUNT( * ) WHEN 40 THEN NULL WHEN 0 + - 54 THEN NULL ELSE + COUNT( * ) * - 21 END, + 21, - 56 + - 98 ) col2
----
21

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL + - COALESCE ( + CASE + COUNT ( * ) WHEN 40 THEN NULL WHEN 0 + - 54 THEN NULL ELSE + COUNT ( * ) * - 21 END, + 21, - 56 + - 98 ) col2
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-619
SELECT ALL 90 * 1 DIV + 66
----
1

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL 90 * 1 / + 66
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT NULLIF ( - NULLIF ( - + 36, + 12 * - + 41 ), - 37 * - 56 * + - ( 70 ) + - - COUNT( * ) )
----
36

skipif mysql # not compatible
query I rowsort label-620
SELECT NULLIF ( - NULLIF ( - + 36, + 12 * - + 41 ), - 37 * - 56 * + - ( 70 ) + - - COUNT ( * ) )
----
36

query III rowsort
SELECT DISTINCT 37 * 1 AS col0, 11 AS col0, - + 25 * - - ( - + 41 ) + + 58 + 38
----
37
11
1121

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT - COUNT( DISTINCT - + 29 ) * + CASE MAX( ALL + NULLIF ( + - 94, - 81 ) ) WHEN + 82 THEN - - COALESCE ( 31, COUNT( * ), MAX( DISTINCT - - 42 ), + 54 ) - + 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-622
SELECT - COUNT ( DISTINCT - + 29 ) * + CASE MAX ( ALL + NULLIF ( + - 94, - 81 ) ) WHEN + 82 THEN - - COALESCE ( 31, COUNT ( * ), MAX ( DISTINCT - - 42 ), + 54 ) - + 77 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-623
SELECT + CAST( + AVG ( ALL + 19 ) AS SIGNED ) * 62
----
1178

skipif mysql # not compatible
query I rowsort label-623
SELECT + CAST ( + AVG ( ALL + 19 ) AS INTEGER ) * 62
----
1178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-624
SELECT - CASE - 66 WHEN 88 * + CASE + 2 WHEN + + 43 THEN NULL ELSE + 87 - + 67 END * + COALESCE ( + 67, + COALESCE ( - + 51, + - ( + CAST( NULL AS SIGNED ) ), + MIN( 94 ) ) ) + 75 DIV CASE - + 46 WHEN - 35 THEN + 0 - - 30 WHEN - 80 THEN NULL ELSE NULL END + 28 + + 82 * 56 + - 50 THEN - 50 * + 32 WHEN COUNT( * ) THEN NULL WHEN - 43 THEN NULL WHEN + 10 * - - 52 + 76 * - - COUNT( * ) THEN NULL END + - 91 * 29 AS col0, 33 DIV - - 65 * - + 94 + + + ( - + 76 ) AS col2
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-624
SELECT - CASE - 66 WHEN 88 * + CASE + 2 WHEN + + 43 THEN NULL ELSE + 87 - + 67 END * + COALESCE ( + 67, + COALESCE ( - + 51, + - ( + CAST ( NULL AS INTEGER ) ), + MIN ( 94 ) ) ) + 75 / CASE - + 46 WHEN - 35 THEN + 0 - - 30 WHEN - 80 THEN NULL ELSE NULL END + 28 + + 82 * 56 + - 50 THEN - 50 * + 32 WHEN COUNT ( * ) THEN NULL WHEN - 43 THEN NULL WHEN + 10 * - - 52 + 76 * - - COUNT ( * ) THEN NULL END + - 91 * 29 AS col0, 33 / - - 65 * - + 94 + + + ( - + 76 ) AS col2
----
NULL
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT - COALESCE ( COUNT( * ), + 41 + - 67 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-625
SELECT - COALESCE ( COUNT ( * ), + 41 + - 67 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT ALL COUNT( * ) - + ( - 1 )
----
2

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL COUNT ( * ) - + ( - 1 )
----
2

query I rowsort
SELECT ( 22 ) * 57 + + 21
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT MAX( DISTINCT + - ( + 99 ) ) + + 17 * 57 AS col2
----
870

skipif mysql # not compatible
query I rowsort label-628
SELECT MAX ( DISTINCT + - ( + 99 ) ) + + 17 * 57 AS col2
----
870

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-629
SELECT 66 DIV + - 81 AS col0, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-629
SELECT 66 / + - 81 AS col0, + COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT 2 + - 36 + + MIN( DISTINCT 25 )
----
-9

skipif mysql # not compatible
query I rowsort label-630
SELECT 2 + - 36 + + MIN ( DISTINCT 25 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT COUNT( ALL 6 ) + - 74 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-631
SELECT COUNT ( ALL 6 ) + - 74 AS col0
----
-73

query I rowsort
SELECT 92 * - - 91
----
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT 27 + - - 48 * COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-633
SELECT 27 + - - 48 * COUNT ( * )
----
75

query I rowsort
SELECT DISTINCT - 76 * + - 27 AS col0
----
2052

query I rowsort
SELECT ALL 47 + + 54
----
101

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

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT DISTINCT - 26 + COUNT( 49 )
----
-25

skipif mysql # not compatible
query I rowsort label-637
SELECT DISTINCT - 26 + COUNT ( 49 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-638
SELECT ALL + CASE ( - 95 ) WHEN - 88 THEN NULL ELSE COUNT( * ) END + + 47 * - 7 AS col2, + COALESCE ( - 89, 1 * + 43 * + COALESCE ( - 46, - - 74 ) * - 19 )
----
-328
-89

skipif mysql # not compatible
query II rowsort label-638
SELECT ALL + CASE ( - 95 ) WHEN - 88 THEN NULL ELSE COUNT ( * ) END + + 47 * - 7 AS col2, + COALESCE ( - 89, 1 * + 43 * + COALESCE ( - 46, - - 74 ) * - 19 )
----
-328
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-639
SELECT + + COALESCE ( + CAST( 75 AS SIGNED ), + + 81, + ( - + 35 ) ) col0
----
75

skipif mysql # not compatible
query I rowsort label-639
SELECT + + COALESCE ( + CAST ( 75 AS INTEGER ), + + 81, + ( - + 35 ) ) col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT CASE + MIN( - - 82 ) WHEN + + 9 * - 72 THEN + 4 * - + COUNT( * ) * - 56 WHEN - 8 THEN + 10 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-640
SELECT CASE + MIN ( - - 82 ) WHEN + + 9 * - 72 THEN + 4 * - + COUNT ( * ) * - 56 WHEN - 8 THEN + 10 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-641
SELECT CAST( 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-641
SELECT CAST ( 54 AS INTEGER )
----
54

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

query II rowsort
SELECT ALL + - 43 + + 84, 0 AS col2
----
41
0

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

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

query I rowsort
SELECT ALL 76 + + 75
----
151

query I rowsort
SELECT + 15 * 82 * - 63
----
-77490

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

query I rowsort
SELECT ALL - 75 - - ( + + 55 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT + SUM( - - ( - + 80 ) ) * + 12 + + 3 * - + NULLIF ( - 20, - ( - 16 ) )
----
-900

skipif mysql # not compatible
query I rowsort label-649
SELECT + SUM ( - - ( - + 80 ) ) * + 12 + + 3 * - + NULLIF ( - 20, - ( - 16 ) )
----
-900

query I rowsort
SELECT 67 * + 67 AS col1
----
4489

query II rowsort
SELECT 33 col2, - 18 AS col2
----
33
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-652
SELECT 86 DIV - 70 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-652
SELECT 86 / - 70 AS col2
----
-1

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

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

query I rowsort
SELECT 60 + - 10 * + ( - - 81 ) * + 0 AS col0
----
60

query I rowsort
SELECT 70 * ( - 81 )
----
-5670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-656
SELECT 95 - - 17 DIV + COUNT( * ) + 5 + + - CAST( + + 27 AS SIGNED ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-656
SELECT 95 - - 17 / + COUNT ( * ) + 5 + + - CAST ( + + 27 AS INTEGER ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-657
SELECT 19, 89 * + 90 - + COUNT( * ) - + - 64 AS col1
----
19
8073

skipif mysql # not compatible
query II rowsort label-657
SELECT 19, 89 * + 90 - + COUNT ( * ) - + - 64 AS col1
----
19
8073

query I rowsort
SELECT ALL + 51 + + 56 + - 11 * + + 20 * 77 AS col0
----
-16833

query II rowsort
SELECT 27, - 29 AS col0
----
27
-29

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

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

query I rowsort
SELECT 95 + 71 col2
----
166

query I rowsort
SELECT ALL + 34 + 42 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT ALL - 67 + - NULLIF ( + - 74, - 43 + - COALESCE ( 41, - 48 ) - 80 * COUNT( * ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL - 67 + - NULLIF ( + - 74, - 43 + - COALESCE ( 41, - 48 ) - 80 * COUNT ( * ) ) AS col2
----
7

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

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

query I rowsort
SELECT 95 + 69
----
164

query II rowsort
SELECT ALL + 39 AS col2, ( - 56 )
----
39
-56

query I rowsort
SELECT - 50 + - 77 AS col0
----
-127

query I rowsort
SELECT + 55 * - 88
----
-4840

query I rowsort
SELECT - 64 + 25 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT - 33 * 54 - + 54 + 55 + - COUNT( * )
----
-1782

skipif mysql # not compatible
query I rowsort label-670
SELECT - 33 * 54 - + 54 + 55 + - COUNT ( * )
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT ALL + COUNT( * ) * COUNT( * ) - + + 32 - - 27 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL + COUNT ( * ) * COUNT ( * ) - + + 32 - - 27 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-672
SELECT ALL - ( - 62 ) * ( + - 23 ) - 96 * + MIN( 1 ) * + + 23 * - - 75 + 1 + 3 * + 34 + + 48 - - 45 AS col0, + 71
----
-166830
71

skipif mysql # not compatible
query II rowsort label-672
SELECT ALL - ( - 62 ) * ( + - 23 ) - 96 * + MIN ( 1 ) * + + 23 * - - 75 + 1 + 3 * + 34 + + 48 - - 45 AS col0, + 71
----
-166830
71

query I rowsort
SELECT DISTINCT - - ( - 34 )
----
-34

query I rowsort
SELECT + 13 - + 63 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-675
SELECT ALL - COUNT( + ( - 57 ) ) AS col2, 2
----
-1
2

skipif mysql # not compatible
query II rowsort label-675
SELECT ALL - COUNT ( + ( - 57 ) ) AS col2, 2
----
-1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-676
SELECT ( 46 ) + + 31 DIV + 20
----
47

skipif mysql # not compatible
query I rowsort label-676
SELECT ( 46 ) + + 31 / + 20
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-677
SELECT 87, + COUNT( * ) * - - 42 col2
----
87
42

skipif mysql # not compatible
query II rowsort label-677
SELECT 87, + COUNT ( * ) * - - 42 col2
----
87
42

query I rowsort
SELECT 35 * - 5 * - - 57 + 98
----
-9877

query I rowsort
SELECT - 49 * - 83 * - 8 AS col1
----
-32536

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

skipif mysql # not compatible
query I rowsort label-680
SELECT ( + - 85 ) + - CAST ( NULL AS INTEGER ) - 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT 64 * 89 + - - COALESCE ( + ( 25 ), CASE + 78 WHEN - 48 THEN 44 * + COUNT( * ) + - - 4 + + 60 + - 95 END )
----
5721

skipif mysql # not compatible
query I rowsort label-681
SELECT 64 * 89 + - - COALESCE ( + ( 25 ), CASE + 78 WHEN - 48 THEN 44 * + COUNT ( * ) + - - 4 + + 60 + - 95 END )
----
5721

query I rowsort
SELECT ALL - 91 * + + 75 AS col2
----
-6825

query I rowsort
SELECT + CASE 5 WHEN + - ( - 23 ) THEN 8 WHEN - 31 THEN NULL WHEN + 22 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT DISTINCT 78 DIV 28 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT 78 / 28 AS col0
----
2

query I rowsort
SELECT ALL - 65 * + + 80
----
-5200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-686
SELECT - COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col2, - 34
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-686
SELECT - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col2, - 34
----
NULL
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-687
SELECT + CASE WHEN NOT + 97 IN ( - 72, CAST( NULL AS SIGNED ) - + + 67 * - CAST( NULL AS SIGNED ), - 91 - + + 83 ) THEN - - 59 + + - 91 ELSE + + 29 + + 61 END AS col0
----
90

skipif mysql # not compatible
query I rowsort label-687
SELECT + CASE WHEN NOT + 97 IN ( - 72, CAST ( NULL AS INTEGER ) - + + 67 * - CAST ( NULL AS INTEGER ), - 91 - + + 83 ) THEN - - 59 + + - 91 ELSE + + 29 + + 61 END AS col0
----
90

query I rowsort
SELECT DISTINCT + 20 + ( 7 ) AS col2
----
27

query I rowsort
SELECT ALL - 65 + - + 82
----
-147

query I rowsort
SELECT - COALESCE ( 77, - + 12 * - 25 * - + 5 )
----
-77

query I rowsort
SELECT DISTINCT + 47 + + 25 * - 69 col1
----
-1678

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT - 65 + COUNT( * ) * MIN( + - 57 ) + + 90
----
-32

skipif mysql # not compatible
query I rowsort label-692
SELECT - 65 + COUNT ( * ) * MIN ( + - 57 ) + + 90
----
-32

query I rowsort
SELECT DISTINCT 71 + - 41 col2
----
30

query I rowsort
SELECT DISTINCT COALESCE ( - 62, 77 * - - 78 + 13 )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-695
SELECT DISTINCT + 48 DIV ( 20 )
----
2

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT + 48 / ( 20 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-696
SELECT - 35 + CASE - + COALESCE ( 46, 27 + ( + ( 19 ) ), - 14 * + + CAST( + MAX( DISTINCT + 46 ) AS SIGNED ) ) WHEN ( 75 ) - - 19 * + ( - 12 ) THEN - 49 / - CASE - - 26 WHEN - 67 THEN - + COUNT( * ) / + + 44 + - ( + COUNT( * ) ) ELSE NULL END + + 26 ELSE - ( + + 8 ) * + 59 * + 13 + + + CAST( NULL AS SIGNED ) * + 93 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-696
SELECT - 35 + CASE - + COALESCE ( 46, 27 + ( + ( 19 ) ), - 14 * + + CAST ( + MAX ( DISTINCT + 46 ) AS INTEGER ) ) WHEN ( 75 ) - - 19 * + ( - 12 ) THEN - 49 / - CASE - - 26 WHEN - 67 THEN - + COUNT ( * ) / + + 44 + - ( + COUNT ( * ) ) ELSE NULL END + + 26 ELSE - ( + + 8 ) * + 59 * + 13 + + + CAST ( NULL AS INTEGER ) * + 93 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT ALL - MIN( - - 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL - MIN ( - - 54 ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT DISTINCT + MIN( ALL 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT + MIN ( ALL 28 ) AS col2
----
28

query I rowsort
SELECT - 95 + + 42 + + - 92
----
-145

query I rowsort
SELECT ALL - 35 + - - 50
----
15

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

skipif mysql # not compatible
query I rowsort label-701
SELECT - - COUNT ( * ) + + 15 * + 6 AS col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-702
SELECT - + NULLIF ( - - MAX( DISTINCT - - ( 87 ) ), + - COUNT( * ) / + 13 + + 34 ) AS col0, ( - + COUNT( * ) )
----
-87
-1

skipif mysql # not compatible
query II rowsort label-702
SELECT - + NULLIF ( - - MAX ( DISTINCT - - ( 87 ) ), + - COUNT ( * ) / + 13 + + 34 ) AS col0, ( - + COUNT ( * ) )
----
-87
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-703
SELECT + + 49 + + - CAST( + 82 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-703
SELECT + + 49 + + - CAST ( + 82 AS INTEGER )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT + 22 * + 16 * - 80 - 26 + - COUNT( * ) AS col0
----
-28187

skipif mysql # not compatible
query I rowsort label-704
SELECT + 22 * + 16 * - 80 - 26 + - COUNT ( * ) AS col0
----
-28187

onlyif mysql # aggregate syntax: 
query II rowsort label-705
SELECT ALL - 74 * - - 40 + - COUNT( * ) - + + 25 AS col0, 4
----
-2986
4

skipif mysql # not compatible
query II rowsort label-705
SELECT ALL - 74 * - - 40 + - COUNT ( * ) - + + 25 AS col0, 4
----
-2986
4

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

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL SUM ( ( CAST ( NULL AS INTEGER ) ) ) col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-708
SELECT + ( - 31 ) + - 18 + COUNT( * ) * 10 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-708
SELECT + ( - 31 ) + - 18 + COUNT ( * ) * 10 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-709
SELECT ALL + + CASE - 26 WHEN + 67 THEN NULL WHEN CAST( NULL AS SIGNED ) + + 33 THEN - + COUNT( DISTINCT - + 28 ) WHEN 99 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + + CASE - 26 WHEN + 67 THEN NULL WHEN CAST ( NULL AS INTEGER ) + + 33 THEN - + COUNT ( DISTINCT - + 28 ) WHEN 99 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-710
SELECT 39 DIV + + 81 + + 21 + 28 * + - 71
----
-1967

skipif mysql # not compatible
query I rowsort label-710
SELECT 39 / + + 81 + + 21 + 28 * + - 71
----
-1967

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

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

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

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL 94 / + - COUNT ( * )
----
-94

query I rowsort
SELECT + + 23 col1
----
23

query I rowsort
SELECT ALL + NULLIF ( - + 99, 32 ) AS col2
----
-99

query I rowsort
SELECT ALL + 9 * + 97
----
873

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT + COUNT( * ) * 18 * - + 87 AS col0
----
-1566

skipif mysql # not compatible
query I rowsort label-716
SELECT + COUNT ( * ) * 18 * - + 87 AS col0
----
-1566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-717
SELECT ALL 37 * COUNT( * ) DIV 15
----
2

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL 37 * COUNT ( * ) / 15
----
2

query I rowsort
SELECT ALL - 16 * 83 + + 90 AS col2
----
-1238

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

skipif mysql # not compatible
query I rowsort label-719
SELECT + ( + ( - SUM ( + 94 ) ) )
----
-94

query I rowsort
SELECT ALL 72 * - 46
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT + 78 + + COUNT( * ) + - 30
----
49

skipif mysql # not compatible
query I rowsort label-721
SELECT + 78 + + COUNT ( * ) + - 30
----
49

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-723
SELECT CASE + 4 WHEN 8 - CASE 53 WHEN + 34 THEN NULL WHEN 14 THEN - 18 + - - 59 ELSE NULL END THEN NULL WHEN - ( + + 60 ) / + - 78 - CAST( NULL AS SIGNED ) * - - COUNT( * ) * - + 47 THEN + 86 WHEN + 79 THEN + - SUM( - 68 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT CASE + 4 WHEN 8 - CASE 53 WHEN + 34 THEN NULL WHEN 14 THEN - 18 + - - 59 ELSE NULL END THEN NULL WHEN - ( + + 60 ) / + - 78 - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * - + 47 THEN + 86 WHEN + 79 THEN + - SUM ( - 68 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-724
SELECT + 1 * + NULLIF ( - 18, + - ( - 91 ) * - 64 ) * CASE - 71 WHEN - 79 THEN - 89 / + + 49 * + 14 WHEN - CAST( + + 8 AS DECIMAL ) THEN - MIN( DISTINCT 0 ) + 55 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-724
SELECT + 1 * + NULLIF ( - 18, + - ( - 91 ) * - 64 ) * CASE - 71 WHEN - 79 THEN - 89 / + + 49 * + 14 WHEN - CAST ( + + 8 AS REAL ) THEN - MIN ( DISTINCT 0 ) + 55 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-725
SELECT DISTINCT 69 * 84 + - - 47 * - CASE 94 WHEN 32 / - 87 THEN - MIN( - 20 ) WHEN 42 THEN NULL ELSE NULL END + + 76 * 46 * - + 14 AS col1, - 25 AS col2
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-725
SELECT DISTINCT 69 * 84 + - - 47 * - CASE 94 WHEN 32 / - 87 THEN - MIN ( - 20 ) WHEN 42 THEN NULL ELSE NULL END + + 76 * 46 * - + 14 AS col1, - 25 AS col2
----
NULL
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT ALL 38 * + COUNT( 8 ) + - + 16
----
22

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL 38 * + COUNT ( 8 ) + - + 16
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT + ( + SUM( DISTINCT - 66 ) ) - 85 AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-727
SELECT + ( + SUM ( DISTINCT - 66 ) ) - 85 AS col0
----
-151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-728
SELECT COALESCE ( + COUNT( * ), + 23 DIV + + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-728
SELECT COALESCE ( + COUNT ( * ), + 23 / + + 39 ) AS col2
----
1

query I rowsort
SELECT - 36 * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT NULLIF ( + - COUNT( * ), + + 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-730
SELECT NULLIF ( + - COUNT ( * ), + + 53 )
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-733
SELECT DISTINCT ( + - 77 ) * - ( - + 52 ) + + CASE - 86 WHEN + 43 THEN - 66 / - SUM( + 58 ) / COALESCE ( + 68, + 14 * - 12 ) - MIN( 35 ) + COUNT( * ) + - 52 + - - 57 * 67 * AVG ( + CAST( - 21 AS SIGNED ) ) + + 78 / + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT ( + - 77 ) * - ( - + 52 ) + + CASE - 86 WHEN + 43 THEN - 66 / - SUM ( + 58 ) / COALESCE ( + 68, + 14 * - 12 ) - MIN ( 35 ) + COUNT ( * ) + - 52 + - - 57 * 67 * AVG ( + CAST ( - 21 AS INTEGER ) ) + + 78 / + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 75 * - + 51 + - 65
----
-3890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-735
SELECT ALL 23 DIV - COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL 23 / - COUNT ( * ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT ALL + ( + - COUNT( * ) ) * + 44 * - - ( 3 ) + - 23 col1
----
-155

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL + ( + - COUNT ( * ) ) * + 44 * - - ( 3 ) + - 23 col1
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT - 94 - + 77 + 79 + + 32 * - COUNT( * )
----
-124

skipif mysql # not compatible
query I rowsort label-737
SELECT - 94 - + 77 + 79 + + 32 * - COUNT ( * )
----
-124

query I rowsort
SELECT + 82 * - 10 AS col0
----
-820

query I rowsort
SELECT ALL + ( - 11 ) * 35
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL - MAX( ALL 31 ) - + 47
----
-78

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - MAX ( ALL 31 ) - + 47
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT MAX( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-741
SELECT MAX ( 3 )
----
3

query I rowsort
SELECT - NULLIF ( 51, 42 ) * + 17
----
-867

query I rowsort
SELECT ALL ( + 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT ALL 16 - 31 * COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL 16 - 31 * COUNT ( * )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-745
SELECT DISTINCT + 81 DIV - ( + 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT + 81 / - ( + 79 )
----
-1

query I rowsort
SELECT DISTINCT CASE WHEN ( NULL ) IS NULL THEN 62 ELSE NULL END
----
62

query I rowsort
SELECT DISTINCT COALESCE ( 88, - 10 ) col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT ALL + 99 DIV 42 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL + 99 / 42 AS col2
----
2

query I rowsort
SELECT DISTINCT - 8 * - 90 AS col0
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT - 80 * - COUNT( ALL - 97 )
----
80

skipif mysql # not compatible
query I rowsort label-750
SELECT - 80 * - COUNT ( ALL - 97 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL ( - CASE + 28 WHEN MIN( ALL ( - 54 ) ) * - 64 THEN NULL ELSE + SUM( - 46 ) + + ( - 31 ) END ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL ( - CASE + 28 WHEN MIN ( ALL ( - 54 ) ) * - 64 THEN NULL ELSE + SUM ( - 46 ) + + ( - 31 ) END ) AS col0
----
77

query I rowsort
SELECT + 92 + + 48 AS col1
----
140

query I rowsort
SELECT - 85 + 82
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT - 44 * - MAX( DISTINCT 96 )
----
4224

skipif mysql # not compatible
query I rowsort label-754
SELECT - 44 * - MAX ( DISTINCT 96 )
----
4224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-755
SELECT - CASE 63 WHEN 33 + 72 THEN - 82 + 29 * + 16 WHEN - 19 THEN 58 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT - CASE 63 WHEN 33 + 72 THEN - 82 + 29 * + 16 WHEN - 19 THEN 58 END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT - SUM( DISTINCT 27 ) + - COALESCE ( COUNT( * ), 68 + - 65 )
----
-28

skipif mysql # not compatible
query I rowsort label-756
SELECT - SUM ( DISTINCT 27 ) + - COALESCE ( COUNT ( * ), 68 + - 65 )
----
-28

query I rowsort
SELECT DISTINCT + 91 * 1 AS col0
----
91

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

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

query I rowsort
SELECT ALL 26 + 47 AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-760
SELECT + 35 DIV 41 - COALESCE ( 4, - 70 + - COUNT( * ), 38 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-760
SELECT + 35 / 41 - COALESCE ( 4, - 70 + - COUNT ( * ), 38 ) AS col2
----
-4

query I rowsort
SELECT DISTINCT + 92 * 67
----
6164

query I rowsort
SELECT ALL - 37 + + ( 7 ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-763
SELECT 86 + COALESCE ( - CASE + 27 WHEN CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN - 39 WHEN 30 THEN + 55 WHEN + 61 THEN + 58 END, 63, 61 + 54, 68 + 38 * + 14 ) AS col0
----
149

skipif mysql # not compatible
query I rowsort label-763
SELECT 86 + COALESCE ( - CASE + 27 WHEN CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - 39 WHEN 30 THEN + 55 WHEN + 61 THEN + 58 END, 63, 61 + 54, 68 + 38 * + 14 ) AS col0
----
149

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

query I rowsort
SELECT 60 * - 63 col1
----
-3780

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT + 47 * 92 + COUNT( * )
----
4325

skipif mysql # not compatible
query I rowsort label-766
SELECT + 47 * 92 + COUNT ( * )
----
4325

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL + 65 + + NULLIF ( 79 + COUNT( * ), + 4 * 42 + 70 ) col0
----
145

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL + 65 + + NULLIF ( 79 + COUNT ( * ), + 4 * 42 + 70 ) col0
----
145

query I rowsort
SELECT ALL 66 + + 76
----
142

query I rowsort
SELECT 76 + 68 * - 92
----
-6180

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT MIN( + 85 ) + + 98 * + 15
----
1555

skipif mysql # not compatible
query I rowsort label-770
SELECT MIN ( + 85 ) + + 98 * + 15
----
1555

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ALL CASE + 46 WHEN + 16 THEN NULL WHEN - 71 * 33 + - COUNT( * ) THEN 29 WHEN 94 THEN NULL ELSE NULL END * 39 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL CASE + 46 WHEN + 16 THEN NULL WHEN - 71 * 33 + - COUNT ( * ) THEN 29 WHEN 94 THEN NULL ELSE NULL END * 39 col2
----
NULL

query I rowsort
SELECT DISTINCT + 56 + + 42 AS col1
----
98

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

skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT ( 85 ) + COUNT ( * ) AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-774
SELECT DISTINCT + COUNT( * ) * - CAST( - COALESCE ( + COUNT( * ), - 61, 88 * 98, CAST( 79 AS DECIMAL ) * 47 ) / 84 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT + COUNT ( * ) * - CAST ( - COALESCE ( + COUNT ( * ), - 61, 88 * 98, CAST ( 79 AS REAL ) * 47 ) / 84 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT DISTINCT MIN( DISTINCT 0 ) + - 81 * - 19
----
1539

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT MIN ( DISTINCT 0 ) + - 81 * - 19
----
1539

query I rowsort
SELECT 11 * 90
----
990

query I rowsort
SELECT ALL 24 * 53 AS col0
----
1272

query I rowsort
SELECT ALL 82 * - 2
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT COUNT( * ) + 41 col2
----
42

skipif mysql # not compatible
query I rowsort label-779
SELECT COUNT ( * ) + 41 col2
----
42

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

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

query I rowsort
SELECT ALL 76 - 10 AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-782
SELECT - MIN( 34 ) * - 21 + - ( - COUNT( 1 ) ) * + CASE - 64 + - 58 WHEN 31 THEN NULL WHEN 29 * CAST( - 66 AS SIGNED ) THEN + 89 WHEN NULLIF ( + 83, 78 * + ( + 52 ) ) / + 78 THEN + 51 + - 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-782
SELECT - MIN ( 34 ) * - 21 + - ( - COUNT ( 1 ) ) * + CASE - 64 + - 58 WHEN 31 THEN NULL WHEN 29 * CAST ( - 66 AS INTEGER ) THEN + 89 WHEN NULLIF ( + 83, 78 * + ( + 52 ) ) / + 78 THEN + 51 + - 40 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-783
SELECT COUNT( * ) * - NULLIF ( - 81, 79 * + CAST( 0 * 95 AS SIGNED ) )
----
81

skipif mysql # not compatible
query I rowsort label-783
SELECT COUNT ( * ) * - NULLIF ( - 81, 79 * + CAST ( 0 * 95 AS INTEGER ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT - - 77 * COUNT( * ) + ( + 31 + + ( 72 ) )
----
180

skipif mysql # not compatible
query I rowsort label-784
SELECT - - 77 * COUNT ( * ) + ( + 31 + + ( 72 ) )
----
180

query I rowsort
SELECT 11 + + 37 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-786
SELECT DISTINCT + SUM( - NULLIF ( 61, CAST( 39 AS SIGNED ) ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT + SUM ( - NULLIF ( 61, CAST ( 39 AS INTEGER ) ) ) AS col2
----
-61

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

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL MIN ( 81 )
----
81

query I rowsort
SELECT + 10 * 2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT 81 + + 20 DIV - 2 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-789
SELECT 81 + + 20 / - 2 AS col2
----
71

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-791
SELECT - - CASE - 60 WHEN 96 THEN + 84 * 8 WHEN + COUNT( DISTINCT ( CAST( NULL AS SIGNED ) ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-791
SELECT - - CASE - 60 WHEN 96 THEN + 84 * 8 WHEN + COUNT ( DISTINCT ( CAST ( NULL AS INTEGER ) ) ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 60, - 83, 1 )
----
60

query I rowsort
SELECT 60 * 47 AS col0
----
2820

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT - 16 + + COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-794
SELECT - 16 + + COUNT ( * ) AS col1
----
-15

query I rowsort
SELECT ALL 94 col0
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT DISTINCT - MAX( - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT - MAX ( - 24 )
----
24

query I rowsort
SELECT ALL - - 16 + - 27
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT + CAST( - 42 AS SIGNED ) * ( + 86 + + ( 84 ) ) col0
----
-7140

skipif mysql # not compatible
query I rowsort label-799
SELECT + CAST ( - 42 AS INTEGER ) * ( + 86 + + ( 84 ) ) col0
----
-7140

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT DISTINCT NULLIF ( - SUM( + 40 ), NULLIF ( - COUNT( * ), 25 ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT NULLIF ( - SUM ( + 40 ), NULLIF ( - COUNT ( * ), 25 ) ) AS col0
----
-40

query I rowsort
SELECT ALL 56 + + 88 col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT DISTINCT - 51 + + COUNT( * ) + - 31 * 69 AS col0
----
-2189

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT - 51 + + COUNT ( * ) + - 31 * 69 AS col0
----
-2189

query I rowsort
SELECT DISTINCT + 60 * + 20 AS col1
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT MAX( DISTINCT 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-804
SELECT MAX ( DISTINCT 46 ) AS col2
----
46

query I rowsort
SELECT ALL - 33 + 42
----
9

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

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

query I rowsort
SELECT 5 * - 44
----
-220

query I rowsort
SELECT 76 * - 22 col2
----
-1672

query I rowsort
SELECT ALL - 6 + 47 AS col0
----
41

query I rowsort
SELECT 33 * 48 + 85 AS col0
----
1669

query I rowsort
SELECT ALL + 43 * + 31 AS col2
----
1333

query I rowsort
SELECT 95 * + 25 AS col0
----
2375

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT ALL + 70 + - 9 + - 15 * COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL + 70 + - 9 + - 15 * COUNT ( * )
----
46

query I rowsort
SELECT ALL + 34 + - 27 * + 81
----
-2153

query I rowsort
SELECT ALL - 70 - 54
----
-124

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

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

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

query I rowsort
SELECT 91 * - 72
----
-6552

query I rowsort
SELECT 94 + - - 59 AS col1
----
153

query I rowsort
SELECT 71 * - 20 * - 69 - + 97
----
97883

query I rowsort
SELECT 46 * - + 5 AS col2
----
-230

onlyif mysql # DIV for integer division: 
query I rowsort label-822
SELECT ALL - ( 10 ) DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL - ( 10 ) / 83
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-823
SELECT - 10 * - ( + 16 ) * + 15 + - CAST( - CAST( - CAST( - 43 AS SIGNED ) AS SIGNED ) AS SIGNED ) * - 12 AS col1
----
1884

skipif mysql # not compatible
query I rowsort label-823
SELECT - 10 * - ( + 16 ) * + 15 + - CAST ( - CAST ( - CAST ( - 43 AS INTEGER ) AS INTEGER ) AS INTEGER ) * - 12 AS col1
----
1884

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

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT 49 * COUNT ( * ) + - 14 AS col0
----
35

query I rowsort
SELECT 95 + + + 74 + 52 AS col2
----
221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-826
SELECT ALL - COUNT( * ) DIV - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL - COUNT ( * ) / - 94 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-827
SELECT COUNT( * ) / COUNT( * ) + 25 * - CAST( COALESCE ( + 44, MAX( + 9 ) * COUNT( * ) + - ( - 32 ), - COUNT( ALL + 93 ) + - 57 ) + - CAST( NULL AS SIGNED ) * 73 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT COUNT ( * ) / COUNT ( * ) + 25 * - CAST ( COALESCE ( + 44, MAX ( + 9 ) * COUNT ( * ) + - ( - 32 ), - COUNT ( ALL + 93 ) + - 57 ) + - CAST ( NULL AS INTEGER ) * 73 AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT + 41 * + 14
----
574

query I rowsort
SELECT ALL + 12 * - - 34
----
408

query I rowsort
SELECT DISTINCT - 54 * 60 AS col1
----
-3240

query I rowsort
SELECT DISTINCT + 96 * + 48 AS col1
----
4608

onlyif mysql # DIV for integer division: 
query I rowsort label-833
SELECT ( 1 ) DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-833
SELECT ( 1 ) / + 83
----
0

query I rowsort
SELECT + 8 * + + 51 col2
----
408

query I rowsort
SELECT 95 * + + 34 AS col2
----
3230

query I rowsort
SELECT COALESCE ( + - 0, + 72 * - 28 ) AS col0
----
0

query I rowsort
SELECT + 35 + - 49 AS col1
----
-14

query I rowsort
SELECT ALL - 11 + + 33 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT + - COUNT( * ) - - + 86
----
85

skipif mysql # not compatible
query I rowsort label-839
SELECT + - COUNT ( * ) - - + 86
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-840
SELECT ALL + 36 DIV - COALESCE ( 34, COUNT( * ) ) - 30 * 13 AS col1
----
-391

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL + 36 / - COALESCE ( 34, COUNT ( * ) ) - 30 * 13 AS col1
----
-391

query I rowsort
SELECT DISTINCT 45 + - + 99 - 16
----
-70

query I rowsort
SELECT ALL 50 + + 81 + 57 * + 4
----
359

query I rowsort
SELECT + - 55 + - 3 col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT ALL 90 + + + MIN( DISTINCT 75 ) AS col1
----
165

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL 90 + + + MIN ( DISTINCT 75 ) AS col1
----
165

query I rowsort
SELECT - 78 * - - 11 col2
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT + ( + + 39 ) + + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-846
SELECT + ( + + 39 ) + + COUNT ( * ) AS col1
----
40

query II rowsort
SELECT 17 AS col0, + 76 - + + 76
----
17
0

query I rowsort
SELECT ALL 13 * 69
----
897

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-849
SELECT 75 DIV 63 + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-849
SELECT 75 / 63 + + COUNT ( * ) AS col1
----
2

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

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

query I rowsort
SELECT - 88 / - 57 + + - NULLIF ( - 62, 83 ) + CASE - 22 - 87 WHEN 57 + 57 THEN NULL WHEN + 71 THEN + 80 WHEN 30 THEN NULL WHEN 41 THEN NULL END * 30 AS col1
----
NULL

query I rowsort
SELECT - 77 * - 71
----
5467

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-853
SELECT ALL 83 DIV - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL 83 / - COUNT ( * ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT DISTINCT + MIN( ALL + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT + MIN ( ALL + 3 ) AS col1
----
3

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

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

query I rowsort
SELECT - NULLIF ( 28, + 34 ) * 99 + + 93 * 10
----
-1842

query I rowsort
SELECT ALL + 14 * + 48 - - + 43
----
715

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT - 6 DIV + ( + 5 ) + - 96
----
-97

skipif mysql # not compatible
query I rowsort label-858
SELECT - 6 / + ( + 5 ) + - 96
----
-97

query I rowsort
SELECT + 59 + + 19 - 24 + 25 * 13 AS col0
----
379

query I rowsort
SELECT ALL - 12 * 52 col1
----
-624

query I rowsort
SELECT - 35 + 28 AS col0
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-862
SELECT DISTINCT + 59 AS col1, + CAST( NULL AS DECIMAL ) * - + 76
----
59
NULL

skipif mysql # not compatible
query II rowsort label-862
SELECT DISTINCT + 59 AS col1, + CAST ( NULL AS REAL ) * - + 76
----
59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT - ( + + 21 ) * + 8 * 12 + COUNT( * )
----
-2015

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT - ( + + 21 ) * + 8 * 12 + COUNT ( * )
----
-2015

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT ALL + NULLIF ( - NULLIF ( - + COUNT( * ), 9 ), + 15 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL + NULLIF ( - NULLIF ( - + COUNT ( * ), 9 ), + 15 ) AS col0
----
1

query II rowsort
SELECT + 10 AS col0, 25 AS col2
----
10
25

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

skipif mysql # not compatible
query I rowsort label-866
SELECT + MIN ( + + 85 )
----
85

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

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

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

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL + CAST ( NULL AS REAL ) col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-870
SELECT - + 97 + - 42 + - COUNT( * ) DIV 44
----
-139

skipif mysql # not compatible
query I rowsort label-870
SELECT - + 97 + - 42 + - COUNT ( * ) / 44
----
-139

query II rowsort
SELECT + - 20 AS col0, 25
----
-20
25

onlyif mysql # DIV for integer division: 
query I rowsort label-872
SELECT - ( + 10 ) DIV + 2 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-872
SELECT - ( + 10 ) / + 2 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL - MIN( - 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - MIN ( - 4 ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-874
SELECT + - 39 * - 76 * 77 - COUNT( * ) + COUNT( * ) * ( - 12 / - CASE COUNT( + 14 ) WHEN CAST( NULL AS DECIMAL ) THEN 93 + - 23 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-874
SELECT + - 39 * - 76 * 77 - COUNT ( * ) + COUNT ( * ) * ( - 12 / - CASE COUNT ( + 14 ) WHEN CAST ( NULL AS REAL ) THEN 93 + - 23 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT - 19 * 4 * - - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-875
SELECT - 19 * 4 * - - COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT ALL MIN( ALL + + 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL MIN ( ALL + + 84 ) AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-877
SELECT DISTINCT - 9 + - 12 + - + CAST( COUNT( * ) AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT - 9 + - 12 + - + CAST ( COUNT ( * ) AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT ALL + SUM( ALL 33 ) * + 74
----
2442

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL + SUM ( ALL 33 ) * + 74
----
2442

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

skipif mysql # not compatible
query I rowsort label-879
SELECT - COUNT ( - 92 )
----
-1

query I rowsort
SELECT ALL + - 45 + + 96 AS col2
----
51

query I rowsort
SELECT DISTINCT + - 82 + + - 72 AS col2
----
-154

query I rowsort
SELECT ALL 94 + - 75
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-883
SELECT DISTINCT + - 32 + + 37 DIV 30 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT + - 32 + + 37 / 30 AS col1
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT DISTINCT COALESCE ( - 19, - ( COUNT( * ) ) )
----
-19

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT COALESCE ( - 19, - ( COUNT ( * ) ) )
----
-19

query I rowsort
SELECT - ( 96 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT - COALESCE ( MIN( ALL 21 ), 49 )
----
-21

skipif mysql # not compatible
query I rowsort label-887
SELECT - COALESCE ( MIN ( ALL 21 ), 49 )
----
-21

query I rowsort
SELECT ALL COALESCE ( + + ( + ( 92 ) ), + 72 * + 85 + 67 * 4, 72 + 36 ) - - 10 AS col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT DISTINCT SUM( DISTINCT 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT SUM ( DISTINCT 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT DISTINCT COUNT( DISTINCT - - 21 ) - 3 col0
----
-2

skipif mysql # not compatible
query I rowsort label-890
SELECT DISTINCT COUNT ( DISTINCT - - 21 ) - 3 col0
----
-2

query I rowsort
SELECT - ( - - 94 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-892
SELECT - CAST( + - 8 AS SIGNED ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-892
SELECT - CAST ( + - 8 AS INTEGER ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-893
SELECT ALL COALESCE ( + SUM( DISTINCT - - 67 ), + + 97 DIV - 33, - 66 ) - - 93
----
160

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL COALESCE ( + SUM ( DISTINCT - - 67 ), + + 97 / - 33, - 66 ) - - 93
----
160

query I rowsort
SELECT ALL 59 * 62
----
3658

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

skipif mysql # not compatible
query I rowsort label-895
SELECT + COUNT ( + 78 ) * - 97 AS col0
----
-97

query I rowsort
SELECT + 89 * + 58 AS col1
----
5162

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT DISTINCT COUNT( ALL - 45 ) * - - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT COUNT ( ALL - 45 ) * - - COUNT ( * ) col1
----
1

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

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

query I rowsort
SELECT + 53 * 88
----
4664

query I rowsort
SELECT + 29 * - - 79 * + - 2 AS col1
----
-4582

query I rowsort
SELECT + 88 * - 5 col1
----
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-902
SELECT - 14 * ( MIN( DISTINCT - CAST( + 33 AS SIGNED ) ) ) DIV 37 - + 89 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-902
SELECT - 14 * ( MIN ( DISTINCT - CAST ( + 33 AS INTEGER ) ) ) / 37 - + 89 AS col0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-903
SELECT ALL 14 DIV + 16 + 51 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL 14 / + 16 + 51 AS col1
----
51

query I rowsort
SELECT - - 85 * - 82 AS col2
----
-6970

onlyif mysql # DIV for integer division: 
query II rowsort label-905
SELECT - 37 * 49, 26 + 39 DIV - 7 AS col1
----
-1813
21

skipif mysql # not compatible
query II rowsort label-905
SELECT - 37 * 49, 26 + 39 / - 7 AS col1
----
-1813
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-906
SELECT ALL - 49 * - COUNT( * ) + + + ( + CAST( 26 AS SIGNED ) ) + 73 * - CASE MIN( ALL 78 ) * + 81 WHEN 28 THEN COUNT( * ) * 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL - 49 * - COUNT ( * ) + + + ( + CAST ( 26 AS INTEGER ) ) + 73 * - CASE MIN ( ALL 78 ) * + 81 WHEN 28 THEN COUNT ( * ) * 94 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT ALL - 13 * + NULLIF ( + + CAST( - 96 AS SIGNED ), 60 ) + + COUNT( * ) * + 97 AS col2
----
1345

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL - 13 * + NULLIF ( + + CAST ( - 96 AS INTEGER ), 60 ) + + COUNT ( * ) * + 97 AS col2
----
1345

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT - COUNT( * ) * + - 16 * - - 11 + + 38 + 31
----
245

skipif mysql # not compatible
query I rowsort label-908
SELECT - COUNT ( * ) * + - 16 * - - 11 + + 38 + 31
----
245

query I rowsort
SELECT 66 * - - 92 - + 19
----
6053

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT ALL - CASE + - MIN( ALL 81 ) WHEN 30 + - 35 THEN + 33 WHEN - 21 * NULLIF ( 74, - 16 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL - CASE + - MIN ( ALL 81 ) WHEN 30 + - 35 THEN + 33 WHEN - 21 * NULLIF ( 74, - 16 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL CASE - COUNT( * ) WHEN + 28 THEN 37 + + COALESCE ( - 99, 50 ) END + + 58 / - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL CASE - COUNT ( * ) WHEN + 28 THEN 37 + + COALESCE ( - 99, 50 ) END + + 58 / - 81
----
NULL

query I rowsort
SELECT DISTINCT - + 61
----
-61

query I rowsort
SELECT ALL 96 col0
----
96

query I rowsort
SELECT ALL - 30 + - 63 + + ( + 63 )
----
-30

query I rowsort
SELECT - 53 + - - 57 AS col2
----
4

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

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

query I rowsort
SELECT 96 + 5 * + 7 * + + 99
----
3561

query II rowsort
SELECT + 19 * - + 43 col2, + 60 * - 25 col2
----
-817
-1500

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

query I rowsort
SELECT 89 + + 42
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-921
SELECT DISTINCT + 29 DIV - MIN( ALL - 59 )
----
0

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT + 29 / - MIN ( ALL - 59 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-922
SELECT 5 * COUNT( * ) * + CASE + CAST( 23 AS DECIMAL ) WHEN - 44 + 12 * 82 THEN CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT 5 * COUNT ( * ) * + CASE + CAST ( 23 AS REAL ) WHEN - 44 + 12 * 82 THEN CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-923
SELECT ALL + 11 * ( - 83 ) AS col2, - MAX( + 18 ) DIV 38 AS col2
----
-913
0

skipif mysql # not compatible
query II rowsort label-923
SELECT ALL + 11 * ( - 83 ) AS col2, - MAX ( + 18 ) / 38 AS col2
----
-913
0

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT ALL COALESCE ( - 49, + 15, + - 37 ) * - 71 + 58 DIV + 9
----
3485

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL COALESCE ( - 49, + 15, + - 37 ) * - 71 + 58 / + 9
----
3485

query I rowsort
SELECT DISTINCT + 2 * - COALESCE ( - 53, + ( + - 27 ) + - 20 * 50 )
----
106

query I rowsort
SELECT 95 * - 74 AS col1
----
-7030

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT 4 * - NULLIF ( ( - - SUM( + 21 ) ), - ( - 48 ) + - 64 * 37 ) * 91
----
-7644

skipif mysql # not compatible
query I rowsort label-928
SELECT 4 * - NULLIF ( ( - - SUM ( + 21 ) ), - ( - 48 ) + - 64 * 37 ) * 91
----
-7644

query I rowsort
SELECT 10 + 22 * 13 * + 97
----
27752

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT COUNT( * ) - + - 22 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-930
SELECT COUNT ( * ) - + - 22 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-931
SELECT NULLIF ( + + CAST( COUNT( * ) AS SIGNED ), + 76 * + 48 + + ( - 7 ) ) + 12
----
13

skipif mysql # not compatible
query I rowsort label-931
SELECT NULLIF ( + + CAST ( COUNT ( * ) AS INTEGER ), + 76 * + 48 + + ( - 7 ) ) + 12
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-932
SELECT - 98 / - CAST( NULL AS SIGNED ) + 97 + - 94 / + + ( - 12 ) * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT - 98 / - CAST ( NULL AS INTEGER ) + 97 + - 94 / + + ( - 12 ) * 2
----
NULL

query I rowsort
SELECT ALL 0 + - 80 col2
----
-80

query I rowsort
SELECT ALL 76 + - 33
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-935
SELECT CASE - - CAST( NULL AS SIGNED ) WHEN 92 THEN ( + ( 51 ) ) END + + 14 * ( 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-935
SELECT CASE - - CAST ( NULL AS INTEGER ) WHEN 92 THEN ( + ( 51 ) ) END + + 14 * ( 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT ALL ( - - COUNT( * ) ) * 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL ( - - COUNT ( * ) ) * 60 AS col2
----
60

query I rowsort
SELECT DISTINCT - 83 col1
----
-83

query I rowsort
SELECT + + 27 col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-939
SELECT + 79 * + 38 * 48 + - 83 + + + 75 * - NULLIF ( + 48, 4 DIV 77 ) DIV 12 col2
----
143713

skipif mysql # not compatible
query I rowsort label-939
SELECT + 79 * + 38 * 48 + - 83 + + + 75 * - NULLIF ( + 48, 4 / 77 ) / 12 col2
----
143713

query I rowsort
SELECT DISTINCT 0 + + + 81 + + ( - 84 ) AS col0
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT + + NULLIF ( MIN( DISTINCT + 76 ), - 11 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-942
SELECT + + NULLIF ( MIN ( DISTINCT + 76 ), - 11 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT DISTINCT - MAX( + 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT - MAX ( + 51 ) AS col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-944
SELECT + NULLIF ( 88, + CASE ( 1 ) WHEN - 21 THEN 83 * 75 ELSE NULL END + + 83 ) DIV + 52 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-944
SELECT + NULLIF ( 88, + CASE ( 1 ) WHEN - 21 THEN 83 * 75 ELSE NULL END + + 83 ) / + 52 AS col2
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-946
SELECT - CASE - 77 WHEN - 13 THEN - COALESCE ( 71, CAST( - 71 AS SIGNED ), - 57 ) / 96 WHEN 87 * CAST( NULL AS SIGNED ) THEN NULL END / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-946
SELECT - CASE - 77 WHEN - 13 THEN - COALESCE ( 71, CAST ( - 71 AS INTEGER ), - 57 ) / 96 WHEN 87 * CAST ( NULL AS INTEGER ) THEN NULL END / 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-947
SELECT - 37 DIV + - 15 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-947
SELECT - 37 / + - 15 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-948
SELECT ALL + 48 DIV - NULLIF ( 96, - + 50 )
----
0

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL + 48 / - NULLIF ( 96, - + 50 )
----
0

query I rowsort
SELECT + 77 * 5 * + 89 - 33 col1
----
34232

onlyif mysql # DIV for integer division: 
query I rowsort label-950
SELECT DISTINCT - 32 DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-950
SELECT DISTINCT - 32 / + - 98
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT CASE WHEN NULL IS NULL THEN 12 WHEN ( - 99 + COUNT( * ) ) IS NOT NULL THEN + 49 END AS col0
----
12

skipif mysql # not compatible
query I rowsort label-952
SELECT CASE WHEN NULL IS NULL THEN 12 WHEN ( - 99 + COUNT ( * ) ) IS NOT NULL THEN + 49 END AS col0
----
12

query I rowsort
SELECT - COALESCE ( - 5, + NULLIF ( + 32, 31 ) ) col2
----
5

query I rowsort
SELECT 29 + - + 48 AS col2
----
-19

query I rowsort
SELECT + 17 * + 76 * 24
----
31008

query II rowsort
SELECT ALL + - 2 * - ( + 91 ), 6 AS col0
----
182
6

query I rowsort
SELECT ALL 96 * + - 53 * 1 * 75 AS col1
----
-381600

query II rowsort
SELECT ALL 14, 48 AS col1
----
14
48

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

skipif mysql # not compatible
query II rowsort label-959
SELECT DISTINCT 67 col2, - COUNT ( * )
----
67
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT DISTINCT MAX( - 26 ) * + + 74 AS col0
----
-1924

skipif mysql # not compatible
query I rowsort label-960
SELECT DISTINCT MAX ( - 26 ) * + + 74 AS col0
----
-1924

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT ALL SUM( DISTINCT 61 )
----
61

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL SUM ( DISTINCT 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT 14 * + - 17 * + MIN( DISTINCT - + 56 ) * + + 78 AS col1
----
1039584

skipif mysql # not compatible
query I rowsort label-962
SELECT 14 * + - 17 * + MIN ( DISTINCT - + 56 ) * + + 78 AS col1
----
1039584

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT 21 + + 34 + - - MAX( ALL + 68 ) + - COUNT( * ) - + 80 - + 74 * 17
----
-1216

skipif mysql # not compatible
query I rowsort label-963
SELECT 21 + + 34 + - - MAX ( ALL + 68 ) + - COUNT ( * ) - + 80 - + 74 * 17
----
-1216

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-965
SELECT DISTINCT 78 AS col0, 66 + - CAST( + ( - - COUNT( * ) ) AS SIGNED ) col2
----
78
65

skipif mysql # not compatible
query II rowsort label-965
SELECT DISTINCT 78 AS col0, 66 + - CAST ( + ( - - COUNT ( * ) ) AS INTEGER ) col2
----
78
65

onlyif mysql # DIV for integer division: 
query II rowsort label-966
SELECT ALL 29 AS col2, 43 DIV - 72 + 31
----
29
31

skipif mysql # not compatible
query II rowsort label-966
SELECT ALL 29 AS col2, 43 / - 72 + 31
----
29
31

query I rowsort
SELECT 4 * 50 AS col0
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT ALL SUM( DISTINCT 17 )
----
17

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL SUM ( DISTINCT 17 )
----
17

query II rowsort
SELECT - 85, + 24 AS col2
----
-85
24

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

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

query I rowsort
SELECT ALL + 53 * 91 AS col2
----
4823

query I rowsort
SELECT 30 * - 68 AS col0
----
-2040

query I rowsort
SELECT ALL + 81 + - 85
----
-4

query II rowsort
SELECT 27 AS col0, + 85 AS col2
----
27
85

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT 39 * + - SUM( DISTINCT - 15 ) AS col2
----
585

skipif mysql # not compatible
query I rowsort label-975
SELECT 39 * + - SUM ( DISTINCT - 15 ) AS col2
----
585

query I rowsort
SELECT ALL 0 + - 21 * 88
----
-1848

query I rowsort
SELECT ALL - ( - 83 ) + + ( + 95 ) AS col0
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT 20 DIV - - 1
----
20

skipif mysql # not compatible
query I rowsort label-978
SELECT 20 / - - 1
----
20

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

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

query I rowsort
SELECT NULLIF ( - 78, + + 77 )
----
-78

query I rowsort
SELECT 29 * + 0 * + + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT MIN( - 59 ) * - + 97
----
5723

skipif mysql # not compatible
query I rowsort label-982
SELECT MIN ( - 59 ) * - + 97
----
5723

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT ALL CASE SUM( - 28 ) WHEN + + 70 + + 87 THEN + 12 WHEN COALESCE ( 16, - CASE 84 WHEN - COUNT( * ) THEN 20 END + COUNT( * ) ) * + COUNT( * ) THEN 28 + 52 ELSE - 47 END * + 40 + 18 AS col1
----
-1862

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL CASE SUM ( - 28 ) WHEN + + 70 + + 87 THEN + 12 WHEN COALESCE ( 16, - CASE 84 WHEN - COUNT ( * ) THEN 20 END + COUNT ( * ) ) * + COUNT ( * ) THEN 28 + 52 ELSE - 47 END * + 40 + 18 AS col1
----
-1862

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT - COUNT( * ) * - 90 - 23 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-984
SELECT - COUNT ( * ) * - 90 - 23 AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-985
SELECT + ( - 52 ) DIV 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-985
SELECT + ( - 52 ) / 69 AS col0
----
0

query II rowsort
SELECT + 12, + 92 col1
----
12
92

query II rowsort
SELECT ALL + 59 AS col1, - ( 41 )
----
59
-41

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

query I rowsort
SELECT DISTINCT 5 * + + 21 + + 51 col2
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-990
SELECT DISTINCT + - 60 AS col1, CASE - 92 WHEN - 31 + - 54 THEN + + NULLIF ( - 67, + 67 + + 37 ) ELSE NULL END / - COUNT( * ) AS col2
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-990
SELECT DISTINCT + - 60 AS col1, CASE - 92 WHEN - 31 + - 54 THEN + + NULLIF ( - 67, + 67 + + 37 ) ELSE NULL END / - COUNT ( * ) AS col2
----
-60
NULL

query I rowsort
SELECT + + 11 col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT ALL - COUNT( * ) * + 62 - + + 16 * 43
----
-750

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL - COUNT ( * ) * + 62 - + + 16 * 43
----
-750

query I rowsort
SELECT + 47 * + 10 - - 10 col1
----
480

query II rowsort
SELECT DISTINCT + - 82 AS col0, 75 col0
----
-82
75

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT - - 89 + - 36 + + 26 - - + 18 DIV 36 * + - 10 * 66 col0
----
79

skipif mysql # not compatible
query I rowsort label-995
SELECT - - 89 + - 36 + + 26 - - + 18 / 36 * + - 10 * 66 col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-996
SELECT ALL - 83 * - 89 - - + COUNT( * ) - - 50, 2 * + + 52 AS col1
----
7438
104

skipif mysql # not compatible
query II rowsort label-996
SELECT ALL - 83 * - 89 - - + COUNT ( * ) - - 50, 2 * + + 52 AS col1
----
7438
104

query I rowsort
SELECT - 74 * + - 46 * NULLIF ( - 60, + 99 + - ( - 39 ) ) AS col0
----
-204240

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT + 44 * - COUNT( * ) + + + 74 + + 81 * 40
----
3270

skipif mysql # not compatible
query I rowsort label-998
SELECT + 44 * - COUNT ( * ) + + + 74 + + 81 * 40
----
3270

onlyif mysql # aggregate syntax: 
query II rowsort label-999
SELECT COUNT( * ) AS col0, 31 + - NULLIF ( + + 20, - COUNT( * ) )
----
1
11

skipif mysql # not compatible
query II rowsort label-999
SELECT COUNT ( * ) AS col0, 31 + - NULLIF ( + + 20, - COUNT ( * ) )
----
1
11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1001
SELECT ALL + - 41, + COUNT( * ) * 33 AS col2
----
-41
33

skipif mysql # not compatible
query II rowsort label-1001
SELECT ALL + - 41, + COUNT ( * ) * 33 AS col2
----
-41
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT + - 31 * - SUM( - 44 )
----
-1364

skipif mysql # not compatible
query I rowsort label-1002
SELECT + - 31 * - SUM ( - 44 )
----
-1364

onlyif mysql # aggregate syntax: 
query II rowsort label-1003
SELECT DISTINCT + 18 AS col0, - 64 - - SUM( + 96 )
----
18
32

skipif mysql # not compatible
query II rowsort label-1003
SELECT DISTINCT + 18 AS col0, - 64 - - SUM ( + 96 )
----
18
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT + 78 DIV + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1004
SELECT + 78 / + 85 AS col0
----
0

query II rowsort
SELECT + 96 * + 87 AS col2, - 13 * + + ( + - 36 ) + - 50
----
8352
418

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT - COUNT( DISTINCT + 69 ) * - 24 + 42
----
66

skipif mysql # not compatible
query I rowsort label-1006
SELECT - COUNT ( DISTINCT + 69 ) * - 24 + 42
----
66

query I rowsort
SELECT + ( + ( 61 ) ) * - 51 AS col2
----
-3111

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1008
SELECT ALL 37 DIV + + 84, + COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-1008
SELECT ALL 37 / + + 84, + COUNT ( * ) AS col1
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT - 48 DIV - - 44
----
-1

skipif mysql # not compatible
query I rowsort label-1009
SELECT - 48 / - - 44
----
-1

query I rowsort
SELECT + 60 - - - 39 AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1011
SELECT - CASE + 94 WHEN - 82 - - + 3 THEN - + 86 ELSE + - NULLIF ( 14, + 46 ) + + COALESCE ( 8 + + COALESCE ( 36, 64 * - 31 + + CAST( NULL AS SIGNED ) ), - 97 DIV 45, - 99 * + 45 ) END
----
-30

skipif mysql # not compatible
query I rowsort label-1011
SELECT - CASE + 94 WHEN - 82 - - + 3 THEN - + 86 ELSE + - NULLIF ( 14, + 46 ) + + COALESCE ( 8 + + COALESCE ( 36, 64 * - 31 + + CAST ( NULL AS INTEGER ) ), - 97 / 45, - 99 * + 45 ) END
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1012
SELECT ALL ( - + NULLIF ( - 72, + - 16 + + COUNT( * ) ) ) * + CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL ( - + NULLIF ( - 72, + - 16 + + COUNT ( * ) ) ) * + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1013
SELECT ALL - 12 + 18 + + 5 * - + MIN( DISTINCT - 41 ) AS col2, ( - + 26 ) AS col1
----
211
-26

skipif mysql # not compatible
query II rowsort label-1013
SELECT ALL - 12 + 18 + + 5 * - + MIN ( DISTINCT - 41 ) AS col2, ( - + 26 ) AS col1
----
211
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL + 49 + + + 74 + + COUNT( + + 15 ) * + 16 * - MAX( + - 91 ) AS col1
----
1579

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL + 49 + + + 74 + + COUNT ( + + 15 ) * + 16 * - MAX ( + - 91 ) AS col1
----
1579

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT ALL - 49 + + CASE - COUNT( * ) WHEN + + 52 / - 5 * + + COALESCE ( + + ( 87 ), 7 + + 52 ) THEN - 26 WHEN 10 / + COUNT( * ) THEN NULL ELSE + 71 * + 48 END
----
3359

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL - 49 + + CASE - COUNT ( * ) WHEN + + 52 / - 5 * + + COALESCE ( + + ( 87 ), 7 + + 52 ) THEN - 26 WHEN 10 / + COUNT ( * ) THEN NULL ELSE + 71 * + 48 END
----
3359

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT + 70 + COUNT( + 58 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-1016
SELECT + 70 + COUNT ( + 58 ) AS col2
----
71

query I rowsort
SELECT + 46 + - ( + 85 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT - CASE + 27 WHEN - 21 THEN + 93 + + COALESCE ( - SUM( - 91 ), 47, 62 ) ELSE - 81 * + 51 END - 78 AS col1
----
4053

skipif mysql # not compatible
query I rowsort label-1018
SELECT - CASE + 27 WHEN - 21 THEN + 93 + + COALESCE ( - SUM ( - 91 ), 47, 62 ) ELSE - 81 * + 51 END - 78 AS col1
----
4053

query I rowsort
SELECT ALL CASE 80 WHEN - - 62 THEN NULL WHEN - + 76 THEN + 22 END AS col0
----
NULL

query I rowsort
SELECT ALL - - NULLIF ( - CASE - 31 WHEN - 17 THEN - + 50 WHEN 90 THEN 20 END, - 16 ) / - 39
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT ALL - 58 / - CASE - 60 WHEN + 19 THEN 33 WHEN - ( + - NULLIF ( COUNT( * ), - 54 ) ) + - MAX( - 17 ) THEN 24 * + COALESCE ( - 8, + 95, + 74 * 28 ) + + 4 * 4 END - 11 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL - 58 / - CASE - 60 WHEN + 19 THEN 33 WHEN - ( + - NULLIF ( COUNT ( * ), - 54 ) ) + - MAX ( - 17 ) THEN 24 * + COALESCE ( - 8, + 95, + 74 * 28 ) + + 4 * 4 END - 11 * + 50
----
NULL

query I rowsort
SELECT ALL + - ( + 97 ) AS col0
----
-97

query I rowsort
SELECT DISTINCT - + CASE + 53 WHEN 56 THEN ( + - 80 ) END * 23 AS col2
----
NULL

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

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

query I rowsort
SELECT 37 * 20 + + 91
----
831

query I rowsort
SELECT + 28 * - 74 AS col2
----
-2072

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT DISTINCT 73 * - - 3 * - 6 - + 7 * - - 54 + - MIN( + 92 ) - + NULLIF ( SUM( + 57 ), COUNT( * ) * - 7 )
----
-1841

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT 73 * - - 3 * - 6 - + 7 * - - 54 + - MIN ( + 92 ) - + NULLIF ( SUM ( + 57 ), COUNT ( * ) * - 7 )
----
-1841

query II rowsort
SELECT + ( + + 58 ) AS col0, 50 + + - 36
----
58
14

query I rowsort
SELECT ALL + + 55 AS col2
----
55

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

query I rowsort
SELECT ALL + + 39 AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1033
SELECT ALL + CAST( - 35 AS SIGNED ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL + CAST ( - 35 AS INTEGER ) AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1034
SELECT - COUNT( * ) * - 68 * - 3 + + 31 + 70 + 99 + 65 + 16 DIV 43 + + COUNT( * ) * - 86
----
-25

skipif mysql # not compatible
query I rowsort label-1034
SELECT - COUNT ( * ) * - 68 * - 3 + + 31 + 70 + 99 + 65 + 16 / 43 + + COUNT ( * ) * - 86
----
-25

query I rowsort
SELECT - 67 * - 2
----
134

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1036
SELECT ALL + MAX( + - NULLIF ( - 57, - 17 * - 65 ) ) * - + 74 * + CAST( NULL AS DECIMAL ) + + - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL + MAX ( + - NULLIF ( - 57, - 17 * - 65 ) ) * - + 74 * + CAST ( NULL AS REAL ) + + - 20 AS col0
----
NULL

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

query I rowsort
SELECT - 19 - - 81 AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1039
SELECT - CAST( NULL AS SIGNED ) AS col2, - SUM( - COALESCE ( + 90, 64, 16 DIV - 94 ) )
----
NULL
90

skipif mysql # not compatible
query II rowsort label-1039
SELECT - CAST ( NULL AS INTEGER ) AS col2, - SUM ( - COALESCE ( + 90, 64, 16 / - 94 ) )
----
NULL
90

query I rowsort
SELECT ALL 31 * + 44 AS col1
----
1364

query I rowsort
SELECT + 36 + - 83 col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1042
SELECT + 6 + COUNT( * ) + - - 2 * - - 91 + - CAST( ( 82 ) AS SIGNED )
----
107

skipif mysql # not compatible
query I rowsort label-1042
SELECT + 6 + COUNT ( * ) + - - 2 * - - 91 + - CAST ( ( 82 ) AS INTEGER )
----
107

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

skipif mysql # not compatible
query I rowsort label-1043
SELECT COUNT ( - 47 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT DISTINCT COUNT( * ) + + CASE + + 27 WHEN - - 64 THEN - + 86 / - 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT COUNT ( * ) + + CASE + + 27 WHEN - - 64 THEN - + 86 / - 40 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1046
SELECT + MIN( + + 78 ) + + 41 col0, + 47 DIV - 32 + 88 + + 71 AS col1
----
119
158

skipif mysql # not compatible
query II rowsort label-1046
SELECT + MIN ( + + 78 ) + + 41 col0, + 47 / - 32 + 88 + + 71 AS col1
----
119
158

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL 64 + - + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL 64 + - + COUNT ( * )
----
63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1049
SELECT DISTINCT 82 DIV 40 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT 82 / 40 AS col0
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1051
SELECT 80 + + COUNT( * ) * SUM( ALL 28 ) * + COUNT( * ) + - + 37 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT 80 + + COUNT ( * ) * SUM ( ALL 28 ) * + COUNT ( * ) + - + 37 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1052
SELECT 77 AS col1, 66 + - CASE - - 91 WHEN - 29 THEN + + 6 * + COALESCE ( - ( 4 ), - MIN( ALL - 33 ), 77 ) + + 3 + 24 ELSE 68 END + ( MAX( ( 3 ) ) + - 84 * NULLIF ( 72, - COUNT( * ) + ( 74 ) ) ) * 49
----
77
-296207

skipif mysql # not compatible
query II rowsort label-1052
SELECT 77 AS col1, 66 + - CASE - - 91 WHEN - 29 THEN + + 6 * + COALESCE ( - ( 4 ), - MIN ( ALL - 33 ), 77 ) + + 3 + 24 ELSE 68 END + ( MAX ( ( 3 ) ) + - 84 * NULLIF ( 72, - COUNT ( * ) + ( 74 ) ) ) * 49
----
77
-296207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT ALL NULLIF ( + + CAST( NULL AS SIGNED ), + 59 ) - 29 + + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT ALL NULLIF ( + + CAST ( NULL AS INTEGER ), + 59 ) - 29 + + 8 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 11 col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1055
SELECT ALL - CAST( - 46 AS SIGNED ) - - + 92 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL - CAST ( - 46 AS INTEGER ) - - + 92 AS col2
----
138

query I rowsort
SELECT - 63 * + + 28 AS col2
----
-1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1057
SELECT ALL + CAST( 74 AS SIGNED ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL + CAST ( 74 AS INTEGER ) AS col0
----
74

query I rowsort
SELECT - - 79 AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1059
SELECT + 36 AS col2, MAX( ALL - + 73 ) * - - ( + 44 ) + + - 64 + - 77
----
36
-3353

skipif mysql # not compatible
query II rowsort label-1059
SELECT + 36 AS col2, MAX ( ALL - + 73 ) * - - ( + 44 ) + + - 64 + - 77
----
36
-3353

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1061
SELECT ALL MAX( DISTINCT CAST( NULL AS SIGNED ) ) - 59 + + 9, + 58 * 4 * ( - + 16 ) AS col2
----
NULL
-3712

skipif mysql # not compatible
query II rowsort label-1061
SELECT ALL MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) - 59 + + 9, + 58 * 4 * ( - + 16 ) AS col2
----
NULL
-3712

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT - SUM( - 63 )
----
63

skipif mysql # not compatible
query I rowsort label-1062
SELECT - SUM ( - 63 )
----
63

query I rowsort
SELECT ALL - - 73 col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT + - COUNT( * ) * 16 - 37 + + - COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1064
SELECT + - COUNT ( * ) * 16 - 37 + + - COUNT ( * ) AS col2
----
-54

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

skipif mysql # not compatible
query II rowsort label-1065
SELECT DISTINCT - COUNT ( * ) AS col0, - 78
----
-1
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1066
SELECT ALL - + CAST( + - 35 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL - + CAST ( + - 35 AS INTEGER )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1067
SELECT - ( - CASE - 30 WHEN 85 * + 36 - + + CAST( - + 43 AS SIGNED ) THEN NULL WHEN 38 / 18 THEN 30 * - 20 ELSE + 66 END ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-1067
SELECT - ( - CASE - 30 WHEN 85 * + 36 - + + CAST ( - + 43 AS INTEGER ) THEN NULL WHEN 38 / 18 THEN 30 * - 20 ELSE + 66 END ) AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1068
SELECT CASE + 22 WHEN - 6 + 12 THEN + 24 * - + COUNT( + CAST( + 27 AS SIGNED ) ) ELSE 43 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1068
SELECT CASE + 22 WHEN - 6 + 12 THEN + 24 * - + COUNT ( + CAST ( + 27 AS INTEGER ) ) ELSE 43 END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT ALL - + 96 * + 74 + - COUNT( * )
----
-7105

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL - + 96 * + 74 + - COUNT ( * )
----
-7105

onlyif mysql # DIV for integer division: 
query I rowsort label-1070
SELECT ALL 62 DIV + 4 + 37 * - 35 AS col2
----
-1280

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL 62 / + 4 + 37 * - 35 AS col2
----
-1280

onlyif mysql # aggregate syntax: 
query II rowsort label-1071
SELECT ALL - SUM( ALL + + ( - 7 ) ) AS col0, + 28
----
7
28

skipif mysql # not compatible
query II rowsort label-1071
SELECT ALL - SUM ( ALL + + ( - 7 ) ) AS col0, + 28
----
7
28

query II rowsort
SELECT + 0 * - 70 + 97 - 82, 2 AS col2
----
15
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1073
SELECT - 12 * - 73 / - 19 + + AVG ( DISTINCT 84 ) / + - 90 - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1073
SELECT - 12 * - 73 / - 19 + + AVG ( DISTINCT 84 ) / + - 90 - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 29 / CASE + ( 43 ) WHEN 52 + - 81 THEN - 17 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT ALL - COUNT( 7 ) + + 71 * + + 23 * - + 27
----
-44092

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL - COUNT ( 7 ) + + 71 * + + 23 * - + 27
----
-44092

query I rowsort
SELECT - 64 * + ( 41 ) + - 84
----
-2708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1077
SELECT DISTINCT - CAST( ( 7 ) AS SIGNED ) + - 17 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT - CAST ( ( 7 ) AS INTEGER ) + - 17 AS col0
----
-24

query I rowsort
SELECT 23 + + + 12 + 19
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1079
SELECT ALL - 94 + - MIN( ALL - - 76 ) DIV 74 + - COALESCE ( - + 93, 60, COUNT( * ) * + - COALESCE ( + CAST( NULL AS SIGNED ), + CAST( - 79 AS SIGNED ) * 6, - 67 ) ) + 15 DIV + 88
----
-2

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL - 94 + - MIN ( ALL - - 76 ) / 74 + - COALESCE ( - + 93, 60, COUNT ( * ) * + - COALESCE ( + CAST ( NULL AS INTEGER ), + CAST ( - 79 AS INTEGER ) * 6, - 67 ) ) + 15 / + 88
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT DISTINCT - CASE + - COUNT( * ) WHEN 68 THEN + 20 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT - CASE + - COUNT ( * ) WHEN 68 THEN + 20 END AS col0
----
NULL

query I rowsort
SELECT ALL 25 + - 39
----
-14

query I rowsort
SELECT ALL 83 + + 90
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT ALL - ( + + CASE - 48 WHEN + CASE - 50 WHEN - + COUNT( * ) THEN NULL WHEN 92 * + 88 THEN + + ( + 83 ) ELSE NULL END THEN NULL ELSE 16 END )
----
-16

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL - ( + + CASE - 48 WHEN + CASE - 50 WHEN - + COUNT ( * ) THEN NULL WHEN 92 * + 88 THEN + + ( + 83 ) ELSE NULL END THEN NULL ELSE 16 END )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1084
SELECT ALL - CAST( NULL AS SIGNED ) + 81 + - + ( + ( 10 ) ) - COUNT( * ) * + + 3, + 25 AS col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-1084
SELECT ALL - CAST ( NULL AS INTEGER ) + 81 + - + ( + ( 10 ) ) - COUNT ( * ) * + + 3, + 25 AS col2
----
NULL
25

query I rowsort
SELECT 39 * 57
----
2223

query I rowsort
SELECT 45 + - 18 * 72 AS col0
----
-1251

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT MIN( ALL + 98 ) * + + 34
----
3332

skipif mysql # not compatible
query I rowsort label-1087
SELECT MIN ( ALL + 98 ) * + + 34
----
3332

query I rowsort
SELECT DISTINCT 76 * 97 * - ( - 81 )
----
597132

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

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

query I rowsort
SELECT - 61 - + 33 + - 56 AS col1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT 63 * + COUNT( ALL - 2 ) * 3 + ( + 93 ) AS col2
----
282

skipif mysql # not compatible
query I rowsort label-1091
SELECT 63 * + COUNT ( ALL - 2 ) * 3 + ( + 93 ) AS col2
----
282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1092
SELECT - COALESCE ( - CAST( + + 14 AS SIGNED ), - CASE + - ( - 32 ) WHEN + 2 + MIN( - 70 ) THEN + 81 ELSE - 20 * + 60 END )
----
14

skipif mysql # not compatible
query I rowsort label-1092
SELECT - COALESCE ( - CAST ( + + 14 AS INTEGER ), - CASE + - ( - 32 ) WHEN + 2 + MIN ( - 70 ) THEN + 81 ELSE - 20 * + 60 END )
----
14

query I rowsort
SELECT + 27 + - - 49
----
76

query I rowsort
SELECT + 1 * - 94 * + 70 + - - 10
----
-6570

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT ALL - 15 DIV - + COALESCE ( 90, 11 + - 83 ) * - 82
----
0

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL - 15 / - + COALESCE ( 90, 11 + - 83 ) * - 82
----
0

query I rowsort
SELECT 73 + + 99
----
172

query I rowsort
SELECT - 10 - - - 13
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1098
SELECT + 54 + CAST( - 14 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-1098
SELECT + 54 + CAST ( - 14 AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1099
SELECT ALL 94 * - 19, CASE - - 15 WHEN 57 THEN NULL ELSE + 60 / CASE - 80 WHEN - ( 82 ) THEN - 74 WHEN 86 THEN NULL END END / ( 53 + 99 ) - - COUNT( + 18 ) AS col0
----
-1786
NULL

skipif mysql # not compatible
query II rowsort label-1099
SELECT ALL 94 * - 19, CASE - - 15 WHEN 57 THEN NULL ELSE + 60 / CASE - 80 WHEN - ( 82 ) THEN - 74 WHEN 86 THEN NULL END END / ( 53 + 99 ) - - COUNT ( + 18 ) AS col0
----
-1786
NULL

query II rowsort
SELECT - 63 * - 38 AS col0, + ( + 26 )
----
2394
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT + COUNT( ALL - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-1101
SELECT + COUNT ( ALL - 46 )
----
1

query I rowsort
SELECT 42 + - 46 * - 43 AS col0
----
2020

query I rowsort
SELECT + 72 * - 83 * + + 77 + + 70 AS col0
----
-460082

query II rowsort
SELECT ALL - COALESCE ( + 69, - - 77, + 16 ) AS col0, - 72 * + 98 * 6 + + 48 AS col2
----
-69
-42288

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1106
SELECT COUNT( CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1106
SELECT COUNT ( CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT - 85 * 89 + - + 33
----
-7598

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT 20 + + COUNT( + 48 )
----
21

skipif mysql # not compatible
query I rowsort label-1108
SELECT 20 + + COUNT ( + 48 )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT ALL + 26 DIV - 16
----
-1

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL + 26 / - 16
----
-1

query I rowsort
SELECT ALL - 62 + - 92 AS col2
----
-154

query I rowsort
SELECT DISTINCT + 8 * - - 44 AS col1
----
352

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT DISTINCT ( - - 52 ) + + 48 DIV + - 80
----
52

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT ( - - 52 ) + + 48 / + - 80
----
52

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

skipif mysql # not compatible
query I rowsort label-1113
SELECT SUM ( + - 25 )
----
-25

query I rowsort
SELECT + NULLIF ( - - 8, - 73 )
----
8

query I rowsort
SELECT DISTINCT - 45 * 56
----
-2520

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

query I rowsort
SELECT - 6 - - 5 col1
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1119
SELECT DISTINCT + 73 DIV + MIN( ALL - 63 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1119
SELECT DISTINCT + 73 / + MIN ( ALL - 63 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL CASE - + 94 WHEN - COUNT( * ) * + + 92 * 59 * + ( - 41 ) * + ( 87 ) + - 8 * - 74 THEN - CASE 62 WHEN + 87 THEN 39 * 68 END + 9 / + 76 WHEN 78 THEN - AVG ( ALL + ( + 40 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL CASE - + 94 WHEN - COUNT ( * ) * + + 92 * 59 * + ( - 41 ) * + ( 87 ) + - 8 * - 74 THEN - CASE 62 WHEN + 87 THEN 39 * 68 END + 9 / + 76 WHEN 78 THEN - AVG ( ALL + ( + 40 ) ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1121
SELECT ALL CASE - 74 WHEN - 73 THEN NULL WHEN - 37 * - CAST( + + 91 AS SIGNED ) THEN + 26 + - 37 + + 66 * - - CAST( NULL AS SIGNED ) / MAX( DISTINCT 25 ) WHEN - 34 THEN 94 * 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL CASE - 74 WHEN - 73 THEN NULL WHEN - 37 * - CAST ( + + 91 AS INTEGER ) THEN + 26 + - 37 + + 66 * - - CAST ( NULL AS INTEGER ) / MAX ( DISTINCT 25 ) WHEN - 34 THEN 94 * 11 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1122
SELECT - SUM( CAST( NULL AS DECIMAL ) ) * - 33 / - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1122
SELECT - SUM ( CAST ( NULL AS REAL ) ) * - 33 / - 98 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1123
SELECT - CASE + CASE 41 WHEN 53 - + 69 / 56 THEN - - 21 + - 14 ELSE 26 END WHEN + 52 + - 42 * 27 THEN - 44 WHEN COUNT( * ) THEN NULL END + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT - CASE + CASE 41 WHEN 53 - + 69 / 56 THEN - - 21 + - 14 ELSE 26 END WHEN + 52 + - 42 * 27 THEN - 44 WHEN COUNT ( * ) THEN NULL END + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT - + COUNT( * ) + - MIN( 55 ) + + 64 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1124
SELECT - + COUNT ( * ) + - MIN ( 55 ) + + 64 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT - + 30 * + 13 - - ( - NULLIF ( + - COUNT( * ), 59 ) ) - + 33 * 21 * + 92 col0
----
-64145

skipif mysql # not compatible
query I rowsort label-1125
SELECT - + 30 * + 13 - - ( - NULLIF ( + - COUNT ( * ), 59 ) ) - + 33 * 21 * + 92 col0
----
-64145

query I rowsort
SELECT + - 25 + - 70
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT DISTINCT + + 79 * - + SUM( - 96 ) AS col0
----
7584

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT + + 79 * - + SUM ( - 96 ) AS col0
----
7584

onlyif mysql # aggregate syntax: 
query II rowsort label-1128
SELECT - COUNT( * ) * - 51 + COUNT( * ) AS col1, + 44
----
52
44

skipif mysql # not compatible
query II rowsort label-1128
SELECT - COUNT ( * ) * - 51 + COUNT ( * ) AS col1, + 44
----
52
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT ALL SUM( DISTINCT 30 ) col1
----
30

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL SUM ( DISTINCT 30 ) col1
----
30

query I rowsort
SELECT ALL - + 25 + - - 70 + - - 61 * + - 59 col0
----
-3554

query I rowsort
SELECT ALL + 3 + 87
----
90

query I rowsort
SELECT + + 98 * 72 * - ( - 23 ) AS col0
----
162288

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

query I rowsort
SELECT + NULLIF ( + 1, + 1 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1135
SELECT DISTINCT + - CAST( - - 20 AS SIGNED ) DIV - - 33 + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT + - CAST ( - - 20 AS INTEGER ) / - - 33 + 1 AS col2
----
1

query I rowsort
SELECT ALL - + 24 * - + 23 * - 60 + - 28 AS col1
----
-33148

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT COUNT( * ) * - + 49 - + 4 + + + COALESCE ( 46, - 90 + + + COUNT( * ) + + - 38 + - + NULLIF ( 9, + 3 ) ) * + 31 AS col0
----
1373

skipif mysql # not compatible
query I rowsort label-1139
SELECT COUNT ( * ) * - + 49 - + 4 + + + COALESCE ( 46, - 90 + + + COUNT ( * ) + + - 38 + - + NULLIF ( 9, + 3 ) ) * + 31 AS col0
----
1373

query II rowsort
SELECT ALL + 84 col1, 38 AS col2
----
84
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1141
SELECT + COUNT( * ), - COUNT( * ) * - CAST( NULL AS SIGNED ) + 75 + + CASE + COALESCE ( 8, + + 17 * - 41 ) WHEN ( + 42 ) * - 17 THEN 76 ELSE ( COALESCE ( - 69, - 79 - + 38 * - 35, + COUNT( * ) * - 49 ) ) END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1141
SELECT + COUNT ( * ), - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + 75 + + CASE + COALESCE ( 8, + + 17 * - 41 ) WHEN ( + 42 ) * - 17 THEN 76 ELSE ( COALESCE ( - 69, - 79 - + 38 * - 35, + COUNT ( * ) * - 49 ) ) END AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT + 54 * - MIN( 76 )
----
-4104

skipif mysql # not compatible
query I rowsort label-1142
SELECT + 54 * - MIN ( 76 )
----
-4104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1143
SELECT + CAST( - + 53 AS SIGNED ), 24 * + + 98 AS col1, - COALESCE ( - + 8, - - 30 ) col1
----
-53
2352
8

skipif mysql # not compatible
query III rowsort label-1143
SELECT + CAST ( - + 53 AS INTEGER ), 24 * + + 98 AS col1, - COALESCE ( - + 8, - - 30 ) col1
----
-53
2352
8

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1145
SELECT CASE - 62 WHEN - - CASE + - COUNT( ALL + 82 ) WHEN + CAST( NULL AS DECIMAL ) + - COALESCE ( + - 12, + 74 * + COUNT( * ) + CAST( NULL AS SIGNED ), + 83 ) + - 82 * + ( - 22 + 12 ) * 5 THEN - 47 WHEN COUNT( 5 ) THEN NULL ELSE 17 END * - 84 THEN - COUNT( 2 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT CASE - 62 WHEN - - CASE + - COUNT ( ALL + 82 ) WHEN + CAST ( NULL AS REAL ) + - COALESCE ( + - 12, + 74 * + COUNT ( * ) + CAST ( NULL AS INTEGER ), + 83 ) + - 82 * + ( - 22 + 12 ) * 5 THEN - 47 WHEN COUNT ( 5 ) THEN NULL ELSE 17 END * - 84 THEN - COUNT ( 2 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT - 17 * - - 37 + + COUNT( * )
----
-628

skipif mysql # not compatible
query I rowsort label-1146
SELECT - 17 * - - 37 + + COUNT ( * )
----
-628

query II rowsort
SELECT DISTINCT + 87 col0, - 45 * - 73 + - - 14
----
87
3299

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT + 82 + 12 - 71 + 27 * 45 - + CASE - COUNT( DISTINCT 99 ) WHEN - 32 THEN 52 ELSE - - 67 * - 95 END
----
7603

skipif mysql # not compatible
query I rowsort label-1148
SELECT + 82 + 12 - 71 + 27 * 45 - + CASE - COUNT ( DISTINCT 99 ) WHEN - 32 THEN 52 ELSE - - 67 * - 95 END
----
7603

onlyif mysql # aggregate syntax: 
query II rowsort label-1149
SELECT ALL + 0, COUNT( * ) - ( 70 ) + - 26 * + 60 AS col2
----
0
-1629

skipif mysql # not compatible
query II rowsort label-1149
SELECT ALL + 0, COUNT ( * ) - ( 70 ) + - 26 * + 60 AS col2
----
0
-1629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1150
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - 10 + 11 * + 81 + + 38 AS col0
----
919

skipif mysql # not compatible
query I rowsort label-1150
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - 10 + 11 * + 81 + + 38 AS col0
----
919

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT ALL - COUNT( ALL - - 53 ) * - + 18
----
18

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL - COUNT ( ALL - - 53 ) * - + 18
----
18

query I rowsort
SELECT DISTINCT 99 / - + 13 / - 42 * + - CASE 29 WHEN - 70 THEN - 49 ELSE NULL END * + 3 AS col2
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-1154
SELECT + 40 / + 57
----
0

query I rowsort
SELECT - 46 * - + 44
----
2024

query I rowsort
SELECT - 70 * + + 24
----
-1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1157
SELECT - 9 + + 67 - 64 + - COUNT( * ) * - 24 + SUM( DISTINCT - + 96 ) * + COALESCE ( - + 90, - - 96 * + COUNT( * ), CAST( 91 AS SIGNED ) * + 3 - ( 97 + - 87 ) ) * - COUNT( * ) AS col1
----
-8622

skipif mysql # not compatible
query I rowsort label-1157
SELECT - 9 + + 67 - 64 + - COUNT ( * ) * - 24 + SUM ( DISTINCT - + 96 ) * + COALESCE ( - + 90, - - 96 * + COUNT ( * ), CAST ( 91 AS INTEGER ) * + 3 - ( 97 + - 87 ) ) * - COUNT ( * ) AS col1
----
-8622

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT ALL - 82 DIV - + 57
----
1

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL - 82 / - + 57
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - - 18 * - COUNT( * ) + + 78 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-1159
SELECT - - 18 * - COUNT ( * ) + + 78 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT ALL + - 85 + - COALESCE ( + 71, + - 6 ) + - SUM( + 36 ) * - CASE - 6 WHEN + + 91 THEN NULL WHEN 40 THEN + 21 WHEN AVG ( + 59 ) * NULLIF ( 23 * - 31 + 90, 53 ) + - 85 * + 90 THEN + 48 END * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL + - 85 + - COALESCE ( + 71, + - 6 ) + - SUM ( + 36 ) * - CASE - 6 WHEN + + 91 THEN NULL WHEN 40 THEN + 21 WHEN AVG ( + 59 ) * NULLIF ( 23 * - 31 + 90, 53 ) + - 85 * + 90 THEN + 48 END * 69
----
NULL

query I rowsort
SELECT DISTINCT - + 22 + + 8
----
-14

query I rowsort
SELECT CASE - 24 WHEN - 76 THEN - + 90 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1163
SELECT ALL - COUNT( * ) + - 57, ( 78 ) + 83 AS col2
----
-58
161

skipif mysql # not compatible
query II rowsort label-1163
SELECT ALL - COUNT ( * ) + - 57, ( 78 ) + 83 AS col2
----
-58
161

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

query I rowsort
SELECT - + 58 * - 62
----
3596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1166
SELECT - 72 + - 30 - + CAST( + 35 AS SIGNED ) * + 99 AS col2
----
-3567

skipif mysql # not compatible
query I rowsort label-1166
SELECT - 72 + - 30 - + CAST ( + 35 AS INTEGER ) * + 99 AS col2
----
-3567

onlyif mysql # DIV for integer division: 
query I rowsort label-1167
SELECT ALL - 72 + NULLIF ( + 2, ( + - CASE - - 71 WHEN - ( + 84 ) THEN + - 48 * 44 + + 89 + 80 * 17 ELSE NULL END ) ) DIV + 7 col2
----
-72

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL - 72 + NULLIF ( + 2, ( + - CASE - - 71 WHEN - ( + 84 ) THEN + - 48 * 44 + + 89 + 80 * 17 ELSE NULL END ) ) / + 7 col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT - 25 + - 39 * - COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1168
SELECT - 25 + - 39 * - COUNT ( * ) AS col2
----
14

query I rowsort
SELECT - 39 + 10
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT DISTINCT - 70 * + 75 - - ( - COUNT( * ) )
----
-5251

skipif mysql # not compatible
query I rowsort label-1170
SELECT DISTINCT - 70 * + 75 - - ( - COUNT ( * ) )
----
-5251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1171
SELECT ALL + COUNT( * ) + - + 50 DIV + 1 col0
----
-49

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL + COUNT ( * ) + - + 50 / + 1 col0
----
-49

query I rowsort
SELECT 29 * + - 76
----
-2204

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

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

query I rowsort
SELECT ALL 18 * + COALESCE ( COALESCE ( - + 34, + 16 ), 84 )
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT 55 + + NULLIF ( 82, COUNT( * ) )
----
137

skipif mysql # not compatible
query I rowsort label-1175
SELECT 55 + + NULLIF ( 82, COUNT ( * ) )
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT DISTINCT - 91 DIV + - 13
----
7

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT - 91 / + - 13
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT CASE + COUNT( * ) WHEN + 24 * + 85 THEN 17 WHEN - - 6 THEN NULL END * 78 + + ( - + 80 ) - - - 91 - + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1177
SELECT CASE + COUNT ( * ) WHEN + 24 * + 85 THEN 17 WHEN - - 6 THEN NULL END * 78 + + ( - + 80 ) - - - 91 - + 4 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1178
SELECT CAST( 9 AS SIGNED ) * + 60 + - - COUNT( * ) AS col1
----
541

skipif mysql # not compatible
query I rowsort label-1178
SELECT CAST ( 9 AS INTEGER ) * + 60 + - - COUNT ( * ) AS col1
----
541

query II rowsort
SELECT ALL 58 * - 65 AS col2, + 12 + - + 77 col0
----
-3770
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1180
SELECT CAST( MAX( DISTINCT + - 65 ) AS SIGNED ) + - - NULLIF ( - + 52, + 10 ) AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-1180
SELECT CAST ( MAX ( DISTINCT + - 65 ) AS INTEGER ) + - - NULLIF ( - + 52, + 10 ) AS col0
----
-117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1181
SELECT ALL 52 + - NULLIF ( - 9, - - 98 * - + NULLIF ( + 91, + COUNT( * ) / 62 + + + CAST( NULL AS DECIMAL ) ) )
----
61

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL 52 + - NULLIF ( - 9, - - 98 * - + NULLIF ( + 91, + COUNT ( * ) / 62 + + + CAST ( NULL AS REAL ) ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT 9 * 7 * SUM( + 28 ) col0
----
1764

skipif mysql # not compatible
query I rowsort label-1182
SELECT 9 * 7 * SUM ( + 28 ) col0
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT 28 * + - SUM( + 7 ) + - 27 AS col0
----
-223

skipif mysql # not compatible
query I rowsort label-1183
SELECT 28 * + - SUM ( + 7 ) + - 27 AS col0
----
-223

query I rowsort
SELECT - 98 - - - CASE + - 90 WHEN ( - + 96 ) + + 28 THEN + 89 WHEN - ( 35 ) THEN + + 62 + - 28 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1185
SELECT DISTINCT 72 + + ( + 50 ) DIV SUM( ALL + 93 ) + + 82
----
154

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT 72 + + ( + 50 ) / SUM ( ALL + 93 ) + + 82
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT ALL + NULLIF ( + - 43, 81 + - 5 + + CAST( - + 6 AS SIGNED ) ) + + MAX( ALL + + ( + 7 ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL + NULLIF ( + - 43, 81 + - 5 + + CAST ( - + 6 AS INTEGER ) ) + + MAX ( ALL + + ( + 7 ) ) AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1187
SELECT ALL - - 62 DIV COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL - - 62 / COUNT ( * )
----
62

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

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL - COUNT ( * ) + + + ( - 34 ) AS col2
----
-35

query I rowsort
SELECT - 30 + 42 + 17 * + 63 AS col2
----
1083

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT ALL + - COALESCE ( - 23, 86 * + 39 * + COUNT( * ) ) + - 95
----
-72

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL + - COALESCE ( - 23, 86 * + 39 * + COUNT ( * ) ) + - 95
----
-72

query I rowsort
SELECT ALL 17 * + - 24 AS col0
----
-408

query I rowsort
SELECT DISTINCT - 34 + + 77
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT + SUM( + + 32 ) * + 54 * + 34 AS col0
----
58752

skipif mysql # not compatible
query I rowsort label-1193
SELECT + SUM ( + + 32 ) * + 54 * + 34 AS col0
----
58752

onlyif mysql # DIV for integer division: 
query I rowsort label-1194
SELECT - 14 * 14 DIV 43
----
-4

skipif mysql # not compatible
query I rowsort label-1194
SELECT - 14 * 14 / 43
----
-4

query I rowsort
SELECT ALL - 40 - - 52 * NULLIF ( 70, + 5 * - 90 * + - 84 + - 66 + - 79 + - + 62 + 99 )
----
3600

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT ALL - 77 DIV - 33
----
2

skipif mysql # not compatible
query I rowsort label-1196
SELECT ALL - 77 / - 33
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT - - CASE 24 WHEN - - 34 + + - 66 THEN + 87 * - + 99 - - NULLIF ( + - MAX( 11 ), + + 11 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1197
SELECT - - CASE 24 WHEN - - 34 + + - 66 THEN + 87 * - + 99 - - NULLIF ( + - MAX ( 11 ), + + 11 ) END
----
NULL

query I rowsort
SELECT - ( 43 )
----
-43

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

query I rowsort
SELECT 20 * + + 51
----
1020

query I rowsort
SELECT 67 * + 18 - + ( + - 12 ) - + 44 * + 32
----
-190

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

query II rowsort
SELECT + 76 AS col0, 17 + 21
----
76
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1204
SELECT ALL - CAST( NULL AS DECIMAL ) * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL - CAST ( NULL AS REAL ) * - 0
----
NULL

query I rowsort
SELECT DISTINCT - 86 * - 99 col2
----
8514

query I rowsort
SELECT ALL - ( - 57 ) AS col2
----
57

query I rowsort
SELECT 48 + - 10 - 41 * + - 21
----
899

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT NULLIF ( - COUNT( - 71 ), 69 * + 33 + + 40 ) * - ( - - COUNT( * ) ) * + + 95 - COUNT( * ) + + - ( + 40 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-1208
SELECT NULLIF ( - COUNT ( - 71 ), 69 * + 33 + + 40 ) * - ( - - COUNT ( * ) ) * + + 95 - COUNT ( * ) + + - ( + 40 ) AS col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1209
SELECT 54 DIV - + 11
----
-4

skipif mysql # not compatible
query I rowsort label-1209
SELECT 54 / - + 11
----
-4

query II rowsort
SELECT 26 AS col2, 67
----
26
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1211
SELECT ALL - 42 + + + ( - NULLIF ( - CAST( - + 7 AS SIGNED ), 32 - - 59 ) ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL - 42 + + + ( - NULLIF ( - CAST ( - + 7 AS INTEGER ), 32 - - 59 ) ) col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT 80 * - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-1212
SELECT 80 * - COUNT ( * )
----
-80

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

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

query I rowsort
SELECT 89 * + 30
----
2670

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT DISTINCT + 24 * - + ( + + 8 ) + - + 55 + + + ( + COUNT( * ) ) * + - COUNT( * ) col1
----
-248

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT + 24 * - + ( + + 8 ) + - + 55 + + + ( + COUNT ( * ) ) * + - COUNT ( * ) col1
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL COUNT( * ) + - - COUNT( DISTINCT 42 ) + - + COALESCE ( - + 19, - ( + NULLIF ( + 52, - 36 / 8 * - - ( - 78 ) ) ) * - 84 + 75, + 81 ) * - 62
----
-1176

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL COUNT ( * ) + - - COUNT ( DISTINCT 42 ) + - + COALESCE ( - + 19, - ( + NULLIF ( + 52, - 36 / 8 * - - ( - 78 ) ) ) * - 84 + 75, + 81 ) * - 62
----
-1176

query I rowsort
SELECT + 27 * - 26 col0
----
-702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1219
SELECT - 39 * CASE 27 WHEN + ( + 55 ) THEN - - 18 * - 23 + 42 + - - 65 + + + CAST( + + 14 AS SIGNED ) + COALESCE ( - + 40, 44 ) * - 43 + - 33 WHEN 13 + - CASE 91 WHEN 32 THEN + 21 ELSE 91 / - 85 END / - 46 THEN SUM( 59 ) * 32 + - 43 END + - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1219
SELECT - 39 * CASE 27 WHEN + ( + 55 ) THEN - - 18 * - 23 + 42 + - - 65 + + + CAST ( + + 14 AS INTEGER ) + COALESCE ( - + 40, 44 ) * - 43 + - 33 WHEN 13 + - CASE 91 WHEN 32 THEN + 21 ELSE 91 / - 85 END / - 46 THEN SUM ( 59 ) * 32 + - 43 END + - 90 AS col2
----
NULL

query I rowsort
SELECT - - CASE - + 62 WHEN + 60 THEN - 32 WHEN + + 46 THEN ( 99 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 5 + - 46 AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1222
SELECT - NULLIF ( + COUNT( ALL - 59 ), 56 * + NULLIF ( - + 54, CAST( - 23 AS SIGNED ) * - CASE MAX( + ( 56 ) ) WHEN - + COUNT( * ) THEN NULL ELSE CAST( - 62 AS SIGNED ) END ) - 91 * CAST( NULL AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1222
SELECT - NULLIF ( + COUNT ( ALL - 59 ), 56 * + NULLIF ( - + 54, CAST ( - 23 AS INTEGER ) * - CASE MAX ( + ( 56 ) ) WHEN - + COUNT ( * ) THEN NULL ELSE CAST ( - 62 AS INTEGER ) END ) - 91 * CAST ( NULL AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT ALL - COALESCE ( + + 84, - - 75, + - 79 ) AS col2
----
-84

query II rowsort
SELECT ALL 69, 79 + + - 2 * + 15 + - - 57 + 51 AS col0
----
69
157

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT DISTINCT - 48 * - - 7 * + - MAX( ALL + 81 ) AS col2
----
27216

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT - 48 * - - 7 * + - MAX ( ALL + 81 ) AS col2
----
27216

query I rowsort
SELECT + 43 - 0 + + - 79
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1227
SELECT DISTINCT COUNT( * ) * - + 34 * + 94, - 82 AS col1
----
-3196
-82

skipif mysql # not compatible
query II rowsort label-1227
SELECT DISTINCT COUNT ( * ) * - + 34 * + 94, - 82 AS col1
----
-3196
-82

query I rowsort
SELECT - + NULLIF ( + 47, + 89 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT - COUNT( * ) + - 13 + - 74 * - + 91 col0
----
6720

skipif mysql # not compatible
query I rowsort label-1229
SELECT - COUNT ( * ) + - 13 + - 74 * - + 91 col0
----
6720

onlyif mysql # aggregate syntax: 
query II rowsort label-1230
SELECT ALL 43 * - 72 AS col0, 78 - - COUNT( + - 74 ) AS col1
----
-3096
79

skipif mysql # not compatible
query II rowsort label-1230
SELECT ALL 43 * - 72 AS col0, 78 - - COUNT ( + - 74 ) AS col1
----
-3096
79

query I rowsort
SELECT ALL ( 64 ) * 11 AS col2
----
704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1232
SELECT DISTINCT 48 * CAST( 15 AS SIGNED )
----
720

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT 48 * CAST ( 15 AS INTEGER )
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT NULLIF ( COUNT( * ), 52 / + + NULLIF ( MIN( ALL + 22 ), ( 88 ) + - COALESCE ( + 57, - COALESCE ( - 44, SUM( + 38 ) ) + - COUNT( * ), + 55 ) ) - - ( + 4 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1233
SELECT NULLIF ( COUNT ( * ), 52 / + + NULLIF ( MIN ( ALL + 22 ), ( 88 ) + - COALESCE ( + 57, - COALESCE ( - 44, SUM ( + 38 ) ) + - COUNT ( * ), + 55 ) ) - - ( + 4 ) )
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1235
SELECT - ( - 75 ) + - 22 * + 67 AS col0, COUNT( * ) + 40 AS col0
----
-1399
41

skipif mysql # not compatible
query II rowsort label-1235
SELECT - ( - 75 ) + - 22 * + 67 AS col0, COUNT ( * ) + 40 AS col0
----
-1399
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT + CASE NULLIF ( + CASE - 13 WHEN - 64 THEN - 20 + - 91 * 4 * + COUNT( * ) ELSE COALESCE ( - MIN( ALL 9 ), + 22 / + + 86 / + 81 + - 92 / 23 ) + 89 END, 74 + - COUNT( * ) ) WHEN + 74 THEN NULL ELSE + 87 + - 0 END AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1236
SELECT + CASE NULLIF ( + CASE - 13 WHEN - 64 THEN - 20 + - 91 * 4 * + COUNT ( * ) ELSE COALESCE ( - MIN ( ALL 9 ), + 22 / + + 86 / + 81 + - 92 / 23 ) + 89 END, 74 + - COUNT ( * ) ) WHEN + 74 THEN NULL ELSE + 87 + - 0 END AS col1
----
87

query I rowsort
SELECT ALL + ( + 28 ) AS col0
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT - NULLIF ( + + 92, + COUNT( * ) * 37 * - 87 ) + + 25 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1239
SELECT - NULLIF ( + + 92, + COUNT ( * ) * 37 * - 87 ) + + 25 AS col1
----
-67

query I rowsort
SELECT DISTINCT - 78 * 37 + + 92
----
-2794

query I rowsort
SELECT DISTINCT + 56 * - 66
----
-3696

query I rowsort
SELECT ALL + + 78 * 3 + - 96
----
138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL + - 13 * - + 50 + - + CASE + 55 WHEN + NULLIF ( + COUNT( * ), + 86 + + 5 ) THEN 87 + + + COUNT( DISTINCT + 15 ) + 21 WHEN COUNT( * ) * - MIN( 93 ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL + - 13 * - + 50 + - + CASE + 55 WHEN + NULLIF ( + COUNT ( * ), + 86 + + 5 ) THEN 87 + + + COUNT ( DISTINCT + 15 ) + 21 WHEN COUNT ( * ) * - MIN ( 93 ) THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ALL - + 46 * - COUNT( * ) * - 60 * + 1 * 61 + 92 AS col1
----
-168268

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL - + 46 * - COUNT ( * ) * - 60 * + 1 * 61 + 92 AS col1
----
-168268

query I rowsort
SELECT - + 70 * - + 93 AS col0
----
6510

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1248
SELECT - 78 DIV + 59
----
-1

skipif mysql # not compatible
query I rowsort label-1248
SELECT - 78 / + 59
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1249
SELECT ALL - + CAST( - CASE + - COUNT( ALL + 31 ) WHEN - 34 + - + 26 + + 9 THEN CASE - 95 WHEN - 28 + 88 THEN NULL WHEN - - 68 * + MAX( - 88 ) / 34 THEN + 7 + 96 * 6 END * + NULLIF ( + 74, + 35 + ( NULLIF ( - NULLIF ( - COUNT( * ), 20 - COUNT( * ) ), 14 - + COUNT( * ) ) ) ) END AS DECIMAL ) * 52 - + MIN( 32 - - 71 * - 2 ) / - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL - + CAST ( - CASE + - COUNT ( ALL + 31 ) WHEN - 34 + - + 26 + + 9 THEN CASE - 95 WHEN - 28 + 88 THEN NULL WHEN - - 68 * + MAX ( - 88 ) / 34 THEN + 7 + 96 * 6 END * + NULLIF ( + 74, + 35 + ( NULLIF ( - NULLIF ( - COUNT ( * ), 20 - COUNT ( * ) ), 14 - + COUNT ( * ) ) ) ) END AS REAL ) * 52 - + MIN ( 32 - - 71 * - 2 ) / - 45
----
NULL

query I rowsort
SELECT ALL - 93 - + + 7 + - + 21
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-1251
SELECT DISTINCT + - ( + - 81 ) DIV - 97 * ( - 85 )
----
0

skipif mysql # not compatible
query I rowsort label-1251
SELECT DISTINCT + - ( + - 81 ) / - 97 * ( - 85 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT + - COUNT( * ) + + COUNT( * ) * - 92
----
-93

skipif mysql # not compatible
query I rowsort label-1252
SELECT + - COUNT ( * ) + + COUNT ( * ) * - 92
----
-93

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1254
SELECT ALL 24 * + 1 + - CASE + ( - 55 ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 62 * 97 * + + COUNT( * ) * - 28 DIV + 5 + + ( 6 ) THEN + COUNT( * ) * + 18 ELSE - MAX( 6 ) DIV + ( 45 ) + 32 END
----
-8

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL 24 * + 1 + - CASE + ( - 55 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 62 * 97 * + + COUNT ( * ) * - 28 / + 5 + + ( 6 ) THEN + COUNT ( * ) * + 18 ELSE - MAX ( 6 ) / + ( 45 ) + 32 END
----
-8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1256
SELECT ALL + 4 * 20 DIV - - 88
----
0

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL + 4 * 20 / - - 88
----
0

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

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

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

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

query I rowsort
SELECT ALL 35 + + 17 + + ( - 62 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-1260
SELECT DISTINCT 34, COUNT( * ) + 54 AS col0
----
34
55

skipif mysql # not compatible
query II rowsort label-1260
SELECT DISTINCT 34, COUNT ( * ) + 54 AS col0
----
34
55

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1262
SELECT ALL 38 DIV - - COUNT( * ) + + + SUM( ALL 40 )
----
78

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL 38 / - - COUNT ( * ) + + + SUM ( ALL 40 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1263
SELECT + CAST( + 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-1263
SELECT + CAST ( + 27 AS INTEGER )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1264
SELECT CAST( + + 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1264
SELECT CAST ( + + 1 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL 93 * + MIN( DISTINCT + 24 ) AS col2
----
2232

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL 93 * + MIN ( DISTINCT + 24 ) AS col2
----
2232

query I rowsort
SELECT - 64 * - 89
----
5696

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1268
SELECT CAST( NULL AS SIGNED ) AS col1, ( + 67 ) DIV - 93 * + 70
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1268
SELECT CAST ( NULL AS INTEGER ) AS col1, ( + 67 ) / - 93 * + 70
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1269
SELECT DISTINCT + 57 DIV + - 52 - - 32
----
31

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT + 57 / + - 52 - - 32
----
31

query I rowsort
SELECT + + 0
----
0

query I rowsort
SELECT - 67 * + - 14 + - + 90 AS col0
----
848

query I rowsort
SELECT ALL + 14 * + 46 AS col0
----
644

query II rowsort
SELECT DISTINCT + - 11 AS col2, + 4
----
-11
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1274
SELECT + - COALESCE ( + 69, - - 94 + - - 93 DIV - 94 - MAX( + CAST( NULL AS SIGNED ) ) + 88 * - - 10 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-1274
SELECT + - COALESCE ( + 69, - - 94 + - - 93 / - 94 - MAX ( + CAST ( NULL AS INTEGER ) ) + 88 * - - 10 ) AS col1
----
-69

query I rowsort
SELECT ALL + 64 * - + 46
----
-2944

query I rowsort
SELECT - - 59 * + + 31 AS col0
----
1829

query I rowsort
SELECT ALL + 53 * - 65
----
-3445

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT SUM( 4 ) col2
----
4

skipif mysql # not compatible
query I rowsort label-1278
SELECT SUM ( 4 ) col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1279
SELECT NULLIF ( + - COALESCE ( COUNT( * ), - - NULLIF ( - ( + 7 ), + - COUNT( * ) - - ( - COUNT( * ) ) * + - 78 * - - CAST( - 40 AS SIGNED ) + 34 ), + 82 * - + 38 ), ( - 73 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1279
SELECT NULLIF ( + - COALESCE ( COUNT ( * ), - - NULLIF ( - ( + 7 ), + - COUNT ( * ) - - ( - COUNT ( * ) ) * + - 78 * - - CAST ( - 40 AS INTEGER ) + 34 ), + 82 * - + 38 ), ( - 73 ) ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1280
SELECT 51 + 66 DIV + 95 + + 45
----
96

skipif mysql # not compatible
query I rowsort label-1280
SELECT 51 + 66 / + 95 + + 45
----
96

query I rowsort
SELECT 94 * ( - 10 ) + - 23 AS col2
----
-963

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT - 92 + + 8 - 32 + - 85 * + NULLIF ( - - 92, - 14 - - NULLIF ( - NULLIF ( - + 45, + 23 * - 48 + + - 93 + + - 49 ), + + COUNT( * ) + + 23 ) - 49 ) AS col0
----
-7936

skipif mysql # not compatible
query I rowsort label-1283
SELECT - 92 + + 8 - 32 + - 85 * + NULLIF ( - - 92, - 14 - - NULLIF ( - NULLIF ( - + 45, + 23 * - 48 + + - 93 + + - 49 ), + + COUNT ( * ) + + 23 ) - 49 ) AS col0
----
-7936

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1284
SELECT + + 21 * + + COALESCE ( + + NULLIF ( + + 40, MAX( + 62 ) ), 72 - + 25 / - 32 * + COUNT( * ) ) - + + 16 / + - CASE + 30 WHEN + 8 + - COALESCE ( COUNT( 67 ), - CASE + CASE - 46 WHEN MIN( ALL 12 ) * + 25 THEN + COUNT( * ) WHEN 1 + NULLIF ( + 92 + + ( + NULLIF ( 11, - AVG ( 77 ) ) - - 71 ), + 14 * - CASE + 27 WHEN 64 * + AVG ( 13 ) - - SUM( DISTINCT 24 ) * + 45 THEN + 38 WHEN + 24 * CAST( + COUNT( * ) AS DECIMAL ) THEN NULL ELSE NULL END ) * + 20 THEN NULL ELSE COUNT( * ) * - COUNT( * ) + 47 * 91 END WHEN + 46 THEN 20 * + 12 - 15 WHEN + 19 THEN + 31 + ( NULLIF ( NULLIF ( - 25, + COALESCE ( 2, 49 * 59 ) ), 83 + 50 ) ) * + 54 END ) THEN ( - 27 ) + + 90 WHEN + 45 + - 49 THEN NULL END + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT + + 21 * + + COALESCE ( + + NULLIF ( + + 40, MAX ( + 62 ) ), 72 - + 25 / - 32 * + COUNT ( * ) ) - + + 16 / + - CASE + 30 WHEN + 8 + - COALESCE ( COUNT ( 67 ), - CASE + CASE - 46 WHEN MIN ( ALL 12 ) * + 25 THEN + COUNT ( * ) WHEN 1 + NULLIF ( + 92 + + ( + NULLIF ( 11, - AVG ( 77 ) ) - - 71 ), + 14 * - CASE + 27 WHEN 64 * + AVG ( 13 ) - - SUM ( DISTINCT 24 ) * + 45 THEN + 38 WHEN + 24 * CAST ( + COUNT ( * ) AS REAL ) THEN NULL ELSE NULL END ) * + 20 THEN NULL ELSE COUNT ( * ) * - COUNT ( * ) + 47 * 91 END WHEN + 46 THEN 20 * + 12 - 15 WHEN + 19 THEN + 31 + ( NULLIF ( NULLIF ( - 25, + COALESCE ( 2, 49 * 59 ) ), 83 + 50 ) ) * + 54 END ) THEN ( - 27 ) + + 90 WHEN + 45 + - 49 THEN NULL END + 12
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1285
SELECT ALL - - 83 DIV - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - - 83 / - COUNT ( * ) AS col0
----
-83

query II rowsort
SELECT ALL 61, 20 AS col2
----
61
20

query I rowsort
SELECT 48 * - 90 * - 7
----
30240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1288
SELECT ALL + 73 + - - 61 - + 64 - + - CAST( + - 54 AS SIGNED ) + COUNT( * ) * - - COUNT( - 86 ) * + 35
----
51

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL + 73 + - - 61 - + 64 - + - CAST ( + - 54 AS INTEGER ) + COUNT ( * ) * - - COUNT ( - 86 ) * + 35
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-1289
SELECT - 72 AS col1, + 97 DIV - + 6 + 74
----
-72
58

skipif mysql # not compatible
query II rowsort label-1289
SELECT - 72 AS col1, + 97 / - + 6 + 74
----
-72
58

query I rowsort
SELECT 93 + + 6
----
99

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

skipif mysql # not compatible
query I rowsort label-1291
SELECT ( - CAST ( NULL AS INTEGER ) ) + 64 * - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT ALL 88 + + 95 * CASE + 8 WHEN - COUNT( * ) - + COALESCE ( + + 79, + + 22 ) + + 50 - - MAX( - 73 ) * + - 8 THEN NULL WHEN + 49 + 59 + + 69 - - 6 + 42 THEN NULL ELSE 77 END * - 58 AS col2
----
-424182

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL 88 + + 95 * CASE + 8 WHEN - COUNT ( * ) - + COALESCE ( + + 79, + + 22 ) + + 50 - - MAX ( - 73 ) * + - 8 THEN NULL WHEN + 49 + 59 + + 69 - - 6 + 42 THEN NULL ELSE 77 END * - 58 AS col2
----
-424182

query I rowsort
SELECT 83 + - - 19 * - 29 AS col1
----
-468

query II rowsort
SELECT ALL - 10 + 40 AS col1, - 71 AS col1
----
30
-71

query I rowsort
SELECT DISTINCT + 56 * 26 col0
----
1456

query I rowsort
SELECT - 90 col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT ALL ( + + 63 ) + + 4 + + 69 + + ( - 55 ) * + 14 + - 8 * COUNT( * ) * - 26 col2
----
-426

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL ( + + 63 ) + + 4 + + 69 + + ( - 55 ) * + 14 + - 8 * COUNT ( * ) * - 26 col2
----
-426

onlyif mysql # aggregate syntax: 
query II rowsort label-1298
SELECT ALL 94, COUNT( * ) * - COUNT( * ) * 31 AS col2
----
94
-31

skipif mysql # not compatible
query II rowsort label-1298
SELECT ALL 94, COUNT ( * ) * - COUNT ( * ) * 31 AS col2
----
94
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT COUNT( * ) + ( COUNT( * ) ) + - 31 * + 66 AS col0
----
-2044

skipif mysql # not compatible
query I rowsort label-1299
SELECT COUNT ( * ) + ( COUNT ( * ) ) + - 31 * + 66 AS col0
----
-2044

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1300
SELECT 41 col1, COUNT( * ) - + 38 - + 75 - - NULLIF ( + - COUNT( DISTINCT 32 ), - + CAST( NULL AS DECIMAL ) ) * + 95 * - + 57 + + - 65 + + + 3 * - SUM( + 78 )
----
41
5004

skipif mysql # not compatible
query II rowsort label-1300
SELECT 41 col1, COUNT ( * ) - + 38 - + 75 - - NULLIF ( + - COUNT ( DISTINCT 32 ), - + CAST ( NULL AS REAL ) ) * + 95 * - + 57 + + - 65 + + + 3 * - SUM ( + 78 )
----
41
5004

query I rowsort
SELECT 89 * + 80
----
7120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1302
SELECT ALL - 58 AS col0, MAX( DISTINCT CASE + ( + + 41 ) WHEN 31 THEN + 81 WHEN 38 THEN - CAST( + 22 AS SIGNED ) + 94 END )
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-1302
SELECT ALL - 58 AS col0, MAX ( DISTINCT CASE + ( + + 41 ) WHEN 31 THEN + 81 WHEN 38 THEN - CAST ( + 22 AS INTEGER ) + 94 END )
----
-58
NULL

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

skipif mysql # not compatible
query I rowsort label-1303
SELECT 17 / + 41
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT ALL + 48 DIV + 5 + + - 98
----
-89

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL + 48 / + 5 + + - 98
----
-89

query I rowsort
SELECT ( 1 ) + NULLIF ( 88, - 52 ) + + 90 AS col0
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1306
SELECT + + CASE WHEN - SUM( - + 25 ) IS NOT NULL THEN + 32 + + CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1306
SELECT + + CASE WHEN - SUM ( - + 25 ) IS NOT NULL THEN + 32 + + CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 74 - + 12
----
-86

query I rowsort
SELECT DISTINCT 39 * 12 AS col1
----
468

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1309
SELECT CAST( NULL AS DECIMAL ) / 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1309
SELECT CAST ( NULL AS REAL ) / 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT DISTINCT - ( + - 41 ) * - COUNT( * ) * 81 AS col1
----
-3321

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT - ( + - 41 ) * - COUNT ( * ) * 81 AS col1
----
-3321

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT 86 * COUNT( ALL - 75 )
----
86

skipif mysql # not compatible
query I rowsort label-1311
SELECT 86 * COUNT ( ALL - 75 )
----
86

query I rowsort
SELECT NULLIF ( ( 25 ), + ( + ( + + ( - 59 ) ) ) / + + CASE - - 41 WHEN - 33 THEN + 18 ELSE 30 * 97 END / + + 8 ) AS col1
----
25

query I rowsort
SELECT - 15 * - - 8 * 62 + + 42 AS col0
----
-7398

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT DISTINCT - SUM( ALL + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-1314
SELECT DISTINCT - SUM ( ALL + 15 )
----
-15

query II rowsort
SELECT ALL - 76 AS col1, 87
----
-76
87

query I rowsort
SELECT - 23 + 76 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT 66 * + - NULLIF ( - 58, + 83 * - COALESCE ( - 54, - 23 ) + + NULLIF ( + 62, - + 10 ) ) * 81 + - NULLIF ( + - MIN( ALL + + 97 ), 66 * MAX( DISTINCT - CASE + 35 WHEN 39 THEN NULL ELSE + 4 + + 32 END ) ) AS col1
----
310165

skipif mysql # not compatible
query I rowsort label-1317
SELECT 66 * + - NULLIF ( - 58, + 83 * - COALESCE ( - 54, - 23 ) + + NULLIF ( + 62, - + 10 ) ) * 81 + - NULLIF ( + - MIN ( ALL + + 97 ), 66 * MAX ( DISTINCT - CASE + 35 WHEN 39 THEN NULL ELSE + 4 + + 32 END ) ) AS col1
----
310165

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT COUNT( * ) * 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1318
SELECT COUNT ( * ) * 23 AS col2
----
23

query II rowsort
SELECT ALL + + 31 + + 29 + 13 * - + 8 + + + 68 + 48 * - 54 AS col2, 23 AS col2
----
-2568
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT + COUNT( ALL - 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1320
SELECT + COUNT ( ALL - 42 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1321
SELECT CAST( NULL AS SIGNED ) AS col2, + 61 AS col2
----
NULL
61

skipif mysql # not compatible
query II rowsort label-1321
SELECT CAST ( NULL AS INTEGER ) AS col2, + 61 AS col2
----
NULL
61

query II rowsort
SELECT DISTINCT 78, + 62 AS col1
----
78
62

query I rowsort
SELECT DISTINCT - 59 + + 34
----
-25

query II rowsort
SELECT 84 * + 72 AS col0, 69
----
6048
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT 64 - + 22 + + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-1326
SELECT 64 - + 22 + + COUNT ( * ) AS col2
----
43

query I rowsort
SELECT ALL - 14 + + 36 AS col2
----
22

query I rowsort
SELECT 73 * + 42 * + + 22
----
67452

query I rowsort
SELECT ALL 24 + + + 11 * - 8 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT 83 * - + NULLIF ( - COUNT( * ), + 97 )
----
83

skipif mysql # not compatible
query I rowsort label-1330
SELECT 83 * - + NULLIF ( - COUNT ( * ), + 97 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT ALL MIN( + 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL MIN ( + 12 ) AS col0
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-1332
SELECT 99 * - + 42, CASE - 72 WHEN - + 51 THEN + - 21 * + - 11 + ( - + 90 ) DIV + 42 * - + 75 ELSE + 35 END * - 64 - 29 + - + 8 AS col2
----
-4158
-2277

skipif mysql # not compatible
query II rowsort label-1332
SELECT 99 * - + 42, CASE - 72 WHEN - + 51 THEN + - 21 * + - 11 + ( - + 90 ) / + 42 * - + 75 ELSE + 35 END * - 64 - 29 + - + 8 AS col2
----
-4158
-2277

query I rowsort
SELECT DISTINCT - 97 - - 73
----
-24

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

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

query I rowsort
SELECT ALL - 79 - 54 * + 20 * + - CASE 66 WHEN + NULLIF ( + 96, + + 69 - 31 + 43 ) * 76 + + 49 THEN 1 ELSE NULL END / - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT DISTINCT + 25 * 53 * - ( + 32 ) * ( COALESCE ( - 15, + - CASE - - 75 WHEN 23 * + + COUNT( DISTINCT + + 61 ) THEN - - 79 ELSE NULL END ) ) + - 65 AS col2
----
635935

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT + 25 * 53 * - ( + 32 ) * ( COALESCE ( - 15, + - CASE - - 75 WHEN 23 * + + COUNT ( DISTINCT + + 61 ) THEN - - 79 ELSE NULL END ) ) + - 65 AS col2
----
635935

query II rowsort
SELECT 92 + 86, + ( 89 ) AS col1
----
178
89

query I rowsort
SELECT 98 * CASE + 74 WHEN + + 85 + 58 THEN 68 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1339
SELECT ALL - 7 * + + 57 AS col1, + COUNT( * ) AS col0
----
-399
1

skipif mysql # not compatible
query II rowsort label-1339
SELECT ALL - 7 * + + 57 AS col1, + COUNT ( * ) AS col0
----
-399
1

query I rowsort
SELECT ALL - + 5 AS col2
----
-5

query I rowsort
SELECT DISTINCT - 19 * - 93 AS col2
----
1767

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1343
SELECT ALL - - 67 * 33 * - NULLIF ( - + 83, + + CAST( ( - 72 ) AS SIGNED ) * + - 6 / ( + 56 ) + - 19 * - 93 + - COALESCE ( 60, - 90, - ( 60 ) * - 89 ) ) + - 35 AS col1
----
183478

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL - - 67 * 33 * - NULLIF ( - + 83, + + CAST ( ( - 72 ) AS INTEGER ) * + - 6 / ( + 56 ) + - 19 * - 93 + - COALESCE ( 60, - 90, - ( 60 ) * - 89 ) ) + - 35 AS col1
----
183478

query I rowsort
SELECT - - 31 * + - 54 AS col2
----
-1674

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1345
SELECT + ( + 8 ) DIV 99 - + 46 - - COUNT( * ), 42 * 13 + 37 + - ( - ( 35 ) ) * ( + 68 ) + - 44 AS col0
----
-45
2919

skipif mysql # not compatible
query II rowsort label-1345
SELECT + ( + 8 ) / 99 - + 46 - - COUNT ( * ), 42 * 13 + 37 + - ( - ( 35 ) ) * ( + 68 ) + - 44 AS col0
----
-45
2919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1346
SELECT MIN( ALL - NULLIF ( + 72, CAST( NULL AS SIGNED ) + - - 3 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-1346
SELECT MIN ( ALL - NULLIF ( + 72, CAST ( NULL AS INTEGER ) + - - 3 ) )
----
-72

query I rowsort
SELECT + 60 * + - 70 * + - 96 AS col2
----
403200

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT DISTINCT - NULLIF ( - 87, - - 67 ) * - 6 + COUNT( - 94 ) + - 30 + 10 * + - MAX( + 69 ) * + + 93 * + 35 * 94 AS col0
----
-211119851

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT - NULLIF ( - 87, - - 67 ) * - 6 + COUNT ( - 94 ) + - 30 + 10 * + - MAX ( + 69 ) * + + 93 * + 35 * 94 AS col0
----
-211119851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1349
SELECT ALL + NULLIF ( - + 59, - + 33 * + - 65 * NULLIF ( + + 78, - - CAST( - 94 AS SIGNED ) / - - 42 + - - 3 ) * 44 )
----
-59

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL + NULLIF ( - + 59, - + 33 * + - 65 * NULLIF ( + + 78, - - CAST ( - 94 AS INTEGER ) / - - 42 + - - 3 ) * 44 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT DISTINCT - ( + 84 ) * 97 + - COUNT( * ) + + COUNT( * ) AS col2
----
-8148

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT - ( + 84 ) * 97 + - COUNT ( * ) + + COUNT ( * ) AS col2
----
-8148

onlyif mysql # DIV for integer division: 
query I rowsort label-1351
SELECT + 87 DIV NULLIF ( 31, 58 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1351
SELECT + 87 / NULLIF ( 31, 58 ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1352
SELECT DISTINCT + CAST( + CASE - COALESCE ( 84, + 43 ) WHEN NULLIF ( + 81, + 72 ) * - + 83 THEN - - CASE + 57 WHEN + + 27 THEN - COUNT( * ) ELSE NULL END ELSE - 5 - SUM( + 23 ) END AS SIGNED ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-1352
SELECT DISTINCT + CAST ( + CASE - COALESCE ( 84, + 43 ) WHEN NULLIF ( + 81, + 72 ) * - + 83 THEN - - CASE + 57 WHEN + + 27 THEN - COUNT ( * ) ELSE NULL END ELSE - 5 - SUM ( + 23 ) END AS INTEGER ) AS col0
----
-28

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

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT - ( + 13 ) * COUNT ( * ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT - COUNT( * ) * ( + 56 ) * + 24 + - + 44 + - 94 * - CASE + NULLIF ( + - 38, ( - + 63 ) + - 14 * 46 * - 24 + 64 ) WHEN + - 74 THEN + 12 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1354
SELECT - COUNT ( * ) * ( + 56 ) * + 24 + - + 44 + - 94 * - CASE + NULLIF ( + - 38, ( - + 63 ) + - 14 * 46 * - 24 + 64 ) WHEN + - 74 THEN + 12 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1355
SELECT + CASE + 60 WHEN - 82 / 39 - - - 35 THEN + 45 END / 66 - - - 48, - MIN( - 73 ) AS col1
----
NULL
73

skipif mysql # not compatible
query II rowsort label-1355
SELECT + CASE + 60 WHEN - 82 / 39 - - - 35 THEN + 45 END / 66 - - - 48, - MIN ( - 73 ) AS col1
----
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT 10 * - 47 + - 58 * MAX( ALL + 79 )
----
-5052

skipif mysql # not compatible
query I rowsort label-1356
SELECT 10 * - 47 + - 58 * MAX ( ALL + 79 )
----
-5052

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1357
SELECT 10 AS col0, - 76 * CAST( NULL AS SIGNED )
----
10
NULL

skipif mysql # not compatible
query II rowsort label-1357
SELECT 10 AS col0, - 76 * CAST ( NULL AS INTEGER )
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT ALL MAX( - - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL MAX ( - - 5 )
----
5

query I rowsort
SELECT + NULLIF ( + 34, ( - 64 ) ) + + 89 AS col2
----
123

query I rowsort
SELECT + 95 + 17
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT ALL - 10 - - COUNT( - 35 )
----
-9

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL - 10 - - COUNT ( - 35 )
----
-9

query II rowsort
SELECT ALL 78, + 24 * 85 - + 41 col2
----
78
1999

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT CASE - 80 WHEN 37 THEN NULL ELSE COUNT( - + 50 ) END
----
1

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT CASE - 80 WHEN 37 THEN NULL ELSE COUNT ( - + 50 ) END
----
1

query I rowsort
SELECT - 65 + - 52 AS col1
----
-117

query I rowsort
SELECT ALL 70 * 35 AS col0
----
2450

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT - 41 + + - COUNT( * ) * 69 * - MIN( 47 ) * 13 - - 11 AS col0
----
42129

skipif mysql # not compatible
query I rowsort label-1366
SELECT - 41 + + - COUNT ( * ) * 69 * - MIN ( 47 ) * 13 - - 11 AS col0
----
42129

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1369
SELECT + NULLIF ( - 82, CAST( NULL AS DECIMAL ) * - 61 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT + NULLIF ( - 82, CAST ( NULL AS REAL ) * - 61 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 34 * - 59 * - ( - 42 )
----
84252

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT - MIN( ALL 46 ) + - COALESCE ( + 84, - 72 + - 9, - 60 ) AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-1371
SELECT - MIN ( ALL 46 ) + - COALESCE ( + 84, - 72 + - 9, - 60 ) AS col0
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-1372
SELECT ALL + ( 90 ) DIV - + 26 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL + ( 90 ) / - + 26 AS col2
----
-3

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

skipif mysql # not compatible
query II rowsort label-1373
SELECT DISTINCT COUNT ( * ) AS col0, - 69
----
1
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1374
SELECT DISTINCT + - 2 DIV NULLIF ( 4, + - 42 + - 26 ) * - - 18
----
0

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT + - 2 / NULLIF ( 4, + - 42 + - 26 ) * - - 18
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1375
SELECT + 99 * + + CAST( + - 58 AS SIGNED )
----
-5742

skipif mysql # not compatible
query I rowsort label-1375
SELECT + 99 * + + CAST ( + - 58 AS INTEGER )
----
-5742

query I rowsort
SELECT - - 71 + + 7 AS col1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT - + 60 DIV - 49 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1377
SELECT - + 60 / - 49 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1378
SELECT + CAST( + + COUNT( * ) AS SIGNED ) * - - 79 + CASE - - COUNT( * ) WHEN + 45 THEN + 29 / + 67 / + 10 ELSE NULL END + - - 85 + ( - + 9 ) * - 96 * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) * - - 79 + CASE - - COUNT ( * ) WHEN + 45 THEN + 29 / + 67 / + 10 ELSE NULL END + - - 85 + ( - + 9 ) * - 96 * 90
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT - - 80 * COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1380
SELECT - - 80 * COUNT ( * ) AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1381
SELECT ALL + + MIN( - 4 ) DIV 54 + - SUM( + 89 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL + + MIN ( - 4 ) / 54 + - SUM ( + 89 ) AS col0
----
-89

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1383
SELECT - COUNT( * ) DIV + 87 * - - 94 + - 12 + 65
----
53

skipif mysql # not compatible
query I rowsort label-1383
SELECT - COUNT ( * ) / + 87 * - - 94 + - 12 + 65
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT ALL - 30 * - 97 - + + COUNT( * ) * ( - CASE - - 14 WHEN 17 * 36 + 1 + - - 30 THEN - - 86 WHEN + - 20 * + 31 THEN NULL WHEN - + NULLIF ( + + 92, - 26 ) + + MIN( DISTINCT - + 93 ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL - 30 * - 97 - + + COUNT ( * ) * ( - CASE - - 14 WHEN 17 * 36 + 1 + - - 30 THEN - - 86 WHEN + - 20 * + 31 THEN NULL WHEN - + NULLIF ( + + 92, - 26 ) + + MIN ( DISTINCT - + 93 ) THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1385
SELECT DISTINCT + 87 * 20 - + 93 - + 2 + - + MAX( - 12 ) + + + 58 * + 19 DIV 19 + + 16 - + 56 + - + 79 * + 99 * - 23 + + 41 + 93 - 70 + + 67 * - 91 + + 45 AS col1
----
175570

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT + 87 * 20 - + 93 - + 2 + - + MAX ( - 12 ) + + + 58 * + 19 / 19 + + 16 - + 56 + - + 79 * + 99 * - 23 + + 41 + 93 - 70 + + 67 * - 91 + + 45 AS col1
----
175570

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT ALL + - ( - CASE - 91 WHEN + 71 THEN 35 + 20 * 49 - + 62 WHEN + MAX( - - 43 ) THEN + - 41 WHEN + COUNT( * ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL + - ( - CASE - 91 WHEN + 71 THEN 35 + 20 * 49 - + 62 WHEN + MAX ( - - 43 ) THEN + - 41 WHEN + COUNT ( * ) THEN NULL END )
----
NULL

query II rowsort
SELECT DISTINCT - 23 * + 96 + + 71 AS col2, - 39
----
-2137
-39

query I rowsort
SELECT + - 20 * + 37 + - 7
----
-747

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT + + 3 + + 85 + COALESCE ( COUNT( * ), + 22, + - COUNT( * ) ) + 85 * - 1 * - COUNT( * ) AS col1, - 17 * + 41
----
174
-697

skipif mysql # not compatible
query II rowsort label-1389
SELECT + + 3 + + 85 + COALESCE ( COUNT ( * ), + 22, + - COUNT ( * ) ) + 85 * - 1 * - COUNT ( * ) AS col1, - 17 * + 41
----
174
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - COUNT( * ) * - + 50 * + + 53 AS col0
----
2650

skipif mysql # not compatible
query I rowsort label-1390
SELECT - COUNT ( * ) * - + 50 * + + 53 AS col0
----
2650

onlyif mysql # aggregate syntax: 
query II rowsort label-1391
SELECT + ( 62 ) AS col0, 41 * COUNT( ALL 92 ) + - COUNT( * ) AS col1
----
62
40

skipif mysql # not compatible
query II rowsort label-1391
SELECT + ( 62 ) AS col0, 41 * COUNT ( ALL 92 ) + - COUNT ( * ) AS col1
----
62
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1392
SELECT + COALESCE ( - 32, 84, - MAX( DISTINCT - - 5 ) + + 77 - - - 45 - 23 * CAST( NULL AS SIGNED ) + + 78 ) AS col0, COUNT( * ) + - COUNT( ALL CAST( NULL AS SIGNED ) ) + 64
----
-32
65

skipif mysql # not compatible
query II rowsort label-1392
SELECT + COALESCE ( - 32, 84, - MAX ( DISTINCT - - 5 ) + + 77 - - - 45 - 23 * CAST ( NULL AS INTEGER ) + + 78 ) AS col0, COUNT ( * ) + - COUNT ( ALL CAST ( NULL AS INTEGER ) ) + 64
----
-32
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT COUNT( * ) * + 52 - - + 99 AS col2
----
151

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT COUNT ( * ) * + 52 - - + 99 AS col2
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1394
SELECT DISTINCT 94 * COUNT( * ) DIV COUNT( * ) col0
----
94

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT 94 * COUNT ( * ) / COUNT ( * ) col0
----
94

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

skipif mysql # not compatible
query I rowsort label-1395
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1396
SELECT MAX( 22 ) AS col1, 99 * - SUM( DISTINCT + - 85 ) * - 44 + - 9 * + 83 * + + 92 AS col1
----
22
-438984

skipif mysql # not compatible
query II rowsort label-1396
SELECT MAX ( 22 ) AS col1, 99 * - SUM ( DISTINCT + - 85 ) * - 44 + - 9 * + 83 * + + 92 AS col1
----
22
-438984

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT MAX( ALL 21 )
----
21

skipif mysql # not compatible
query I rowsort label-1397
SELECT MAX ( ALL 21 )
----
21

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1400
SELECT ALL SUM( + 40 ), 66 AS col1
----
40
66

skipif mysql # not compatible
query II rowsort label-1400
SELECT ALL SUM ( + 40 ), 66 AS col1
----
40
66

query I rowsort
SELECT + 57 * - 57 AS col1
----
-3249

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT DISTINCT - 36 + - - 55 * - CASE - 85 WHEN + + NULLIF ( + - COUNT( * ), + + 15 / 26 / 14 ) THEN 70 WHEN + 85 * + 59 THEN NULL ELSE NULL END * 40 * 1 * + 17 + 2 / - COUNT( ALL - - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT - 36 + - - 55 * - CASE - 85 WHEN + + NULLIF ( + - COUNT ( * ), + + 15 / 26 / 14 ) THEN 70 WHEN + 85 * + 59 THEN NULL ELSE NULL END * 40 * 1 * + 17 + 2 / - COUNT ( ALL - - 33 )
----
NULL

query I rowsort
SELECT + 67 * 27
----
1809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1404
SELECT - CASE 17 WHEN + 69 * - 18 * + 73 + + - 74 + + 34 THEN NULL WHEN + CAST( + - 22 AS SIGNED ) THEN CAST( NULL AS SIGNED ) + + COALESCE ( 85, - 28 * 63 + - ( 82 ) + + 99 * - + COUNT( * ) + - - COUNT( + 13 ) - 37 * - 15 * 62, 54 ) ELSE 25 END DIV 21 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1404
SELECT - CASE 17 WHEN + 69 * - 18 * + 73 + + - 74 + + 34 THEN NULL WHEN + CAST ( + - 22 AS INTEGER ) THEN CAST ( NULL AS INTEGER ) + + COALESCE ( 85, - 28 * 63 + - ( 82 ) + + 99 * - + COUNT ( * ) + - - COUNT ( + 13 ) - 37 * - 15 * 62, 54 ) ELSE 25 END / 21 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1405
SELECT DISTINCT + - 0 + + ( NULLIF ( - 97, - + COUNT( * ) + - + 50 + - - CAST( + 6 AS SIGNED ) ) )
----
-97

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT + - 0 + + ( NULLIF ( - 97, - + COUNT ( * ) + - + 50 + - - CAST ( + 6 AS INTEGER ) ) )
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1406
SELECT - 41 DIV 82 + 21 + 94 * + 49 - COUNT( * ) - + 76 AS col0
----
4550

skipif mysql # not compatible
query I rowsort label-1406
SELECT - 41 / 82 + 21 + 94 * + 49 - COUNT ( * ) - + 76 AS col0
----
4550

onlyif mysql # DIV for integer division: 
query I rowsort label-1407
SELECT + 42 DIV 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1407
SELECT + 42 / 69 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1408
SELECT ALL 17 + + CASE + 45 WHEN + - CAST( 43 AS SIGNED ) * - CASE - 16 WHEN ( - 70 ) THEN ( - - 58 ) END THEN + 25 WHEN + 75 THEN 2 END + - + 82 - + MAX( ALL 60 ) * ( 55 ) * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL 17 + + CASE + 45 WHEN + - CAST ( 43 AS INTEGER ) * - CASE - 16 WHEN ( - 70 ) THEN ( - - 58 ) END THEN + 25 WHEN + 75 THEN 2 END + - + 82 - + MAX ( ALL 60 ) * ( 55 ) * 33
----
NULL

query I rowsort
SELECT DISTINCT - + ( - - 41 ) + + - 94
----
-135

query II rowsort
SELECT DISTINCT - - ( - + 22 ) AS col1, + 47 AS col2
----
-22
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1411
SELECT ALL + MAX( DISTINCT + - 67 ) DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL + MAX ( DISTINCT + - 67 ) / - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT DISTINCT + - MIN( DISTINCT - 37 ) * + 80 + + 28
----
2988

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT + - MIN ( DISTINCT - 37 ) * + 80 + + 28
----
2988

query I rowsort
SELECT - 36 * 57
----
-2052

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT ALL - 27 * 98 DIV + 96
----
-27

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL - 27 * 98 / + 96
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1415
SELECT ALL + - CASE COUNT( * ) WHEN + COUNT( * ) * 22 * - 59 THEN - ( + - COALESCE ( 20, CAST( NULL AS SIGNED ) - + 94 ) ) * - + CAST( NULL AS SIGNED ) END - - MIN( + 99 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL + - CASE COUNT ( * ) WHEN + COUNT ( * ) * 22 * - 59 THEN - ( + - COALESCE ( 20, CAST ( NULL AS INTEGER ) - + 94 ) ) * - + CAST ( NULL AS INTEGER ) END - - MIN ( + 99 ) AS col1
----
NULL

query I rowsort
SELECT ( + + 10 ) * + + 28 + + 25 * + 80 + 85 + - 52 + - 53 AS col2
----
2260

query I rowsort
SELECT DISTINCT + 37 * 38
----
1406

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL + 28 - 61 * ( - + COUNT( * ) )
----
89

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL + 28 - 61 * ( - + COUNT ( * ) )
----
89

query I rowsort
SELECT ALL - 64 col0
----
-64

query I rowsort
SELECT 73 + + - 58
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-1421
SELECT + 5 * - 10 + + + 77, - COUNT( * ) * - + 94 * 3 AS col0
----
27
282

skipif mysql # not compatible
query II rowsort label-1421
SELECT + 5 * - 10 + + + 77, - COUNT ( * ) * - + 94 * 3 AS col0
----
27
282

query I rowsort
SELECT 98 + - 89 AS col2
----
9

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

skipif mysql # not compatible
query I rowsort label-1423
SELECT COUNT ( * ) / - - 15 * + 17
----
0

query I rowsort
SELECT ( + 18 ) * 0 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1425
SELECT ALL CAST( NULL AS SIGNED ) * + 20 * ( + - 43 ) * 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL CAST ( NULL AS INTEGER ) * + 20 * ( + - 43 ) * 95 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1426
SELECT DISTINCT + 75 DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT + 75 / 98 AS col2
----
0

query I rowsort
SELECT DISTINCT + 66 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1428
SELECT ALL 98 AS col2, MAX( + 90 ) + + 12 * - + COUNT( * ) AS col0
----
98
78

skipif mysql # not compatible
query II rowsort label-1428
SELECT ALL 98 AS col2, MAX ( + 90 ) + + 12 * - + COUNT ( * ) AS col0
----
98
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1429
SELECT ALL COUNT( * ) + - + 37 DIV + 43 col1, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-1429
SELECT ALL COUNT ( * ) + - + 37 / + 43 col1, COUNT ( * )
----
1
1

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

skipif mysql # not compatible
query I rowsort label-1430
SELECT COUNT ( * ) + - 20 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT - CASE + 37 WHEN + COUNT( * ) / + 93 + + + 31 + 81 THEN 45 END / - - 94 * 37 * + 97 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1431
SELECT - CASE + 37 WHEN + COUNT ( * ) / + 93 + + + 31 + 81 THEN 45 END / - - 94 * 37 * + 97 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT - 51 + + ( 79 ) * - - 5 + + COUNT( * )
----
345

skipif mysql # not compatible
query I rowsort label-1432
SELECT - 51 + + ( 79 ) * - - 5 + + COUNT ( * )
----
345

query II rowsort
SELECT 9 * + 5 * - 85 AS col0, 57 col2
----
-3825
57

query I rowsort
SELECT - 65 + - CASE - 0 WHEN - + 8 THEN 25 ELSE NULL END + 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1435
SELECT ALL - CAST( NULL AS SIGNED ) + - CAST( + + MAX( DISTINCT - + 23 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( + + MAX ( DISTINCT - + 23 ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 47 + + - 97 + 80 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT ALL ( - MAX( - 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL ( - MAX ( - 4 ) )
----
4

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

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

query I rowsort
SELECT + 31 * ( - 36 ) AS col1
----
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL - NULLIF ( - + 31, COUNT( * ) - CASE - 2 WHEN SUM( 88 ) * 44 THEN - 68 + 57 END - - 68 ) + 88 + + 90
----
209

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL - NULLIF ( - + 31, COUNT ( * ) - CASE - 2 WHEN SUM ( 88 ) * 44 THEN - 68 + 57 END - - 68 ) + 88 + + 90
----
209

query II rowsort
SELECT - - 9 AS col2, 54 AS col2
----
9
54

query I rowsort
SELECT - 34 * - + 26 + 39
----
923

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT 78 * MIN( + 38 ) * + 21 AS col1
----
62244

skipif mysql # not compatible
query I rowsort label-1443
SELECT 78 * MIN ( + 38 ) * + 21 AS col1
----
62244

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT DISTINCT - - NULLIF ( - 80, 34 * + COUNT( DISTINCT - 46 ) + + - 44 + 92 + + NULLIF ( + 42, - - 3 + + 6 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT - - NULLIF ( - 80, 34 * + COUNT ( DISTINCT - 46 ) + + - 44 + 92 + + NULLIF ( + 42, - - 3 + + 6 ) )
----
-80

query I rowsort
SELECT DISTINCT + 70 * - 37 AS col2
----
-2590

query I rowsort
SELECT + 56 + - + 68 + - 50 + ( - 79 ) AS col1
----
-141

query I rowsort
SELECT ALL - - 26 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL + COUNT( + 59 ) - 22
----
-21

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL + COUNT ( + 59 ) - 22
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT ALL - COUNT( * ) AS col0, + 73 + - - 18 * + 55 * + 53 AS col1
----
-1
52543

skipif mysql # not compatible
query II rowsort label-1449
SELECT ALL - COUNT ( * ) AS col0, + 73 + - - 18 * + 55 * + 53 AS col1
----
-1
52543

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT SUM( DISTINCT ( + 89 ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-1450
SELECT SUM ( DISTINCT ( + 89 ) ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT - COUNT( * ) * - MIN( + 82 ) + + 15
----
97

skipif mysql # not compatible
query I rowsort label-1451
SELECT - COUNT ( * ) * - MIN ( + 82 ) + + 15
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1452
SELECT 12 DIV + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1452
SELECT 12 / + 48 AS col1
----
0

query I rowsort
SELECT 83 * 34
----
2822

query I rowsort
SELECT 28 + - - 66
----
94

query II rowsort
SELECT ALL - 43, + 7 * + 79 * + 52 * + 90 * + 65 + - 33 * - 88 + + 87 + 50 AS col2
----
-43
168225641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1456
SELECT ALL - CAST( 17 AS SIGNED ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - CAST ( 17 AS INTEGER ) AS col1
----
-17

query I rowsort
SELECT 18 * - 97
----
-1746

query I rowsort
SELECT DISTINCT + 80 * 80 AS col2
----
6400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1459
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) + - - 11 + 9, + ( + COUNT( * ) ) + + 80 AS col0
----
NULL
81

skipif mysql # not compatible
query II rowsort label-1459
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) + - - 11 + 9, + ( + COUNT ( * ) ) + + 80 AS col0
----
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT - 46 * SUM( 87 ) * + 77 AS col0
----
-308154

skipif mysql # not compatible
query I rowsort label-1460
SELECT - 46 * SUM ( 87 ) * + 77 AS col0
----
-308154

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT - COUNT( + - 10 ) * - ( 55 ) + 0
----
55

skipif mysql # not compatible
query I rowsort label-1461
SELECT - COUNT ( + - 10 ) * - ( 55 ) + 0
----
55

query II rowsort
SELECT 20 AS col1, + 91
----
20
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT + 49 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-1463
SELECT + 49 / + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT - - 98 - - NULLIF ( + NULLIF ( + COUNT( * ), - 23 ), + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1464
SELECT - - 98 - - NULLIF ( + NULLIF ( + COUNT ( * ), - 23 ), + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 32 * 42
----
-1344

query I rowsort
SELECT ALL + + 53 + 0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1467
SELECT ALL - 54 * + - COUNT( * ) DIV - + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL - 54 * + - COUNT ( * ) / - + 61 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT - - 48 DIV - - 15 + + COALESCE ( + - 38, + 11 ) - - 48 DIV 51 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-1468
SELECT - - 48 / - - 15 + + COALESCE ( + - 38, + 11 ) - - 48 / 51 AS col1
----
-35

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

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT - + 41 * - + COUNT ( * ) / - - 52 AS col1
----
0

query I rowsort
SELECT DISTINCT ( + - 5 ) AS col2
----
-5

query I rowsort
SELECT ALL - 93 * - 35 AS col2
----
3255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1472
SELECT + 52 - + 96 + + + 20 * CAST( NULL AS SIGNED ) * - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-1472
SELECT + 52 - + 96 + + + 20 * CAST ( NULL AS INTEGER ) * - - 76
----
NULL

query I rowsort
SELECT - + 71 * - - 15
----
-1065

query I rowsort
SELECT - 95 + - + 83 AS col0
----
-178

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT - NULLIF ( - + 93, - - 27 * - - ( - + NULLIF ( - COUNT( * ), - 51 + - COUNT( * ) + + 23 * - + COUNT( * ) + - 67 + - 75 ) ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1476
SELECT - NULLIF ( - + 93, - - 27 * - - ( - + NULLIF ( - COUNT ( * ), - 51 + - COUNT ( * ) + + 23 * - + COUNT ( * ) + - 67 + - 75 ) ) ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT + + COUNT( * ) * - - 47 * 31 - + + 22
----
1435

skipif mysql # not compatible
query I rowsort label-1477
SELECT + + COUNT ( * ) * - - 47 * 31 - + + 22
----
1435

query I rowsort
SELECT ALL COALESCE ( + + 49, + 38 * - - 50 )
----
49

query I rowsort
SELECT DISTINCT + - 97 AS col1
----
-97

query I rowsort
SELECT ALL + - 24 AS col1
----
-24

query I rowsort
SELECT + 48 * 49 * - 94 * + 17
----
-3758496

onlyif mysql # aggregate syntax: 
query II rowsort label-1482
SELECT + 60 * + + COUNT( * ) AS col0, + 31 * 58 * - + 33
----
60
-59334

skipif mysql # not compatible
query II rowsort label-1482
SELECT + 60 * + + COUNT ( * ) AS col0, + 31 * 58 * - + 33
----
60
-59334

query I rowsort
SELECT ( - 39 ) AS col1
----
-39

query I rowsort
SELECT DISTINCT 72 * + + 70 col2
----
5040

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

query I rowsort
SELECT + 1 + + - 88
----
-87

query I rowsort
SELECT ALL 6 * + 11 AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1488
SELECT + 12 * 50 col0, + 52 + + COUNT( * ) * - - 64 AS col2
----
600
116

skipif mysql # not compatible
query II rowsort label-1488
SELECT + 12 * 50 col0, + 52 + + COUNT ( * ) * - - 64 AS col2
----
600
116

query I rowsort
SELECT - 18 * + - 10 col0
----
180

query I rowsort
SELECT + 30 - + ( 96 ) + - - 91 AS col0
----
25

query I rowsort
SELECT + 6 + - COALESCE ( + + 34, 57 ) AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1492
SELECT ALL 71 * + 53 AS col2, 11 + - NULLIF ( + + CASE - - ( COUNT( * ) ) WHEN + - CAST( NULL AS SIGNED ) THEN + - 56 * + CAST( NULL AS SIGNED ) * 59 WHEN - - CAST( NULL AS SIGNED ) - - 5 / - + 95 THEN NULL ELSE NULL END, + - 62 )
----
3763
NULL

skipif mysql # not compatible
query II rowsort label-1492
SELECT ALL 71 * + 53 AS col2, 11 + - NULLIF ( + + CASE - - ( COUNT ( * ) ) WHEN + - CAST ( NULL AS INTEGER ) THEN + - 56 * + CAST ( NULL AS INTEGER ) * 59 WHEN - - CAST ( NULL AS INTEGER ) - - 5 / - + 95 THEN NULL ELSE NULL END, + - 62 )
----
3763
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1493
SELECT ALL + 50 * - + CASE + 71 WHEN + + 31 * + 49 * - - ( - 83 ) * - 52 THEN NULL WHEN - 95 + + - 22 + 32 * - COUNT( * ) + + COUNT( * ) + 4 + - 97 THEN 59 - + + 34 ELSE NULL END / - 63 + 55 + - CAST( SUM( + 77 ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + 50 * - + CASE + 71 WHEN + + 31 * + 49 * - - ( - 83 ) * - 52 THEN NULL WHEN - 95 + + - 22 + 32 * - COUNT ( * ) + + COUNT ( * ) + 4 + - 97 THEN 59 - + + 34 ELSE NULL END / - 63 + 55 + - CAST ( SUM ( + 77 ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1494
SELECT ALL + SUM( DISTINCT 1 ) * + + CASE + + 7 WHEN - 52 * COALESCE ( 21, - + CAST( NULL AS SIGNED ) * 4 + 92 * - NULLIF ( - - CAST( 12 AS SIGNED ), + 37 + 17 / - - 12 - - ( + 92 ) * - 58 ) * - 38 + + + 20 + + 72 + 35 * - 6 * + MAX( + 95 * + 63 + 43 ) + COALESCE ( 68, 52, COUNT( * ) + + 57 ) / CAST( NULL AS SIGNED ), 69 * 64 ) + - 79 THEN CAST( NULL AS SIGNED ) + 84 ELSE NULL END + + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL + SUM ( DISTINCT 1 ) * + + CASE + + 7 WHEN - 52 * COALESCE ( 21, - + CAST ( NULL AS INTEGER ) * 4 + 92 * - NULLIF ( - - CAST ( 12 AS INTEGER ), + 37 + 17 / - - 12 - - ( + 92 ) * - 58 ) * - 38 + + + 20 + + 72 + 35 * - 6 * + MAX ( + 95 * + 63 + 43 ) + COALESCE ( 68, 52, COUNT ( * ) + + 57 ) / CAST ( NULL AS INTEGER ), 69 * 64 ) + - 79 THEN CAST ( NULL AS INTEGER ) + 84 ELSE NULL END + + 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT - 59 * - MIN( DISTINCT 33 ) * + - 21 - SUM( + + 0 ) * 3 * 74 * + + MIN( + 26 ) * + 33
----
-40887

skipif mysql # not compatible
query I rowsort label-1495
SELECT - 59 * - MIN ( DISTINCT 33 ) * + - 21 - SUM ( + + 0 ) * 3 * 74 * + + MIN ( + 26 ) * + 33
----
-40887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1496
SELECT NULLIF ( + - CAST( - - COUNT( * ) AS SIGNED ), 26 / - CASE - COUNT( * ) WHEN - - 65 THEN + 26 + + 51 WHEN + + 84 * + - 51 THEN NULL END * 67 + + CAST( - + 88 AS SIGNED ) + + + 52 + + + COUNT( * ) - - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-1496
SELECT NULLIF ( + - CAST ( - - COUNT ( * ) AS INTEGER ), 26 / - CASE - COUNT ( * ) WHEN - - 65 THEN + 26 + + 51 WHEN + + 84 * + - 51 THEN NULL END * 67 + + CAST ( - + 88 AS INTEGER ) + + + 52 + + + COUNT ( * ) - - 63 )
----
-1

query I rowsort
SELECT 94 * + - 81 + + 38 col2
----
-7576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1498
SELECT - COALESCE ( 18, - CAST( - 57 AS SIGNED ) ) * 28 * ( - 48 )
----
24192

skipif mysql # not compatible
query I rowsort label-1498
SELECT - COALESCE ( 18, - CAST ( - 57 AS INTEGER ) ) * 28 * ( - 48 )
----
24192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1499
SELECT + CAST( - 70 AS SIGNED ) AS col2, + 0 AS col2
----
-70
0

skipif mysql # not compatible
query II rowsort label-1499
SELECT + CAST ( - 70 AS INTEGER ) AS col2, + 0 AS col2
----
-70
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1500
SELECT - COUNT( * ) * 58, + 8 AS col0
----
-58
8

skipif mysql # not compatible
query II rowsort label-1500
SELECT - COUNT ( * ) * 58, + 8 AS col0
----
-58
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT ALL - 58 * 93 DIV + 68 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL - 58 * 93 / + 68 AS col2
----
-79

query I rowsort
SELECT ALL + 66 - + ( + 60 ) + + + 51
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT - 13 + - COUNT( * ) + 29 * + 75 AS col1
----
2161

skipif mysql # not compatible
query I rowsort label-1504
SELECT - 13 + - COUNT ( * ) + 29 * + 75 AS col1
----
2161

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT ALL - CASE 56 WHEN + 46 THEN NULL WHEN - 98 * - - 44 * - - 15 THEN ( + MIN( + - 81 ) ) * - 83 + - - MAX( - + 48 ) ELSE NULL END * 20 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL - CASE 56 WHEN + 46 THEN NULL WHEN - 98 * - - 44 * - - 15 THEN ( + MIN ( + - 81 ) ) * - 83 + - - MAX ( - + 48 ) ELSE NULL END * 20 + - - COUNT ( * )
----
NULL

query I rowsort
SELECT - + 86 * - 61 * - 64 AS col0
----
-335744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1507
SELECT - COUNT( ALL - 26 ) AS col2, + COALESCE ( + 55, + 63 ) + - CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1507
SELECT - COUNT ( ALL - 26 ) AS col2, + COALESCE ( + 55, + 63 ) + - CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT - 58 * CASE CASE + 45 WHEN 42 + - 86 THEN - 93 - + 62 END WHEN + 96 + + - 35 * - - 72 * 39 THEN NULL WHEN + 92 * + + COALESCE ( + + 4, - 51 ) THEN - 45 * ( - MAX( ALL - 85 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT - 58 * CASE CASE + 45 WHEN 42 + - 86 THEN - 93 - + 62 END WHEN + 96 + + - 35 * - - 72 * 39 THEN NULL WHEN + 92 * + + COALESCE ( + + 4, - 51 ) THEN - 45 * ( - MAX ( ALL - 85 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1509
SELECT + - CASE 51 WHEN - 29 * 37 THEN - + 1 + + 35 WHEN CAST( NULL AS SIGNED ) THEN - + 90 ELSE NULL END + + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1509
SELECT + - CASE 51 WHEN - 29 * 37 THEN - + 1 + + 35 WHEN CAST ( NULL AS INTEGER ) THEN - + 90 ELSE NULL END + + 4 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1510
SELECT DISTINCT - - 96 * CAST( - COUNT( * ) AS SIGNED ) + + - 85 AS col0
----
-181

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - - 96 * CAST ( - COUNT ( * ) AS INTEGER ) + + - 85 AS col0
----
-181

query II rowsort
SELECT - NULLIF ( 84, - 72 * 81 + 9 ), 46 AS col1
----
-84
46

query I rowsort
SELECT - - 99 * - ( + - 13 )
----
1287

query I rowsort
SELECT ALL - 97 * + + NULLIF ( - 13, + 85 )
----
1261

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

skipif mysql # not compatible
query I rowsort label-1514
SELECT + 1 * + - 52 * + ( - COUNT ( * ) ) / - - 80 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT + COUNT( + 27 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1515
SELECT + COUNT ( + 27 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1516
SELECT ALL - 72 DIV + 96 + + 65 * + + 81 * ( SUM( ALL 84 ) )
----
442260

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - 72 / + 96 + + 65 * + + 81 * ( SUM ( ALL 84 ) )
----
442260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1517
SELECT ALL - 22 DIV + 46 * - - COUNT( * ) + - - 79
----
79

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL - 22 / + 46 * - - COUNT ( * ) + - - 79
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT 25 DIV - 46 + 40 col1
----
40

skipif mysql # not compatible
query I rowsort label-1518
SELECT 25 / - 46 + 40 col1
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-1519
SELECT DISTINCT - ( - 32 ) DIV + 63 + 75 * - 12 + - 68 + - 59 + + 20 AS col2, 39 + + 29 + - + 89
----
-1007
-21

skipif mysql # not compatible
query II rowsort label-1519
SELECT DISTINCT - ( - 32 ) / + 63 + 75 * - 12 + - 68 + - 59 + + 20 AS col2, 39 + + 29 + - + 89
----
-1007
-21

query I rowsort
SELECT DISTINCT ( + + 83 ) + 25 AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT ALL 53 * + 30 * + 32 * + SUM( 98 ) AS col1
----
4986240

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL 53 * + 30 * + 32 * + SUM ( 98 ) AS col1
----
4986240

query I rowsort
SELECT ALL 65 + 41 * - ( + + 30 ) col2
----
-1165

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT DISTINCT NULLIF ( - ( ( + ( 46 ) ) ), - + COUNT( * ) ) + - 9 * - 99 * + + 75
----
66779

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT NULLIF ( - ( ( + ( 46 ) ) ), - + COUNT ( * ) ) + - 9 * - 99 * + + 75
----
66779

query I rowsort
SELECT DISTINCT 99 + 7 + + + 6 AS col2
----
112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1525
SELECT DISTINCT ( - CAST( NULL AS DECIMAL ) ) + - 45 + + + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT ( - CAST ( NULL AS REAL ) ) + - 45 + + + 76 AS col0
----
NULL

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

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

query II rowsort
SELECT ALL - 91 col2, + ( - 62 )
----
-91
-62

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1530
SELECT DISTINCT - MIN( DISTINCT 58 ) * + 32 + + + CAST( - 43 AS SIGNED )
----
-1899

skipif mysql # not compatible
query I rowsort label-1530
SELECT DISTINCT - MIN ( DISTINCT 58 ) * + 32 + + + CAST ( - 43 AS INTEGER )
----
-1899

query I rowsort
SELECT ALL - - 78 - + 42 * - 96 AS col0
----
4110

query II rowsort
SELECT - 91 AS col0, 55 AS col2
----
-91
55

query I rowsort
SELECT DISTINCT 72 - + 91
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT DISTINCT ( 23 ) / COUNT( * ) * + + CASE - 87 WHEN MAX( + - 81 ) THEN NULL WHEN - ( - - 59 ) * - - 35 THEN 18 * + CASE WHEN NOT 99 = NULL THEN - 42 / + 67 ELSE NULL END + + 28 + + COUNT( * ) END * - 78 + - 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT ( 23 ) / COUNT ( * ) * + + CASE - 87 WHEN MAX ( + - 81 ) THEN NULL WHEN - ( - - 59 ) * - - 35 THEN 18 * + CASE WHEN NOT 99 = NULL THEN - 42 / + 67 ELSE NULL END + + 28 + + COUNT ( * ) END * - 78 + - 22 col0
----
NULL

query I rowsort
SELECT 64 * + 27 * - 27 AS col2
----
-46656

query I rowsort
SELECT - 43 * 12 AS col2
----
-516

query I rowsort
SELECT DISTINCT + + 73 * - 38
----
-2774

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT - COUNT( - - 15 ) - + 65 * 60 + 27 col0
----
-3874

skipif mysql # not compatible
query I rowsort label-1538
SELECT - COUNT ( - - 15 ) - + 65 * 60 + 27 col0
----
-3874

query I rowsort
SELECT ALL + 10 * + 46
----
460

query I rowsort
SELECT 87 - 34 + + 52 + + - 19 col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1541
SELECT DISTINCT CASE + + NULLIF ( - COUNT( * ), - 69 ) WHEN AVG ( ALL 61 ) DIV 88 THEN NULL WHEN - ( + 50 ) THEN NULL ELSE + 79 DIV + ( - - 12 ) - + + 53 + - + 95 END AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT CASE + + NULLIF ( - COUNT ( * ), - 69 ) WHEN AVG ( ALL 61 ) / 88 THEN NULL WHEN - ( + 50 ) THEN NULL ELSE + 79 / + ( - - 12 ) - + + 53 + - + 95 END AS col0
----
-142

query I rowsort
SELECT 63 * - 41 AS col0
----
-2583

query I rowsort
SELECT ALL - 8 * - + ( + 4 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT DISTINCT - - 69 * + - COUNT( * ) + + - 52 + - 44 + 16 + - 89 - + + COUNT( ALL ( - - ( - + 19 ) ) ) col0
----
-239

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT - - 69 * + - COUNT ( * ) + + - 52 + - 44 + 16 + - 89 - + + COUNT ( ALL ( - - ( - + 19 ) ) ) col0
----
-239

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT MIN( ALL 69 ) - COUNT( DISTINCT + - 86 ) + - 89 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1545
SELECT MIN ( ALL 69 ) - COUNT ( DISTINCT + - 86 ) + - 89 AS col2
----
-21

query I rowsort
SELECT 43 * + - 75 AS col1
----
-3225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1547
SELECT ALL - CASE - - CAST( NULL AS SIGNED ) WHEN - 61 - + CASE 54 WHEN - 64 + + 35 - COUNT( - 43 ) + + + 84 * - - 96 + - - 59 THEN NULL WHEN 44 + + 84 * + SUM( 58 ) THEN NULL WHEN + 59 * - 38 * + 58 THEN + 24 ELSE COUNT( * ) END THEN + - 34 ELSE - - 84 + + COUNT( * ) + 96 END + 91
----
-90

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL - CASE - - CAST ( NULL AS INTEGER ) WHEN - 61 - + CASE 54 WHEN - 64 + + 35 - COUNT ( - 43 ) + + + 84 * - - 96 + - - 59 THEN NULL WHEN 44 + + 84 * + SUM ( 58 ) THEN NULL WHEN + 59 * - 38 * + 58 THEN + 24 ELSE COUNT ( * ) END THEN + - 34 ELSE - - 84 + + COUNT ( * ) + 96 END + 91
----
-90

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

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

query I rowsort
SELECT ALL - 75 + - 96
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT DISTINCT + ( COUNT( * ) ) * 57
----
57

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT + ( COUNT ( * ) ) * 57
----
57

query I rowsort
SELECT ALL + 3 * - 54 * - 24
----
3888

query I rowsort
SELECT 33 - + - 94 AS col1
----
127

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1554
SELECT DISTINCT - CAST( - CASE 65 WHEN + + 54 / + - 60 + - - ( NULLIF ( - 91, - 26 ) ) / 2 THEN + + 47 ELSE + - 22 END AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT - CAST ( - CASE 65 WHEN + + 54 / + - 60 + - - ( NULLIF ( - 91, - 26 ) ) / 2 THEN + + 47 ELSE + - 22 END AS INTEGER ) AS col1
----
-22

query I rowsort
SELECT DISTINCT 17 * 66 AS col1
----
1122

query I rowsort
SELECT DISTINCT - - 60
----
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT + COALESCE ( + 96, + COUNT( * ) ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-1558
SELECT + COALESCE ( + 96, + COUNT ( * ) ) AS col1
----
96

query II rowsort
SELECT 78 * - - 30 AS col1, + 22
----
2340
22

query II rowsort
SELECT 22 * 48 * 62 * + 96 AS col1, + 50 AS col2
----
6285312
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT ALL COUNT( * ) * + COUNT( * ) + + + 78
----
79

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL COUNT ( * ) * + COUNT ( * ) + + + 78
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1562
SELECT COUNT( * ) + - + CASE WHEN NOT NULL IS NOT NULL THEN + ( - 18 ) END + + CAST( + 90 AS SIGNED ) * - 47
----
-4211

skipif mysql # not compatible
query I rowsort label-1562
SELECT COUNT ( * ) + - + CASE WHEN NOT NULL IS NOT NULL THEN + ( - 18 ) END + + CAST ( + 90 AS INTEGER ) * - 47
----
-4211

onlyif mysql # DIV for integer division: 
query II rowsort label-1563
SELECT ALL + + 54 * + 71, ( 35 ) DIV 23 + - 52 DIV - + 92 AS col2
----
3834
1

skipif mysql # not compatible
query II rowsort label-1563
SELECT ALL + + 54 * + 71, ( 35 ) / 23 + - 52 / - + 92 AS col2
----
3834
1

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

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

query II rowsort
SELECT + 84 + + CASE - - 81 WHEN 91 * 21 THEN - 88 - - NULLIF ( + 90, + - 73 ) END + + - 83 col0, + 39
----
NULL
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT DISTINCT 58 * - COUNT( * ) col1
----
-58

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT 58 * - COUNT ( * ) col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL + SUM( DISTINCT + 27 ) * - + 65 + - COUNT( * ) col1
----
-1756

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL + SUM ( DISTINCT + 27 ) * - + 65 + - COUNT ( * ) col1
----
-1756

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1569
SELECT 78 + - COALESCE ( - COALESCE ( 1, + 93 * - + 58 * CAST( NULL AS SIGNED ) + CASE 17 WHEN - + MIN( + ( 25 ) ) + + COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + - 8 * + 52 + + CASE WHEN NOT + 8 NOT IN ( + + 8 * + 69 + - + 17 + - + 38 ) THEN 23 ELSE NULL END ELSE 64 END ), COUNT( * ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1569
SELECT 78 + - COALESCE ( - COALESCE ( 1, + 93 * - + 58 * CAST ( NULL AS INTEGER ) + CASE 17 WHEN - + MIN ( + ( 25 ) ) + + COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + - 8 * + 52 + + CASE WHEN NOT + 8 NOT IN ( + + 8 * + 69 + - + 17 + - + 38 ) THEN 23 ELSE NULL END ELSE 64 END ), COUNT ( * ) ) AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1570
SELECT 81 * + CASE - 32 WHEN - 86 THEN - + CAST( - - 0 AS SIGNED ) END - - + 84 + - SUM( ALL - 36 ) + 40 * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1570
SELECT 81 * + CASE - 32 WHEN - 86 THEN - + CAST ( - - 0 AS INTEGER ) END - - + 84 + - SUM ( ALL - 36 ) + 40 * 6
----
NULL

query I rowsort
SELECT DISTINCT - 71 + - 87 AS col2
----
-158

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

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

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

query I rowsort
SELECT ALL 31 + - + 29
----
2

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1576
SELECT ALL 95 DIV 66 * - 78 * - + ( - 36 )
----
-2808

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL 95 / 66 * - 78 * - + ( - 36 )
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL + ( + ( + 43 ) ) * COUNT( * ) + - 68 - + 65
----
-90

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL + ( + ( + 43 ) ) * COUNT ( * ) + - 68 - + 65
----
-90

query II rowsort
SELECT 97 AS col2, - 82 + + 43 - + - 32 * 12 * - 23
----
97
-8871

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT DISTINCT COUNT( + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT COUNT ( + 0 )
----
1

query I rowsort
SELECT ALL - ( + 27 ) + + 53 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT - SUM( - 65 ) + - + 77 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1582
SELECT - SUM ( - 65 ) + - + 77 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT NULLIF ( - 57, - - 9 / + COUNT( * ) - - COUNT( * ) ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-1583
SELECT NULLIF ( - 57, - - 9 / + COUNT ( * ) - - COUNT ( * ) ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT + NULLIF ( - COUNT( * ), + - 38 + + 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-1584
SELECT + NULLIF ( - COUNT ( * ), + - 38 + + 58 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT - 29 + - - COUNT( * ) * + 19 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-1585
SELECT - 29 + - - COUNT ( * ) * + 19 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT - CASE + - 89 WHEN + 25 THEN + + 22 * 52 * + ( - + ( - + 63 ) ) WHEN + - 57 THEN - 89 END * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1586
SELECT - CASE + - 89 WHEN + 25 THEN + + 22 * 52 * + ( - + ( - + 63 ) ) WHEN + - 57 THEN - 89 END * COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - 0 * - ( + 54 )
----
0

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

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

query I rowsort
SELECT ALL + ( 96 ) AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1590
SELECT - 84 DIV + 97 + + 19 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1590
SELECT - 84 / + 97 + + 19 AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1591
SELECT DISTINCT + 90 DIV + 63 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT + 90 / + 63 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT + MIN( + + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT + MIN ( + + 41 )
----
41

query I rowsort
SELECT ALL + 72 * - + 1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1594
SELECT ALL + ( - 13 ) / CASE 95 WHEN COUNT( * ) + + - CAST( NULL AS SIGNED ) THEN NULL WHEN 24 THEN + NULLIF ( - + 44, + 10 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + ( - 13 ) / CASE 95 WHEN COUNT ( * ) + + - CAST ( NULL AS INTEGER ) THEN NULL WHEN 24 THEN + NULLIF ( - + 44, + 10 ) ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT DISTINCT + MIN( - + ( - 62 ) ) * 22
----
1364

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT + MIN ( - + ( - 62 ) ) * 22
----
1364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1596
SELECT DISTINCT + 81 * - + NULLIF ( - CASE + 0 WHEN COUNT( - ( 44 ) ) DIV - 47 THEN - 33 WHEN - 43 * 52 DIV 40 + + 54 - - - 49 - + + 41 THEN 6 WHEN + - 28 - + 53 + - COALESCE ( 58, ( + CAST( + 73 AS SIGNED ) ) ) THEN - 87 + + COUNT( * ) * - 65 ELSE 65 END, 91 )
----
-2673

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT + 81 * - + NULLIF ( - CASE + 0 WHEN COUNT ( - ( 44 ) ) / - 47 THEN - 33 WHEN - 43 * 52 / 40 + + 54 - - - 49 - + + 41 THEN 6 WHEN + - 28 - + 53 + - COALESCE ( 58, ( + CAST ( + 73 AS INTEGER ) ) ) THEN - 87 + + COUNT ( * ) * - 65 ELSE 65 END, 91 )
----
-2673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1597
SELECT - 22 DIV - COUNT( * ) * 1
----
22

skipif mysql # not compatible
query I rowsort label-1597
SELECT - 22 / - COUNT ( * ) * 1
----
22

query I rowsort
SELECT ALL - 72 * 59 AS col1
----
-4248

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1602
SELECT - COUNT ( * ) / - 61 AS col2
----
0

query I rowsort
SELECT + + 49 * 79
----
3871

query II rowsort
SELECT + 10 AS col0, - 9 col2
----
10
-9

query I rowsort
SELECT ALL - 33 * NULLIF ( - + 54, - 55 + AVG ( ALL + 49 ) ) AS col0
----
1782

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT DISTINCT 94 DIV 35 * - + 9
----
-18

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT 94 / 35 * - + 9
----
-18

query I rowsort
SELECT DISTINCT - 50 * + ( - 26 ) + + 50
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-1608
SELECT ALL + 94 DIV - + 2 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL + 94 / - + 2 AS col2
----
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT ALL NULLIF ( - 77, - 31 + + CASE ( 80 ) WHEN - ( - - 47 ) * 59 + + 72 + COUNT( * ) THEN 33 - - COUNT( * ) WHEN ( - 79 ) THEN NULL ELSE - 94 + + 64 END ) * - 36 - - + 26 + + ( - 12 ) AS col2
----
2786

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL NULLIF ( - 77, - 31 + + CASE ( 80 ) WHEN - ( - - 47 ) * 59 + + 72 + COUNT ( * ) THEN 33 - - COUNT ( * ) WHEN ( - 79 ) THEN NULL ELSE - 94 + + 64 END ) * - 36 - - + 26 + + ( - 12 ) AS col2
----
2786

query I rowsort
SELECT + 96 * 19 + - - 37 col1
----
1861

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT ALL - 33 + MIN( - 55 ) * - 99 + + COUNT( * ) AS col0
----
5413

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL - 33 + MIN ( - 55 ) * - 99 + + COUNT ( * ) AS col0
----
5413

query I rowsort
SELECT - 48 + + 74 + + + 40 AS col1
----
66

query II rowsort
SELECT + + 47 * + + 69 + - 7 AS col1, - 32 + NULLIF ( - + 11, - ( - 27 ) * 62 )
----
3236
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT ALL - 42 + - CAST( 12 AS SIGNED ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL - 42 + - CAST ( 12 AS INTEGER ) col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT + + ( 73 ) - + 71 * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1616
SELECT + + ( 73 ) - + 71 * COUNT ( * )
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1618
SELECT - NULLIF ( 97, + 61 / + + 77 ), ( - CAST( + COUNT( DISTINCT - + 65 ) AS SIGNED ) ) AS col1
----
-97
-1

skipif mysql # not compatible
query II rowsort label-1618
SELECT - NULLIF ( 97, + 61 / + + 77 ), ( - CAST ( + COUNT ( DISTINCT - + 65 ) AS INTEGER ) ) AS col1
----
-97
-1

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

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT 89 * ( + 19 ) / - COUNT ( * )
----
-1691

query II rowsort
SELECT DISTINCT 95 + NULLIF ( + 57, + 78 + + 68 ) * 36, 85 AS col1
----
2147
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1621
SELECT + 36 * COUNT( * ), - MIN( ALL + + 64 ) AS col0
----
36
-64

skipif mysql # not compatible
query II rowsort label-1621
SELECT + 36 * COUNT ( * ), - MIN ( ALL + + 64 ) AS col0
----
36
-64

query II rowsort
SELECT ALL 14 AS col1, 63 + - + 78 AS col2
----
14
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT + 6 + - 33 + 55 * - MIN( 60 ) * 92 AS col0
----
-303627

skipif mysql # not compatible
query I rowsort label-1624
SELECT + 6 + - 33 + 55 * - MIN ( 60 ) * 92 AS col0
----
-303627

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT + COUNT( * ) - 20 + - 80 + - 73 + + + ( + + MAX( - + 99 ) ) + + 48 + - - 20 * - 69 * + 13 - - COUNT( * ) * 91 * + - 53 * - 22
----
87943

skipif mysql # not compatible
query I rowsort label-1625
SELECT + COUNT ( * ) - 20 + - 80 + - 73 + + + ( + + MAX ( - + 99 ) ) + + 48 + - - 20 * - 69 * + 13 - - COUNT ( * ) * 91 * + - 53 * - 22
----
87943

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

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

query I rowsort
SELECT + 0 * + 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT - 6 * + 98 * + COUNT( * ) * 67
----
-39396

skipif mysql # not compatible
query I rowsort label-1628
SELECT - 6 * + 98 * + COUNT ( * ) * 67
----
-39396

query I rowsort
SELECT ALL 88 * + 91
----
8008

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

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

query II rowsort
SELECT DISTINCT 82 AS col0, 50 + + + 5 col0
----
82
55

query I rowsort
SELECT + 70 * + 62 AS col1
----
4340

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

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

query I rowsort
SELECT + NULLIF ( - 82, 14 ) * - 94 * - - 39 AS col2
----
300612

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT - COUNT( DISTINCT 51 ) * + - 20 + + - 99
----
-79

skipif mysql # not compatible
query I rowsort label-1635
SELECT - COUNT ( DISTINCT 51 ) * + - 20 + + - 99
----
-79

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1637
SELECT 4 DIV - 95 + 80
----
80

skipif mysql # not compatible
query I rowsort label-1637
SELECT 4 / - 95 + 80
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1638
SELECT CAST( NULL AS SIGNED ), 52 * 31 AS col1
----
NULL
1612

skipif mysql # not compatible
query II rowsort label-1638
SELECT CAST ( NULL AS INTEGER ), 52 * 31 AS col1
----
NULL
1612

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT + 41 DIV + + 72 + ( - - 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1639
SELECT + 41 / + + 72 + ( - - 96 ) AS col2
----
96

query I rowsort
SELECT + 10 * + 8 col2
----
80

query I rowsort
SELECT - 16 * + 76
----
-1216

query I rowsort
SELECT + NULLIF ( + 12, + - 79 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT + COUNT( * ) + COUNT( * ) * - 58 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-1643
SELECT + COUNT ( * ) + COUNT ( * ) * - 58 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-1644
SELECT ALL 87 * - - COUNT( * ) + + + 52 + - + 14 AS col0, - 2 AS col0
----
125
-2

skipif mysql # not compatible
query II rowsort label-1644
SELECT ALL 87 * - - COUNT ( * ) + + + 52 + - + 14 AS col0, - 2 AS col0
----
125
-2

query II rowsort
SELECT DISTINCT + + 45 col2, - 68
----
45
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-1646
SELECT + - 32 + + + 57 + 61 * 64 + - ( - + 59 ) AS col2, + 87 DIV - 16
----
3988
-5

skipif mysql # not compatible
query II rowsort label-1646
SELECT + - 32 + + + 57 + 61 * 64 + - ( - + 59 ) AS col2, + 87 / - 16
----
3988
-5

query I rowsort
SELECT - + 26 - - ( 36 )
----
10

query I rowsort
SELECT ALL - + 87 * + + 79
----
-6873

query I rowsort
SELECT ALL + - ( - 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1650
SELECT + 16 * + COUNT( * ) + + + COUNT( - 10 ) + + - 77 + + 72 col1, 78 AS col0
----
12
78

skipif mysql # not compatible
query II rowsort label-1650
SELECT + 16 * + COUNT ( * ) + + + COUNT ( - 10 ) + + - 77 + + 72 col1, 78 AS col0
----
12
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT - - 51 + - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-1651
SELECT - - 51 + - COUNT ( * )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1652
SELECT + COALESCE ( - MIN( ALL 81 ), - CAST( NULL AS SIGNED ) ) AS col1, + CASE 29 WHEN + 77 THEN NULL ELSE - - CASE + + SUM( ALL 17 ) WHEN + + 36 * + - COALESCE ( - CASE 86 WHEN - - 13 THEN NULL WHEN + ( - MIN( DISTINCT + 37 ) ) / 16 THEN NULL ELSE - 4 + + 71 * - - 21 * - CAST( + 19 AS SIGNED ) END, 6 + COUNT( * ) + 40 * ( 29 ) * 48, COUNT( * ) - + NULLIF ( 65 + + 11, - 39 ) ) + 27 THEN 23 WHEN + 6 * 30 THEN NULL END END
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-1652
SELECT + COALESCE ( - MIN ( ALL 81 ), - CAST ( NULL AS INTEGER ) ) AS col1, + CASE 29 WHEN + 77 THEN NULL ELSE - - CASE + + SUM ( ALL 17 ) WHEN + + 36 * + - COALESCE ( - CASE 86 WHEN - - 13 THEN NULL WHEN + ( - MIN ( DISTINCT + 37 ) ) / 16 THEN NULL ELSE - 4 + + 71 * - - 21 * - CAST ( + 19 AS INTEGER ) END, 6 + COUNT ( * ) + 40 * ( 29 ) * 48, COUNT ( * ) - + NULLIF ( 65 + + 11, - 39 ) ) + 27 THEN 23 WHEN + 6 * 30 THEN NULL END END
----
-81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1653
SELECT - 20 * 34 * - CAST( NULL AS DECIMAL ) * - - 59 + - CAST( NULL AS SIGNED ) + - 29 * - SUM( ALL + - 33 ) + - 33 + - COUNT( * ) * + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1653
SELECT - 20 * 34 * - CAST ( NULL AS REAL ) * - - 59 + - CAST ( NULL AS INTEGER ) + - 29 * - SUM ( ALL + - 33 ) + - 33 + - COUNT ( * ) * + 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ( CASE - 15 WHEN + + COUNT( + 37 ) * 59 THEN + 36 WHEN + 44 + - 86 + - 79 + 40 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT ( CASE - 15 WHEN + + COUNT ( + 37 ) * 59 THEN + 36 WHEN + 44 + - 86 + - 79 + 40 THEN NULL END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT ALL - - 37 DIV - 78 * - - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL - - 37 / - 78 * - - 67 AS col0
----
0

query I rowsort
SELECT 18 * + + 70 AS col0
----
1260

query I rowsort
SELECT ALL 35 - - - 82 AS col2
----
-47

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

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

query I rowsort
SELECT 8 + - 32 + + + ( 2 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1660
SELECT 17 * 27 * + 75 * - NULLIF ( - CAST( 89 AS SIGNED ), - NULLIF ( + + CAST( NULL AS SIGNED ), 94 - CAST( NULL AS SIGNED ) / - 12 ) * ( 22 ) + - COUNT( + - 95 ) + 49 ) * + 60 AS col0, 55 AS col2
----
183829500
55

skipif mysql # not compatible
query II rowsort label-1660
SELECT 17 * 27 * + 75 * - NULLIF ( - CAST ( 89 AS INTEGER ), - NULLIF ( + + CAST ( NULL AS INTEGER ), 94 - CAST ( NULL AS INTEGER ) / - 12 ) * ( 22 ) + - COUNT ( + - 95 ) + 49 ) * + 60 AS col0, 55 AS col2
----
183829500
55

query I rowsort
SELECT DISTINCT 36 * - ( - - 57 ) AS col0
----
-2052

query I rowsort
SELECT ALL ( + 0 ) - + 47 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT DISTINCT 53 * + + MIN( - 16 ) AS col0
----
-848

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT 53 * + + MIN ( - 16 ) AS col0
----
-848

query I rowsort
SELECT ALL 88 * - CASE + 7 WHEN 87 THEN 24 WHEN - 42 THEN - - 97 WHEN - - 98 * + 89 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT 43 + - COUNT( * ) * + - 26 * 34
----
927

skipif mysql # not compatible
query I rowsort label-1665
SELECT 43 + - COUNT ( * ) * + - 26 * 34
----
927

query I rowsort
SELECT DISTINCT - 99 * - 99 col2
----
9801

query II rowsort
SELECT 62 * 79 AS col1, 76 col0
----
4898
76

query I rowsort
SELECT 33 * - + 61 * + 95
----
-191235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1669
SELECT CAST( + 10 AS SIGNED ) + + 2 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1669
SELECT CAST ( + 10 AS INTEGER ) + + 2 AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1670
SELECT 52 DIV CASE WHEN NULL IN ( - 10, + 95 + 75 * + COALESCE ( + 10, + + 47 * ( + 22 ) + COUNT( * ) ), + 70 ) THEN 18 DIV - 32 END AS col1, - 24 DIV - + 84
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1670
SELECT 52 / CASE WHEN NULL IN ( - 10, + 95 + 75 * + COALESCE ( + 10, + + 47 * ( + 22 ) + COUNT ( * ) ), + 70 ) THEN 18 / - 32 END AS col1, - 24 / - + 84
----
NULL
0

query I rowsort
SELECT ALL 22 + - 67 col1
----
-45

query I rowsort
SELECT ALL - 26 col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1673
SELECT DISTINCT 39 * - 24, - COALESCE ( + 25, 1 * + 92 DIV + + 42 * - COALESCE ( + CAST( 82 AS SIGNED ), - CAST( NULL AS SIGNED ) ) ) DIV + 49 - + - 41 AS col1
----
-936
41

skipif mysql # not compatible
query II rowsort label-1673
SELECT DISTINCT 39 * - 24, - COALESCE ( + 25, 1 * + 92 / + + 42 * - COALESCE ( + CAST ( 82 AS INTEGER ), - CAST ( NULL AS INTEGER ) ) ) / + 49 - + - 41 AS col1
----
-936
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT DISTINCT - COUNT( * ) + + 85 * + 75 * 99 AS col2
----
631124

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT - COUNT ( * ) + + 85 * + 75 * 99 AS col2
----
631124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1675
SELECT - 28 - 1 + + + CAST( - 82 AS SIGNED )
----
-111

skipif mysql # not compatible
query I rowsort label-1675
SELECT - 28 - 1 + + + CAST ( - 82 AS INTEGER )
----
-111

query I rowsort
SELECT ALL - - 11 col1
----
11

query I rowsort
SELECT 7 * - + 57 + 21 col0
----
-378

query I rowsort
SELECT DISTINCT + 25 * 16
----
400

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

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

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

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

query I rowsort
SELECT ALL - 92 * + - 7
----
644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1682
SELECT AVG ( DISTINCT 0 ) * CAST( NULL AS SIGNED ) + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1682
SELECT AVG ( DISTINCT 0 ) * CAST ( NULL AS INTEGER ) + - 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT - ( + 12 ) DIV 4 + 0 + + - 43
----
-46

skipif mysql # not compatible
query I rowsort label-1683
SELECT - ( + 12 ) / 4 + 0 + + - 43
----
-46

query I rowsort
SELECT 76 + + + 60 AS col2
----
136

query I rowsort
SELECT ALL 14 * 30 + 14
----
434

query I rowsort
SELECT DISTINCT + 73 + + 11 AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-1687
SELECT ALL - 59 - + - 16, + ( - COALESCE ( COUNT( * ), + - SUM( ALL - 82 ), - - COUNT( * ), - 84 ) ) col0
----
-43
-1

skipif mysql # not compatible
query II rowsort label-1687
SELECT ALL - 59 - + - 16, + ( - COALESCE ( COUNT ( * ), + - SUM ( ALL - 82 ), - - COUNT ( * ), - 84 ) ) col0
----
-43
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT 33 * + + COUNT( * ) + 80 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-1688
SELECT 33 * + + COUNT ( * ) + 80 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT - 97 * 22 - - COUNT( * ) + + - 76
----
-2209

skipif mysql # not compatible
query I rowsort label-1689
SELECT - 97 * 22 - - COUNT ( * ) + + - 76
----
-2209

query I rowsort
SELECT - ( - 16 ) AS col1
----
16

query I rowsort
SELECT ALL + 84 * + + 49
----
4116

query I rowsort
SELECT NULLIF ( NULLIF ( 3, + - 76 + + 38 ), - - ( 11 ) ) + 97 * - - 62
----
6017

onlyif mysql # DIV for integer division: 
query I rowsort label-1693
SELECT ALL + 75 - + - ( 33 ) - - + 83 DIV 69 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL + 75 - + - ( 33 ) - - + 83 / 69 AS col2
----
109

query I rowsort
SELECT 17 * + 37
----
629

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT ALL COUNT( + 63 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL COUNT ( + 63 ) * + COUNT ( * )
----
1

query I rowsort
SELECT 46 + 9 + 94 AS col1
----
149

query II rowsort
SELECT ALL 21 AS col1, - 50
----
21
-50

query I rowsort
SELECT 52 * - + 19
----
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT ALL 41 * - 62 * - + MAX( ALL - - 38 )
----
96596

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL 41 * - 62 * - + MAX ( ALL - - 38 )
----
96596

query I rowsort
SELECT 42 * + 88 AS col1
----
3696

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

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

query I rowsort
SELECT DISTINCT - 68 + + 69 AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-1704
SELECT 90 - + 74 * COUNT ( * ) AS col0
----
16

query I rowsort
SELECT ALL - 50 + 21
----
-29

query I rowsort
SELECT ALL 98 + - - 18
----
116

query I rowsort
SELECT 68 * 72 * - 18
----
-88128

onlyif mysql # DIV for integer division: 
query I rowsort label-1708
SELECT DISTINCT - 68 + 80 + - - COALESCE ( + 27, 60 + - 7 * - 64 * - 49, - 62 * - 91 + - ( + NULLIF ( 52, + 45 ) ) ) DIV + ( - 87 ) + 64
----
76

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT - 68 + 80 + - - COALESCE ( + 27, 60 + - 7 * - 64 * - 49, - 62 * - 91 + - ( + NULLIF ( 52, + 45 ) ) ) / + ( - 87 ) + 64
----
76

query I rowsort
SELECT DISTINCT 33 + 86
----
119

onlyif mysql # DIV for integer division: 
query II rowsort label-1710
SELECT DISTINCT - - 0, - 41 DIV + + 93 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-1710
SELECT DISTINCT - - 0, - 41 / + + 93 AS col0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT ALL + + 38 * COALESCE ( - COUNT( ALL + + 64 ), - + COUNT( + 77 ) ) + - 67 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL + + 38 * COALESCE ( - COUNT ( ALL + + 64 ), - + COUNT ( + 77 ) ) + - 67 AS col2
----
-105

query I rowsort
SELECT DISTINCT + 54 * + + 32
----
1728

query I rowsort
SELECT ALL - + 18 AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1714
SELECT - CAST( NULL AS SIGNED ) * + 54 * - + ( + + ( - ( - ( + + COALESCE ( + 94, 99 - 78 ) ) ) ) ) / - - COUNT( * ) * - + 17 * + 27 + - 10 / 59 + + 11 - + 39 + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1714
SELECT - CAST ( NULL AS INTEGER ) * + 54 * - + ( + + ( - ( - ( + + COALESCE ( + 94, 99 - 78 ) ) ) ) ) / - - COUNT ( * ) * - + 17 * + 27 + - 10 / 59 + + 11 - + 39 + - 94
----
NULL

query I rowsort
SELECT + 92 * 52
----
4784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1716
SELECT ALL 20 * - + COUNT( * ) + - 65 + + - ( + - ( - + COUNT( * ) ) ) DIV + 28 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL 20 * - + COUNT ( * ) + - 65 + + - ( + - ( - + COUNT ( * ) ) ) / + 28 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT NULLIF ( + 95, - ( COUNT( * ) ) * - 22 + + 6 ) + + + COUNT( * ) + + - 11 + + 16 * - 25 + 57 - - ( 52 )
----
-206

skipif mysql # not compatible
query I rowsort label-1717
SELECT NULLIF ( + 95, - ( COUNT ( * ) ) * - 22 + + 6 ) + + + COUNT ( * ) + + - 11 + + 16 * - 25 + 57 - - ( 52 )
----
-206

query I rowsort
SELECT - 28 * + 39 AS col0
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL - 55 * + MIN( ALL - 81 ) * 33 AS col2
----
147015

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL - 55 * + MIN ( ALL - 81 ) * 33 AS col2
----
147015

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1721
SELECT ALL + + 89 * - 55 - + 9, ( + COUNT( * ) ) + + 61 AS col1
----
-4904
62

skipif mysql # not compatible
query II rowsort label-1721
SELECT ALL + + 89 * - 55 - + 9, ( + COUNT ( * ) ) + + 61 AS col1
----
-4904
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1722
SELECT + 73 DIV - 14
----
-5

skipif mysql # not compatible
query I rowsort label-1722
SELECT + 73 / - 14
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT DISTINCT COUNT( * ) * - 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT COUNT ( * ) * - 33 AS col1
----
-33

query I rowsort
SELECT + 87 - + + 14
----
73

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

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

query II rowsort
SELECT + 59 AS col2, - 97 AS col2
----
59
-97

query II rowsort
SELECT + 92 AS col1, 41 AS col1
----
92
41

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

skipif mysql # not compatible
query I rowsort label-1728
SELECT MIN ( + 66 )
----
66

query I rowsort
SELECT + 31 * - 91 * + + 98 + - + 22 AS col1
----
-276480

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT - COUNT( * ) * 50 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1730
SELECT - COUNT ( * ) * 50 AS col2
----
-50

query I rowsort
SELECT ALL + 44 * + 79 * 51 AS col0
----
177276

query I rowsort
SELECT 54 * + ( - + 79 ) + + - 85 AS col0
----
-4351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1733
SELECT ALL NULLIF ( ( - 53 ), - - 2 * + 32 ), - CASE - 27 WHEN - 62 THEN CAST( 19 AS SIGNED ) * - ( ( + - 82 ) ) * - 19 + + - 88 WHEN - 72 * 8 + 82 THEN NULL ELSE + 25 + 26 * + NULLIF ( 8, + - COUNT( * ) * + 13 + CASE 82 WHEN - 24 / 33 + - - 0 THEN 32 END + - COUNT( * ) - ( 80 ) / 37 ) END col2
----
-53
-233

skipif mysql # not compatible
query II rowsort label-1733
SELECT ALL NULLIF ( ( - 53 ), - - 2 * + 32 ), - CASE - 27 WHEN - 62 THEN CAST ( 19 AS INTEGER ) * - ( ( + - 82 ) ) * - 19 + + - 88 WHEN - 72 * 8 + 82 THEN NULL ELSE + 25 + 26 * + NULLIF ( 8, + - COUNT ( * ) * + 13 + CASE 82 WHEN - 24 / 33 + - - 0 THEN 32 END + - COUNT ( * ) - ( 80 ) / 37 ) END col2
----
-53
-233

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1734
SELECT ALL 11 + - - COUNT( * ) - - 20 * + 39, COUNT( * ) + 29 + - - 41 DIV - 19 AS col0
----
792
28

skipif mysql # not compatible
query II rowsort label-1734
SELECT ALL 11 + - - COUNT ( * ) - - 20 * + 39, COUNT ( * ) + 29 + - - 41 / - 19 AS col0
----
792
28

query I rowsort
SELECT + 17 * 76 * + ( - - 60 )
----
77520

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT - NULLIF ( + + 47, - 33 / - + 65 * 47 * COUNT( * ) + CASE + - 4 WHEN - - 82 THEN NULL WHEN + 48 THEN + + 34 * + - SUM( ALL - - 56 ) WHEN - NULLIF ( - COUNT( * ), + + 53 + + 66 * - + 18 * + NULLIF ( - ( - 75 ), COUNT( + 6 ) ) ) THEN NULL END * - 45 + - 55 / - CASE - 22 WHEN - + 96 THEN - + 31 WHEN + 33 * - 0 - + 30 THEN CASE ( 79 ) WHEN - 98 THEN NULL WHEN COUNT( * ) + + 5 THEN - ( ( 51 ) ) + 15 ELSE NULL END ELSE 34 END + 96 )
----
-47

skipif mysql # not compatible
query I rowsort label-1737
SELECT - NULLIF ( + + 47, - 33 / - + 65 * 47 * COUNT ( * ) + CASE + - 4 WHEN - - 82 THEN NULL WHEN + 48 THEN + + 34 * + - SUM ( ALL - - 56 ) WHEN - NULLIF ( - COUNT ( * ), + + 53 + + 66 * - + 18 * + NULLIF ( - ( - 75 ), COUNT ( + 6 ) ) ) THEN NULL END * - 45 + - 55 / - CASE - 22 WHEN - + 96 THEN - + 31 WHEN + 33 * - 0 - + 30 THEN CASE ( 79 ) WHEN - 98 THEN NULL WHEN COUNT ( * ) + + 5 THEN - ( ( 51 ) ) + 15 ELSE NULL END ELSE 34 END + 96 )
----
-47

query I rowsort
SELECT - 99 + - 71 AS col0
----
-170

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT DISTINCT NULLIF ( - ( - COUNT( * ) ), - ( 42 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT NULLIF ( - ( - COUNT ( * ) ), - ( 42 ) ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL + COUNT ( * ) + + 82 AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1742
SELECT ALL - 55 + CAST( - 32 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL - 55 + CAST ( - 32 AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT ALL 69 * + 77 * - - COUNT( * )
----
5313

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL 69 * + 77 * - - COUNT ( * )
----
5313

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

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

query I rowsort
SELECT ALL + 19 + + 70 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1746
SELECT ALL + 82 DIV - CAST( CASE 53 WHEN + + 21 * ( 58 ) THEN NULL WHEN - 76 * - COALESCE ( 74, + NULLIF ( + 52, + 16 ), - 14 DIV - - 73 + 78 ) DIV + 88 * + - 33 THEN 40 ELSE + 33 - - + 64 + + + 61 * + COUNT( * ) END AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL + 82 / - CAST ( CASE 53 WHEN + + 21 * ( 58 ) THEN NULL WHEN - 76 * - COALESCE ( 74, + NULLIF ( + 52, + 16 ), - 14 / - - 73 + 78 ) / + 88 * + - 33 THEN 40 ELSE + 33 - - + 64 + + + 61 * + COUNT ( * ) END AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT - 66 + - 46
----
-112

query I rowsort
SELECT - 77 - + 55 + - - 82 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT - + COUNT( * ) + - 84 * - ( COUNT( DISTINCT + 93 ) )
----
83

skipif mysql # not compatible
query I rowsort label-1749
SELECT - + COUNT ( * ) + - 84 * - ( COUNT ( DISTINCT + 93 ) )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT DISTINCT - - 80 - CAST( - - 63 AS SIGNED ) + + 38 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT - - 80 - CAST ( - - 63 AS INTEGER ) + + 38 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT + - 64 + + 47 + - + NULLIF ( - 28, - 93 * + COUNT( * ) ) * 10 * + - 75 * + 38
----
-798017

skipif mysql # not compatible
query I rowsort label-1751
SELECT + - 64 + + 47 + - + NULLIF ( - 28, - 93 * + COUNT ( * ) ) * 10 * + - 75 * + 38
----
-798017

query I rowsort
SELECT DISTINCT + + 68 * - NULLIF ( + + 82, 90 * + 25 * + - 30 ) * + 62 AS col2
----
-345712

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT - - 77 / 91 + - - ( + + CASE + 26 WHEN - + ( + 79 ) + COUNT( * ) THEN - 76 END ) - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT - - 77 / 91 + - - ( + + CASE + 26 WHEN - + ( + 79 ) + COUNT ( * ) THEN - 76 END ) - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1755
SELECT - - 20 - + COUNT( ALL 25 ) + - + 7 DIV + 73 * 32
----
19

skipif mysql # not compatible
query I rowsort label-1755
SELECT - - 20 - + COUNT ( ALL 25 ) + - + 7 / + 73 * 32
----
19

query I rowsort
SELECT ALL + 14 * - ( - - 27 ) AS col2
----
-378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT ALL + CAST( - 44 AS SIGNED ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + CAST ( - 44 AS INTEGER ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1758
SELECT + MIN( - CAST( + 66 AS SIGNED ) ) * - + 50 AS col1
----
3300

skipif mysql # not compatible
query I rowsort label-1758
SELECT + MIN ( - CAST ( + 66 AS INTEGER ) ) * - + 50 AS col1
----
3300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1759
SELECT - 9 * 99 + COUNT( * ) * + - 83 + + 39 DIV COUNT( * ) col2
----
-935

skipif mysql # not compatible
query I rowsort label-1759
SELECT - 9 * 99 + COUNT ( * ) * + - 83 + + 39 / COUNT ( * ) col2
----
-935

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

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

query I rowsort
SELECT ALL + - 59 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT - COUNT( * ) * - 66 * 40 col2
----
2640

skipif mysql # not compatible
query I rowsort label-1762
SELECT - COUNT ( * ) * - 66 * 40 col2
----
2640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1763
SELECT + + 88 * 92 AS col1, + COUNT( + + CAST( NULL AS SIGNED ) )
----
8096
0

skipif mysql # not compatible
query II rowsort label-1763
SELECT + + 88 * 92 AS col1, + COUNT ( + + CAST ( NULL AS INTEGER ) )
----
8096
0

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

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL - SUM ( ALL - 12 ) / + COUNT ( * )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1765
SELECT + 53 * + CAST( + + CASE + 73 WHEN COUNT( * ) * + 84 THEN + COUNT( * ) WHEN - 31 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1765
SELECT + 53 * + CAST ( + + CASE + 73 WHEN COUNT ( * ) * + 84 THEN + COUNT ( * ) WHEN - 31 THEN NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 65 * 64
----
4160

onlyif mysql # DIV for integer division: 
query I rowsort label-1767
SELECT + 71 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-1767
SELECT + 71 / - 76
----
0

query I rowsort
SELECT DISTINCT 77 * 43
----
3311

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL 20 * 31 * + 56 + COUNT( DISTINCT + 33 ) AS col2
----
34721

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL 20 * 31 * + 56 + COUNT ( DISTINCT + 33 ) AS col2
----
34721

query I rowsort
SELECT - 18 + + 21 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT - NULLIF ( 75, + + 42 * 42 * - COUNT( * ) * + - 3 + + 21 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-1771
SELECT - NULLIF ( 75, + + 42 * 42 * - COUNT ( * ) * + - 3 + + 21 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT + MAX( + ( - - 13 ) ) + + - COUNT( * ) col1
----
12

skipif mysql # not compatible
query I rowsort label-1772
SELECT + MAX ( + ( - - 13 ) ) + + - COUNT ( * ) col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1773
SELECT - CAST( - + 70 AS SIGNED ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-1773
SELECT - CAST ( - + 70 AS INTEGER ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT SUM( ALL - - 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1774
SELECT SUM ( ALL - - 66 ) AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1775
SELECT DISTINCT 1 * - 76 + - 99 * 51 * 22 + - CAST( 37 AS SIGNED ) + - + 27 + - 40
----
-111258

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT 1 * - 76 + - 99 * 51 * 22 + - CAST ( 37 AS INTEGER ) + - + 27 + - 40
----
-111258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1776
SELECT ALL MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - COUNT ( * )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1778
SELECT - CAST( + 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-1778
SELECT - CAST ( + 81 AS INTEGER )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL COALESCE ( + COUNT( * ), + 43, - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL COALESCE ( + COUNT ( * ), + 43, - 83 )
----
1

query II rowsort
SELECT 92, 36 AS col2
----
92
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1781
SELECT + CAST( NULL AS SIGNED ) + - COUNT( + + 44 ) + COUNT( + - 34 ) / - 13 * + 48 + + + 80 - - 0 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( + + 44 ) + COUNT ( + - 34 ) / - 13 * + 48 + + + 80 - - 0 * + 59
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1782
SELECT - ( - + COUNT ( ALL 80 ) ) AS col0
----
1

query I rowsort
SELECT - 30 - 94 * - 42
----
3918

query II rowsort
SELECT - 13 col1, 6
----
-13
6

query I rowsort
SELECT + 74 + 7
----
81

query I rowsort
SELECT - 44 - - + 1 AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-1787
SELECT ALL - + 78 * ( - 57 ) DIV 32 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL - + 78 * ( - 57 ) / 32 AS col2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1788
SELECT + + SUM( DISTINCT - CAST( 53 AS SIGNED ) ) * + CAST( - 35 AS SIGNED ) + + COUNT( * )
----
1856

skipif mysql # not compatible
query I rowsort label-1788
SELECT + + SUM ( DISTINCT - CAST ( 53 AS INTEGER ) ) * + CAST ( - 35 AS INTEGER ) + + COUNT ( * )
----
1856

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1790
SELECT DISTINCT + CAST( - MIN( + + 49 ) AS SIGNED ) * - 24
----
1176

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT + CAST ( - MIN ( + + 49 ) AS INTEGER ) * - 24
----
1176

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

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

query I rowsort
SELECT ALL - - 63 AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT DISTINCT - + 28 DIV - 26 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT - + 28 / - 26 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1794
SELECT 10 DIV + 89 col1
----
0

skipif mysql # not compatible
query I rowsort label-1794
SELECT 10 / + 89 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT - COALESCE ( - 77, + 20, - 4 * - + 12 ) DIV + 21
----
3

skipif mysql # not compatible
query I rowsort label-1795
SELECT - COALESCE ( - 77, + 20, - 4 * - + 12 ) / + 21
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT DISTINCT - 61 DIV - 20
----
3

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT - 61 / - 20
----
3

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

query I rowsort
SELECT DISTINCT - - 48 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT - COUNT( * ) + - + 9 AS col0
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL + + 98 + - + COUNT( + - 76 )
----
97

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL + + 98 + - + COUNT ( + - 76 )
----
97

query I rowsort
SELECT 10 + - 90
----
-80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1803
SELECT ALL - 17 AS col2, 92 DIV - COUNT( * )
----
-17
-92

skipif mysql # not compatible
query II rowsort label-1803
SELECT ALL - 17 AS col2, 92 / - COUNT ( * )
----
-17
-92

query I rowsort
SELECT 56 + 56
----
112

query I rowsort
SELECT DISTINCT - 36 + 74 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1806
SELECT ALL - NULLIF ( + CAST( + 67 AS SIGNED ), - - 15 )
----
-67

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - NULLIF ( + CAST ( + 67 AS INTEGER ), - - 15 )
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1807
SELECT 46 DIV + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1807
SELECT 46 / + 90 AS col0
----
0

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

query II rowsort
SELECT 34 AS col0, 91 / - ( + CASE + 34 WHEN - 85 THEN - - 78 / - 85 END ) AS col1
----
34
NULL

query I rowsort
SELECT ALL 82 + - - 28 * 20 - - 8
----
650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1811
SELECT ALL 58 + + + 10 + CASE + 34 WHEN + 8 THEN + + 3 ELSE - + 45 END - - 48 / - 26 * CAST( NULL AS SIGNED ) * - 28 + 21 + 24 * - - 67 * 93 * 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL 58 + + + 10 + CASE + 34 WHEN + 8 THEN + + 3 ELSE - + 45 END - - 48 / - 26 * CAST ( NULL AS INTEGER ) * - 28 + 21 + 24 * - - 67 * 93 * 29 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT - 9 / - - 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1813
SELECT ALL CASE - 13 WHEN + - NULLIF ( 53, + ( 63 ) + + + 21 + - 68 * + 49 ) * - 44 THEN + + 93 WHEN + 51 - - 24 + + - 18 / - - COUNT( DISTINCT - NULLIF ( - + 66, + 90 ) ) THEN + CAST( - 30 AS SIGNED ) + - 67 ELSE NULL END * - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL CASE - 13 WHEN + - NULLIF ( 53, + ( 63 ) + + + 21 + - 68 * + 49 ) * - 44 THEN + + 93 WHEN + 51 - - 24 + + - 18 / - - COUNT ( DISTINCT - NULLIF ( - + 66, + 90 ) ) THEN + CAST ( - 30 AS INTEGER ) + - 67 ELSE NULL END * - 68 AS col2
----
NULL

query II rowsort
SELECT - 85 AS col1, - 66 AS col1
----
-85
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1815
SELECT 61 DIV MAX( ALL 35 ) DIV 47 + + - 96
----
-96

skipif mysql # not compatible
query I rowsort label-1815
SELECT 61 / MAX ( ALL 35 ) / 47 + + - 96
----
-96

query I rowsort
SELECT 96 * 32
----
3072

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL COUNT( * ) * 20 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL COUNT ( * ) * 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query III rowsort label-1819
SELECT 48 AS col2, - SUM( + ( - + 17 ) ) AS col0, + 16
----
48
17
16

skipif mysql # not compatible
query III rowsort label-1819
SELECT 48 AS col2, - SUM ( + ( - + 17 ) ) AS col0, + 16
----
48
17
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1820
SELECT COUNT( * ) + 94 DIV 74
----
2

skipif mysql # not compatible
query I rowsort label-1820
SELECT COUNT ( * ) + 94 / 74
----
2

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

query I rowsort
SELECT ALL - + 34 * 95 AS col2
----
-3230

query I rowsort
SELECT 84 + + - 93 + + + 23 * - 18 * + 10 * + + 97 + - + 67 AS col2
----
-401656

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT NULLIF ( - COUNT( ALL 45 ), 83 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1824
SELECT NULLIF ( - COUNT ( ALL 45 ), 83 ) AS col2
----
-1

query II rowsort
SELECT ALL - 87, 51 AS col1
----
-87
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT ALL - SUM( ALL + 69 ) col0
----
-69

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL - SUM ( ALL + 69 ) col0
----
-69

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

skipif mysql # not compatible
query II rowsort label-1827
SELECT DISTINCT 99 AS col0, COUNT ( * )
----
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT - MAX( 56 ) + + 69
----
13

skipif mysql # not compatible
query I rowsort label-1828
SELECT - MAX ( 56 ) + + 69
----
13

query I rowsort
SELECT DISTINCT + 99 * - 79 AS col1
----
-7821

query I rowsort
SELECT ALL - 82 * - 22 + 0 AS col1
----
1804

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT - - 59 * - CASE 65 WHEN 15 THEN - NULLIF ( 76, COUNT( * ) ) END * 85 - - 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1832
SELECT - - 59 * - CASE 65 WHEN 15 THEN - NULLIF ( 76, COUNT ( * ) ) END * 85 - - 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1833
SELECT ALL - - 64 AS col1, + MAX( - 3 )
----
64
-3

skipif mysql # not compatible
query II rowsort label-1833
SELECT ALL - - 64 AS col1, + MAX ( - 3 )
----
64
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1835
SELECT SUM( - CAST( 35 AS SIGNED ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-1835
SELECT SUM ( - CAST ( 35 AS INTEGER ) ) AS col2
----
-35

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

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

query I rowsort
SELECT 61 * + + ( - 64 ) AS col0
----
-3904

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

query I rowsort
SELECT ALL - 96 * 23
----
-2208

query I rowsort
SELECT ALL - 23 - 38 * - - 40
----
-1543

query I rowsort
SELECT 87 * + + ( - 30 ) * - 57 AS col0
----
148770

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT + 80 * 23 + 18 DIV 83 AS col0
----
1840

skipif mysql # not compatible
query I rowsort label-1842
SELECT + 80 * 23 + 18 / 83 AS col0
----
1840

onlyif mysql # aggregate syntax: 
query II rowsort label-1843
SELECT 70 + + 9, - MIN( + 29 ) AS col0
----
79
-29

skipif mysql # not compatible
query II rowsort label-1843
SELECT 70 + + 9, - MIN ( + 29 ) AS col0
----
79
-29

query I rowsort
SELECT 6 * - ( 32 ) AS col1
----
-192

query I rowsort
SELECT ALL COALESCE ( + 51, + + 21, + - 84 )
----
51

query I rowsort
SELECT - + 99 col1
----
-99

query I rowsort
SELECT DISTINCT - 42 col0
----
-42

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

skipif mysql # not compatible
query II rowsort label-1848
SELECT ALL + COUNT ( * ) / - 48 AS col1, - COUNT ( * )
----
0
-1

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

skipif mysql # not compatible
query I rowsort label-1849
SELECT + + 16 / - ( + - COUNT ( * ) ) col0
----
16

query I rowsort
SELECT - + 47 + + 2 - + 63 + 29 * + 64
----
1748

query II rowsort
SELECT + - 41 * 65 AS col0, - 21
----
-2665
-21

query I rowsort
SELECT + + 66 - - 86
----
152

query I rowsort
SELECT ALL ( + 14 ) * - + 66 AS col1
----
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-1854
SELECT - 68 DIV - 89 * 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1854
SELECT - 68 / - 89 * 74 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT DISTINCT 7 + NULLIF ( - 72, - 98 - - + 50 ) * + MIN( DISTINCT 33 ) + NULLIF ( - 78, + 3 * 90 - - + ( - + 0 ) ) AS col2
----
-2447

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT 7 + NULLIF ( - 72, - 98 - - + 50 ) * + MIN ( DISTINCT 33 ) + NULLIF ( - 78, + 3 * 90 - - + ( - + 0 ) ) AS col2
----
-2447

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT + 51 * - SUM( - 54 ) + + MIN( ALL - 41 ) AS col1
----
2713

skipif mysql # not compatible
query I rowsort label-1856
SELECT + 51 * - SUM ( - 54 ) + + MIN ( ALL - 41 ) AS col1
----
2713

query I rowsort
SELECT ALL + 70 + - 21
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1858
SELECT ALL NULLIF ( + + 39, + + 32 ) + + 41 DIV + + 16
----
41

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL NULLIF ( + + 39, + + 32 ) + + 41 / + + 16
----
41

query I rowsort
SELECT + 9 + 66
----
75

query I rowsort
SELECT + + 14 * 87 col0
----
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL + COUNT( * ) + 77
----
78

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL + COUNT ( * ) + 77
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1862
SELECT - 18 * COUNT( * ) * - COUNT( * ) DIV 94 + 94 - + 77 * + + 50
----
-3756

skipif mysql # not compatible
query I rowsort label-1862
SELECT - 18 * COUNT ( * ) * - COUNT ( * ) / 94 + 94 - + 77 * + + 50
----
-3756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1863
SELECT + CAST( - ( ( 32 ) ) AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-1863
SELECT + CAST ( - ( ( 32 ) ) AS INTEGER )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT 90 * 29 * + - NULLIF ( - 75, - MIN( ALL - - 24 ) * 83 ) + + COALESCE ( 56, - + ( - + 61 ) - + - 8 * + 17 + + - 71 )
----
195806

skipif mysql # not compatible
query I rowsort label-1864
SELECT 90 * 29 * + - NULLIF ( - 75, - MIN ( ALL - - 24 ) * 83 ) + + COALESCE ( 56, - + ( - + 61 ) - + - 8 * + 17 + + - 71 )
----
195806

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1867
SELECT NULLIF ( - COUNT( * ), + - 3 - + + ( + + 60 ) ) DIV 66 - + ( - 0 ) + 77 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1867
SELECT NULLIF ( - COUNT ( * ), + - 3 - + + ( + + 60 ) ) / 66 - + ( - 0 ) + 77 AS col0
----
77

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

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL 45 * - CAST ( + COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) + 26 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1869
SELECT CASE - 79 WHEN 80 * - 78 / + - 73 / 57 THEN + 87 * + CASE COUNT( + CAST( NULL AS SIGNED ) ) WHEN 34 + CAST( - - NULLIF ( 2, + - 60 ) AS SIGNED ) THEN - 84 END ELSE + 34 END AS col1
----
34

skipif mysql # not compatible
query I rowsort label-1869
SELECT CASE - 79 WHEN 80 * - 78 / + - 73 / 57 THEN + 87 * + CASE COUNT ( + CAST ( NULL AS INTEGER ) ) WHEN 34 + CAST ( - - NULLIF ( 2, + - 60 ) AS INTEGER ) THEN - 84 END ELSE + 34 END AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1870
SELECT ALL CAST( - CAST( 97 AS SIGNED ) AS SIGNED ) * - + COUNT( * ) + - 57 + - 0 + 9 * + COUNT( * ) - + 50 + + 86 * 19 AS col1
----
1633

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL CAST ( - CAST ( 97 AS INTEGER ) AS INTEGER ) * - + COUNT ( * ) + - 57 + - 0 + 9 * + COUNT ( * ) - + 50 + + 86 * 19 AS col1
----
1633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1871
SELECT + MIN( ALL - 1 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT + MIN ( ALL - 1 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT + COALESCE ( + 39, + + COUNT( * ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-1872
SELECT + COALESCE ( + 39, + + COUNT ( * ) ) AS col0
----
39

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

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

query I rowsort
SELECT + 76 * 68 + + - 66 col2
----
5102

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT - 17 + + 62 + - - 56 - - 87 * 5 * - + NULLIF ( + - 39, - 44 + COUNT( * ) )
----
17066

skipif mysql # not compatible
query I rowsort label-1875
SELECT - 17 + + 62 + - - 56 - - 87 * 5 * - + NULLIF ( + - 39, - 44 + COUNT ( * ) )
----
17066

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT CASE 60 WHEN - - COUNT( * ) / - 95 THEN 98 * - 5 * - - 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT CASE 60 WHEN - - COUNT ( * ) / - 95 THEN 98 * - 5 * - - 24 ELSE NULL END
----
NULL

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

query I rowsort
SELECT + ( NULLIF ( - 37, + 44 ) ) * 27 AS col1
----
-999

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT DISTINCT + 46 DIV - - 50
----
0

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT + 46 / - - 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT + MIN( ALL - ( + 24 ) ) * 41 * 30
----
-29520

skipif mysql # not compatible
query I rowsort label-1880
SELECT + MIN ( ALL - ( + 24 ) ) * 41 * 30
----
-29520

query I rowsort
SELECT - 4 * - 85
----
340

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

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

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

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

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

query I rowsort
SELECT ALL - - 59 * - 21
----
-1239

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT DISTINCT + 98 * - 29 + - - COUNT( * ) + 31
----
-2810

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT + 98 * - 29 + - - COUNT ( * ) + 31
----
-2810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1887
SELECT - - 87 * COUNT( * ) + + + 9, 86 * + - CAST( 25 AS SIGNED ) AS col2
----
96
-2150

skipif mysql # not compatible
query II rowsort label-1887
SELECT - - 87 * COUNT ( * ) + + + 9, 86 * + - CAST ( 25 AS INTEGER ) AS col2
----
96
-2150

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT ALL + - CASE 26 WHEN 41 THEN + 7 WHEN + - 76 + + 63 + + 87 THEN NULL ELSE + 62 + 83 + COUNT( * ) END * - - 50 * + 36
----
-262800

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL + - CASE 26 WHEN 41 THEN + 7 WHEN + - 76 + + 63 + + 87 THEN NULL ELSE + 62 + 83 + COUNT ( * ) END * - - 50 * + 36
----
-262800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1889
SELECT - 13 + - COUNT( + 61 ) + - NULLIF ( - SUM( DISTINCT 62 ), 27 + 57 + - 91 * + 89 ) DIV 19 * + 77
----
217

skipif mysql # not compatible
query I rowsort label-1889
SELECT - 13 + - COUNT ( + 61 ) + - NULLIF ( - SUM ( DISTINCT 62 ), 27 + 57 + - 91 * + 89 ) / 19 * + 77
----
217

query I rowsort
SELECT - 57 * 82
----
-4674

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT - COUNT( * ) + - 37
----
-38

skipif mysql # not compatible
query I rowsort label-1891
SELECT - COUNT ( * ) + - 37
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT ALL - COUNT( 49 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL - COUNT ( 49 ) AS col2
----
-1

query I rowsort
SELECT - + COALESCE ( - 41, - 61 ) AS col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1894
SELECT + - COUNT( * ) DIV - 98 + - + 97, 70 + - 70 AS col1
----
-97
0

skipif mysql # not compatible
query II rowsort label-1894
SELECT + - COUNT ( * ) / - 98 + - + 97, 70 + - 70 AS col1
----
-97
0

query I rowsort
SELECT ALL - 40 + + 90
----
50

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

query I rowsort
SELECT - + 18 + - 81 * + - 6 * + 16 AS col0
----
7758

query I rowsort
SELECT DISTINCT - + 62 + - + ( 60 ) + + 3
----
-119

query I rowsort
SELECT ALL - 49 * - 16
----
784

query II rowsort
SELECT - 2 + + 34 * - 16 AS col2, 31
----
-546
31

query I rowsort
SELECT DISTINCT 41 + + + 39 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT - 59 - - COALESCE ( - COUNT( + 26 ), - 51, + 45 + - - 22 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-1902
SELECT - 59 - - COALESCE ( - COUNT ( + 26 ), - 51, + 45 + - - 22 ) AS col1
----
-60

query I rowsort
SELECT + 29 * - + 37 + 54 - 56 col0
----
-1075

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT + COUNT( * ) + - - 30 - + ( - - COUNT( * ) ) * + 39
----
-8

skipif mysql # not compatible
query I rowsort label-1904
SELECT + COUNT ( * ) + - - 30 - + ( - - COUNT ( * ) ) * + 39
----
-8

query I rowsort
SELECT ALL 7 + 73 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT + COUNT( * ) * + 42 col2
----
42

skipif mysql # not compatible
query I rowsort label-1906
SELECT + COUNT ( * ) * + 42 col2
----
42

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1908
SELECT ALL 10 DIV 14 * - 37 - - ( + + 61 ) - 85 + - 2 * 59 * - + 11 AS col1
----
1274

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL 10 / 14 * - 37 - - ( + + 61 ) - 85 + - 2 * 59 * - + 11 AS col1
----
1274

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

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

query I rowsort
SELECT DISTINCT + 22 AS col0
----
22

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

skipif mysql # not compatible
query I rowsort label-1911
SELECT + SUM ( - - 12 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1912
SELECT + ( + CAST( - 59 AS SIGNED ) ) * + 83 * SUM( + 11 ) AS col1
----
-53867

skipif mysql # not compatible
query I rowsort label-1912
SELECT + ( + CAST ( - 59 AS INTEGER ) ) * + 83 * SUM ( + 11 ) AS col1
----
-53867

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT ALL SUM( DISTINCT - 95 ) * - 77
----
7315

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL SUM ( DISTINCT - 95 ) * - 77
----
7315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1914
SELECT CASE 42 WHEN 66 * - NULLIF ( 13, - + CAST( NULL AS SIGNED ) ) + - 38 THEN 19 * + - 52 * + 95 WHEN + 48 * + + 60 * - + COUNT( * ) * - 67 - - 79 THEN NULL END / + - 40 * 21 * + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT CASE 42 WHEN 66 * - NULLIF ( 13, - + CAST ( NULL AS INTEGER ) ) + - 38 THEN 19 * + - 52 * + 95 WHEN + 48 * + + 60 * - + COUNT ( * ) * - 67 - - 79 THEN NULL END / + - 40 * 21 * + 44 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT DISTINCT - CASE - CAST( - 47 AS SIGNED ) WHEN - 10 THEN + 93 WHEN + - 35 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT - CASE - CAST ( - 47 AS INTEGER ) WHEN - 10 THEN + 93 WHEN + - 35 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT 5 * 22 + 33 * + + 50 - - 92 + - 15 + - + COUNT( * )
----
1836

skipif mysql # not compatible
query I rowsort label-1916
SELECT 5 * 22 + 33 * + + 50 - - 92 + - 15 + - + COUNT ( * )
----
1836

query I rowsort
SELECT 31 + + + 4 AS col1
----
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT - 41 + - 37 * + COUNT( * ) * - - 60
----
-2261

skipif mysql # not compatible
query I rowsort label-1919
SELECT - 41 + - 37 * + COUNT ( * ) * - - 60
----
-2261

query I rowsort
SELECT 20 * 86 AS col2
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL - COALESCE ( NULLIF ( - 93, - MIN( + 49 ) + 97 ), - 82 ) + - MAX( DISTINCT - 54 )
----
147

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL - COALESCE ( NULLIF ( - 93, - MIN ( + 49 ) + 97 ), - 82 ) + - MAX ( DISTINCT - 54 )
----
147

query I rowsort
SELECT ALL + 75 + - + 89 + - 0 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT + CASE + 4 WHEN + COALESCE ( - 88, + 87 ) THEN 76 ELSE - 52 - + CASE 48 WHEN + ( + - 56 ) THEN + 75 * 88 * - 98 * 14 END * - - 60 * + + 35 END + + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT + CASE + 4 WHEN + COALESCE ( - 88, + 87 ) THEN 76 ELSE - 52 - + CASE 48 WHEN + ( + - 56 ) THEN + 75 * 88 * - 98 * 14 END * - - 60 * + + 35 END + + - COUNT ( * ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1924
SELECT ALL + 53 * 95 DIV + 54 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL + 53 * 95 / + 54 AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-1925
SELECT - 73 * - MIN( ALL 86 ) * - 17, - 70 * - - 61 AS col0
----
-106726
-4270

skipif mysql # not compatible
query II rowsort label-1925
SELECT - 73 * - MIN ( ALL 86 ) * - 17, - 70 * - - 61 AS col0
----
-106726
-4270

query I rowsort
SELECT - - 31 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1927
SELECT ALL + 92 * 55 * NULLIF ( - CAST( 13 AS SIGNED ), - 26 + - COUNT( * ) ) + - ( COUNT( * ) ) AS col1
----
-65781

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL + 92 * 55 * NULLIF ( - CAST ( 13 AS INTEGER ), - 26 + - COUNT ( * ) ) + - ( COUNT ( * ) ) AS col1
----
-65781

query I rowsort
SELECT 79 + + 68
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT - CASE - 8 WHEN - COALESCE ( - + 11, + COUNT( * ) ) THEN + - ( 4 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT - CASE - 8 WHEN - COALESCE ( - + 11, + COUNT ( * ) ) THEN + - ( 4 ) END
----
NULL

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL - 63 / + COUNT ( * ) AS col1
----
-63

query II rowsort
SELECT - 2 AS col0, + 52 AS col1
----
-2
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT DISTINCT 94 * ( COUNT( * ) ) * 32 + + 29
----
3037

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT 94 * ( COUNT ( * ) ) * 32 + + 29
----
3037

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1936
SELECT ALL 12 * CASE - + CAST( NULL AS DECIMAL ) WHEN 42 - + + 26 THEN + - 2 WHEN + 69 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL 12 * CASE - + CAST ( NULL AS REAL ) WHEN 42 - + + 26 THEN + - 2 WHEN + 69 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 90 * + 34 * + - ( 69 ) AS col2
----
-211140

query I rowsort
SELECT 97 - - 25
----
122

query I rowsort
SELECT - 80 * - 53 - - - 49 AS col1
----
4191

query I rowsort
SELECT ALL + 92 * + - 54 AS col1
----
-4968

query I rowsort
SELECT 80 + - + 16 + - 22 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT 16 * + 95 * 81 * + NULLIF ( - - NULLIF ( COALESCE ( - + 30, - + 91 ), + COUNT( * ) + + 72 ), + - 44 ) col0
----
-3693600

skipif mysql # not compatible
query I rowsort label-1942
SELECT 16 * + 95 * 81 * + NULLIF ( - - NULLIF ( COALESCE ( - + 30, - + 91 ), + COUNT ( * ) + + 72 ), + - 44 ) col0
----
-3693600

query I rowsort
SELECT 90 * - - 76 AS col2
----
6840

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1944
SELECT 65 * + 26 + + COALESCE ( - 67, + 25 - - - 80 + + CASE - 74 WHEN CAST( NULL AS DECIMAL ) THEN NULL ELSE - 96 * - COUNT( * ) + - 8 END )
----
1623

skipif mysql # not compatible
query I rowsort label-1944
SELECT 65 * + 26 + + COALESCE ( - 67, + 25 - - - 80 + + CASE - 74 WHEN CAST ( NULL AS REAL ) THEN NULL ELSE - 96 * - COUNT ( * ) + - 8 END )
----
1623

query I rowsort
SELECT ALL + 74 * 51 AS col0
----
3774

query I rowsort
SELECT - 29 * - 65 + - NULLIF ( NULLIF ( - + 14, - CASE + + 91 WHEN + + 79 THEN - 79 * 16 * + 72 + ( - + 61 ) + + - 0 WHEN + - 75 - + + 50 THEN NULL END + 28 ), - + 37 )
----
1899

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

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

query I rowsort
SELECT ALL 10 + - + 79 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT COUNT( * ) + + + 2 + - 27 * + 40
----
-1077

skipif mysql # not compatible
query I rowsort label-1949
SELECT COUNT ( * ) + + + 2 + - 27 * + 40
----
-1077

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL - NULLIF ( CASE ( 83 ) WHEN - ( - 26 ) THEN + - 49 / + 28 WHEN MAX( - 21 ) THEN - - 53 + + 28 WHEN - + 40 / - + 52 THEN + 14 * - 57 / - 32 END, + 58 ) / + + 60 + 16 + + + 36 / 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL - NULLIF ( CASE ( 83 ) WHEN - ( - 26 ) THEN + - 49 / + 28 WHEN MAX ( - 21 ) THEN - - 53 + + 28 WHEN - + 40 / - + 52 THEN + 14 * - 57 / - 32 END, + 58 ) / + + 60 + 16 + + + 36 / 15
----
NULL

query II rowsort
SELECT + + 71 * - 96 + 44 AS col1, - 67
----
-6772
-67

query II rowsort
SELECT DISTINCT - - 74 AS col0, 68 AS col1
----
74
68

query I rowsort
SELECT DISTINCT + 46 + - 38
----
8

query I rowsort
SELECT ALL 92 + 65 + + ( - 98 ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT COALESCE ( + - ( - COUNT( * ) ), - NULLIF ( + 77, - 58 ) ) * - 80 * + ( - - 56 ) * - ( - + 75 )
----
-336000

skipif mysql # not compatible
query I rowsort label-1956
SELECT COALESCE ( + - ( - COUNT ( * ) ), - NULLIF ( + 77, - 58 ) ) * - 80 * + ( - - 56 ) * - ( - + 75 )
----
-336000

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

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

query I rowsort
SELECT ALL 58 + - 93 AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT - COALESCE ( - + 44, + + ( - + COUNT( ( + - 59 ) ) ), - + MAX( ALL - ( - 34 ) ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-1959
SELECT - COALESCE ( - + 44, + + ( - + COUNT ( ( + - 59 ) ) ), - + MAX ( ALL - ( - 34 ) ) ) AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1960
SELECT ( 45 ) DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-1960
SELECT ( 45 ) / 74
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1961
SELECT ALL + ( + SUM( - 71 ) ) DIV 36
----
-1

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL + ( + SUM ( - 71 ) ) / 36
----
-1

query II rowsort
SELECT - 19 AS col0, - ( ( - - 64 ) ) AS col0
----
-19
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT - - MAX( 71 )
----
71

skipif mysql # not compatible
query I rowsort label-1963
SELECT - - MAX ( 71 )
----
71

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1965
SELECT DISTINCT - 69 - + COALESCE ( 37, - 62, CAST( 98 AS SIGNED ) ) + ( - + 61 ) * - - 63 * + - ( CASE + COUNT( * ) WHEN 39 THEN NULL ELSE - 35 DIV - ( 96 ) + - 31 DIV - 68 END ) AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT - 69 - + COALESCE ( 37, - 62, CAST ( 98 AS INTEGER ) ) + ( - + 61 ) * - - 63 * + - ( CASE + COUNT ( * ) WHEN 39 THEN NULL ELSE - 35 / - ( 96 ) + - 31 / - 68 END ) AS col0
----
-106

query I rowsort
SELECT + 86 + + ( + 65 )
----
151

query I rowsort
SELECT DISTINCT - 59 * - 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT - SUM( - 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1968
SELECT - SUM ( - 84 ) AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT 64 + + 12 + + 55 DIV - 76 * 70
----
76

skipif mysql # not compatible
query I rowsort label-1969
SELECT 64 + + 12 + + 55 / - 76 * 70
----
76

query I rowsort
SELECT 0 * - + 12
----
0

query I rowsort
SELECT 71 * + 55
----
3905

query I rowsort
SELECT 6 + 15
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT ALL MIN( ALL + 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL MIN ( ALL + 26 ) AS col1
----
26

query I rowsort
SELECT - 88 + + - ( ( 77 ) ) + - 83 AS col0
----
-248

onlyif mysql # aggregate syntax: 
query III rowsort label-1975
SELECT ALL + 38 * - - ( - SUM( ALL + + ( - 13 ) ) ) + + + 58 AS col0, - 95 * - - 99 + + + 40 AS col0, + NULLIF ( - 59, 29 ) AS col0
----
552
-9365
-59

skipif mysql # not compatible
query III rowsort label-1975
SELECT ALL + 38 * - - ( - SUM ( ALL + + ( - 13 ) ) ) + + + 58 AS col0, - 95 * - - 99 + + + 40 AS col0, + NULLIF ( - 59, 29 ) AS col0
----
552
-9365
-59

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

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

query III rowsort
SELECT ALL + 32 AS col1, - 52 AS col1, + 23 AS col1
----
32
-52
23

query I rowsort
SELECT ALL - 88 * - + 42 + 53 * 44
----
6028

query I rowsort
SELECT COALESCE ( 15, - ( + 26 ) ) AS col2
----
15

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

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

query I rowsort
SELECT - 4 * + 68 AS col2
----
-272

onlyif mysql # DIV for integer division: 
query III rowsort label-1982
SELECT + 88 DIV 3 * - 37 * + - 15 - + - 93 - - - 37 col1, 97, - + 68 * 45 + - + 48 AS col1
----
16151
97
-3108

skipif mysql # not compatible
query III rowsort label-1982
SELECT + 88 / 3 * - 37 * + - 15 - + - 93 - - - 37 col1, 97, - + 68 * 45 + - + 48 AS col1
----
16151
97
-3108

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT NULLIF ( + + COUNT( * ), 25 * - + 2 / NULLIF ( - 93, - 36 * + AVG ( 70 ) * 22 * 88 / - + 27 - - 41 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1983
SELECT NULLIF ( + + COUNT ( * ), 25 * - + 2 / NULLIF ( - 93, - 36 * + AVG ( 70 ) * 22 * 88 / - + 27 - - 41 ) )
----
1

query I rowsort
SELECT - 98 * + 75 AS col0
----
-7350

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT ALL - 95 * - - MIN( ALL 39 ) * + 22 * - 72 + - 9 * + - 97 AS col2
----
5869593

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL - 95 * - - MIN ( ALL 39 ) * + 22 * - 72 + - 9 * + - 97 AS col2
----
5869593

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1987
SELECT ALL + - CASE 58 WHEN + + 1 THEN NULL WHEN - 85 * + - 77 THEN COALESCE ( COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ), + - 3 * + + 77 * + + 31 / + - 95 - + - 55 + - + CAST( SUM( - 28 ) AS SIGNED ) + + 63 + 70 * + 63 / + 98 ) ELSE + 86 + - + CAST( NULL AS SIGNED ) END * + + ( - 52 ) + + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL + - CASE 58 WHEN + + 1 THEN NULL WHEN - 85 * + - 77 THEN COALESCE ( COUNT ( DISTINCT + CAST ( NULL AS REAL ) ), + - 3 * + + 77 * + + 31 / + - 95 - + - 55 + - + CAST ( SUM ( - 28 ) AS INTEGER ) + + 63 + 70 * + 63 / + 98 ) ELSE + 86 + - + CAST ( NULL AS INTEGER ) END * + + ( - 52 ) + + 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1988
SELECT ALL + 94 col1, - ( - COUNT( * ) )
----
94
1

skipif mysql # not compatible
query II rowsort label-1988
SELECT ALL + 94 col1, - ( - COUNT ( * ) )
----
94
1

query I rowsort
SELECT - 46 * - 78 - + 9 * + 47 * - 69
----
32775

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1992
SELECT - 7 AS col0, + COUNT( * ) + + 48
----
-7
49

skipif mysql # not compatible
query II rowsort label-1992
SELECT - 7 AS col0, + COUNT ( * ) + + 48
----
-7
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1993
SELECT - 97 * + COUNT( * ) + + - 44 + - CAST( NULLIF ( + 92, + 81 * + - 74 * + - CAST( - 88 AS SIGNED ) ) AS SIGNED ) * + 39, + MAX( ALL - 57 ) - - 49 col0
----
-3729
-8

skipif mysql # not compatible
query II rowsort label-1993
SELECT - 97 * + COUNT ( * ) + + - 44 + - CAST ( NULLIF ( + 92, + 81 * + - 74 * + - CAST ( - 88 AS INTEGER ) ) AS INTEGER ) * + 39, + MAX ( ALL - 57 ) - - 49 col0
----
-3729
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT DISTINCT + NULLIF ( 80, + + 4 * - COUNT( * ) ) * + 41 + 66 - + 34 AS col0
----
3312

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT + NULLIF ( 80, + + 4 * - COUNT ( * ) ) * + 41 + 66 - + 34 AS col0
----
3312

query I rowsort
SELECT - + 37 + + + 93 + - + 83
----
-27

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

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

query I rowsort
SELECT ALL 5 * - + 31
----
-155

query I rowsort
SELECT + 75 + - 99 AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1999
SELECT ALL + 49 * - COUNT( * ) + - 36 DIV - ( + 32 ) + - 86 * - COUNT( * ) + 92
----
130

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL + 49 * - COUNT ( * ) + - 36 / - ( + 32 ) + - 86 * - COUNT ( * ) + 92
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT - MIN( - 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2000
SELECT - MIN ( - 60 ) AS col1
----
60

query I rowsort
SELECT + 30 + 15 + - - 78 + - 58 * + 79
----
-4459

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2004
SELECT + 82 * + 11 * - + CASE ( - CASE - - MAX( + 93 ) WHEN - + 93 THEN - 12 WHEN - + 62 THEN NULL ELSE - 23 * - 12 END ) WHEN + - ( COUNT( * ) ) THEN + + 44 + - COUNT( * ) * 1 DIV - + 76 WHEN + + 86 THEN + COUNT( * ) + COUNT( * ) ELSE + COUNT( * ) END * + - 14
----
12628

skipif mysql # not compatible
query I rowsort label-2004
SELECT + 82 * + 11 * - + CASE ( - CASE - - MAX ( + 93 ) WHEN - + 93 THEN - 12 WHEN - + 62 THEN NULL ELSE - 23 * - 12 END ) WHEN + - ( COUNT ( * ) ) THEN + + 44 + - COUNT ( * ) * 1 / - + 76 WHEN + + 86 THEN + COUNT ( * ) + COUNT ( * ) ELSE + COUNT ( * ) END * + - 14
----
12628

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT DISTINCT - NULLIF ( - - SUM( DISTINCT - 97 ), + 49 - + - 94 - - 83 + MIN( DISTINCT - - 20 ) * - 91 ) + + 71 * - 62 * - + COUNT( * )
----
4499

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT - NULLIF ( - - SUM ( DISTINCT - 97 ), + 49 - + - 94 - - 83 + MIN ( DISTINCT - - 20 ) * - 91 ) + + 71 * - 62 * - + COUNT ( * )
----
4499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2007
SELECT - CAST( - ( - + 16 ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-2007
SELECT - CAST ( - ( - + 16 ) AS INTEGER )
----
-16

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

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL COUNT ( * ) + 22 AS col0
----
23

query I rowsort
SELECT - COALESCE ( - 20, ( 90 ), - - 94 ) AS col0
----
20

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

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

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

skipif mysql # not compatible
query I rowsort label-2011
SELECT - COUNT ( * ) / 22 + + 60 AS col1
----
60

query I rowsort
SELECT - 33 * - 77 - 88
----
2453

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2013
SELECT ALL - NULLIF ( - - 50, - COUNT( * ) * - CAST( NULL AS DECIMAL ) + + - 93 + - COUNT( * ) ) * - + 40 AS col2
----
2000

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL - NULLIF ( - - 50, - COUNT ( * ) * - CAST ( NULL AS REAL ) + + - 93 + - COUNT ( * ) ) * - + 40 AS col2
----
2000

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

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

query II rowsort
SELECT - 74 * 20 AS col2, 8 AS col2
----
-1480
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2016
SELECT + 86 + + MAX( ALL + 67 ) * - - CAST( NULL AS SIGNED ) + - 16 * 72 + - + ( + + 38 ) * + CAST( NULL AS SIGNED ) / - NULLIF ( - - 55, MAX( + 0 ) * - - 99 + 97 ), + 51 AS col1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-2016
SELECT + 86 + + MAX ( ALL + 67 ) * - - CAST ( NULL AS INTEGER ) + - 16 * 72 + - + ( + + 38 ) * + CAST ( NULL AS INTEGER ) / - NULLIF ( - - 55, MAX ( + 0 ) * - - 99 + 97 ), + 51 AS col1
----
NULL
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2017
SELECT ALL + 99 DIV 45 + + - 67 + - - COUNT( * ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL + 99 / 45 + + - 67 + - - COUNT ( * ) AS col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2018
SELECT ALL + COALESCE ( - CAST( NULL AS SIGNED ), ( + CAST( - 74 AS SIGNED ) ), - - 53 )
----
-74

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL + COALESCE ( - CAST ( NULL AS INTEGER ), ( + CAST ( - 74 AS INTEGER ) ), - - 53 )
----
-74

query I rowsort
SELECT - 49 * 23 + + 5
----
-1122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT ALL + + 40 * + 21 + 25 - - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL + + 40 * + 21 + 25 - - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2021
SELECT - CAST( - 80 AS SIGNED ) + + - ( - 69 ) * - 59 * + COUNT( * ) - - 49 AS col0
----
-3942

skipif mysql # not compatible
query I rowsort label-2021
SELECT - CAST ( - 80 AS INTEGER ) + + - ( - 69 ) * - 59 * + COUNT ( * ) - - 49 AS col0
----
-3942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2022
SELECT DISTINCT + 72 * - 74 - - ( + - 99 ) + - ( + CASE + - 60 WHEN + 10 THEN 64 WHEN 2 THEN - 40 + + 83 - - + 48 + + + 41 * - 10 * + 91 * - 65 * AVG ( ALL 30 ) END ) * - 59 AS col1, SUM( 43 ) * 54 + 1 - 76 - + + CAST( NULL AS SIGNED ) - - 23
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2022
SELECT DISTINCT + 72 * - 74 - - ( + - 99 ) + - ( + CASE + - 60 WHEN + 10 THEN 64 WHEN 2 THEN - 40 + + 83 - - + 48 + + + 41 * - 10 * + 91 * - 65 * AVG ( ALL 30 ) END ) * - 59 AS col1, SUM ( 43 ) * 54 + 1 - 76 - + + CAST ( NULL AS INTEGER ) - - 23
----
NULL
NULL

query I rowsort
SELECT DISTINCT - - 6 * 31 - - 68 - + 21 AS col0
----
233

query I rowsort
SELECT ALL + + 76 col1
----
76

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

query I rowsort
SELECT ALL 93 col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT COUNT( - + 92 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2027
SELECT COUNT ( - + 92 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT 32 * - ( - - 59 ) + + 63 * COUNT( * ) * + 68 * - - 9
----
36668

skipif mysql # not compatible
query I rowsort label-2028
SELECT 32 * - ( - - 59 ) + + 63 * COUNT ( * ) * + 68 * - - 9
----
36668

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

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

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

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

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

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

query I rowsort
SELECT 96 + + 12 AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT DISTINCT - MIN( 85 ) + 15 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT - MIN ( 85 ) + 15 AS col0
----
-70

query II rowsort
SELECT ALL 18 AS col2, - 57 * + 38 + - - 21
----
18
-2145

query I rowsort
SELECT DISTINCT ( - 4 ) + + 78
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2036
SELECT ( 27 ) + + 64 + - 54 + MAX( - 40 ) DIV - 55 * - 88 * + - 5 * - + 93 + - + CAST( COUNT( * ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-2036
SELECT ( 27 ) + + 64 + - 54 + MAX ( - 40 ) / - 55 * - 88 * + - 5 * - + 93 + - + CAST ( COUNT ( * ) AS INTEGER )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2037
SELECT ALL 29 AS col1, CAST( + - CASE + - 38 WHEN + + 57 / 91 THEN - 12 ELSE + - 57 END AS SIGNED ) * 61 * + 8
----
29
27816

skipif mysql # not compatible
query II rowsort label-2037
SELECT ALL 29 AS col1, CAST ( + - CASE + - 38 WHEN + + 57 / 91 THEN - 12 ELSE + - 57 END AS INTEGER ) * 61 * + 8
----
29
27816

onlyif mysql # DIV for integer division: 
query II rowsort label-2038
SELECT 41 + 80 DIV - + 29, - 36 AS col0
----
39
-36

skipif mysql # not compatible
query II rowsort label-2038
SELECT 41 + 80 / - + 29, - 36 AS col0
----
39
-36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2040
SELECT CAST( 41 AS SIGNED ) + + - 48 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2040
SELECT CAST ( 41 AS INTEGER ) + + - 48 AS col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2041
SELECT ALL CAST( + 34 AS SIGNED ) + 24 AS col0, - 49 AS col1
----
58
-49

skipif mysql # not compatible
query II rowsort label-2041
SELECT ALL CAST ( + 34 AS INTEGER ) + 24 AS col0, - 49 AS col1
----
58
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-2042
SELECT ( + + 44 ) DIV + 82, - 48 * - - 27 col0
----
0
-1296

skipif mysql # not compatible
query II rowsort label-2042
SELECT ( + + 44 ) / + 82, - 48 * - - 27 col0
----
0
-1296

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2044
SELECT CAST( NULL AS SIGNED ) * - + NULLIF ( CASE + 36 WHEN 7 * + COUNT( * ) * + 77 * - - 36 / + ( + CASE + + CAST( NULL AS SIGNED ) WHEN - 53 * + NULLIF ( - + 81, + MAX( + + CAST( + 80 AS DECIMAL ) ) ) THEN 11 * CASE - - COALESCE ( + COALESCE ( + - SUM( ALL + COALESCE ( + + 37, - 74 ) ), - COUNT( * ) * + + 82, + 3 ), + 27 + 57 / + - 97 / + 58 ) WHEN 86 THEN - 57 / 14 * - 65 * + 21 * + 29 - 23 * - COUNT( DISTINCT - ( 60 ) ) WHEN - 60 THEN NULL END END ) THEN NULL ELSE - 83 END, + NULLIF ( AVG ( - 51 ), COUNT( * ) + - 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT CAST ( NULL AS INTEGER ) * - + NULLIF ( CASE + 36 WHEN 7 * + COUNT ( * ) * + 77 * - - 36 / + ( + CASE + + CAST ( NULL AS INTEGER ) WHEN - 53 * + NULLIF ( - + 81, + MAX ( + + CAST ( + 80 AS REAL ) ) ) THEN 11 * CASE - - COALESCE ( + COALESCE ( + - SUM ( ALL + COALESCE ( + + 37, - 74 ) ), - COUNT ( * ) * + + 82, + 3 ), + 27 + 57 / + - 97 / + 58 ) WHEN 86 THEN - 57 / 14 * - 65 * + 21 * + 29 - 23 * - COUNT ( DISTINCT - ( 60 ) ) WHEN - 60 THEN NULL END END ) THEN NULL ELSE - 83 END, + NULLIF ( AVG ( - 51 ), COUNT ( * ) + - 13 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2045
SELECT ALL ( - - 80 ) / + + 32 * + AVG ( + CAST( NULL AS SIGNED ) ) * COALESCE ( + ( - 90 ), - 92 * - + 29 * - + 18 + + 21 + + 14, + - 23 + - + 88 * - 56 * + - 3 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL ( - - 80 ) / + + 32 * + AVG ( + CAST ( NULL AS INTEGER ) ) * COALESCE ( + ( - 90 ), - 92 * - + 29 * - + 18 + + 21 + + 14, + - 23 + - + 88 * - 56 * + - 3 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2046
SELECT ALL + NULLIF ( - 37, - 96 + - COUNT( * ) * + 74 ) * - 17 AS col0, 43 + + + ( + SUM( - 45 ) )
----
629
-2

skipif mysql # not compatible
query II rowsort label-2046
SELECT ALL + NULLIF ( - 37, - 96 + - COUNT ( * ) * + 74 ) * - 17 AS col0, 43 + + + ( + SUM ( - 45 ) )
----
629
-2

query I rowsort
SELECT DISTINCT - 92 col2
----
-92

query I rowsort
SELECT - 5 * - - 46 - + 56 * - 64 * + - ( - + 78 ) AS col2
----
279322

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

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

query I rowsort
SELECT ALL 24 * - + CASE - - 62 WHEN - COALESCE ( - 84, + + 39 ) THEN - 7 ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT ( - - 43 ) * 42 * - + 45 * + 59 + - - ( ( + + 8 ) ) AS col2
----
-4794922

query I rowsort
SELECT + + NULLIF ( + 87, 45 * + 5 * 5 + + 34 )
----
87

query I rowsort
SELECT DISTINCT 82 * - NULLIF ( + 91, + ( 44 ) + + 15 * 18 ) AS col1
----
-7462

onlyif mysql # DIV for integer division: 
query II rowsort label-2055
SELECT ALL - 20 AS col0, 0 DIV - 71 + - 64 + - 12 AS col2
----
-20
-76

skipif mysql # not compatible
query II rowsort label-2055
SELECT ALL - 20 AS col0, 0 / - 71 + - 64 + - 12 AS col2
----
-20
-76

query II rowsort
SELECT ALL - 10 AS col1, + 84
----
-10
84

query I rowsort
SELECT 69 - 69 + - + 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT DISTINCT + + CASE + - 94 WHEN + ( - - 13 ) THEN + - 86 / 60 END * - COUNT( ALL + + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT + + CASE + - 94 WHEN + ( - - 13 ) THEN + - 86 / 60 END * - COUNT ( ALL + + 32 )
----
NULL

query I rowsort
SELECT - 57 * + 85
----
-4845

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT + SUM( 19 ) col1
----
19

skipif mysql # not compatible
query I rowsort label-2061
SELECT + SUM ( 19 ) col1
----
19

query I rowsort
SELECT 5 col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2063
SELECT COUNT( * ) DIV - - 54 AS col2, 91
----
0
91

skipif mysql # not compatible
query II rowsort label-2063
SELECT COUNT ( * ) / - - 54 AS col2, 91
----
0
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2064
SELECT DISTINCT + NULLIF ( CAST( MAX( ALL - 93 ) AS SIGNED ), + 14 ) + - + MIN( + 47 ) AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT + NULLIF ( CAST ( MAX ( ALL - 93 ) AS INTEGER ), + 14 ) + - + MIN ( + 47 ) AS col0
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL + COUNT( * ) + 81 + - + 54 + - 22 - - 96 * 97 * - + 14 * - 36
----
4693254

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL + COUNT ( * ) + 81 + - + 54 + - 22 - - 96 * 97 * - + 14 * - 36
----
4693254

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT COUNT( * ) * - 97 + - + 56 AS col0
----
-153

skipif mysql # not compatible
query I rowsort label-2066
SELECT COUNT ( * ) * - 97 + - + 56 AS col0
----
-153

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2068
SELECT ALL - CASE CAST( - 58 AS SIGNED ) WHEN - + ( + 22 ) THEN NULL WHEN + + ( - 58 ) THEN ( + - 80 ) * - 50 WHEN 22 THEN + + 81 END + - + 0 - COUNT( * ) col1, 5
----
-4001
5

skipif mysql # not compatible
query II rowsort label-2068
SELECT ALL - CASE CAST ( - 58 AS INTEGER ) WHEN - + ( + 22 ) THEN NULL WHEN + + ( - 58 ) THEN ( + - 80 ) * - 50 WHEN 22 THEN + + 81 END + - + 0 - COUNT ( * ) col1, 5
----
-4001
5

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2071
SELECT 44 + - 22 * + - 88 - + 28 - - 23 + - 52 DIV - 42 AS col1
----
1976

skipif mysql # not compatible
query I rowsort label-2071
SELECT 44 + - 22 * + - 88 - + 28 - - 23 + - 52 / - 42 AS col1
----
1976

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

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

query I rowsort
SELECT DISTINCT 74 * + 88
----
6512

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT DISTINCT + ( - - 41 ) * + 25 / + NULLIF ( COUNT( * ), - 66 ) * CASE + + 78 WHEN 7 * + 28 THEN + 98 END + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT + ( - - 41 ) * + 25 / + NULLIF ( COUNT ( * ), - 66 ) * CASE + + 78 WHEN 7 * + 28 THEN + 98 END + - 11
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2075
SELECT 20 DIV - COUNT( ALL 12 )
----
-20

skipif mysql # not compatible
query I rowsort label-2075
SELECT 20 / - COUNT ( ALL 12 )
----
-20

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2077
SELECT - CASE - 90 WHEN - + 93 + - NULLIF ( + 69, + 45 ) THEN 76 WHEN + + 79 + - - 53 THEN NULL ELSE - - 38 - - + COUNT( * ) END * + 43 + + + 23 + CAST( NULL AS SIGNED ) * + 11 / - - 42 + + 43 - + - 54 + - 34 * - - 94 + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT - CASE - 90 WHEN - + 93 + - NULLIF ( + 69, + 45 ) THEN 76 WHEN + + 79 + - - 53 THEN NULL ELSE - - 38 - - + COUNT ( * ) END * + 43 + + + 23 + CAST ( NULL AS INTEGER ) * + 11 / - - 42 + + 43 - + - 54 + - 34 * - - 94 + - 59
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 68, 80 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2079
SELECT + CAST( - NULLIF ( + COUNT( * ), + 9 ) AS SIGNED ) DIV + 51 + ( - COALESCE ( + NULLIF ( - 28, 93 ), 88 ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-2079
SELECT + CAST ( - NULLIF ( + COUNT ( * ), + 9 ) AS INTEGER ) / + 51 + ( - COALESCE ( + NULLIF ( - 28, 93 ), 88 ) ) AS col2
----
28

query I rowsort
SELECT 94 * - + 86 + - 83 AS col0
----
-8167

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT 99 DIV + - 87 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2081
SELECT 99 / + - 87 AS col2
----
-1

query I rowsort
SELECT ALL - - 31
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-2083
SELECT 45 + - + COALESCE ( + 45, - 87 * - COUNT( * ) ) col1, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-2083
SELECT 45 + - + COALESCE ( + 45, - 87 * - COUNT ( * ) ) col1, COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT - COUNT( * ) + - 21 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-2084
SELECT - COUNT ( * ) + - 21 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT ALL CASE + - ( - 91 ) WHEN - MIN( + 6 ) THEN NULL ELSE ( + 51 ) END * 43
----
2193

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL CASE + - ( - 91 ) WHEN - MIN ( + 6 ) THEN NULL ELSE ( + 51 ) END * 43
----
2193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT ALL - - CAST( + 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL - - CAST ( + 18 AS INTEGER )
----
18

query I rowsort
SELECT 68 * 10 AS col1
----
680

query II rowsort
SELECT - 41 + + - 89, 31 AS col0
----
-130
31

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

query I rowsort
SELECT - + 18 + - 73
----
-91

query I rowsort
SELECT ALL 61 + - 75
----
-14

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

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

query I rowsort
SELECT ALL 65 * 37
----
2405

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT MIN( ALL - 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2094
SELECT MIN ( ALL - 38 ) AS col0
----
-38

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

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

query I rowsort
SELECT + 53 + 78
----
131

query I rowsort
SELECT DISTINCT 59 + 48 * ( 69 ) AS col2
----
3371

query I rowsort
SELECT ALL 18 + + 78
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2099
SELECT + NULLIF ( ( 19 ), - 91 ) - - CAST( + + 69 AS SIGNED ) DIV COALESCE ( COUNT( * ), 28 - - ( 72 ) + + 20 + + 73 * NULLIF ( + - 73, + 45 ) + + 82 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2099
SELECT + NULLIF ( ( 19 ), - 91 ) - - CAST ( + + 69 AS INTEGER ) / COALESCE ( COUNT ( * ), 28 - - ( 72 ) + + 20 + + 73 * NULLIF ( + - 73, + 45 ) + + 82 ) AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2100
SELECT DISTINCT - 70 - + COUNT( * ) - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT - 70 - + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 46 * - 29 col1
----
1334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2102
SELECT ALL 51 * - CAST( + + 30 AS SIGNED )
----
-1530

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL 51 * - CAST ( + + 30 AS INTEGER )
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT - 63 + CASE 37 WHEN + 89 * + - 53 THEN NULL WHEN + 27 THEN + + COUNT( * ) END + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2103
SELECT - 63 + CASE 37 WHEN + 89 * + - 53 THEN NULL WHEN + 27 THEN + + COUNT ( * ) END + 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2104
SELECT - 22 - 56 + NULLIF ( - SUM( ALL - 95 ), - - CASE + 65 WHEN + - 92 + 48 THEN NULL WHEN - - MIN( DISTINCT 32 ) THEN NULL ELSE + SUM( + 21 ) END ), 75 AS col0
----
17
75

skipif mysql # not compatible
query II rowsort label-2104
SELECT - 22 - 56 + NULLIF ( - SUM ( ALL - 95 ), - - CASE + 65 WHEN + - 92 + 48 THEN NULL WHEN - - MIN ( DISTINCT 32 ) THEN NULL ELSE + SUM ( + 21 ) END ), 75 AS col0
----
17
75

query I rowsort
SELECT DISTINCT NULLIF ( - ( 38 ), + 35 ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - ( - ( - MIN( + + 39 ) ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-2106
SELECT - ( - ( - MIN ( + + 39 ) ) ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT - 86 * + - ( + 76 ), MIN( ALL 3 ) AS col1
----
6536
3

skipif mysql # not compatible
query II rowsort label-2107
SELECT - 86 * + - ( + 76 ), MIN ( ALL 3 ) AS col1
----
6536
3

query I rowsort
SELECT - 19 + - + 78 AS col0
----
-97

query I rowsort
SELECT ( - - ( 91 ) )
----
91

query I rowsort
SELECT - NULLIF ( ( + 73 ), + ( 48 ) ) + - + 30 * + + 70
----
-2173

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2111
SELECT - 76 * + - 34 * + 62 AS col1, - 80 + - CAST( NULL AS SIGNED )
----
160208
NULL

skipif mysql # not compatible
query II rowsort label-2111
SELECT - 76 * + - 34 * + 62 AS col1, - 80 + - CAST ( NULL AS INTEGER )
----
160208
NULL

query I rowsort
SELECT - - 14 AS col1
----
14

query II rowsort
SELECT - 54, 40 + + - 6 AS col1
----
-54
34

query I rowsort
SELECT ALL + ( 42 ) col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2115
SELECT ALL - ( - NULLIF ( - MIN( COALESCE ( 71, - CAST( + 43 AS SIGNED ) ) ), COUNT( * ) * - 30 * + ( + 21 ) - - - 30 ) ) DIV + + 51 + 2
----
1

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL - ( - NULLIF ( - MIN ( COALESCE ( 71, - CAST ( + 43 AS INTEGER ) ) ), COUNT ( * ) * - 30 * + ( + 21 ) - - - 30 ) ) / + + 51 + 2
----
1

query I rowsort
SELECT - - 88 * - + 39
----
-3432

query II rowsort
SELECT - 22 AS col1, + ( + 42 ) AS col1
----
-22
42

query I rowsort
SELECT DISTINCT + - 4 AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2119
SELECT ALL 66 * + - COUNT( * ) + MAX( + + 55 ) + + 6 AS col2, + COALESCE ( ( + 64 ), + 9 DIV 69 + - 80 + + 77 ) * - COUNT( * ) + - + COALESCE ( + 20, - + COUNT( * ) ) + + 9
----
-5
-75

skipif mysql # not compatible
query II rowsort label-2119
SELECT ALL 66 * + - COUNT ( * ) + MAX ( + + 55 ) + + 6 AS col2, + COALESCE ( ( + 64 ), + 9 / 69 + - 80 + + 77 ) * - COUNT ( * ) + - + COALESCE ( + 20, - + COUNT ( * ) ) + + 9
----
-5
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2120
SELECT ALL CASE + 11 WHEN - 33 + 63 / - SUM( - + 12 ) * - + 34 + + 9 THEN + + 94 / + 58 + 28 + - - 73 / - CASE + + COUNT( * ) WHEN + 14 THEN + 46 * + 9 WHEN 50 * + 41 THEN NULL END / COUNT( * ) + 12 WHEN + - COUNT( * ) * 80 * + ( - ( 97 ) ) * + CAST( 14 AS SIGNED ) - - 47 + + 7 THEN NULL END * + 62 + - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL CASE + 11 WHEN - 33 + 63 / - SUM ( - + 12 ) * - + 34 + + 9 THEN + + 94 / + 58 + 28 + - - 73 / - CASE + + COUNT ( * ) WHEN + 14 THEN + 46 * + 9 WHEN 50 * + 41 THEN NULL END / COUNT ( * ) + 12 WHEN + - COUNT ( * ) * 80 * + ( - ( 97 ) ) * + CAST ( 14 AS INTEGER ) - - 47 + + 7 THEN NULL END * + 62 + - 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT DISTINCT - CASE - - COUNT( * ) WHEN + 48 * - 53 THEN 66 END / + + 80 * 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT - CASE - - COUNT ( * ) WHEN + 48 * - 53 THEN 66 END / + + 80 * 31 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 98 * 35 + + 23 * - 15 AS col0
----
3085

query I rowsort
SELECT + 12 + - + NULLIF ( - 15, - 51 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT ALL 68 * + 81 + + + 58 + - COUNT( * ) AS col2
----
5565

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL 68 * + 81 + + + 58 + - COUNT ( * ) AS col2
----
5565

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT + ( NULLIF ( + ( COUNT( * ) ), + 32 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2125
SELECT + ( NULLIF ( + ( COUNT ( * ) ), + 32 ) ) AS col0
----
1

query I rowsort
SELECT 83 * + + 34 + + - 60 col1
----
2762

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + COALESCE ( + 24, + 82, + 26 + COALESCE ( COUNT( * ), - 31 * + 50 + + + 48 + + 98 + 27 * COUNT( * ) ) + - - 53 * + - 47 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2127
SELECT + COALESCE ( + 24, + 82, + 26 + COALESCE ( COUNT ( * ), - 31 * + 50 + + + 48 + + 98 + 27 * COUNT ( * ) ) + - - 53 * + - 47 ) AS col0
----
24

query I rowsort
SELECT + ( + 11 ) + 48 * 24
----
1163

query I rowsort
SELECT - ( - - 80 ) * + 67 - - 52 AS col2
----
-5308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2130
SELECT + CAST( + - NULLIF ( - 21, + - AVG ( DISTINCT - 97 ) / + 54 - - 64 + - + 27 ) AS SIGNED ) col1
----
21

skipif mysql # not compatible
query I rowsort label-2130
SELECT + CAST ( + - NULLIF ( - 21, + - AVG ( DISTINCT - 97 ) / + 54 - - 64 + - + 27 ) AS INTEGER ) col1
----
21

query I rowsort
SELECT ALL 64 * - 40 * - 32
----
81920

query I rowsort
SELECT + 70 * + 3 AS col1
----
210

query I rowsort
SELECT ALL 76 * + 71 AS col2
----
5396

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

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL COUNT ( ALL + + 86 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-2135
SELECT SUM ( + 77 )
----
77

query I rowsort
SELECT ALL 28 * + 78 AS col2
----
2184

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2138
SELECT DISTINCT 32 AS col1, COUNT( * ) + 29 + - COUNT( * ) * + - COUNT( * ) * - 24
----
32
6

skipif mysql # not compatible
query II rowsort label-2138
SELECT DISTINCT 32 AS col1, COUNT ( * ) + 29 + - COUNT ( * ) * + - COUNT ( * ) * - 24
----
32
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT + 27 + + COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-2139
SELECT + 27 + + COUNT ( * ) AS col0
----
28

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

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

query II rowsort
SELECT 78 AS col1, + 92
----
78
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2142
SELECT + MIN( + + ( - 81 ) ) + - + 69 AS col1, 33 AS col1
----
-150
33

skipif mysql # not compatible
query II rowsort label-2142
SELECT + MIN ( + + ( - 81 ) ) + - + 69 AS col1, 33 AS col1
----
-150
33

query II rowsort
SELECT ALL + 93 AS col2, 16 col1
----
93
16

query I rowsort
SELECT ALL - 88 * + 39 AS col0
----
-3432

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2145
SELECT + COUNT( + 88 ) DIV - 73 + 79 + COUNT( * ) DIV + 53 AS col0, COUNT( ALL 86 )
----
79
1

skipif mysql # not compatible
query II rowsort label-2145
SELECT + COUNT ( + 88 ) / - 73 + 79 + COUNT ( * ) / + 53 AS col0, COUNT ( ALL 86 )
----
79
1

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

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

query I rowsort
SELECT DISTINCT 35 + + 67 AS col1
----
102

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2148
SELECT - 10 AS col1, + CASE + CAST( NULL AS DECIMAL ) WHEN + 68 THEN NULL ELSE + 93 END * + 38
----
-10
3534

skipif mysql # not compatible
query II rowsort label-2148
SELECT - 10 AS col1, + CASE + CAST ( NULL AS REAL ) WHEN + 68 THEN NULL ELSE + 93 END * + 38
----
-10
3534

query I rowsort
SELECT ALL - 97 + - - 88
----
-9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2151
SELECT ALL + CASE - 28 WHEN - + 6 * + 72 * - - CAST( NULL AS SIGNED ) - + - 4 * - - COUNT( * ) THEN NULL ELSE - + 70 + 25 END AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL + CASE - 28 WHEN - + 6 * + 72 * - - CAST ( NULL AS INTEGER ) - + - 4 * - - COUNT ( * ) THEN NULL ELSE - + 70 + 25 END AS col2
----
-45

query I rowsort
SELECT ALL + NULLIF ( 47, - + 64 * + ( - 23 ) + - 4 ) * + 72 * - 18
----
-60912

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

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

query II rowsort
SELECT DISTINCT 39, - 14 AS col0
----
39
-14

query I rowsort
SELECT 8 + 15 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT - COUNT( * ) - 84
----
-85

skipif mysql # not compatible
query I rowsort label-2156
SELECT - COUNT ( * ) - 84
----
-85

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

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

query I rowsort
SELECT ALL + 62 + 65 + 34
----
161

query I rowsort
SELECT + + 59 * + 78 + 69
----
4671

query I rowsort
SELECT 98 - + 64 AS col0
----
34

query II rowsort
SELECT DISTINCT - 75 AS col0, 41
----
-75
41

query I rowsort
SELECT ALL + NULLIF ( 36, 90 ) + 75 + - 83
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2163
SELECT DISTINCT - 43 + CAST( NULL AS SIGNED ) * - + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT - 43 + CAST ( NULL AS INTEGER ) * - + 11 AS col0
----
NULL

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

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

query I rowsort
SELECT 15 * ( - 21 ) + - 67 + 93 * + 32 AS col2
----
2594

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT ALL - NULLIF ( + + 76, - COUNT( * ) ) + 98
----
22

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL - NULLIF ( + + 76, - COUNT ( * ) ) + 98
----
22

query II rowsort
SELECT DISTINCT - + 87 col0, - 95
----
-87
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT DISTINCT - SUM( ALL 67 ) * - SUM( ALL 19 ) AS col0
----
1273

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT - SUM ( ALL 67 ) * - SUM ( ALL 19 ) AS col0
----
1273

query I rowsort
SELECT 89 * + 75 AS col0
----
6675

query I rowsort
SELECT 25 * 79 AS col1
----
1975

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT DISTINCT + 70 - 30 * - + COUNT( * ) + - 55 col0
----
45

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT + 70 - 30 * - + COUNT ( * ) + - 55 col0
----
45

query I rowsort
SELECT 15 * - + 82 AS col0
----
-1230

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2174
SELECT ALL ( - 97 ) DIV + 84 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL ( - 97 ) / + 84 AS col2
----
-1

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

query I rowsort
SELECT DISTINCT - 73 col2
----
-73

query II rowsort
SELECT DISTINCT 52 * 92, + 50 * - 48 AS col2
----
4784
-2400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2178
SELECT DISTINCT + COALESCE ( 95, - 22, + 52 - - 3, - - 79 ) DIV - - 47, COUNT( + 22 ) AS col1
----
2
1

skipif mysql # not compatible
query II rowsort label-2178
SELECT DISTINCT + COALESCE ( 95, - 22, + 52 - - 3, - - 79 ) / - - 47, COUNT ( + 22 ) AS col1
----
2
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2179
SELECT COUNT( * ) - - + CAST( NULL AS SIGNED ) + + - 90 / - - COALESCE ( - ( 65 ), + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT COUNT ( * ) - - + CAST ( NULL AS INTEGER ) + + - 90 / - - COALESCE ( - ( 65 ), + 5 )
----
NULL

query I rowsort
SELECT 33 - + 46
----
-13

query I rowsort
SELECT 40 * - + 38
----
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT COUNT( DISTINCT + 92 ) + + + 41 - COUNT( DISTINCT - 78 )
----
41

skipif mysql # not compatible
query I rowsort label-2182
SELECT COUNT ( DISTINCT + 92 ) + + + 41 - COUNT ( DISTINCT - 78 )
----
41

query I rowsort
SELECT DISTINCT - 48 + + 95 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ALL + COALESCE ( + ( NULLIF ( 35, + 22 * - 61 * + - 21 + + NULLIF ( + - 40, 60 ) ) ), + 15 * + COUNT( * ) + 43, + 48 + - 46 ) + - + 52 * - - 18
----
-901

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL + COALESCE ( + ( NULLIF ( 35, + 22 * - 61 * + - 21 + + NULLIF ( + - 40, 60 ) ) ), + 15 * + COUNT ( * ) + 43, + 48 + - 46 ) + - + 52 * - - 18
----
-901

query I rowsort
SELECT - 67 + 27
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT DISTINCT 37 + + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT 37 + + COUNT ( * )
----
38

query II rowsort
SELECT DISTINCT - - 66 + - + 19 AS col2, 34
----
47
34

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

query I rowsort
SELECT ALL 64 + 49 * + 49
----
2465

query I rowsort
SELECT - 34 * + 46
----
-1564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT DISTINCT CAST( - + 2 AS SIGNED ) + 29 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT CAST ( - + 2 AS INTEGER ) + 29 AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2192
SELECT ALL + 74 + + 30 DIV + ( - + ( - - 86 ) ) * + + COUNT( * ) + + 79 AS col0
----
153

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL + 74 + + 30 / + ( - + ( - - 86 ) ) * + + COUNT ( * ) + + 79 AS col0
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2193
SELECT ALL MIN( CAST( - - 25 AS SIGNED ) )
----
25

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL MIN ( CAST ( - - 25 AS INTEGER ) )
----
25

query I rowsort
SELECT DISTINCT 48 + + - 18
----
30

query I rowsort
SELECT 61 * + - 75 AS col1
----
-4575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2196
SELECT ALL + 50 * 12, COALESCE ( - 26, 95 ) * - COALESCE ( + + 7, CAST( NULL AS SIGNED ) ) - COUNT( * ) + - COUNT( * ) AS col0
----
600
180

skipif mysql # not compatible
query II rowsort label-2196
SELECT ALL + 50 * 12, COALESCE ( - 26, 95 ) * - COALESCE ( + + 7, CAST ( NULL AS INTEGER ) ) - COUNT ( * ) + - COUNT ( * ) AS col0
----
600
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT DISTINCT - COALESCE ( 53, + CASE NULLIF ( CASE + - 57 WHEN - AVG ( - 49 ) - - 42 * 34 * - 27 THEN - + 82 + + - 83 END, 62 ) WHEN + 55 * - MAX( - 81 ) THEN + + COUNT( DISTINCT - 55 ) + - + 90 + 55 * - 42 + + 2 * + - 12 WHEN + + CASE - MIN( + - 59 ) WHEN COUNT( DISTINCT 39 ) * 78 THEN NULL WHEN + 68 THEN - CASE ( 91 ) WHEN COUNT( * ) THEN 66 END + + AVG ( + 7 ) END / COUNT( * ) / 16 THEN - 36 END * + ( 45 ) + - 66 ) * + 34
----
-1802

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT - COALESCE ( 53, + CASE NULLIF ( CASE + - 57 WHEN - AVG ( - 49 ) - - 42 * 34 * - 27 THEN - + 82 + + - 83 END, 62 ) WHEN + 55 * - MAX ( - 81 ) THEN + + COUNT ( DISTINCT - 55 ) + - + 90 + 55 * - 42 + + 2 * + - 12 WHEN + + CASE - MIN ( + - 59 ) WHEN COUNT ( DISTINCT 39 ) * 78 THEN NULL WHEN + 68 THEN - CASE ( 91 ) WHEN COUNT ( * ) THEN 66 END + + AVG ( + 7 ) END / COUNT ( * ) / 16 THEN - 36 END * + ( 45 ) + - 66 ) * + 34
----
-1802

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2198
SELECT 41 * - - CAST( 56 AS SIGNED ) AS col0, 41 AS col2
----
2296
41

skipif mysql # not compatible
query II rowsort label-2198
SELECT 41 * - - CAST ( 56 AS INTEGER ) AS col0, 41 AS col2
----
2296
41

query I rowsort
SELECT - COALESCE ( 40, + 13 ) * 72
----
-2880

query I rowsort
SELECT ALL - - 94 AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2201
SELECT + + 82 DIV + - 41 + 48 DIV 92 - COALESCE ( + 33, - 9 ) + + 42
----
7

skipif mysql # not compatible
query I rowsort label-2201
SELECT + + 82 / + - 41 + 48 / 92 - COALESCE ( + 33, - 9 ) + + 42
----
7

query I rowsort
SELECT 34 * - 88
----
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL - COUNT( DISTINCT + + 50 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL - COUNT ( DISTINCT + + 50 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT 93 * + - COUNT( * ) + - - MIN( - 32 ) col0
----
-125

skipif mysql # not compatible
query I rowsort label-2204
SELECT 93 * + - COUNT ( * ) + - - MIN ( - 32 ) col0
----
-125

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

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

query II rowsort
SELECT DISTINCT - 57 AS col1, 25
----
-57
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL - MIN( ALL 32 ) col2
----
-32

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL - MIN ( ALL 32 ) col2
----
-32

query II rowsort
SELECT ALL - 99, + CASE + 72 WHEN + + NULLIF ( COALESCE ( 75, + 25 ), - 65 ) THEN - 93 END + + 42 * + ( 97 ) * - 84 + AVG ( 49 ) - - 17 AS col0
----
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT DISTINCT - COUNT( DISTINCT + + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT - COUNT ( DISTINCT + + 18 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT ALL 11 * - COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL 11 * - COUNT ( * ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT 50 * 74 * - 93 col1, COUNT( * )
----
-344100
1

skipif mysql # not compatible
query II rowsort label-2211
SELECT 50 * 74 * - 93 col1, COUNT ( * )
----
-344100
1

query I rowsort
SELECT ALL + 48 * - 26
----
-1248

query II rowsort
SELECT 58 * 10 + - 68 AS col0, ( - 82 ) * + 81 + + 30 * + 9 * + ( - 12 )
----
512
-9882

onlyif mysql # aggregate syntax: 
query II rowsort label-2214
SELECT 44, COUNT( DISTINCT 63 ) col2
----
44
1

skipif mysql # not compatible
query II rowsort label-2214
SELECT 44, COUNT ( DISTINCT 63 ) col2
----
44
1

query I rowsort
SELECT 33 + - 93 * - 19 * - 31 AS col0
----
-54744

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT + COUNT( DISTINCT - - 11 ) * 38 - ( + - 31 ) * SUM( + - 99 )
----
-3031

skipif mysql # not compatible
query I rowsort label-2216
SELECT + COUNT ( DISTINCT - - 11 ) * 38 - ( + - 31 ) * SUM ( + - 99 )
----
-3031

query I rowsort
SELECT ALL + 21 * - 97
----
-2037

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT 40 DIV + 18
----
2

skipif mysql # not compatible
query I rowsort label-2218
SELECT 40 / + 18
----
2

query I rowsort
SELECT 78 - + 1 + + - 1 * - - 79 * ( 64 )
----
-4979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2220
SELECT DISTINCT - CAST( + 67 AS SIGNED ) + - 18 col1
----
-85

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT - CAST ( + 67 AS INTEGER ) + - 18 col1
----
-85

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2222
SELECT MIN( 75 ) DIV + 43
----
1

skipif mysql # not compatible
query I rowsort label-2222
SELECT MIN ( 75 ) / + 43
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2223
SELECT + CASE - 8 WHEN - 43 - + COUNT( * ) THEN NULL WHEN - + 3 - 1 / - + 96 + 61 THEN NULL ELSE + CAST( + 35 AS SIGNED ) - ( - CASE - MIN( 12 ) WHEN 89 THEN + - 51 WHEN - - 90 THEN NULL END ) * - 76 END * 51 + + NULLIF ( + 13, + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT + CASE - 8 WHEN - 43 - + COUNT ( * ) THEN NULL WHEN - + 3 - 1 / - + 96 + 61 THEN NULL ELSE + CAST ( + 35 AS INTEGER ) - ( - CASE - MIN ( 12 ) WHEN 89 THEN + - 51 WHEN - - 90 THEN NULL END ) * - 76 END * 51 + + NULLIF ( + 13, + 12 )
----
NULL

query I rowsort
SELECT ALL - 69 + + - 44 AS col2
----
-113

query I rowsort
SELECT - 9 * 69
----
-621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2226
SELECT - 56 AS col1, 0 * - CAST( NULL AS SIGNED ) / + - 54 * + MIN( DISTINCT + 84 ) * - + 26 col0
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-2226
SELECT - 56 AS col1, 0 * - CAST ( NULL AS INTEGER ) / + - 54 * + MIN ( DISTINCT + 84 ) * - + 26 col0
----
-56
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT - + MAX( + - 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-2228
SELECT - + MAX ( + - 40 ) AS col1
----
40

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

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

query I rowsort
SELECT ALL + CASE + 25 WHEN - 85 THEN NULL WHEN 37 THEN + + 55 END col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2232
SELECT - COALESCE ( + - 9, + 60 * - 84 * + 30 * 53 * + + COUNT( DISTINCT - 43 ) + + COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ), - 92, + 15 )
----
9

skipif mysql # not compatible
query I rowsort label-2232
SELECT - COALESCE ( + - 9, + 60 * - 84 * + 30 * 53 * + + COUNT ( DISTINCT - 43 ) + + COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ), - 92, + 15 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2233
SELECT ALL MIN( ALL + - 86 ) * + ( - - 31 ) * + + SUM( - - ( + 33 ) ) * + + 54, 39 AS col0
----
-4750812
39

skipif mysql # not compatible
query II rowsort label-2233
SELECT ALL MIN ( ALL + - 86 ) * + ( - - 31 ) * + + SUM ( - - ( + 33 ) ) * + + 54, 39 AS col0
----
-4750812
39

query II rowsort
SELECT + 67 + - - 85 + + 46 AS col2, - 37 * - 30 AS col2
----
198
1110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2235
SELECT DISTINCT + + 43 * + CAST( NULL AS SIGNED ) / - 8 * + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT + + 43 * + CAST ( NULL AS INTEGER ) / - 8 * + 96 AS col1
----
NULL

query II rowsort
SELECT ALL 91 AS col2, - 65 AS col2
----
91
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2237
SELECT ALL 55 * ( + 46 ) * + + 19 + + - 67 + - 16 DIV - 42
----
48003

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL 55 * ( + 46 ) * + + 19 + + - 67 + - 16 / - 42
----
48003

query I rowsort
SELECT ALL CASE + - 58 WHEN ( + + 1 ) THEN + 86 * - - 39 ELSE NULL END col1
----
NULL

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

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

query I rowsort
SELECT + + 49 * + 88
----
4312

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT - 76 * - + 15 * - ( + 48 ) * - + COUNT( * ) + - 96
----
54624

skipif mysql # not compatible
query I rowsort label-2242
SELECT - 76 * - + 15 * - ( + 48 ) * - + COUNT ( * ) + - 96
----
54624

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT ALL 0 DIV 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL 0 / 33 AS col2
----
0

query II rowsort
SELECT ( - 50 ), + 97 + - 30 AS col0
----
-50
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT + NULLIF ( - COUNT( * ), + 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-2245
SELECT + NULLIF ( - COUNT ( * ), + 50 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2246
SELECT + 29 * + 0 DIV - - 57 * + COUNT( - 52 ) * + - 58 * 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2246
SELECT + 29 * + 0 / - - 57 * + COUNT ( - 52 ) * + - 58 * 11 AS col1
----
0

query I rowsort
SELECT ALL 41 * + 75 AS col1
----
3075

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2249
SELECT ALL 53 DIV - - 98 * - 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL 53 / - - 98 * - 27 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2250
SELECT - 31 * + - 11 + - - 31 + + COALESCE ( - CASE 24 WHEN + - COUNT( * ) * + + 1 THEN + 0 WHEN + - CASE + ( - 95 ) WHEN + 54 * ( - - 31 ) THEN + ( CASE 95 WHEN - CAST( NULL AS SIGNED ) + - + 90 * 13 * - + 44 * + - 89 / - 81 THEN + 11 WHEN - 34 + + MIN( DISTINCT + 71 ) / - + COUNT( * ) + - - 78 * - NULLIF ( - - 62, + 73 ) / 59 + + MIN( DISTINCT + + 73 ) THEN + 49 * - - 76 + MIN( ALL 73 ) + - - 16 * 50 + - + 54 * - 25 - + CAST( - 91 AS DECIMAL ) END ) ELSE NULL END THEN NULL END, - 91 ) * 5 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-2250
SELECT - 31 * + - 11 + - - 31 + + COALESCE ( - CASE 24 WHEN + - COUNT ( * ) * + + 1 THEN + 0 WHEN + - CASE + ( - 95 ) WHEN + 54 * ( - - 31 ) THEN + ( CASE 95 WHEN - CAST ( NULL AS INTEGER ) + - + 90 * 13 * - + 44 * + - 89 / - 81 THEN + 11 WHEN - 34 + + MIN ( DISTINCT + 71 ) / - + COUNT ( * ) + - - 78 * - NULLIF ( - - 62, + 73 ) / 59 + + MIN ( DISTINCT + + 73 ) THEN + 49 * - - 76 + MIN ( ALL 73 ) + - - 16 * 50 + - + 54 * - 25 - + CAST ( - 91 AS REAL ) END ) ELSE NULL END THEN NULL END, - 91 ) * 5 AS col2
----
-83

query I rowsort
SELECT DISTINCT 88 * 15
----
1320

query I rowsort
SELECT DISTINCT - ( - 44 ) * - + ( - 62 ) + - + 30
----
2698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2253
SELECT - COUNT( + 69 ) * - + 85 DIV MIN( 79 ) * 28 col1
----
28

skipif mysql # not compatible
query I rowsort label-2253
SELECT - COUNT ( + 69 ) * - + 85 / MIN ( 79 ) * 28 col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT ALL + COUNT( + 9 ) * - MIN( - 25 ) + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL + COUNT ( + 9 ) * - MIN ( - 25 ) + + COUNT ( * )
----
26

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

query I rowsort
SELECT ALL + 4 col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT ALL 42 * - + 5 DIV 41 DIV - 33 + 91
----
91

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL 42 * - + 5 / 41 / - 33 + 91
----
91

query I rowsort
SELECT ALL 11 * + - 28 + + + 96
----
-212

onlyif mysql # aggregate syntax: 
query II rowsort label-2259
SELECT ALL + 90 * + - 73 AS col1, COALESCE ( - 24, 73 + + + COUNT( * ) )
----
-6570
-24

skipif mysql # not compatible
query II rowsort label-2259
SELECT ALL + 90 * + - 73 AS col1, COALESCE ( - 24, 73 + + + COUNT ( * ) )
----
-6570
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - ( COALESCE ( ( + COUNT( * ) ), + COUNT( * ), ( + 84 ) + 88 ) ) + + 53 col1
----
52

skipif mysql # not compatible
query I rowsort label-2260
SELECT - ( COALESCE ( ( + COUNT ( * ) ), + COUNT ( * ), ( + 84 ) + 88 ) ) + + 53 col1
----
52

query I rowsort
SELECT ALL 33 * - 92 + + + 77 + + 57 - + 0
----
-2902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2262
SELECT - ( SUM( ALL CAST( + - ( - 76 ) AS SIGNED ) ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-2262
SELECT - ( SUM ( ALL CAST ( + - ( - 76 ) AS INTEGER ) ) ) AS col0
----
-76

query I rowsort
SELECT - + 60 - - 10
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2264
SELECT - + CASE 15 WHEN 4 * + 91 THEN NULL WHEN - 21 THEN NULL WHEN - 65 DIV 13 THEN NULL ELSE - 27 * - MAX( ALL 80 ) * - - 42 + - 75 * + 7 + 4 + - COUNT( * ) DIV 17 END * - 9
----
811791

skipif mysql # not compatible
query I rowsort label-2264
SELECT - + CASE 15 WHEN 4 * + 91 THEN NULL WHEN - 21 THEN NULL WHEN - 65 / 13 THEN NULL ELSE - 27 * - MAX ( ALL 80 ) * - - 42 + - 75 * + 7 + 4 + - COUNT ( * ) / 17 END * - 9
----
811791

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT ALL - - 20 * - - 26 + - + 30 + 5 * + COUNT( * ) AS col0
----
495

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL - - 20 * - - 26 + - + 30 + 5 * + COUNT ( * ) AS col0
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT - COUNT( * ) * + 0 + 92 + + 36 AS col0
----
128

skipif mysql # not compatible
query I rowsort label-2266
SELECT - COUNT ( * ) * + 0 + 92 + + 36 AS col0
----
128

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

skipif mysql # not compatible
query I rowsort label-2267
SELECT + + 5 / + 12
----
0

query I rowsort
SELECT DISTINCT - CASE 49 WHEN - 64 * + 5 THEN 36 ELSE - - 91 * - ( - 27 ) END
----
-2457

query I rowsort
SELECT DISTINCT - 72 - - 13 - - - 33 AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2270
SELECT - - ( 25 ) * - CASE 77 WHEN 51 * - + 97 * + - 1 THEN + 83 DIV + + 42 * - 62 + + 29 * 10 - + - 98 ELSE COUNT( * ) END * + + 43 AS col1
----
-1075

skipif mysql # not compatible
query I rowsort label-2270
SELECT - - ( 25 ) * - CASE 77 WHEN 51 * - + 97 * + - 1 THEN + 83 / + + 42 * - 62 + + 29 * 10 - + - 98 ELSE COUNT ( * ) END * + + 43 AS col1
----
-1075

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL NULLIF ( - COUNT( * ), + - 8 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL NULLIF ( - COUNT ( * ), + - 8 ) col0
----
-1

query II rowsort
SELECT ALL + 64 - - 70 AS col1, 33 AS col1
----
134
33

query I rowsort
SELECT - + 58 * - ( - - 84 ) * + 98
----
477456

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT - CASE - + 12 WHEN - 9 THEN - 31 * - + 55 + - + 47 * MAX( + - 62 ) * 25 + + + 12 + - + 78 - COUNT( * ) + + COUNT( * ) * - - 45 - - - 9 * 89 WHEN ( + SUM( ALL - 79 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT - CASE - + 12 WHEN - 9 THEN - 31 * - + 55 + - + 47 * MAX ( + - 62 ) * 25 + + + 12 + - + 78 - COUNT ( * ) + + COUNT ( * ) * - - 45 - - - 9 * 89 WHEN ( + SUM ( ALL - 79 ) ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2275
SELECT ALL + CASE - 3 WHEN COUNT( * ) THEN - 88 * + 59 - + MAX( ALL - NULLIF ( + 72, 25 * + 73 ) ) + + CAST( 60 AS SIGNED ) ELSE 36 END * - 0 DIV + 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + CASE - 3 WHEN COUNT ( * ) THEN - 88 * + 59 - + MAX ( ALL - NULLIF ( + 72, 25 * + 73 ) ) + + CAST ( 60 AS INTEGER ) ELSE 36 END * - 0 / + 88 AS col0
----
0

query I rowsort
SELECT - - 1 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT NULLIF ( COUNT( * ), + - 24 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2277
SELECT NULLIF ( COUNT ( * ), + - 24 ) AS col0
----
1

query I rowsort
SELECT - NULLIF ( - 35, - - 79 + 97 )
----
35

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2280
SELECT DISTINCT + 21 DIV + 69 * + 43 + + NULLIF ( + NULLIF ( 38, - - 43 * 42 * - 30 ), + CASE + + 25 WHEN 58 THEN NULL ELSE 15 DIV + 12 END + 80 )
----
38

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT + 21 / + 69 * + 43 + + NULLIF ( + NULLIF ( 38, - - 43 * 42 * - 30 ), + CASE + + 25 WHEN 58 THEN NULL ELSE 15 / + 12 END + 80 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2281
SELECT DISTINCT - 71 DIV + - 92 + - COUNT( * ) * 86
----
-86

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT - 71 / + - 92 + - COUNT ( * ) * 86
----
-86

query II rowsort
SELECT - 89 * + + 72 - + 8 AS col0, 39 col2
----
-6416
39

query I rowsort
SELECT + 76 * + + 72 AS col1
----
5472

query I rowsort
SELECT + 64 + - 23 + - - 37 * - 90 AS col2
----
-3289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2285
SELECT CAST( + 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-2285
SELECT CAST ( + 17 AS INTEGER )
----
17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2286
SELECT 67 * - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) + 42 * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT 67 * - CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) + 42 * + 39
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT ALL 38 DIV 48 + + 6 - - 85 col2
----
91

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL 38 / 48 + + 6 - - 85 col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT + MAX( ALL - - 21 ) * 5 - + + 19 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-2288
SELECT + MAX ( ALL - - 21 ) * 5 - + + 19 AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2289
SELECT CAST( - 36 AS SIGNED ) + - + 53
----
-89

skipif mysql # not compatible
query I rowsort label-2289
SELECT CAST ( - 36 AS INTEGER ) + - + 53
----
-89

query I rowsort
SELECT ALL 92 + + COALESCE ( - + 68, + + 97, - 38 * + 97 * + 0 )
----
24

query I rowsort
SELECT ALL - - 30 col0
----
30

onlyif mysql # DIV for integer division: 
query II rowsort label-2292
SELECT + - 29, 79 DIV + + 7 AS col0
----
-29
11

skipif mysql # not compatible
query II rowsort label-2292
SELECT + - 29, 79 / + + 7 AS col0
----
-29
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2293
SELECT - + 49 * 63 - MAX( - 79 ) - - COUNT( * ), 16 AS col1
----
-3007
16

skipif mysql # not compatible
query II rowsort label-2293
SELECT - + 49 * 63 - MAX ( - 79 ) - - COUNT ( * ), 16 AS col1
----
-3007
16

query I rowsort
SELECT DISTINCT - + 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL SUM( ALL + + ( + + 55 ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL SUM ( ALL + + ( + + 55 ) ) AS col1
----
55

query I rowsort
SELECT ALL ( - ( + 44 ) ) AS col0
----
-44

query I rowsort
SELECT + 54 + + 81
----
135

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

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

query II rowsort
SELECT ALL 87 AS col2, 60 AS col2
----
87
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2300
SELECT ALL - 93 DIV 51
----
-1

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL - 93 / 51
----
-1

query I rowsort
SELECT 46 * CASE + 67 WHEN - 96 THEN NULL WHEN 46 THEN 49 END / + 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT + 77 * - COUNT( + - 35 )
----
-77

skipif mysql # not compatible
query I rowsort label-2302
SELECT + 77 * - COUNT ( + - 35 )
----
-77

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

query I rowsort
SELECT - - 36 AS col0
----
36

query I rowsort
SELECT - 30 + 39 + 57 * + + 97 * 67
----
370452

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT - COUNT( * ) + - 29 + + 38 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2306
SELECT - COUNT ( * ) + - 29 + + 38 AS col0
----
8

query I rowsort
SELECT - 13 * + 39 * 53 AS col1
----
-26871

query I rowsort
SELECT + 52 + 16 + ( - 54 ) + - 75
----
-61

query I rowsort
SELECT DISTINCT + 99 * + + 94 AS col1
----
9306

query I rowsort
SELECT ALL COALESCE ( - 24, + 41 ) AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2311
SELECT - COUNT( * ) col1, - 72 * + AVG ( 0 ) * + - 98 * - - CASE - ( - COUNT( * ) ) WHEN COALESCE ( + - 81, SUM( ( CAST( 75 AS SIGNED ) ) ) * + 8 ) THEN - 90 ELSE NULL END + + 71 - + + CAST( - ( ( + 4 ) ) AS DECIMAL ) + + - ( - 43 ) * - - 47
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2311
SELECT - COUNT ( * ) col1, - 72 * + AVG ( 0 ) * + - 98 * - - CASE - ( - COUNT ( * ) ) WHEN COALESCE ( + - 81, SUM ( ( CAST ( 75 AS INTEGER ) ) ) * + 8 ) THEN - 90 ELSE NULL END + + 71 - + + CAST ( - ( ( + 4 ) ) AS REAL ) + + - ( - 43 ) * - - 47
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT ALL - 25 + - - 87 DIV + 94
----
-25

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL - 25 + - - 87 / + 94
----
-25

query II rowsort
SELECT ALL 96, + 12 col0
----
96
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT COUNT( * ) + - 13 + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-2314
SELECT COUNT ( * ) + - 13 + COUNT ( * )
----
-11

query I rowsort
SELECT ALL + 62 + + - 37
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2316
SELECT DISTINCT + COALESCE ( - 69, COUNT( * ) ) DIV - - NULLIF ( + 57, - ( + 82 ) + 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT + COALESCE ( - 69, COUNT ( * ) ) / - - NULLIF ( + 57, - ( + 82 ) + 79 )
----
-1

query I rowsort
SELECT 53 + + 62 col2
----
115

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

skipif mysql # not compatible
query I rowsort label-2318
SELECT 24 * + - 66 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT COUNT( + 6 ) + 26
----
27

skipif mysql # not compatible
query I rowsort label-2319
SELECT COUNT ( + 6 ) + 26
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2320
SELECT 34 * + COUNT( * ) AS col2, 84 col0
----
34
84

skipif mysql # not compatible
query II rowsort label-2320
SELECT 34 * + COUNT ( * ) AS col2, 84 col0
----
34
84

query II rowsort
SELECT + 11, + 54 + - ( + 12 ) AS col1
----
11
42

query I rowsort
SELECT DISTINCT 93 + + COALESCE ( + 46, + + 3, 64 )
----
139

query I rowsort
SELECT ALL 52 + + ( + 60 ) * + + 18 + - 78
----
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT 59 + + + 74 + ( COALESCE ( - 48, 44 * - 60, + - COUNT( * ) ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-2324
SELECT 59 + + + 74 + ( COALESCE ( - 48, 44 * - 60, + - COUNT ( * ) ) ) AS col2
----
85

query I rowsort
SELECT ALL - ( 77 ) col0
----
-77

query I rowsort
SELECT DISTINCT - 17 + 28 col0
----
11

query I rowsort
SELECT ALL + 63 + - + 15 * - - 19 - 76 * - + 96 AS col1
----
7074

query II rowsort
SELECT ALL - 43 col2, 59
----
-43
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL - 0 - + 96 + - - 50 * + COUNT( * ) + + + 58
----
12

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL - 0 - + 96 + - - 50 * + COUNT ( * ) + + + 58
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2330
SELECT 49 * + - COALESCE ( CAST( - 60 AS SIGNED ), + - 39, - - 12 + 85 ) AS col2
----
2940

skipif mysql # not compatible
query I rowsort label-2330
SELECT 49 * + - COALESCE ( CAST ( - 60 AS INTEGER ), + - 39, - - 12 + 85 ) AS col2
----
2940

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

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

query II rowsort
SELECT 76 col1, - 27
----
76
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2333
SELECT ( CASE CASE 59 WHEN + 10 + COUNT( * ) + 71 THEN 86 END WHEN 11 * + + 23 THEN + - 4 WHEN + 64 + - - 23 - + 90 * + 41 * + 78 THEN - COUNT( * ) * 20 * 25 / + COALESCE ( - 14, - COUNT( * ) ) WHEN NULLIF ( CAST( COUNT( * ) AS SIGNED ), - COUNT( * ) ) THEN 80 ELSE - - ( - 59 ) + + 81 + + 64 + - 43 * - 99 END )
----
4343

skipif mysql # not compatible
query I rowsort label-2333
SELECT ( CASE CASE 59 WHEN + 10 + COUNT ( * ) + 71 THEN 86 END WHEN 11 * + + 23 THEN + - 4 WHEN + 64 + - - 23 - + 90 * + 41 * + 78 THEN - COUNT ( * ) * 20 * 25 / + COALESCE ( - 14, - COUNT ( * ) ) WHEN NULLIF ( CAST ( COUNT ( * ) AS INTEGER ), - COUNT ( * ) ) THEN 80 ELSE - - ( - 59 ) + + 81 + + 64 + - 43 * - 99 END )
----
4343

query I rowsort
SELECT ALL + 58 - - - 71
----
-13

query II rowsort
SELECT ALL - + 85 col1, + 33 * - - 29 AS col1
----
-85
957

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

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

query II rowsort
SELECT ALL - 25, 62 + - 15 AS col1
----
-25
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT 13 + - 46 * - + 50 * + - 75 * - COUNT( * ) AS col2
----
172513

skipif mysql # not compatible
query I rowsort label-2338
SELECT 13 + - 46 * - + 50 * + - 75 * - COUNT ( * ) AS col2
----
172513

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL 31 * MAX( - + 85 ) col2
----
-2635

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL 31 * MAX ( - + 85 ) col2
----
-2635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2340
SELECT + 0 * NULLIF ( - + 12, - CAST( NULL AS SIGNED ) + + ( + + 69 ) * - + COUNT( * ) ) + + 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2340
SELECT + 0 * NULLIF ( - + 12, - CAST ( NULL AS INTEGER ) + + ( + + 69 ) * - + COUNT ( * ) ) + + 59 AS col2
----
59

query I rowsort
SELECT 61 - - ( 50 )
----
111

query I rowsort
SELECT 5 * - - 36 + - 65
----
115

query I rowsort
SELECT ALL 44 * 33
----
1452

query II rowsort
SELECT + 54 AS col1, 68
----
54
68

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

query I rowsort
SELECT ALL - 40 + - + ( + 82 ) + - - 90 * + + 80 * 87 * + 26 * - ( + - 62 ) AS col0
----
1009756678

onlyif mysql # aggregate syntax: 
query II rowsort label-2347
SELECT - 55 AS col2, + MIN( ALL + 4 ) AS col0
----
-55
4

skipif mysql # not compatible
query II rowsort label-2347
SELECT - 55 AS col2, + MIN ( ALL + 4 ) AS col0
----
-55
4

query I rowsort
SELECT DISTINCT + 12 + - 78
----
-66

query I rowsort
SELECT ALL + 90 + - 6
----
84

query I rowsort
SELECT ALL 33 + + 62 * + 60 - + - 60
----
3813

query I rowsort
SELECT ALL - ( + + 24 ) AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2352
SELECT DISTINCT CAST( + 68 AS SIGNED ) + 32 + 69
----
169

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT CAST ( + 68 AS INTEGER ) + 32 + 69
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT DISTINCT COUNT( * ) * 88 * - 86 * + 34 AS col1
----
-257312

skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT COUNT ( * ) * 88 * - 86 * + 34 AS col1
----
-257312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2354
SELECT ALL + CAST( + 39 AS SIGNED ) + - - 21
----
60

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL + CAST ( + 39 AS INTEGER ) + - - 21
----
60

query I rowsort
SELECT ALL + ( - 6 ) * 71
----
-426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2356
SELECT COALESCE ( - 24, - - 17, - 25 * + 92 DIV - NULLIF ( 13, + - 15 - CAST( NULL AS SIGNED ) ) * 57 - - 26 + - + COALESCE ( 0, + 27 ) DIV + COUNT( * ) ) DIV + + ( + SUM( + 31 ) ) + + + 20 * - - 11 col2
----
220

skipif mysql # not compatible
query I rowsort label-2356
SELECT COALESCE ( - 24, - - 17, - 25 * + 92 / - NULLIF ( 13, + - 15 - CAST ( NULL AS INTEGER ) ) * 57 - - 26 + - + COALESCE ( 0, + 27 ) / + COUNT ( * ) ) / + + ( + SUM ( + 31 ) ) + + + 20 * - - 11 col2
----
220

query I rowsort
SELECT 69 * - ( - + 81 )
----
5589

query II rowsort
SELECT ALL + 94 + + + 87 AS col0, 43 * - 13
----
181
-559

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT ALL - 31 + + - 87 DIV - + 4
----
-10

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL - 31 + + - 87 / - + 4
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2360
SELECT 49 - + - COALESCE ( - SUM( DISTINCT COALESCE ( - + 26, + 86 ) ), - 82, + 16 ) + COUNT( * ) * + CASE 73 WHEN + CAST( NULL AS SIGNED ) * AVG ( ALL - 3 ) THEN + 61 WHEN + COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT 49 - + - COALESCE ( - SUM ( DISTINCT COALESCE ( - + 26, + 86 ) ), - 82, + 16 ) + COUNT ( * ) * + CASE 73 WHEN + CAST ( NULL AS INTEGER ) * AVG ( ALL - 3 ) THEN + 61 WHEN + COUNT ( * ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 81 + 94 AS col1
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT DISTINCT MAX( + 80 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT MAX ( + 80 ) AS col1
----
80

query I rowsort
SELECT 69 * 42 * - 40
----
-115920

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT ALL 24 * - 81 - CASE 6 WHEN + 15 * - 10 + 45 + - 72 + 41 * 5 / - 93 THEN 23 WHEN - 32 + + SUM( 51 ) + - 56 + + 69 * 52 THEN - - COALESCE ( - COUNT( * ), - 69 + + + 12 * + 15 ) * - 24 + + 74 + + 85 * + - 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL 24 * - 81 - CASE 6 WHEN + 15 * - 10 + 45 + - 72 + 41 * 5 / - 93 THEN 23 WHEN - 32 + + SUM ( 51 ) + - 56 + + 69 * 52 THEN - - COALESCE ( - COUNT ( * ), - 69 + + + 12 * + 15 ) * - 24 + + 74 + + 85 * + - 52 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2365
SELECT DISTINCT + COALESCE ( - 72, + 66 DIV + 51 - 39 + + 3 + + + ( + + 79 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT + COALESCE ( - 72, + 66 / + 51 - 39 + + 3 + + + ( + + 79 ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT COALESCE ( 33, - SUM( ALL - + 47 ), + - 6 )
----
33

skipif mysql # not compatible
query I rowsort label-2366
SELECT COALESCE ( 33, - SUM ( ALL - + 47 ), + - 6 )
----
33

query I rowsort
SELECT - ( 12 ) * 48 * - 54 AS col0
----
31104

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT DISTINCT + 59 DIV + + 36 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT + 59 / + + 36 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2369
SELECT - 74 + - + 28 * + 1 * - CAST( - 51 AS SIGNED ), + 77 - + + 20 AS col1
----
-1502
57

skipif mysql # not compatible
query II rowsort label-2369
SELECT - 74 + - + 28 * + 1 * - CAST ( - 51 AS INTEGER ), + 77 - + + 20 AS col1
----
-1502
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2370
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) * + - 54 / + COUNT( * ) - 35 * - 39 * 77 + SUM( DISTINCT + 72 ) * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2370
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * + - 54 / + COUNT ( * ) - 35 * - 39 * 77 + SUM ( DISTINCT + 72 ) * 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2371
SELECT ALL + 41 DIV 21
----
1

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + 41 / 21
----
1

query II rowsort
SELECT COALESCE ( + 83, - 5 ), 44 AS col1
----
83
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT ALL - 87 * 98 DIV - 4 + 85 + - 97 * - 18 col2
----
3962

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL - 87 * 98 / - 4 + 85 + - 97 * - 18 col2
----
3962

query I rowsort
SELECT ALL + - 65 AS col1
----
-65

query I rowsort
SELECT ALL + - 48 AS col1
----
-48

query II rowsort
SELECT - 23 + 5 AS col2, 68 * - 52 + - 5 * - 5 + - 53 AS col0
----
-18
-3564

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL + + 34 * ( + COUNT( DISTINCT - - 47 ) ) * 25 + 34 AS col2
----
884

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL + + 34 * ( + COUNT ( DISTINCT - - 47 ) ) * 25 + 34 AS col2
----
884

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

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

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

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

query I rowsort
SELECT DISTINCT + + 10 AS col2
----
10

query I rowsort
SELECT - - ( 95 ) * - + 2 * - 60 col0
----
11400

query I rowsort
SELECT + - 49 * 87
----
-4263

query I rowsort
SELECT 91 * - 34 - - + 52 AS col0
----
-3042

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2384
SELECT DISTINCT - 41 + COUNT( - + 6 ) + ( + + 72 ) DIV - ( + ( 40 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT - 41 + COUNT ( - + 6 ) + ( + + 72 ) / - ( + ( 40 ) )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2385
SELECT ALL CAST( 72 AS SIGNED ) + 89 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL CAST ( 72 AS INTEGER ) + 89 AS col1
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2386
SELECT - MAX( + CAST( NULL AS SIGNED ) ) AS col0, 89 AS col0
----
NULL
89

skipif mysql # not compatible
query II rowsort label-2386
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col0, 89 AS col0
----
NULL
89

query II rowsort
SELECT ALL - 8 + - + 89, - 12 AS col2
----
-97
-12

query I rowsort
SELECT ALL 22 * + 17 col1
----
374

query I rowsort
SELECT DISTINCT NULLIF ( NULLIF ( - ( - - 0 ), - 40 ), + - 57 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2390
SELECT - + 28 + + + 84 AS col2, 67 * - - COALESCE ( - 20, 51 DIV + 19 ) AS col2
----
56
-1340

skipif mysql # not compatible
query II rowsort label-2390
SELECT - + 28 + + + 84 AS col2, 67 * - - COALESCE ( - 20, 51 / + 19 ) AS col2
----
56
-1340

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL MAX( ALL - - ( 17 ) ) * - 75
----
-1275

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL MAX ( ALL - - ( 17 ) ) * - 75
----
-1275

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2392
SELECT + 88 + 37 DIV - CAST( 81 AS SIGNED ) + 27 + + + 11 DIV - 81 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-2392
SELECT + 88 + 37 / - CAST ( 81 AS INTEGER ) + 27 + + + 11 / - 81 AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2393
SELECT + 94 - - CAST( 59 AS SIGNED ) * CASE 79 WHEN - 12 THEN - + MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2393
SELECT + 94 - - CAST ( 59 AS INTEGER ) * CASE 79 WHEN - 12 THEN - + MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT + 41 + ( 90 ) * + - 42 + ( + - 13 ) + + ( - COUNT( * ) ) + + 37 * + - SUM( - - 39 )
----
-5196

skipif mysql # not compatible
query I rowsort label-2394
SELECT + 41 + ( 90 ) * + - 42 + ( + - 13 ) + + ( - COUNT ( * ) ) + + 37 * + - SUM ( - - 39 )
----
-5196

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2396
SELECT + 58 + - + 92 + - 7 + - COUNT( * ) * CAST( + + SUM( ALL 74 ) AS SIGNED ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-2396
SELECT + 58 + - + 92 + - 7 + - COUNT ( * ) * CAST ( + + SUM ( ALL 74 ) AS INTEGER ) AS col1
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT MAX( DISTINCT + 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT MAX ( DISTINCT + 65 ) AS col0
----
65

query I rowsort
SELECT ALL 40 - 79
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL CASE NULLIF ( 28, 58 ) WHEN + + 77 + - ( 82 ) THEN + + 14 * 45 * 51 + + ( - + 37 ) + 88 WHEN - + 75 - + - 59 + + COUNT( DISTINCT + 11 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL CASE NULLIF ( 28, 58 ) WHEN + + 77 + - ( 82 ) THEN + + 14 * 45 * 51 + + ( - + 37 ) + 88 WHEN - + 75 - + - 59 + + COUNT ( DISTINCT + 11 ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL 16 - + ( + 54 ) * - + 17 * 3 col0
----
2770

query II rowsort
SELECT - ( 67 ) + 37 AS col1, + 96 + + 24 * + - 95
----
-30
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT ALL 69 * + MAX( ALL - - CASE + 98 WHEN + ( - 13 ) THEN NULL WHEN + 20 THEN + + ( - 52 ) END ) * + 26 / - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL 69 * + MAX ( ALL - - CASE + 98 WHEN + ( - 13 ) THEN NULL WHEN + 20 THEN + + ( - 52 ) END ) * + 26 / - 76
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT ALL 7 DIV 85 DIV - 55 * 50 - - 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL 7 / 85 / - 55 * 50 - - 32 AS col2
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2405
SELECT + CAST( NULL AS DECIMAL ) AS col2, + 45 + ( 57 )
----
NULL
102

skipif mysql # not compatible
query II rowsort label-2405
SELECT + CAST ( NULL AS REAL ) AS col2, + 45 + ( 57 )
----
NULL
102

query I rowsort
SELECT ALL 33 * - + 66 col1
----
-2178

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

skipif mysql # not compatible
query I rowsort label-2407
SELECT - CAST ( NULL AS INTEGER ) / + 97
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2408
SELECT DISTINCT 68 * + 99 * - - 7 * COUNT( * ) * - + CAST( + NULLIF ( ( + 17 ), - 34 * 49 ) AS SIGNED ) col2
----
-801108

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT 68 * + 99 * - - 7 * COUNT ( * ) * - + CAST ( + NULLIF ( ( + 17 ), - 34 * 49 ) AS INTEGER ) col2
----
-801108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2409
SELECT ALL + COUNT( * ) AS col0, + 99 / - 27 + + 33 / + SUM( DISTINCT CAST( NULL AS SIGNED ) ) * COUNT( + CAST( - 21 AS SIGNED ) ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2409
SELECT ALL + COUNT ( * ) AS col0, + 99 / - 27 + + 33 / + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * COUNT ( + CAST ( - 21 AS INTEGER ) ) AS col2
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2410
SELECT DISTINCT + - COUNT( CAST( CAST( + - 29 AS SIGNED ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT + - COUNT ( CAST ( CAST ( + - 29 AS INTEGER ) AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2411
SELECT + + COUNT( 92 ) - + 84 * + 27 / - CAST( NULL AS SIGNED ) * + 48 * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT + + COUNT ( 92 ) - + 84 * + 27 / - CAST ( NULL AS INTEGER ) * + 48 * 65
----
NULL

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

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

query I rowsort
SELECT ALL + + 99 AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2414
SELECT DISTINCT + NULLIF ( - 86, + + ( - CAST( NULL AS SIGNED ) ) * - 21 - + 56 * COUNT( - 39 ) - - - 25 + 50 - + + 93 / + 37 ) * COUNT( * ) + CAST( + - COUNT( * ) AS SIGNED ) * - 68
----
-18

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT + NULLIF ( - 86, + + ( - CAST ( NULL AS INTEGER ) ) * - 21 - + 56 * COUNT ( - 39 ) - - - 25 + 50 - + + 93 / + 37 ) * COUNT ( * ) + CAST ( + - COUNT ( * ) AS INTEGER ) * - 68
----
-18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT ALL 89 * - 16 * + + 20 * NULLIF ( - - 87, + 41 - - COUNT( * ) ) + - 49 AS col2
----
-2477809

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL 89 * - 16 * + + 20 * NULLIF ( - - 87, + 41 - - COUNT ( * ) ) + - 49 AS col2
----
-2477809

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

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

query I rowsort
SELECT ALL - + 49 * - 68 + - 8 - 54 + + 61
----
3331

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT - + COUNT( * ) + + - 19 * - 11 * + ( - 83 )
----
-17348

skipif mysql # not compatible
query I rowsort label-2419
SELECT - + COUNT ( * ) + + - 19 * - 11 * + ( - 83 )
----
-17348

query I rowsort
SELECT DISTINCT + + 64 * - 40 * 30 col2
----
-76800

query I rowsort
SELECT ALL - 92 * - 95 + + - 5 - + + 10 col2
----
8725

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT + - MIN( ALL - + 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2422
SELECT + - MIN ( ALL - + 82 ) AS col1
----
82

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2424
SELECT + 71 + - 78 + - CAST( 57 AS DECIMAL ) + COUNT( * ) * + 12 + - - CASE - 83 WHEN - NULLIF ( ( + + CAST( + ( - SUM( ALL + 54 ) ) AS SIGNED ) ), - 15 ) THEN + 54 WHEN + 26 THEN + 56 ELSE NULL END + - 27 * - 4 * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT + 71 + - 78 + - CAST ( 57 AS REAL ) + COUNT ( * ) * + 12 + - - CASE - 83 WHEN - NULLIF ( ( + + CAST ( + ( - SUM ( ALL + 54 ) ) AS INTEGER ) ), - 15 ) THEN + 54 WHEN + 26 THEN + 56 ELSE NULL END + - 27 * - 4 * - 80
----
NULL

query I rowsort
SELECT DISTINCT 35 * 39 - 57
----
1308

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

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

query I rowsort
SELECT DISTINCT 70 * + - 14 AS col1
----
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT DISTINCT 88 - - COUNT( * ) - - 83 AS col0
----
172

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT 88 - - COUNT ( * ) - - 83 AS col0
----
172

query I rowsort
SELECT ALL 23 - 85 AS col0
----
-62

query I rowsort
SELECT DISTINCT 34 * - + 45 AS col1
----
-1530

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT 88 * + 95 DIV - - 19 AS col0
----
440

skipif mysql # not compatible
query I rowsort label-2431
SELECT 88 * + 95 / - - 19 AS col0
----
440

query II rowsort
SELECT ALL 69 * 49 AS col2, 14
----
3381
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT DISTINCT 28 * + + 83 * - COUNT( * ) * + 3 AS col0
----
-6972

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT 28 * + + 83 * - COUNT ( * ) * + 3 AS col0
----
-6972

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2434
SELECT CASE 27 WHEN - COUNT( * ) + 90 * - - COUNT( * ) THEN NULL WHEN - - CAST( NULL AS DECIMAL ) THEN - 45 END * - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT CASE 27 WHEN - COUNT ( * ) + 90 * - - COUNT ( * ) THEN NULL WHEN - - CAST ( NULL AS REAL ) THEN - 45 END * - 15 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 96 * - + 47 AS col2
----
-4512

query I rowsort
SELECT DISTINCT 92 * + + 51
----
4692

query I rowsort
SELECT ( 50 ) * + 14
----
700

query I rowsort
SELECT DISTINCT 33 col0
----
33

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

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

query I rowsort
SELECT 90 * - 24
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT + 5 * + 20 * + 10 - - + 41 + - + COUNT( * ) * 52 col1
----
989

skipif mysql # not compatible
query I rowsort label-2441
SELECT + 5 * + 20 * + 10 - - + 41 + - + COUNT ( * ) * 52 col1
----
989

onlyif mysql # DIV for integer division: 
query I rowsort label-2442
SELECT ALL - ( + 9 ) + + - 46 DIV + - 74
----
-9

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - ( + 9 ) + + - 46 / + - 74
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2443
SELECT + 58 DIV + + 99 + + COUNT( ALL + 54 ), CASE + 67 WHEN + 27 THEN NULL WHEN 37 + - - 40 THEN - 73 * 97 - + 7 END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2443
SELECT + 58 / + + 99 + + COUNT ( ALL + 54 ), CASE + 67 WHEN + 27 THEN NULL WHEN 37 + - - 40 THEN - 73 * 97 - + 7 END AS col1
----
1
NULL

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

query I rowsort
SELECT + - CASE + 35 WHEN 97 THEN - 79 WHEN + 49 + 17 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + - 98 AS col2
----
-98

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

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

query I rowsort
SELECT ALL - - 66 * - 26 * 18
----
-30888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2449
SELECT ALL + COALESCE ( SUM( DISTINCT - 46 ), + 23, + + COUNT( * ) ) * - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL + COALESCE ( SUM ( DISTINCT - 46 ), + 23, + + COUNT ( * ) ) * - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT - 16 + + COUNT ( * ) AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2451
SELECT - 83 DIV + 60 + - CAST( - - 88 AS SIGNED ), 23 AS col2
----
-89
23

skipif mysql # not compatible
query II rowsort label-2451
SELECT - 83 / + 60 + - CAST ( - - 88 AS INTEGER ), 23 AS col2
----
-89
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL + ( + 23 ) * - SUM( - 75 ) AS col2
----
1725

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL + ( + 23 ) * - SUM ( - 75 ) AS col2
----
1725

query I rowsort
SELECT + 21 + + + 2 AS col0
----
23

query I rowsort
SELECT ALL - 57 col1
----
-57

query I rowsort
SELECT ALL - + 99 + + 91 col2
----
-8

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2457
SELECT - MIN( - - 21 ) * + - CASE + 15 WHEN SUM( 58 ) * - CAST( NULL AS SIGNED ) * + + COALESCE ( 91, 42 ) + - COUNT( * ) THEN + COALESCE ( + + COALESCE ( - + 3, - + 84 + SUM( DISTINCT CAST( 44 AS SIGNED ) ) ), - 41 ) + - COUNT( * ) + 40 * - + 53 * CASE + ( - 61 ) WHEN - 81 - + 60 THEN 13 + 61 * - AVG ( - 91 ) ELSE - 16 END + + COUNT( * ) WHEN + - CASE + 11 WHEN - COUNT( + + 82 ) * - 80 + 87 * + - COUNT( * ) * - 87 * + 29 THEN NULL ELSE + 16 END THEN 92 END + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT - MIN ( - - 21 ) * + - CASE + 15 WHEN SUM ( 58 ) * - CAST ( NULL AS INTEGER ) * + + COALESCE ( 91, 42 ) + - COUNT ( * ) THEN + COALESCE ( + + COALESCE ( - + 3, - + 84 + SUM ( DISTINCT CAST ( 44 AS INTEGER ) ) ), - 41 ) + - COUNT ( * ) + 40 * - + 53 * CASE + ( - 61 ) WHEN - 81 - + 60 THEN 13 + 61 * - AVG ( - 91 ) ELSE - 16 END + + COUNT ( * ) WHEN + - CASE + 11 WHEN - COUNT ( + + 82 ) * - 80 + 87 * + - COUNT ( * ) * - 87 * + 29 THEN NULL ELSE + 16 END THEN 92 END + - 31
----
NULL

query II rowsort
SELECT - 70 + - 45 col0, - 17 * - 60 AS col1
----
-115
1020

query I rowsort
SELECT 39 * + 6 * - 25 + + - 44 AS col0
----
-5894

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT ALL - ( + 37 ) DIV - 24 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL - ( + 37 ) / - 24 AS col1
----
1

query II rowsort
SELECT ALL - 35 * + 36 * 24 AS col0, + 70
----
-30240
70

query I rowsort
SELECT DISTINCT - 85 col2
----
-85

query II rowsort
SELECT ALL + 72 * - 10 * - - 52, 50 - - - 28 AS col1
----
-37440
22

query I rowsort
SELECT 59 - - + 37 AS col2
----
96

query I rowsort
SELECT DISTINCT + 90 * 44 AS col0
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT 43 * - 70 * COUNT( * ) AS col1
----
-3010

skipif mysql # not compatible
query I rowsort label-2466
SELECT 43 * - 70 * COUNT ( * ) AS col1
----
-3010

onlyif mysql # aggregate syntax: 
query II rowsort label-2467
SELECT 39, CASE + 42 WHEN + 7 * - + 15 * - + COALESCE ( + + MAX( - 3 ), 3, - 83 * 74 - 28 * + + 5 / + + 78 / - + COUNT( * ) + + 57 + + + 61 + - ( - - 41 ) * - + 27 + + 49 ) THEN - - 27 WHEN 3 THEN NULL ELSE + 16 END col0
----
39
16

skipif mysql # not compatible
query II rowsort label-2467
SELECT 39, CASE + 42 WHEN + 7 * - + 15 * - + COALESCE ( + + MAX ( - 3 ), 3, - 83 * 74 - 28 * + + 5 / + + 78 / - + COUNT ( * ) + + 57 + + + 61 + - ( - - 41 ) * - + 27 + + 49 ) THEN - - 27 WHEN 3 THEN NULL ELSE + 16 END col0
----
39
16

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

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

query I rowsort
SELECT 97 * + 84 AS col2
----
8148

query I rowsort
SELECT 68 + 24
----
92

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2473
SELECT 87 DIV - 65
----
-1

skipif mysql # not compatible
query I rowsort label-2473
SELECT 87 / - 65
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL 16 + + + COUNT( * ) - - COUNT( * ) * + + 99 col2
----
116

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL 16 + + + COUNT ( * ) - - COUNT ( * ) * + + 99 col2
----
116

query I rowsort
SELECT DISTINCT 33 * + 69 AS col1
----
2277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2476
SELECT DISTINCT - 28 + - + CAST( NULL AS SIGNED ) + 47 + 77 + + COUNT( * ) + - 91 * + 63 * + 50 * 57 * - COUNT( - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT - 28 + - + CAST ( NULL AS INTEGER ) + 47 + 77 + + COUNT ( * ) + - 91 * + 63 * + 50 * 57 * - COUNT ( - 30 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2477
SELECT 77 DIV + - MAX( ALL 28 )
----
-2

skipif mysql # not compatible
query I rowsort label-2477
SELECT 77 / + - MAX ( ALL 28 )
----
-2

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

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

query I rowsort
SELECT 84 * + 12 AS col2
----
1008

query I rowsort
SELECT ( 48 ) * 47
----
2256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2481
SELECT DISTINCT 15 + - 58 / CASE + MIN( ALL - 68 ) WHEN 43 + 84 * 95 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT 15 + - 58 / CASE + MIN ( ALL - 68 ) WHEN 43 + 84 * 95 THEN CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL ( - 92 ) * 90 AS col1
----
-8280

onlyif mysql # DIV for integer division: 
query I rowsort label-2483
SELECT 3 DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2483
SELECT 3 / 95 AS col1
----
0

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

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

query I rowsort
SELECT ALL 54 * + 47 + - 59 AS col0
----
2479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2486
SELECT ALL - 67 * 39 + COUNT( * ) DIV 40
----
-2613

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL - 67 * 39 + COUNT ( * ) / 40
----
-2613

query I rowsort
SELECT ALL - 38 * + 87
----
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT ALL - COUNT( * ) * - 77 + 43 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL - COUNT ( * ) * - 77 + 43 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT MIN( - 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-2489
SELECT MIN ( - 84 ) AS col2
----
-84

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

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

query I rowsort
SELECT DISTINCT - 74 * + 91 + + 82
----
-6652

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT SUM( COALESCE ( + 9, - ( 85 ) ) ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2492
SELECT SUM ( COALESCE ( + 9, - ( 85 ) ) ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT + MIN( DISTINCT 3 )
----
3

skipif mysql # not compatible
query I rowsort label-2493
SELECT + MIN ( DISTINCT 3 )
----
3

query I rowsort
SELECT COALESCE ( 32, - 28 ) + - 13 AS col0
----
19

query I rowsort
SELECT ALL 60 * + 11 AS col1
----
660

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

skipif mysql # not compatible
query I rowsort label-2496
SELECT MAX ( + 33 )
----
33

query I rowsort
SELECT 69 + - 60
----
9

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

skipif mysql # not compatible
query I rowsort label-2498
SELECT + MIN ( + 46 )
----
46

query I rowsort
SELECT ALL 6 * + 68
----
408

query I rowsort
SELECT ALL - 49 - 72 AS col0
----
-121

query I rowsort
SELECT 3 * ( - 62 ) + 74 * - 59 AS col2
----
-4552

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

query I rowsort
SELECT - ( 18 ) + 22 AS col0
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT - SUM( 91 ) * ( 33 )
----
-3003

skipif mysql # not compatible
query I rowsort label-2505
SELECT - SUM ( 91 ) * ( 33 )
----
-3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2506
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) + 90 * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 90 * - 42 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2507
SELECT ALL + 13 DIV + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL + 13 / + 95 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2508
SELECT - 58 + CAST( - SUM( - 69 ) AS SIGNED ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2508
SELECT - 58 + CAST ( - SUM ( - 69 ) AS INTEGER ) AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2509
SELECT ALL - 41 + MIN( ALL - 87 ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL - 41 + MIN ( ALL - 87 ) * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2510
SELECT DISTINCT - COALESCE ( NULLIF ( COUNT( * ), - COUNT( - CAST( NULL AS SIGNED ) ) ), - 77 * - 86 ) + - SUM( 48 + 18 * - 10 ) AS col1
----
131

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT - COALESCE ( NULLIF ( COUNT ( * ), - COUNT ( - CAST ( NULL AS INTEGER ) ) ), - 77 * - 86 ) + - SUM ( 48 + 18 * - 10 ) AS col1
----
131

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

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

query I rowsort
SELECT - 98 * - 60
----
5880

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

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

query I rowsort
SELECT + 10 - 37 AS col1
----
-27

query I rowsort
SELECT - 68 * 48 col0
----
-3264

query I rowsort
SELECT DISTINCT - - 33 * + 20 AS col2
----
660

query I rowsort
SELECT DISTINCT - 68 col1
----
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT - 62 - - COUNT( * ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2519
SELECT - 62 - - COUNT ( * ) AS col1
----
-61

query I rowsort
SELECT ALL + CASE - 60 WHEN 32 THEN 67 * 56 END col1
----
NULL

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

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

query I rowsort
SELECT ALL 20 * - 8 AS col1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT - 29 * + COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-2523
SELECT - 29 * + COUNT ( * ) AS col1
----
-29

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

query I rowsort
SELECT - + NULLIF ( + 48, 81 ) + + 62
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT + 16 / + CAST( NULL AS SIGNED ) - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT + 16 / + CAST ( NULL AS INTEGER ) - 70
----
NULL

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

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

query I rowsort
SELECT - + 95 * + 50
----
-4750

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT COUNT( * ) * 22 + COUNT( * ) * MAX( 9 * - 88 ) AS col1
----
-770

skipif mysql # not compatible
query I rowsort label-2529
SELECT COUNT ( * ) * 22 + COUNT ( * ) * MAX ( 9 * - 88 ) AS col1
----
-770

query I rowsort
SELECT DISTINCT + 73 * - 70
----
-5110

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2532
SELECT + 92 DIV 58
----
1

skipif mysql # not compatible
query I rowsort label-2532
SELECT + 92 / 58
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2533
SELECT 70 DIV 32 + - 51 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-2533
SELECT 70 / 32 + - 51 AS col1
----
-49

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

query I rowsort
SELECT DISTINCT + - ( + 42 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT + MIN( DISTINCT 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2536
SELECT + MIN ( DISTINCT 45 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT CASE WHEN COUNT( * ) NOT BETWEEN - COUNT( * ) AND ( + 39 ) THEN + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT CASE WHEN COUNT ( * ) NOT BETWEEN - COUNT ( * ) AND ( + 39 ) THEN + 21 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2538
SELECT + COALESCE ( ( - 70 ), COUNT( * ) ) DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2538
SELECT + COALESCE ( ( - 70 ), COUNT ( * ) ) / 81 AS col2
----
0

query I rowsort
SELECT ALL 22 * 57 + ( + 70 )
----
1324

query I rowsort
SELECT ALL + COALESCE ( 47, ( 90 ) ) * - 97 + ( + 80 + ( 90 ) * + 65 ) AS col0
----
1371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2541
SELECT + ( - CAST( 85 AS SIGNED ) )
----
-85

skipif mysql # not compatible
query I rowsort label-2541
SELECT + ( - CAST ( 85 AS INTEGER ) )
----
-85

query I rowsort
SELECT DISTINCT 84 * + 10 + - 71
----
769

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2543
SELECT - CAST( - + 88 AS SIGNED ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2543
SELECT - CAST ( - + 88 AS INTEGER ) AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2544
SELECT + 98 * CAST( 61 AS SIGNED ) * 3
----
17934

skipif mysql # not compatible
query I rowsort label-2544
SELECT + 98 * CAST ( 61 AS INTEGER ) * 3
----
17934

query I rowsort
SELECT + COALESCE ( 3, - 76 ) + + ( - 26 + + 41 * + ( - 64 ) ) * + 41
----
-108647

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

query I rowsort
SELECT + 86 + 3 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT - 92 - + CASE 30 WHEN COUNT( * ) THEN 29 WHEN + 71 + 43 THEN 30 + 62 * + ( COUNT( * ) + 80 ) ELSE NULL END / + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT - 92 - + CASE 30 WHEN COUNT ( * ) THEN 29 WHEN + 71 + 43 THEN 30 + 62 * + ( COUNT ( * ) + 80 ) ELSE NULL END / + 68
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL MIN ( DISTINCT + 52 ) AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT + CAST( - COUNT( ALL 46 ) AS SIGNED ) + 53 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2550
SELECT + CAST ( - COUNT ( ALL 46 ) AS INTEGER ) + 53 AS col1
----
52

query I rowsort
SELECT - 68 - - 20 AS col0
----
-48

query I rowsort
SELECT ALL COALESCE ( - 66, 12 + + NULLIF ( + 10, - 45 + - 48 * + 28 ) ) col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT + 38 + CASE - ( - 55 ) WHEN + CASE - 42 WHEN + 87 THEN - 4 ELSE - 59 END * 74 THEN NULL ELSE + CAST( NULL AS SIGNED ) END / - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2553
SELECT + 38 + CASE - ( - 55 ) WHEN + CASE - 42 WHEN + 87 THEN - 4 ELSE - 59 END * 74 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END / - 82 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL - COUNT ( * ) + 73 AS col0
----
72

query I rowsort
SELECT ALL + + CASE - + 57 WHEN 57 THEN - 18 + 6 END + - 34 AS col0
----
NULL

query I rowsort
SELECT - + 11 col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-2557
SELECT DISTINCT - 28 DIV 23 - 97
----
-98

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT - 28 / 23 - 97
----
-98

query I rowsort
SELECT ALL - - ( - 49 ) * + 52 col0
----
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT DISTINCT - - 30 * + 21 * COUNT( * ) AS col1
----
630

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT - - 30 * + 21 * COUNT ( * ) AS col1
----
630

query I rowsort
SELECT ALL - 95 - + 62 col2
----
-157

query I rowsort
SELECT + + 15 * + - 78 * + 52 col1
----
-60840

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT - - 35 + ( - SUM( 67 ) ) + 46 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2562
SELECT - - 35 + ( - SUM ( 67 ) ) + 46 AS col1
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ALL CASE - 58 WHEN COUNT( * ) - 81 THEN - MAX( 10 ) + 19 END / 3 - ( - 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL CASE - 58 WHEN COUNT ( * ) - 81 THEN - MAX ( 10 ) + 19 END / 3 - ( - 60 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL + COUNT( * ) * - NULLIF ( 77, + 47 + - 72 ) * 72 + 18
----
-5526

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL + COUNT ( * ) * - NULLIF ( 77, + 47 + - 72 ) * 72 + 18
----
-5526

query I rowsort
SELECT ALL - - 6 AS col2
----
6

query I rowsort
SELECT - 48 col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT ALL - 88 * + + 67 * + COUNT( * ) AS col2
----
-5896

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL - 88 * + + 67 * + COUNT ( * ) AS col2
----
-5896

query I rowsort
SELECT + 99 * + - 25
----
-2475

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT DISTINCT + 77 DIV + + 26
----
2

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT + 77 / + + 26
----
2

query I rowsort
SELECT ALL - + 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT SUM( ALL - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-2572
SELECT SUM ( ALL - 28 )
----
-28

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

query I rowsort
SELECT 52 - + 25 * 90 * + 96 + 18
----
-215930

query I rowsort
SELECT 59 * + ( + 96 ) AS col0
----
5664

onlyif mysql # aggregate syntax: 
query II rowsort label-2576
SELECT + 42 AS col2, + 4 * - + COUNT( * )
----
42
-4

skipif mysql # not compatible
query II rowsort label-2576
SELECT + 42 AS col2, + 4 * - + COUNT ( * )
----
42
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT COUNT( * ) + 57 * + 10 col2
----
571

skipif mysql # not compatible
query I rowsort label-2577
SELECT COUNT ( * ) + 57 * + 10 col2
----
571

query I rowsort
SELECT DISTINCT 64 + - ( + 71 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-2579
SELECT DISTINCT - COUNT( * ) AS col1, + COUNT( ALL + 12 ) + - 79 col0
----
-1
-78

skipif mysql # not compatible
query II rowsort label-2579
SELECT DISTINCT - COUNT ( * ) AS col1, + COUNT ( ALL + 12 ) + - 79 col0
----
-1
-78

query I rowsort
SELECT ALL - 14 + + 96 + - 18 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2581
SELECT ALL 99 + - CASE + + COALESCE ( 71, + MIN( + 7 ), - COALESCE ( - 80, COUNT( ALL + ( + 59 ) ) + 55 * - 72, - 1 + + ( + 37 ) / - 8 ) * + CAST( NULL AS SIGNED ) ) WHEN 42 THEN + CAST( - 16 AS SIGNED ) * 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL 99 + - CASE + + COALESCE ( 71, + MIN ( + 7 ), - COALESCE ( - 80, COUNT ( ALL + ( + 59 ) ) + 55 * - 72, - 1 + + ( + 37 ) / - 8 ) * + CAST ( NULL AS INTEGER ) ) WHEN 42 THEN + CAST ( - 16 AS INTEGER ) * 62 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2582
SELECT DISTINCT 58 DIV + + 38
----
1

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT 58 / + + 38
----
1

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

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL COUNT ( * ) + 33 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT DISTINCT + 41 + + + COUNT( * ) * + - 60
----
-19

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT + 41 + + + COUNT ( * ) * + - 60
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT 3 + + - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2585
SELECT 3 + + - COUNT ( * ) AS col1
----
2

query I rowsort
SELECT ALL - 78 + - 50
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL 63 + - MIN( + ( + 22 ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL 63 + - MIN ( + ( + 22 ) ) AS col1
----
41

query II rowsort
SELECT + 66, - 69 col1
----
66
-69

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

skipif mysql # not compatible
query I rowsort label-2589
SELECT COUNT ( ALL + 15 ) * + 49 AS col1
----
49

query I rowsort
SELECT 78 * ( 19 ) + 49
----
1531

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2591
SELECT ( 74 ) * COALESCE ( + ( 52 ), 40 DIV + 3, - 76 * 22 + - COUNT( * ) ) * - 42 + - ( 52 + - COUNT( * ) * - 32 ) * 25
----
-163716

skipif mysql # not compatible
query I rowsort label-2591
SELECT ( 74 ) * COALESCE ( + ( 52 ), 40 / + 3, - 76 * 22 + - COUNT ( * ) ) * - 42 + - ( 52 + - COUNT ( * ) * - 32 ) * 25
----
-163716

query II rowsort
SELECT DISTINCT 27 AS col2, - 23 + + 9
----
27
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT ALL ( - CASE + CAST( NULL AS SIGNED ) WHEN - 83 * 18 - 82 THEN - CAST( + 92 AS SIGNED ) / 98 - - 13 * - 43 END ) - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL ( - CASE + CAST ( NULL AS INTEGER ) WHEN - 83 * 18 - 82 THEN - CAST ( + 92 AS INTEGER ) / 98 - - 13 * - 43 END ) - - 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2594
SELECT DISTINCT CAST( 43 AS SIGNED ) - - + 45 + 1 * 16
----
104

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT CAST ( 43 AS INTEGER ) - - + 45 + 1 * 16
----
104

query I rowsort
SELECT ( - 83 ) * - + ( - 64 ) * 75
----
-398400

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

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL SUM ( ALL - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT CASE + COUNT( * ) WHEN - COUNT( * ) THEN 76 + + 20 ELSE 65 END
----
65

skipif mysql # not compatible
query I rowsort label-2597
SELECT CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN 76 + + 20 ELSE 65 END
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT ALL - NULLIF ( ( - - 83 ), - MIN( ALL 31 ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL - NULLIF ( ( - - 83 ), - MIN ( ALL 31 ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT + 71 * - + COUNT( * ) * - 78 AS col0
----
5538

skipif mysql # not compatible
query I rowsort label-2599
SELECT + 71 * - + COUNT ( * ) * - 78 AS col0
----
5538

query I rowsort
SELECT 90 - - 20
----
110

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

skipif mysql # not compatible
query I rowsort label-2601
SELECT - 80 / + COUNT ( * )
----
-80

query II rowsort
SELECT - 47, - 48 col2
----
-47
-48

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

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

query I rowsort
SELECT - 38 * + + 81
----
-3078

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT + 47 DIV - + 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2605
SELECT + 47 / - + 68 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT DISTINCT MIN( - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT MIN ( - 81 )
----
-81

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

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

query I rowsort
SELECT 59 - 5
----
54

query I rowsort
SELECT DISTINCT + 92 * 42
----
3864

query I rowsort
SELECT + 74 - 29
----
45

query I rowsort
SELECT ALL + 23 * 6 + - 27
----
111

query I rowsort
SELECT ALL + - 77 * - + 5 AS col1
----
385

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2614
SELECT DISTINCT - + 62 AS col0, - ( + + MIN( ALL 93 ) )
----
-62
-93

skipif mysql # not compatible
query II rowsort label-2614
SELECT DISTINCT - + 62 AS col0, - ( + + MIN ( ALL 93 ) )
----
-62
-93

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2616
SELECT + - 28, - COUNT( * ) + 4 + 64 * 49 AS col1
----
-28
3139

skipif mysql # not compatible
query II rowsort label-2616
SELECT + - 28, - COUNT ( * ) + 4 + 64 * 49 AS col1
----
-28
3139

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2618
SELECT + 21 DIV 24 * + - 25 - + - ( 80 ) col1
----
80

skipif mysql # not compatible
query I rowsort label-2618
SELECT + 21 / 24 * + - 25 - + - ( 80 ) col1
----
80

query I rowsort
SELECT ALL - 54 + - - 60 col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL 93 + 73 + - COUNT( * ) * - CASE 15 WHEN 47 * 76 THEN CASE - COUNT( * ) WHEN 17 THEN NULL ELSE 9 END ELSE 93 END AS col2
----
259

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL 93 + 73 + - COUNT ( * ) * - CASE 15 WHEN 47 * 76 THEN CASE - COUNT ( * ) WHEN 17 THEN NULL ELSE 9 END ELSE 93 END AS col2
----
259

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT DISTINCT - MIN( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT - MIN ( 0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT ALL - 82 DIV + - 66
----
1

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - 82 / + - 66
----
1

query I rowsort
SELECT DISTINCT - 9 + 67
----
58

query II rowsort
SELECT 6 + + + 70, 4 AS col0
----
76
4

query I rowsort
SELECT ALL - 92 + + - ( - + 59 ) * - 3
----
-269

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT 84 + + + MIN( DISTINCT + 96 ) * - 79 * + SUM( 91 )
----
-690060

skipif mysql # not compatible
query I rowsort label-2626
SELECT 84 + + + MIN ( DISTINCT + 96 ) * - 79 * + SUM ( 91 )
----
-690060

query I rowsort
SELECT ALL - CASE + - 48 WHEN + + 13 THEN + 92 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2628
SELECT 96 DIV - 38 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2628
SELECT 96 / - 38 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2629
SELECT ALL - COUNT( * ) - - 20 AS col2, 50
----
19
50

skipif mysql # not compatible
query II rowsort label-2629
SELECT ALL - COUNT ( * ) - - 20 AS col2, 50
----
19
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT DISTINCT - MAX( DISTINCT + 99 ) * - - 11 + - + 84 + - 82
----
-1255

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT - MAX ( DISTINCT + 99 ) * - - 11 + - + 84 + - 82
----
-1255

query II rowsort
SELECT 22 * + - 5, 9 col2
----
-110
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL COUNT( * ) / CASE - - ( - 75 ) WHEN - 71 * COUNT( * ) THEN NULL ELSE CASE + 99 WHEN SUM( DISTINCT 45 ) THEN + 37 - CASE 39 WHEN + 21 THEN NULL ELSE + 17 END END END
----
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL COUNT ( * ) / CASE - - ( - 75 ) WHEN - 71 * COUNT ( * ) THEN NULL ELSE CASE + 99 WHEN SUM ( DISTINCT 45 ) THEN + 37 - CASE 39 WHEN + 21 THEN NULL ELSE + 17 END END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ALL - 47 - + MAX( ALL - 24 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL - 47 - + MAX ( ALL - 24 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ALL SUM( DISTINCT 78 )
----
78

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL SUM ( DISTINCT 78 )
----
78

query I rowsort
SELECT - 97 * + - 73 + + 6 AS col1
----
7087

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT COUNT( * ) - + 51 * 61 col0
----
-3110

skipif mysql # not compatible
query I rowsort label-2638
SELECT COUNT ( * ) - + 51 * 61 col0
----
-3110

query I rowsort
SELECT 5 + 54 + + - COALESCE ( - 18, 22 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL - MIN( DISTINCT + 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL - MIN ( DISTINCT + 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT - COUNT( * ) + + + 7
----
6

skipif mysql # not compatible
query I rowsort label-2641
SELECT - COUNT ( * ) + + + 7
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT + + 32 + ( - + COUNT( * ) ) + 44 + + 60 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-2642
SELECT + + 32 + ( - + COUNT ( * ) ) + 44 + + 60 AS col0
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT DISTINCT 84 * CASE - - 8 WHEN - 4 THEN 21 DIV + 75 ELSE 99 * 99 + 13 END + 96
----
824472

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT 84 * CASE - - 8 WHEN - 4 THEN 21 / + 75 ELSE 99 * 99 + 13 END + 96
----
824472

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT + - CASE - + NULLIF ( - - 49, + + 73 - + 75 ) WHEN - CASE 7 WHEN 62 - 56 THEN + 32 / + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE NULL END THEN 46 WHEN 72 THEN NULL END + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT + - CASE - + NULLIF ( - - 49, + + 73 - + 75 ) WHEN - CASE 7 WHEN 62 - 56 THEN + 32 / + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE NULL END THEN 46 WHEN 72 THEN NULL END + - 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT - 94 * + SUM( 96 ) + - - 58 + 63
----
-8903

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT - 94 * + SUM ( 96 ) + - - 58 + 63
----
-8903

query I rowsort
SELECT - - 88 * + 72 AS col0
----
6336

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2647
SELECT + + 83 + AVG ( ALL + 23 ) + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2647
SELECT + + 83 + AVG ( ALL + 23 ) + CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT DISTINCT CASE - + ( 16 ) WHEN COUNT( * ) THEN NULL WHEN + 61 THEN 89 / COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT CASE - + ( 16 ) WHEN COUNT ( * ) THEN NULL WHEN + 61 THEN 89 / COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT 50 + - 3 + + 90 * 65 AS col0
----
5897

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2650
SELECT ALL 55 + - 7 col0, + CAST( NULL AS SIGNED )
----
48
NULL

skipif mysql # not compatible
query II rowsort label-2650
SELECT ALL 55 + - 7 col0, + CAST ( NULL AS INTEGER )
----
48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT ALL MAX( + - ( 68 ) ) + + 92 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL MAX ( + - ( 68 ) ) + + 92 AS col0
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT ALL COALESCE ( COUNT( * ), + 40 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL COALESCE ( COUNT ( * ), + 40 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 0 + + - 14 AS col0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2655
SELECT DISTINCT 4 * + + 6 + - ( + + NULLIF ( + COALESCE ( - ( COUNT( * ) ), - 34 + 42 ), 3 ) ) DIV + 21 col2
----
24

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT 4 * + + 6 + - ( + + NULLIF ( + COALESCE ( - ( COUNT ( * ) ), - 34 + 42 ), 3 ) ) / + 21 col2
----
24

query I rowsort
SELECT DISTINCT 29 * AVG ( CASE - + 0 WHEN + 87 + 4 THEN 28 * 43 ELSE NULL END ) + + 51 * 86 AS col1
----
NULL

query I rowsort
SELECT ALL - 50 * 59
----
-2950

query I rowsort
SELECT DISTINCT 46 * + + 64 col1
----
2944

query II rowsort
SELECT + 50, 24 AS col2
----
50
24

query II rowsort
SELECT ALL + 48 AS col1, + 45
----
48
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT MAX( ALL + - 5 ) * - 85 + MAX( DISTINCT ( + ( - COALESCE ( + 83, - CAST( NULL AS SIGNED ) ) ) ) ) - 3 * - CAST( NULL AS SIGNED ) * COUNT( * ) - + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT MAX ( ALL + - 5 ) * - 85 + MAX ( DISTINCT ( + ( - COALESCE ( + 83, - CAST ( NULL AS INTEGER ) ) ) ) ) - 3 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) - + 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT NULLIF ( - 65, COUNT( * ) / + - ( - - 44 ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2662
SELECT NULLIF ( - 65, COUNT ( * ) / + - ( - - 44 ) ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT CASE - - 61 WHEN - COALESCE ( - + ( - 51 ), 90 ) * 25 + - 98 THEN NULL WHEN 83 THEN - CASE 39 WHEN + 7 THEN - NULLIF ( MAX( DISTINCT 94 ), 69 * + ( + 24 ) ) END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2663
SELECT CASE - - 61 WHEN - COALESCE ( - + ( - 51 ), 90 ) * 25 + - 98 THEN NULL WHEN 83 THEN - CASE 39 WHEN + 7 THEN - NULLIF ( MAX ( DISTINCT 94 ), 69 * + ( + 24 ) ) END END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT ALL + MAX( + 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL + MAX ( + 6 ) AS col1
----
6

query I rowsort
SELECT - 16 * 30 * 8 AS col1
----
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT + COUNT( - - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT + COUNT ( - - 46 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2667
SELECT DISTINCT - 69 * + 80 - 83 + - COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT - 69 * + 80 - 83 + - COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2669
SELECT - 9 + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2669
SELECT - 9 + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT 97 * - 1 - 49 - + + 26
----
-172

query I rowsort
SELECT + 80 * + 22 AS col2
----
1760

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

query I rowsort
SELECT DISTINCT - 50 * - + NULLIF ( - 56, - + COALESCE ( 40, + 42, + 44 ) )
----
-2800

query I rowsort
SELECT - 84 + + 20 * - 19 * - 98
----
37156

query II rowsort
SELECT - + ( + 22 ) * + 55 col2, + 59 AS col2
----
-1210
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT - 57 * + 74 + + MIN( ALL - 83 ) * + 94 * - 9 - - 12 AS col0
----
66012

skipif mysql # not compatible
query I rowsort label-2676
SELECT - 57 * + 74 + + MIN ( ALL - 83 ) * + 94 * - 9 - - 12 AS col0
----
66012

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT ALL - 17 * MIN( ALL + 76 ) + + 1 AS col0
----
-1291

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL - 17 * MIN ( ALL + 76 ) + + 1 AS col0
----
-1291

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL + SUM( DISTINCT 75 ) + - 60 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL + SUM ( DISTINCT 75 ) + - 60 AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2679
SELECT - 29 * + + 18 * + COUNT( * ), 32 * - 92 + + COUNT( * ) AS col2
----
-522
-2943

skipif mysql # not compatible
query II rowsort label-2679
SELECT - 29 * + + 18 * + COUNT ( * ), 32 * - 92 + + COUNT ( * ) AS col2
----
-522
-2943

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT ALL + MIN( ALL + 36 ) * + ( COUNT( * ) ) * + 19 + 89 * - 64
----
-5012

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL + MIN ( ALL + 36 ) * + ( COUNT ( * ) ) * + 19 + 89 * - 64
----
-5012

query I rowsort
SELECT DISTINCT + 34 + + + 84 col1
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT + 56 DIV + 32 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2682
SELECT + 56 / + 32 AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2683
SELECT - - CAST( NULL AS DECIMAL ) - - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT - - CAST ( NULL AS REAL ) - - 36 AS col2
----
NULL

query II rowsort
SELECT + 50, ( + + 2 ) AS col2
----
50
2

query I rowsort
SELECT + 69 * 58
----
4002

query I rowsort
SELECT ALL - + 94 + 94
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2687
SELECT - + 26 - - 0 DIV - 83 AS col2, 51 AS col2
----
-26
51

skipif mysql # not compatible
query II rowsort label-2687
SELECT - + 26 - - 0 / - 83 AS col2, 51 AS col2
----
-26
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2688
SELECT - COUNT( * ) col0, CAST( - 64 AS SIGNED ) + - - 59 + + 92 * - COUNT( * ) AS col1
----
-1
-97

skipif mysql # not compatible
query II rowsort label-2688
SELECT - COUNT ( * ) col0, CAST ( - 64 AS INTEGER ) + - - 59 + + 92 * - COUNT ( * ) AS col1
----
-1
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2689
SELECT - - 51 + + COALESCE ( 48, - CAST( 38 AS SIGNED ), + 75 * 67 ) + COUNT( * ) DIV - MIN( ALL 9 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-2689
SELECT - - 51 + + COALESCE ( 48, - CAST ( 38 AS INTEGER ), + 75 * 67 ) + COUNT ( * ) / - MIN ( ALL 9 ) AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2690
SELECT ALL CASE + 47 WHEN + CAST( 46 AS SIGNED ) + + 91 THEN ( COUNT( * ) ) - 38 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL CASE + 47 WHEN + CAST ( 46 AS INTEGER ) + + 91 THEN ( COUNT ( * ) ) - 38 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT ALL + CASE - 59 WHEN NULLIF ( + 7, + 90 / COUNT( * ) ) THEN + 3 ELSE NULL END * + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL + CASE - 59 WHEN NULLIF ( + 7, + 90 / COUNT ( * ) ) THEN + 3 ELSE NULL END * + 5 AS col2
----
NULL

query I rowsort
SELECT - + 76 * 92 * + 6
----
-41952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2693
SELECT ALL - 71 + 2 + NULLIF ( COUNT( * ), - - CAST( NULL AS SIGNED ) * 41 + - 84 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - 71 + 2 + NULLIF ( COUNT ( * ), - - CAST ( NULL AS INTEGER ) * 41 + - 84 ) AS col1
----
-68

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2695
SELECT ALL COUNT( - + 69 ) + + 17 DIV - 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL COUNT ( - + 69 ) + + 17 / - 15 AS col2
----
0

query I rowsort
SELECT ALL 76 * - 38 AS col2
----
-2888

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT - SUM( DISTINCT + 79 ) col2
----
-79

skipif mysql # not compatible
query I rowsort label-2698
SELECT - SUM ( DISTINCT + 79 ) col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2699
SELECT ALL + 52, 30 DIV - 93 + + + COUNT( * ) AS col2, - 22 + - + 56 AS col0
----
52
1
-78

skipif mysql # not compatible
query III rowsort label-2699
SELECT ALL + 52, 30 / - 93 + + + COUNT ( * ) AS col2, - 22 + - + 56 AS col0
----
52
1
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2700
SELECT + 56 DIV + COUNT( * ) + - COUNT( ALL + CAST( + 98 AS SIGNED ) ) + 97 * 50
----
4905

skipif mysql # not compatible
query I rowsort label-2700
SELECT + 56 / + COUNT ( * ) + - COUNT ( ALL + CAST ( + 98 AS INTEGER ) ) + 97 * 50
----
4905

query I rowsort
SELECT + 52 * + 16 AS col0
----
832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2702
SELECT + CASE WHEN ( - 43 ) IS NULL THEN - 81 + 21 + 80 * - 22 / CAST( - 55 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT + CASE WHEN ( - 43 ) IS NULL THEN - 81 + 21 + 80 * - 22 / CAST ( - 55 AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT + 22 + + COUNT( * ) * 91 * - 56 AS col1
----
-5074

skipif mysql # not compatible
query I rowsort label-2703
SELECT + 22 + + COUNT ( * ) * 91 * - 56 AS col1
----
-5074

onlyif mysql # DIV for integer division: 
query I rowsort label-2704
SELECT 28 DIV - + 82 - + 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2704
SELECT 28 / - + 82 - + 1 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2705
SELECT CAST( + 83 AS SIGNED ) AS col1, - 15 * - 87
----
83
1305

skipif mysql # not compatible
query II rowsort label-2705
SELECT CAST ( + 83 AS INTEGER ) AS col1, - 15 * - 87
----
83
1305

onlyif mysql # DIV for integer division: 
query I rowsort label-2706
SELECT ALL NULLIF ( 93, - 13 ) * + 4 DIV - 4
----
-93

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL NULLIF ( 93, - 13 ) * + 4 / - 4
----
-93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT + 68 + - + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-2708
SELECT + 68 + - + COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2709
SELECT + 80 DIV - 1 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2709
SELECT + 80 / - 1 AS col1
----
-80

query I rowsort
SELECT + 86 * + 68 AS col2
----
5848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2711
SELECT ALL CASE + CAST( + COUNT( * ) AS SIGNED ) WHEN + COUNT( DISTINCT - 61 ) * 21 THEN AVG ( ALL 49 ) WHEN + 18 THEN + 0 END * 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL CASE + CAST ( + COUNT ( * ) AS INTEGER ) WHEN + COUNT ( DISTINCT - 61 ) * 21 THEN AVG ( ALL 49 ) WHEN + 18 THEN + 0 END * 4 col0
----
NULL

query I rowsort
SELECT + 56 * 36 * - + 42 AS col1
----
-84672

query I rowsort
SELECT - 62 * + 72 AS col1
----
-4464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2714
SELECT 20 * + - 96 + + CAST( 64 AS SIGNED ) AS col1
----
-1856

skipif mysql # not compatible
query I rowsort label-2714
SELECT 20 * + - 96 + + CAST ( 64 AS INTEGER ) AS col1
----
-1856

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2715
SELECT + CAST( 47 AS SIGNED ), + 81 AS col0
----
47
81

skipif mysql # not compatible
query II rowsort label-2715
SELECT + CAST ( 47 AS INTEGER ), + 81 AS col0
----
47
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2716
SELECT - COALESCE ( + COUNT( * ), + COALESCE ( + 5, 26 ), - 24 + ( 26 ), CAST( NULL AS SIGNED ) ) * - 26 + 14
----
40

skipif mysql # not compatible
query I rowsort label-2716
SELECT - COALESCE ( + COUNT ( * ), + COALESCE ( + 5, 26 ), - 24 + ( 26 ), CAST ( NULL AS INTEGER ) ) * - 26 + 14
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT ALL SUM( 30 ) + - 79 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL SUM ( 30 ) + - 79 AS col0
----
-49

query II rowsort
SELECT DISTINCT - 6, 32 col2
----
-6
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ALL + - COUNT( * ) + - + ( 95 ) + 55 * - 63 AS col2
----
-3561

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL + - COUNT ( * ) + - + ( 95 ) + 55 * - 63 AS col2
----
-3561

query I rowsort
SELECT DISTINCT - + 83 AS col1
----
-83

query II rowsort
SELECT ALL - 24 AS col2, 79 + - 13 AS col2
----
-24
66

query I rowsort
SELECT - 27 + + + 59 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT + ( + COALESCE ( - 72, + 15 * 16 + + COUNT( * ) + - 16, + 8 ) ) * 76
----
-5472

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT + ( + COALESCE ( - 72, + 15 * 16 + + COUNT ( * ) + - 16, + 8 ) ) * 76
----
-5472

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT DISTINCT + + 4 + + ( - - NULLIF ( COUNT( * ), - + COUNT( * ) ) )
----
5

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT + + 4 + + ( - - NULLIF ( COUNT ( * ), - + COUNT ( * ) ) )
----
5

query I rowsort
SELECT ALL - - 41 + + 51 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2728
SELECT CAST( NULL AS SIGNED ) + + - ( - 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2728
SELECT CAST ( NULL AS INTEGER ) + + - ( - 87 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2729
SELECT - 23, - SUM( - 28 ) col2
----
-23
28

skipif mysql # not compatible
query II rowsort label-2729
SELECT - 23, - SUM ( - 28 ) col2
----
-23
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT + MIN( + 65 ) + + + 99 AS col0
----
164

skipif mysql # not compatible
query I rowsort label-2730
SELECT + MIN ( + 65 ) + + + 99 AS col0
----
164

query I rowsort
SELECT DISTINCT + + 29 * 80
----
2320

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT + COUNT( * ) + + - 40 + - 23 * - 25 AS col1
----
536

skipif mysql # not compatible
query I rowsort label-2732
SELECT + COUNT ( * ) + + - 40 + - 23 * - 25 AS col1
----
536

query I rowsort
SELECT - 76 + - 42 * + 17 AS col1
----
-790

query I rowsort
SELECT ALL - 69 + - 6 col0
----
-75

query I rowsort
SELECT ALL + 11 * + + 43
----
473

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2737
SELECT DISTINCT - - MAX( ALL - CAST( NULL AS SIGNED ) ) + + + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT - - MAX ( ALL - CAST ( NULL AS INTEGER ) ) + + + 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2738
SELECT DISTINCT COUNT( * ), 28 col0
----
1
28

skipif mysql # not compatible
query II rowsort label-2738
SELECT DISTINCT COUNT ( * ), 28 col0
----
1
28

query I rowsort
SELECT ALL - 20 + + 19
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2740
SELECT - 43 + - CASE - 76 WHEN + + 95 + - 30 * + - 67 / + CASE WHEN NOT ( CAST( NULL AS SIGNED ) ) IS NULL THEN NULL WHEN NOT NULL <= ( - 55 + 22 / - 2 ) THEN + 77 ELSE CAST( NULL AS SIGNED ) END THEN 83 / + COALESCE ( + 24, AVG ( 96 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT - 43 + - CASE - 76 WHEN + + 95 + - 30 * + - 67 / + CASE WHEN NOT ( CAST ( NULL AS INTEGER ) ) IS NULL THEN NULL WHEN NOT NULL <= ( - 55 + 22 / - 2 ) THEN + 77 ELSE CAST ( NULL AS INTEGER ) END THEN 83 / + COALESCE ( + 24, AVG ( 96 ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL - 9 * - 80 AS col2
----
720

query I rowsort
SELECT ALL + - 87 * - 78 AS col1
----
6786

query I rowsort
SELECT - 56 + + 48 AS col2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2744
SELECT 68 * - 80 DIV COUNT( ALL - 27 )
----
-5440

skipif mysql # not compatible
query I rowsort label-2744
SELECT 68 * - 80 / COUNT ( ALL - 27 )
----
-5440

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2746
SELECT 77 * + + 23 AS col2, MIN( ALL - CAST( NULL AS SIGNED ) )
----
1771
NULL

skipif mysql # not compatible
query II rowsort label-2746
SELECT 77 * + + 23 AS col2, MIN ( ALL - CAST ( NULL AS INTEGER ) )
----
1771
NULL

query I rowsort
SELECT 93 + - 15 * 87 AS col2
----
-1212

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT COUNT( * ) + + CASE + CASE 7 WHEN + 5 + - 66 THEN + 39 * + 97 + ( - 82 ) END WHEN + MAX( DISTINCT ( - 23 ) ) THEN + 45 / COALESCE ( + 9, 37, - 35 * + 52 ) WHEN + 25 + - COUNT( * ) THEN 83 WHEN 41 THEN + CASE - ( 54 ) WHEN + 80 * - 29 THEN COUNT( * ) ELSE NULL END END + 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT COUNT ( * ) + + CASE + CASE 7 WHEN + 5 + - 66 THEN + 39 * + 97 + ( - 82 ) END WHEN + MAX ( DISTINCT ( - 23 ) ) THEN + 45 / COALESCE ( + 9, 37, - 35 * + 52 ) WHEN + 25 + - COUNT ( * ) THEN 83 WHEN 41 THEN + CASE - ( 54 ) WHEN + 80 * - 29 THEN COUNT ( * ) ELSE NULL END END + 39 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2749
SELECT 3 * - 26 * + - 63 AS col1, SUM( + CAST( 72 AS SIGNED ) )
----
4914
72

skipif mysql # not compatible
query II rowsort label-2749
SELECT 3 * - 26 * + - 63 AS col1, SUM ( + CAST ( 72 AS INTEGER ) )
----
4914
72

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

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

query I rowsort
SELECT ALL - 73 col2
----
-73

query I rowsort
SELECT 34 * + + 50 - + 68 AS col1
----
1632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2753
SELECT 63 + - - 95 + - 93 + + 61 * - - CAST( ( 53 ) AS SIGNED ) * CAST( 96 - - CAST( + 55 AS SIGNED ) AS SIGNED ) * COUNT( * )
----
488248

skipif mysql # not compatible
query I rowsort label-2753
SELECT 63 + - - 95 + - 93 + + 61 * - - CAST ( ( 53 ) AS INTEGER ) * CAST ( 96 - - CAST ( + 55 AS INTEGER ) AS INTEGER ) * COUNT ( * )
----
488248

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT NULLIF ( - 91, + 50 * + ( + + 22 ) ) DIV 69
----
-1

skipif mysql # not compatible
query I rowsort label-2754
SELECT NULLIF ( - 91, + 50 * + ( + + 22 ) ) / 69
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT ALL + 0 + 0 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + 0 + 0 / 82
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT ALL - 25 + + 5 DIV + - 49
----
-25

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - 25 + + 5 / + - 49
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2757
SELECT DISTINCT - NULLIF ( + 81, CAST( CASE ( + + 19 ) WHEN + 60 THEN NULL WHEN 29 THEN - 11 ELSE NULL END AS SIGNED ) ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT - NULLIF ( + 81, CAST ( CASE ( + + 19 ) WHEN + 60 THEN NULL WHEN 29 THEN - 11 ELSE NULL END AS INTEGER ) ) AS col0
----
-81

query I rowsort
SELECT DISTINCT 76 + + 28 * - 38 - 68 + 17
----
-1039

query I rowsort
SELECT + 24 * - - 75
----
1800

query I rowsort
SELECT ALL - ( + NULLIF ( + 19, - + 55 + + 81 ) ) + - 17
----
-36

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

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

query I rowsort
SELECT 79 * - 43 + 69 * 46 AS col1
----
-223

query I rowsort
SELECT DISTINCT - - 17 col1
----
17

query I rowsort
SELECT ALL - 24 - + 47 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT - COALESCE ( - - 75, - - COUNT( * ), - 32 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-2765
SELECT - COALESCE ( - - 75, - - COUNT ( * ), - 32 ) AS col1
----
-75

query I rowsort
SELECT ( - 10 ) * - 15 + + + 17
----
167

query I rowsort
SELECT DISTINCT NULLIF ( + 75, 14 ) AS col0
----
75

query I rowsort
SELECT + COALESCE ( - 45, - 35 ) AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2769
SELECT 8 - 36 DIV + COALESCE ( - COALESCE ( + 78, - CAST( + - NULLIF ( 10, + ( - 89 ) * COUNT( * ) ) AS SIGNED ) ), 72, 96 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2769
SELECT 8 - 36 / + COALESCE ( - COALESCE ( + 78, - CAST ( + - NULLIF ( 10, + ( - 89 ) * COUNT ( * ) ) AS INTEGER ) ), 72, 96 ) AS col1
----
8

query I rowsort
SELECT 13 * + - 69 col2
----
-897

query II rowsort
SELECT ALL 40 col1, 52
----
40
52

query I rowsort
SELECT ALL + 37 * - 96 AS col1
----
-3552

query I rowsort
SELECT 3 * 73 AS col2
----
219

query II rowsort
SELECT 6 + 40 * - 79 AS col1, 49 * + 63 * + 27 col2
----
-3154
83349

query I rowsort
SELECT 22 - + 1 + - 29 * - 36
----
1065

onlyif mysql # aggregate syntax: 
query II rowsort label-2776
SELECT DISTINCT 8 AS col0, SUM( DISTINCT - + 76 ) * - + COUNT( ALL ( - 18 ) )
----
8
76

skipif mysql # not compatible
query II rowsort label-2776
SELECT DISTINCT 8 AS col0, SUM ( DISTINCT - + 76 ) * - + COUNT ( ALL ( - 18 ) )
----
8
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2777
SELECT ( - - CASE + ( - 12 ) WHEN + 45 THEN NULL ELSE NULLIF ( - + 86, - ( - 0 ) + COALESCE ( CAST( - 88 AS SIGNED ), 74, - 3 + 31 ) ) END ) * 60
----
-5160

skipif mysql # not compatible
query I rowsort label-2777
SELECT ( - - CASE + ( - 12 ) WHEN + 45 THEN NULL ELSE NULLIF ( - + 86, - ( - 0 ) + COALESCE ( CAST ( - 88 AS INTEGER ), 74, - 3 + 31 ) ) END ) * 60
----
-5160

query I rowsort
SELECT 38 * + - COALESCE ( - - 71, + 52, ( 2 ) ) AS col1
----
-2698

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

query II rowsort
SELECT - 15, NULLIF ( - 37, + 57 + - 38 ) AS col0
----
-15
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT NULLIF ( - 34, - AVG ( CAST( NULL AS SIGNED ) ) )
----
-34

skipif mysql # not compatible
query I rowsort label-2781
SELECT NULLIF ( - 34, - AVG ( CAST ( NULL AS INTEGER ) ) )
----
-34

query I rowsort
SELECT 21 + - COALESCE ( + + 40, + 74 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT ALL - ( - MAX( NULLIF ( - - 73, - - 14 * - 8 + - 41 + + 67 / + 91 + NULLIF ( 7, 94 ) * + 35 ) ) )
----
73

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL - ( - MAX ( NULLIF ( - - 73, - - 14 * - 8 + - 41 + + 67 / + 91 + NULLIF ( 7, 94 ) * + 35 ) ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT 28 * + - ( - - SUM( ALL + 94 ) ) * - 78 + + + COALESCE ( - + COUNT( * ), 45 )
----
205295

skipif mysql # not compatible
query I rowsort label-2784
SELECT 28 * + - ( - - SUM ( ALL + 94 ) ) * - 78 + + + COALESCE ( - + COUNT ( * ), 45 )
----
205295

query I rowsort
SELECT 31 + + 22 + - 7 + + 96 AS col0
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2786
SELECT NULLIF ( NULLIF ( + 9, + + NULLIF ( - + 95, - 99 + CAST( NULL AS SIGNED ) ) ), + ( - COALESCE ( + 75, - COUNT( * ) * 11 + 59 ) ) )
----
9

skipif mysql # not compatible
query I rowsort label-2786
SELECT NULLIF ( NULLIF ( + 9, + + NULLIF ( - + 95, - 99 + CAST ( NULL AS INTEGER ) ) ), + ( - COALESCE ( + 75, - COUNT ( * ) * 11 + 59 ) ) )
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT - 66 * COUNT( * ) + - + 34 + COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-2788
SELECT - 66 * COUNT ( * ) + - + 34 + COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT + SUM( - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2789
SELECT + SUM ( - 0 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2790
SELECT + CAST( NULL AS SIGNED ) * - 70 / - 10 AS col0, + 73 AS col1
----
NULL
73

skipif mysql # not compatible
query II rowsort label-2790
SELECT + CAST ( NULL AS INTEGER ) * - 70 / - 10 AS col0, + 73 AS col1
----
NULL
73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2792
SELECT COALESCE ( - + 85, + + CAST( NULL AS SIGNED ) - 92, MAX( DISTINCT + 26 ) + - + 87 + + 31 ) * COALESCE ( COUNT( ALL + 91 ) DIV 66, - 4 * + 28, - 20 + 53 ) + 58 DIV 12 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2792
SELECT COALESCE ( - + 85, + + CAST ( NULL AS INTEGER ) - 92, MAX ( DISTINCT + 26 ) + - + 87 + + 31 ) * COALESCE ( COUNT ( ALL + 91 ) / 66, - 4 * + 28, - 20 + 53 ) + 58 / 12 AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2793
SELECT + - 33 DIV + 18 - + 83 * + + 6 * 56 + - COUNT( ALL - 90 ) AS col0
----
-27890

skipif mysql # not compatible
query I rowsort label-2793
SELECT + - 33 / + 18 - + 83 * + + 6 * 56 + - COUNT ( ALL - 90 ) AS col0
----
-27890

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT + + 64 + - ( COUNT( - 23 ) ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2795
SELECT + + 64 + - ( COUNT ( - 23 ) ) AS col1
----
63

query I rowsort
SELECT + + COALESCE ( 28, + 42, 3 ) + + + 24 AS col1
----
52

query I rowsort
SELECT + - 89 * - COALESCE ( + 41, 44 ) AS col2
----
3649

query I rowsort
SELECT + - 73 + - 44 col0
----
-117

query I rowsort
SELECT DISTINCT CASE - 92 WHEN - 14 THEN - + 97 END * - 58 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2800
SELECT + 91 * + 18 + + COUNT( * ) * + COALESCE ( - + CASE - + MAX( - 6 ) WHEN 17 THEN + 11 END, 35 + - 40 * CAST( + 48 AS SIGNED ) ) AS col1
----
-247

skipif mysql # not compatible
query I rowsort label-2800
SELECT + 91 * + 18 + + COUNT ( * ) * + COALESCE ( - + CASE - + MAX ( - 6 ) WHEN 17 THEN + 11 END, 35 + - 40 * CAST ( + 48 AS INTEGER ) ) AS col1
----
-247

query I rowsort
SELECT ALL + 87 col2
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2802
SELECT - - COUNT( * ) * ( - 72 ) + - COUNT( DISTINCT - 51 ) DIV + 11 * ( - - 78 ) DIV 68 + 82 * + 90 AS col0
----
7308

skipif mysql # not compatible
query I rowsort label-2802
SELECT - - COUNT ( * ) * ( - 72 ) + - COUNT ( DISTINCT - 51 ) / + 11 * ( - - 78 ) / 68 + 82 * + 90 AS col0
----
7308

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT + COUNT( * ) + + 1 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2803
SELECT + COUNT ( * ) + + 1 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2804
SELECT + 47 DIV + 83 * - 1 + - + ( + 18 ) + + 86 DIV + - MIN( - 15 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-2804
SELECT + 47 / + 83 * - 1 + - + ( + 18 ) + + 86 / + - MIN ( - 15 ) AS col2
----
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT + 91 + - MIN( ALL - 40 ) * + CASE + 99 WHEN COUNT( * ) THEN NULL WHEN 74 THEN - - 58 * 13 WHEN 17 + - 89 THEN NULL ELSE NULL END * + 31 - 52 * - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2806
SELECT + 91 + - MIN ( ALL - 40 ) * + CASE + 99 WHEN COUNT ( * ) THEN NULL WHEN 74 THEN - - 58 * 13 WHEN 17 + - 89 THEN NULL ELSE NULL END * + 31 - 52 * - 68 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2808
SELECT - COALESCE ( - COUNT( * ), + - AVG ( + - ( ( 83 ) ) ) DIV - 12 + + CAST( 23 AS SIGNED ), - MIN( 58 ) + 31, - 99 + + 23 )
----
1

skipif mysql # not compatible
query I rowsort label-2808
SELECT - COALESCE ( - COUNT ( * ), + - AVG ( + - ( ( 83 ) ) ) / - 12 + + CAST ( 23 AS INTEGER ), - MIN ( 58 ) + 31, - 99 + + 23 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT SUM( + 49 ) * - 8 + - 30
----
-422

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT SUM ( + 49 ) * - 8 + - 30
----
-422

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL SUM( - 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL SUM ( - 31 ) AS col1
----
-31

query I rowsort
SELECT + 93 + + + 32 + 23 - 21 * + 96 * 46 AS col1
----
-92588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2812
SELECT ALL - ( COUNT( - 64 ) ) + 41 + - + COALESCE ( + COUNT( * ), - - MIN( DISTINCT 63 ) * 69 + - 44 * + COALESCE ( 73 * + 77, - COUNT( * ) ), - CAST( NULL AS SIGNED ) ) col0
----
39

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL - ( COUNT ( - 64 ) ) + 41 + - + COALESCE ( + COUNT ( * ), - - MIN ( DISTINCT 63 ) * 69 + - 44 * + COALESCE ( 73 * + 77, - COUNT ( * ) ), - CAST ( NULL AS INTEGER ) ) col0
----
39

query I rowsort
SELECT - 87 * - - 52 AS col2
----
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT ALL COUNT( DISTINCT 70 )
----
1

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL COUNT ( DISTINCT 70 )
----
1

query I rowsort
SELECT + 33 * - 44 AS col1
----
-1452

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2816
SELECT - 39 + + MAX( DISTINCT - - CAST( NULL AS DECIMAL ) ) + + + COUNT( - 12 ), 1 * 38 col0
----
NULL
38

skipif mysql # not compatible
query II rowsort label-2816
SELECT - 39 + + MAX ( DISTINCT - - CAST ( NULL AS REAL ) ) + + + COUNT ( - 12 ), 1 * 38 col0
----
NULL
38

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT + 51 DIV + ( - 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-2817
SELECT + 51 / + ( - 47 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2818
SELECT DISTINCT 74 DIV NULLIF ( + - NULLIF ( - 35, - COUNT( * ) ), + - CAST( + 32 AS DECIMAL ) )
----
2

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT 74 / NULLIF ( + - NULLIF ( - 35, - COUNT ( * ) ), + - CAST ( + 32 AS REAL ) )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2819
SELECT ALL - 71 + NULLIF ( 49, - COUNT( + 71 ) + - + 35 ) DIV - + 56 * - 65 + - + 95
----
-166

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL - 71 + NULLIF ( 49, - COUNT ( + 71 ) + - + 35 ) / - + 56 * - 65 + - + 95
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT DISTINCT + COALESCE ( 98, - NULLIF ( - COALESCE ( + - NULLIF ( 20, + 30 + AVG ( DISTINCT + 65 ) * + CASE 79 WHEN + 57 + + NULLIF ( 34, COUNT( * ) ) * - 52 THEN 10 WHEN 38 / + 70 THEN NULL END ), 65 ), + SUM( - 88 ) + - 79 ) * 13 + 78, + 71 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT + COALESCE ( 98, - NULLIF ( - COALESCE ( + - NULLIF ( 20, + 30 + AVG ( DISTINCT + 65 ) * + CASE 79 WHEN + 57 + + NULLIF ( 34, COUNT ( * ) ) * - 52 THEN 10 WHEN 38 / + 70 THEN NULL END ), 65 ), + SUM ( - 88 ) + - 79 ) * 13 + 78, + 71 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT + COUNT( * ) / - CASE + - 10 WHEN + - 22 THEN NULL WHEN COUNT( + 8 ) * + 89 / + 88 THEN - 38 END / CASE 81 WHEN + 33 / 13 THEN NULL WHEN + 12 + + 58 THEN NULL WHEN - 58 / - 67 THEN - COUNT( * ) + + 26 * COUNT( * ) ELSE NULL END + + 52 * + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT + COUNT ( * ) / - CASE + - 10 WHEN + - 22 THEN NULL WHEN COUNT ( + 8 ) * + 89 / + 88 THEN - 38 END / CASE 81 WHEN + 33 / 13 THEN NULL WHEN + 12 + + 58 THEN NULL WHEN - 58 / - 67 THEN - COUNT ( * ) + + 26 * COUNT ( * ) ELSE NULL END + + 52 * + 31 AS col2
----
NULL

query I rowsort
SELECT ALL + ( - + 44 ) AS col0
----
-44

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

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT - 46 / + 19 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT ALL + 10 DIV - 13 + + ( - 15 ) + - 83 * + - 91 + - 51 col1
----
7487

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL + 10 / - 13 + + ( - 15 ) + - 83 * + - 91 + - 51 col1
----
7487

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

query I rowsort
SELECT ALL - 9 * 78 + + - 87 - + ( + 39 ) AS col2
----
-828

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

query I rowsort
SELECT ALL 39 * - 41 AS col2
----
-1599

query I rowsort
SELECT ALL - + 43 * - 6 - - 5 + + 82
----
345

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

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

query I rowsort
SELECT - 66 * + 5
----
-330

query I rowsort
SELECT + 36 * + - 98 + + 38 AS col2
----
-3490

query I rowsort
SELECT - 70 col1
----
-70

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

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

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

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

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

query II rowsort
SELECT DISTINCT - 49 * + 99 + - 20, + 53 * - - 12 * - + 10 AS col2
----
-4871
-6360

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT DISTINCT COUNT( 21 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT COUNT ( 21 ) AS col0
----
1

query I rowsort
SELECT + 69 * + 80 AS col0
----
5520

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT ALL + 16 * - CASE 3 WHEN - + COUNT( ALL - 44 ) + + - 57 + 10 * - - 64 + COUNT( * ) * MAX( + 22 ) THEN - 20 END + COALESCE ( - COUNT( * ), 13 + - SUM( DISTINCT + 27 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + 16 * - CASE 3 WHEN - + COUNT ( ALL - 44 ) + + - 57 + 10 * - - 64 + COUNT ( * ) * MAX ( + 22 ) THEN - 20 END + COALESCE ( - COUNT ( * ), 13 + - SUM ( DISTINCT + 27 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT - 40 * - NULLIF ( + + CAST( - + ( + SUM( + 37 ) ) AS SIGNED ), + 97 * 78 * - CASE + 61 WHEN 37 / + MAX( + 13 * 54 ) + - 58 * 21 THEN 0 END ) col1
----
-1480

skipif mysql # not compatible
query I rowsort label-2842
SELECT - 40 * - NULLIF ( + + CAST ( - + ( + SUM ( + 37 ) ) AS INTEGER ), + 97 * 78 * - CASE + 61 WHEN 37 / + MAX ( + 13 * 54 ) + - 58 * 21 THEN 0 END ) col1
----
-1480

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT + 46 * - COUNT( * ) * + ( - + 69 ) AS col1
----
3174

skipif mysql # not compatible
query I rowsort label-2843
SELECT + 46 * - COUNT ( * ) * + ( - + 69 ) AS col1
----
3174

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT - 57 + - - 64 + - 35 + - - COUNT( * ) * ( SUM( - 27 ) ) * 37 + 89 + + + 71 * - 85
----
-6973

skipif mysql # not compatible
query I rowsort label-2844
SELECT - 57 + - - 64 + - 35 + - - COUNT ( * ) * ( SUM ( - 27 ) ) * 37 + 89 + + + 71 * - 85
----
-6973

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2845
SELECT + 22 DIV COUNT( * ) * + 33 * - 52 col0
----
-37752

skipif mysql # not compatible
query I rowsort label-2845
SELECT + 22 / COUNT ( * ) * + 33 * - 52 col0
----
-37752

query I rowsort
SELECT + 34 + 83 AS col1
----
117

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

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

query I rowsort
SELECT 31 + + 68
----
99

query I rowsort
SELECT ALL 21 + - 12 AS col2
----
9

query I rowsort
SELECT ALL 33 * + ( + 56 ) AS col1
----
1848

query I rowsort
SELECT ALL 68 * - 1 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT DISTINCT ( CASE - 80 WHEN 71 + - - 73 THEN NULL WHEN + 45 * - 0 + SUM( + 69 ) THEN NULL ELSE + ( - COUNT( * ) ) * + 59 END ) + + 45
----
-14

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT ( CASE - 80 WHEN 71 + - - 73 THEN NULL WHEN + 45 * - 0 + SUM ( + 69 ) THEN NULL ELSE + ( - COUNT ( * ) ) * + 59 END ) + + 45
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-2853
SELECT ALL 25, + 2 + + COUNT( * ) * - - 94 - COALESCE ( - + COUNT( * ), - + 55 * - - COUNT( * ) + 8 - + - 20 ) + 94 * + 55 AS col0
----
25
5267

skipif mysql # not compatible
query II rowsort label-2853
SELECT ALL 25, + 2 + + COUNT ( * ) * - - 94 - COALESCE ( - + COUNT ( * ), - + 55 * - - COUNT ( * ) + 8 - + - 20 ) + 94 * + 55 AS col0
----
25
5267

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT COALESCE ( - + 33, - - 29, + + COUNT( * ) * - ( 67 ) + - - 44 ) + - 71 + + - 35 AS col1
----
-139

skipif mysql # not compatible
query I rowsort label-2854
SELECT COALESCE ( - + 33, - - 29, + + COUNT ( * ) * - ( 67 ) + - - 44 ) + - 71 + + - 35 AS col1
----
-139

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2856
SELECT 97 col2, - CAST( NULL AS SIGNED ) + + - 97
----
97
NULL

skipif mysql # not compatible
query II rowsort label-2856
SELECT 97 col2, - CAST ( NULL AS INTEGER ) + + - 97
----
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT MAX( 14 ) + 35 * + + 19
----
679

skipif mysql # not compatible
query I rowsort label-2857
SELECT MAX ( 14 ) + 35 * + + 19
----
679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2858
SELECT 34 + 48 - 87, COUNT( * ) * COALESCE ( 51, + 7, CASE MAX( - + 21 ) WHEN + COUNT( * ) - NULLIF ( COUNT( * ), COUNT( * ) * COUNT( * ) ) THEN + COUNT( 70 ) + + 76 WHEN ( + ( - 80 ) ) THEN CAST( 45 AS SIGNED ) - - MAX( 26 ) END + 88 * - 74 ) AS col0
----
-5
51

skipif mysql # not compatible
query II rowsort label-2858
SELECT 34 + 48 - 87, COUNT ( * ) * COALESCE ( 51, + 7, CASE MAX ( - + 21 ) WHEN + COUNT ( * ) - NULLIF ( COUNT ( * ), COUNT ( * ) * COUNT ( * ) ) THEN + COUNT ( 70 ) + + 76 WHEN ( + ( - 80 ) ) THEN CAST ( 45 AS INTEGER ) - - MAX ( 26 ) END + 88 * - 74 ) AS col0
----
-5
51

query I rowsort
SELECT ALL - + 60 col1
----
-60

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2862
SELECT 39 * 13 + - ( CAST( - 97 AS SIGNED ) ) + + - 75
----
529

skipif mysql # not compatible
query I rowsort label-2862
SELECT 39 * 13 + - ( CAST ( - 97 AS INTEGER ) ) + + - 75
----
529

query I rowsort
SELECT ALL - - 20 * + + 79
----
1580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2864
SELECT 57 * - - MAX( + CAST( NULL AS SIGNED ) ) * + + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT 57 * - - MAX ( + CAST ( NULL AS INTEGER ) ) * + + 39 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2865
SELECT ALL 27 DIV - 88 col1
----
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL 27 / - 88 col1
----
0

query I rowsort
SELECT DISTINCT + 95 * - - ( - + 76 )
----
-7220

query I rowsort
SELECT DISTINCT - 84 * - + 84 + + 99 col2
----
7155

onlyif mysql # DIV for integer division: 
query I rowsort label-2868
SELECT 96 + - 55 DIV + - 49 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-2868
SELECT 96 + - 55 / + - 49 AS col2
----
97

query I rowsort
SELECT ALL - 92 * + 19
----
-1748

query II rowsort
SELECT DISTINCT - 55 AS col2, 78 AS col1
----
-55
78

query I rowsort
SELECT ( - 40 ) + - - 5
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-2872
SELECT + 51 DIV 3
----
17

skipif mysql # not compatible
query I rowsort label-2872
SELECT + 51 / 3
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2873
SELECT 72 DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-2873
SELECT 72 / 65
----
1

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

query I rowsort
SELECT ALL - + 17 AS col0
----
-17

query I rowsort
SELECT ALL + NULLIF ( - - 15, + + 40 / 20 + - 15 + - + 15 ) + - 72 AS col0
----
-57

query I rowsort
SELECT 83 + - 64
----
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2879
SELECT ALL - CAST( NULL AS SIGNED ) + + 42 * + 63 * - 84 + SUM( ALL 95 ) AS col0, CASE - 14 WHEN 40 + 69 / + 75 THEN CAST( NULL AS SIGNED ) WHEN 96 THEN NULL WHEN ( 14 ) * + 86 THEN 69 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2879
SELECT ALL - CAST ( NULL AS INTEGER ) + + 42 * + 63 * - 84 + SUM ( ALL 95 ) AS col0, CASE - 14 WHEN 40 + 69 / + 75 THEN CAST ( NULL AS INTEGER ) WHEN 96 THEN NULL WHEN ( 14 ) * + 86 THEN 69 ELSE NULL END
----
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT - 54 * + SUM( - 61 ) * + 63 + + 70 + 51
----
207643

skipif mysql # not compatible
query I rowsort label-2881
SELECT - 54 * + SUM ( - 61 ) * + 63 + + 70 + 51
----
207643

query II rowsort
SELECT 7 AS col1, + 83 * + + 16 AS col2
----
7
1328

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT 12 * + - COUNT( + ( + 20 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-2883
SELECT 12 * + - COUNT ( + ( + 20 ) )
----
-12

query II rowsort
SELECT 53 AS col2, - 86 * + + 48
----
53
-4128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT ALL + 43 + COALESCE ( 7, + ( + 84 ), CAST( + - 67 AS SIGNED ) ) * + + 96 AS col2
----
715

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL + 43 + COALESCE ( 7, + ( + 84 ), CAST ( + - 67 AS INTEGER ) ) * + + 96 AS col2
----
715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2886
SELECT 31 DIV MIN( 43 )
----
0

skipif mysql # not compatible
query I rowsort label-2886
SELECT 31 / MIN ( 43 )
----
0

query I rowsort
SELECT DISTINCT + 98 * 75 AS col0
----
7350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2888
SELECT ALL 74 + + - CAST( NULLIF ( + 91, 7 * ( + 94 ) + - 91 * - COUNT( ALL + CAST( + - 25 AS SIGNED ) ) ) AS SIGNED ) + - COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL 74 + + - CAST ( NULLIF ( + 91, 7 * ( + 94 ) + - 91 * - COUNT ( ALL + CAST ( + - 25 AS INTEGER ) ) ) AS INTEGER ) + - COUNT ( * ) AS col2
----
-18

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

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

query II rowsort
SELECT ALL 67 col1, - 98
----
67
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-2891
SELECT 66 + - 19 + + + 72 * - 28, COUNT( * ) + 71 AS col1
----
-1969
72

skipif mysql # not compatible
query II rowsort label-2891
SELECT 66 + - 19 + + + 72 * - 28, COUNT ( * ) + 71 AS col1
----
-1969
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2892
SELECT DISTINCT 25, - CASE - + 64 WHEN + 10 THEN NULL WHEN - 85 * 37 THEN ( + - 21 ) / - CAST( - 9 AS SIGNED ) + - CASE 17 WHEN + 54 * COUNT( 86 ) THEN 1 / 49 WHEN 91 * - 63 THEN SUM( + 94 ) WHEN - 82 * ( 23 * + 63 ) THEN NULL END * + 5 + CAST( NULL AS SIGNED ) ELSE NULL END * SUM( DISTINCT + 6 ) AS col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-2892
SELECT DISTINCT 25, - CASE - + 64 WHEN + 10 THEN NULL WHEN - 85 * 37 THEN ( + - 21 ) / - CAST ( - 9 AS INTEGER ) + - CASE 17 WHEN + 54 * COUNT ( 86 ) THEN 1 / 49 WHEN 91 * - 63 THEN SUM ( + 94 ) WHEN - 82 * ( 23 * + 63 ) THEN NULL END * + 5 + CAST ( NULL AS INTEGER ) ELSE NULL END * SUM ( DISTINCT + 6 ) AS col1
----
25
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2893
SELECT COUNT( * ) DIV 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2893
SELECT COUNT ( * ) / 37 AS col0
----
0

query I rowsort
SELECT ( - 77 ) * - 27 AS col0
----
2079

query I rowsort
SELECT DISTINCT 54 - - 8 AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2896
SELECT DISTINCT - CAST( + 54 AS SIGNED ) * + + 2
----
-108

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT - CAST ( + 54 AS INTEGER ) * + + 2
----
-108

query I rowsort
SELECT ALL - + 1 * + - 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT MIN( DISTINCT - 47 ) * - + 82 AS col0
----
3854

skipif mysql # not compatible
query I rowsort label-2898
SELECT MIN ( DISTINCT - 47 ) * - + 82 AS col0
----
3854

onlyif mysql # aggregate syntax: 
query II rowsort label-2899
SELECT DISTINCT - 54 * - - 26, - COUNT( * ) AS col2
----
-1404
-1

skipif mysql # not compatible
query II rowsort label-2899
SELECT DISTINCT - 54 * - - 26, - COUNT ( * ) AS col2
----
-1404
-1

query II rowsort
SELECT COALESCE ( - 47, + 19 * + + 35 + + ( - 97 ), + 51 + + 81 ) + + - 94 AS col1, 88 * + 84 + + 32 * 16 AS col0
----
-141
7904

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT CAST( - 30 AS SIGNED ) * + - 79 AS col1
----
2370

skipif mysql # not compatible
query I rowsort label-2902
SELECT CAST ( - 30 AS INTEGER ) * + - 79 AS col1
----
2370

query I rowsort
SELECT + 91 * 60 * 63 * - 99 + - + 15
----
-34054035

query III rowsort
SELECT DISTINCT - ( + 59 ) AS col1, + 72 + - 55 AS col0, - ( - 10 ) AS col2
----
-59
17
10

query I rowsort
SELECT - 57 * + - 87
----
4959

query II rowsort
SELECT + 83, + 15 * - 36 * - 20 * - 18 col1
----
83
-194400

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT DISTINCT 45 + COUNT( DISTINCT + + 41 ) + + - 35
----
11

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT 45 + COUNT ( DISTINCT + + 41 ) + + - 35
----
11

query I rowsort
SELECT ALL + + 0 + - 19
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2909
SELECT ALL + 78 + - 16 DIV + + 88
----
78

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL + 78 + - 16 / + + 88
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2910
SELECT ALL - CASE - + 79 WHEN - 28 * + 52 / COUNT( * ) * + - 91 THEN NULL WHEN - + CASE - 23 WHEN + 79 * CAST( - 40 AS SIGNED ) + - 71 THEN - 87 - - COUNT( * ) WHEN + CASE 15 WHEN 9 THEN NULL WHEN - 0 - - 59 * 43 THEN - CAST( 26 AS SIGNED ) / + 34 WHEN - 4 + + ( 16 + 22 ) * CAST( 26 * - 51 AS SIGNED ) THEN 90 / - 84 ELSE - 62 + - 80 END THEN + 98 + COUNT( * ) / COUNT( * ) END THEN + 73 + - 65 WHEN 70 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - CASE - + 79 WHEN - 28 * + 52 / COUNT ( * ) * + - 91 THEN NULL WHEN - + CASE - 23 WHEN + 79 * CAST ( - 40 AS INTEGER ) + - 71 THEN - 87 - - COUNT ( * ) WHEN + CASE 15 WHEN 9 THEN NULL WHEN - 0 - - 59 * 43 THEN - CAST ( 26 AS INTEGER ) / + 34 WHEN - 4 + + ( 16 + 22 ) * CAST ( 26 * - 51 AS INTEGER ) THEN 90 / - 84 ELSE - 62 + - 80 END THEN + 98 + COUNT ( * ) / COUNT ( * ) END THEN + 73 + - 65 WHEN 70 THEN NULL END
----
NULL

query I rowsort
SELECT 96 * - 1 AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT 2 * + CASE - COUNT( * ) WHEN 11 + - 71 THEN NULL WHEN 0 * + + 43 * + COUNT( * ) / 6 THEN - 66 + - + ( - COUNT( * ) ) + + 99 / + 48 END * + 34 - COALESCE ( - 75, 92 / - 86 + 2 * + 88 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT 2 * + CASE - COUNT ( * ) WHEN 11 + - 71 THEN NULL WHEN 0 * + + 43 * + COUNT ( * ) / 6 THEN - 66 + - + ( - COUNT ( * ) ) + + 99 / + 48 END * + 34 - COALESCE ( - 75, 92 / - 86 + 2 * + 88 ) AS col2
----
NULL

query I rowsort
SELECT ALL ( - 32 ) + 10
----
-22

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

skipif mysql # not compatible
query I rowsort label-2914
SELECT CAST ( NULL AS INTEGER ) * 76 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT + 34 * - + COUNT( * ) * SUM( - ( + - 54 ) ) AS col2
----
-1836

skipif mysql # not compatible
query I rowsort label-2915
SELECT + 34 * - + COUNT ( * ) * SUM ( - ( + - 54 ) ) AS col2
----
-1836

query I rowsort
SELECT DISTINCT 51 - + + 4
----
47

query I rowsort
SELECT DISTINCT + 57 - + - 28 + ( 36 ) AS col2
----
121

query II rowsort
SELECT - 68 * 21, - 14 col0
----
-1428
-14

query I rowsort
SELECT - 44 + 80 + - - 44 AS col2
----
80

query I rowsort
SELECT - ( + + 58 ) * 54
----
-3132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT + ( + + 13 ) DIV + 98 + - 16 * - 89 - + - 47 + - + COUNT( * ) * - SUM( ALL + - 61 ) AS col0
----
1410

skipif mysql # not compatible
query I rowsort label-2921
SELECT + ( + + 13 ) / + 98 + - 16 * - 89 - + - 47 + - + COUNT ( * ) * - SUM ( ALL + - 61 ) AS col0
----
1410

query II rowsort
SELECT - 30 + - 41 + + + 58 * + + 30 - + 8 col0, - 68 + + 24 * + 60
----
1661
1372

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2923
SELECT - - 6 DIV 66 DIV + 52 - - COUNT( * ) + 83 AS col0, 7
----
84
7

skipif mysql # not compatible
query II rowsort label-2923
SELECT - - 6 / 66 / + 52 - - COUNT ( * ) + 83 AS col0, 7
----
84
7

query I rowsort
SELECT ALL + COALESCE ( - 15, + + 46 ) AS col1
----
-15

query I rowsort
SELECT - - 17 AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2926
SELECT ALL CASE - + 72 WHEN + - 55 + 95 * CAST( NULL AS SIGNED ) THEN NULL ELSE + + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL CASE - + 72 WHEN + - 55 + 95 * CAST ( NULL AS INTEGER ) THEN NULL ELSE + + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT - 33 + + - 82 DIV 52 col0
----
-34

skipif mysql # not compatible
query I rowsort label-2927
SELECT - 33 + + - 82 / 52 col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2928
SELECT - + 79 DIV + + 77, + COUNT( * ) + - MIN( - ( 97 ) ) + + 51 AS col1
----
-1
149

skipif mysql # not compatible
query II rowsort label-2928
SELECT - + 79 / + + 77, + COUNT ( * ) + - MIN ( - ( 97 ) ) + + 51 AS col1
----
-1
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2929
SELECT ALL - COUNT( * ) * + 78 + - COUNT( * ) + 99 + + + 93 * - 59 + - 33 + - 93 + + 37 DIV - 12 AS col0, 4 AS col2
----
-5596
4

skipif mysql # not compatible
query II rowsort label-2929
SELECT ALL - COUNT ( * ) * + 78 + - COUNT ( * ) + 99 + + + 93 * - 59 + - 33 + - 93 + + 37 / - 12 AS col0, 4 AS col2
----
-5596
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2930
SELECT DISTINCT + + 88 * 17 DIV 72 + - 57 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT + + 88 * 17 / 72 + - 57 AS col1
----
-37

query I rowsort
SELECT ALL - + 22 * 5 * - - 61 + 16 AS col0
----
-6694

onlyif mysql # aggregate syntax: 
query II rowsort label-2932
SELECT DISTINCT + + 31 * + 75 * + 75, + COUNT( DISTINCT - 67 ) AS col2
----
174375
1

skipif mysql # not compatible
query II rowsort label-2932
SELECT DISTINCT + + 31 * + 75 * + 75, + COUNT ( DISTINCT - 67 ) AS col2
----
174375
1

query I rowsort
SELECT - + CASE 37 WHEN + 37 + + 24 THEN - 0 END / + 88 + + 24 / 73 AS col2
----
NULL

query I rowsort
SELECT ALL + 49 * + 97 * 65 * - 13
----
-4016285

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2935
SELECT + CAST( - CAST( + 64 AS DECIMAL ) AS SIGNED ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2935
SELECT + CAST ( - CAST ( + 64 AS REAL ) AS INTEGER ) AS col0
----
-64

query I rowsort
SELECT + 91 * - 80 + - 95 AS col2
----
-7375

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL + 34 * COUNT( * ) + + NULLIF ( + 67, - + 19 )
----
101

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + 34 * COUNT ( * ) + + NULLIF ( + 67, - + 19 )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT + 58 + + COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-2938
SELECT + 58 + + COUNT ( * ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2939
SELECT CASE ( + 24 ) WHEN - 62 THEN NULL ELSE + - CAST( - COUNT( * ) AS SIGNED ) - - SUM( DISTINCT 55 ) * + 40 END col0
----
2201

skipif mysql # not compatible
query I rowsort label-2939
SELECT CASE ( + 24 ) WHEN - 62 THEN NULL ELSE + - CAST ( - COUNT ( * ) AS INTEGER ) - - SUM ( DISTINCT 55 ) * + 40 END col0
----
2201

query I rowsort
SELECT - 46 * + + NULLIF ( - NULLIF ( + 83, + + 13 * + 36 ), 49 * 38 + 47 + - + 65 ) * - 61 - - + 51 + + 95
----
-232752

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT + NULLIF ( + CASE + + 66 WHEN - COUNT( * ) + 70 + - + CASE - + ( + - MIN( - - 38 ) ) WHEN + 57 * 95 / + - ( + - 37 ) + 47 * 15 THEN NULL WHEN + 66 THEN - MAX( DISTINCT + 99 ) END / + 25 THEN NULL WHEN - 46 + + COALESCE ( - ( 81 ), - 23 * 37 ) THEN NULL ELSE 50 * + COALESCE ( + ( - MAX( 62 ) ), 5, + COUNT( 73 ) ) END, - 91 ) - 21
----
-3121

skipif mysql # not compatible
query I rowsort label-2941
SELECT + NULLIF ( + CASE + + 66 WHEN - COUNT ( * ) + 70 + - + CASE - + ( + - MIN ( - - 38 ) ) WHEN + 57 * 95 / + - ( + - 37 ) + 47 * 15 THEN NULL WHEN + 66 THEN - MAX ( DISTINCT + 99 ) END / + 25 THEN NULL WHEN - 46 + + COALESCE ( - ( 81 ), - 23 * 37 ) THEN NULL ELSE 50 * + COALESCE ( + ( - MAX ( 62 ) ), 5, + COUNT ( 73 ) ) END, - 91 ) - 21
----
-3121

query I rowsort
SELECT DISTINCT - COALESCE ( - + 19, + 97 ) * + 65 + 90
----
1325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2943
SELECT CASE - 93 WHEN 13 THEN - - ( CAST( CAST( - 29 AS SIGNED ) AS SIGNED ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT CASE - 93 WHEN 13 THEN - - ( CAST ( CAST ( - 29 AS INTEGER ) AS INTEGER ) ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 99 * 74
----
7326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2945
SELECT + NULLIF ( + + NULLIF ( - 93, + COUNT( * ) ), - - 6 + - + CAST( NULL AS SIGNED ) + - CAST( - ( - 4 ) AS SIGNED ) ) + + 86
----
-7

skipif mysql # not compatible
query I rowsort label-2945
SELECT + NULLIF ( + + NULLIF ( - 93, + COUNT ( * ) ), - - 6 + - + CAST ( NULL AS INTEGER ) + - CAST ( - ( - 4 ) AS INTEGER ) ) + + 86
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT DISTINCT 10 DIV - - 45 col2
----
0

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT 10 / - - 45 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT + MIN( + 18 ) + CASE - 28 WHEN 90 + + ( - + 17 ) + 13 THEN 90 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT + MIN ( + 18 ) + CASE - 28 WHEN 90 + + ( - + 17 ) + 13 THEN 90 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 51 * - 8 col1
----
-408

query I rowsort
SELECT - ( - - 60 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2950
SELECT - NULLIF ( 6, - + MAX( - 18 ) * CAST( NULL AS DECIMAL ) + - + CAST( NULL AS SIGNED ) + 15 ) + - COALESCE ( - - 12, 17 + + COUNT( * ) ) + 6
----
-12

skipif mysql # not compatible
query I rowsort label-2950
SELECT - NULLIF ( 6, - + MAX ( - 18 ) * CAST ( NULL AS REAL ) + - + CAST ( NULL AS INTEGER ) + 15 ) + - COALESCE ( - - 12, 17 + + COUNT ( * ) ) + 6
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT DISTINCT 95 * + CASE + ( + SUM( - 96 ) ) WHEN - 13 THEN NULL WHEN 60 THEN NULL ELSE 91 END - + 39 AS col1
----
8606

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT 95 * + CASE + ( + SUM ( - 96 ) ) WHEN - 13 THEN NULL WHEN 60 THEN NULL ELSE 91 END - + 39 AS col1
----
8606

query I rowsort
SELECT - 9 * - 83 col0
----
747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT ALL CASE - AVG ( 72 ) WHEN CAST( + + 71 AS SIGNED ) THEN 78 WHEN + 16 THEN - 84 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL CASE - AVG ( 72 ) WHEN CAST ( + + 71 AS INTEGER ) THEN 78 WHEN + 16 THEN - 84 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT + NULLIF ( - + 74, 43 ) * 63 + 95 + - + 74 + - COUNT( * ) * - 32 col0
----
-4609

skipif mysql # not compatible
query I rowsort label-2954
SELECT + NULLIF ( - + 74, 43 ) * 63 + 95 + - + 74 + - COUNT ( * ) * - 32 col0
----
-4609

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL ( + COUNT( + 6 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL ( + COUNT ( + 6 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2956
SELECT + CASE + - CAST( + 25 AS SIGNED ) WHEN + + 66 * - COALESCE ( - 56, + 53 + + + 31 * - COALESCE ( + 72, MAX( DISTINCT + + 5 ) * - + COUNT( * ), - 74, ( 41 ) ) + + 40 ) * - 56 THEN + 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT + CASE + - CAST ( + 25 AS INTEGER ) WHEN + + 66 * - COALESCE ( - 56, + 53 + + + 31 * - COALESCE ( + 72, MAX ( DISTINCT + + 5 ) * - + COUNT ( * ), - 74, ( 41 ) ) + + 40 ) * - 56 THEN + 89 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2957
SELECT + 76 * COUNT( * ) * - CASE - + 38 WHEN + COUNT( - - ( 6 ) ) * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) THEN - 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT + 76 * COUNT ( * ) * - CASE - + 38 WHEN + COUNT ( - - ( 6 ) ) * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - 55 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT - ( + 4 ) * + CASE 10 WHEN - 89 THEN 10 * + 44 * 11 * ( + 73 ) END * - - NULLIF ( + 5, - COUNT( * ) ) + AVG ( 75 + + 60 ) + + 13 * - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT - ( + 4 ) * + CASE 10 WHEN - 89 THEN 10 * + 44 * 11 * ( + 73 ) END * - - NULLIF ( + 5, - COUNT ( * ) ) + AVG ( 75 + + 60 ) + + 13 * - 32 AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL + COUNT ( * ) + - ( + 86 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT - + 83 + + NULLIF ( 44, - + COUNT( * ) ) + + 33
----
-6

skipif mysql # not compatible
query I rowsort label-2961
SELECT - + 83 + + NULLIF ( 44, - + COUNT ( * ) ) + + 33
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2962
SELECT ALL COUNT( * ) AS col0, + 67 * - + 7
----
1
-469

skipif mysql # not compatible
query II rowsort label-2962
SELECT ALL COUNT ( * ) AS col0, + 67 * - + 7
----
1
-469

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT - + MIN( - + 62 ) + - ( 9 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT - + MIN ( - + 62 ) + - ( 9 ) AS col1
----
53

query I rowsort
SELECT ( 31 )
----
31

query I rowsort
SELECT - 62 + - 32
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2966
SELECT - + MIN( DISTINCT - COALESCE ( - - 91, - CAST( NULL AS SIGNED ) ) ) * - 78 AS col0
----
-7098

skipif mysql # not compatible
query I rowsort label-2966
SELECT - + MIN ( DISTINCT - COALESCE ( - - 91, - CAST ( NULL AS INTEGER ) ) ) * - 78 AS col0
----
-7098

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ( - SUM( + 36 ) ) * + 68 + + 26 AS col1
----
-2422

skipif mysql # not compatible
query I rowsort label-2967
SELECT ( - SUM ( + 36 ) ) * + 68 + + 26 AS col1
----
-2422

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2968
SELECT ALL + 69 DIV + 3 + + + COUNT( * ) * + + 68 + 82 + ( + - 70 )
----
103

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL + 69 / + 3 + + + COUNT ( * ) * + + 68 + 82 + ( + - 70 )
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2969
SELECT COUNT( * ) AS col2, NULLIF ( 23, - + 76 + - + ( 27 ) ) DIV - - 44 * - SUM( - ( - - 70 ) )
----
1
0

skipif mysql # not compatible
query II rowsort label-2969
SELECT COUNT ( * ) AS col2, NULLIF ( 23, - + 76 + - + ( 27 ) ) / - - 44 * - SUM ( - ( - - 70 ) )
----
1
0

query II rowsort
SELECT + 79, + CASE + 52 WHEN - 59 THEN - COALESCE ( - + 4, + 88 ) / + + 82 * + 56 - + + 41 + + 74 * + 28 - - - 90 ELSE NULL END + - 45 * 59 AS col0
----
79
NULL

query I rowsort
SELECT - 3 * + 33 AS col1
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2972
SELECT 75 DIV + 75 + 70 * 53 * - NULLIF ( MAX( ALL 59 ), + 86 * - + 40 + + + 85 )
----
-218889

skipif mysql # not compatible
query I rowsort label-2972
SELECT 75 / + 75 + 70 * 53 * - NULLIF ( MAX ( ALL 59 ), + 86 * - + 40 + + + 85 )
----
-218889

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2975
SELECT ALL 58 - CAST( + + ( 63 ) AS SIGNED ) - - 10 * - ( - 16 ) * - 74 * + CASE - 53 WHEN - 86 + + - ( - ( - 86 ) ) THEN 65 END + + CAST( NULL AS SIGNED ) * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL 58 - CAST ( + + ( 63 ) AS INTEGER ) - - 10 * - ( - 16 ) * - 74 * + CASE - 53 WHEN - 86 + + - ( - ( - 86 ) ) THEN 65 END + + CAST ( NULL AS INTEGER ) * + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT CASE + - 98 WHEN 20 + + + CASE + + 55 WHEN - - NULLIF ( + + COALESCE ( - 82, 57 ), - 70 ) * - 98 THEN NULL ELSE + ( - ( + + 29 ) ) * 93 + ( + 19 ) * - 11 END THEN NULL ELSE + MIN( ALL + 44 ) END * + 34 AS col0
----
1496

skipif mysql # not compatible
query I rowsort label-2976
SELECT CASE + - 98 WHEN 20 + + + CASE + + 55 WHEN - - NULLIF ( + + COALESCE ( - 82, 57 ), - 70 ) * - 98 THEN NULL ELSE + ( - ( + + 29 ) ) * 93 + ( + 19 ) * - 11 END THEN NULL ELSE + MIN ( ALL + 44 ) END * + 34 AS col0
----
1496

query I rowsort
SELECT ALL + ( + 36 ) * + 24 * 76 * - - 12
----
787968

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT 4 * + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT 4 * + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT - CASE - - COUNT( DISTINCT + - COALESCE ( 5, - - 62 * - - 75 ) ) WHEN 86 THEN + 35 WHEN 16 + + 78 THEN NULL ELSE ( + - 76 ) * + 96 + + - 51 END * + 48 - 98 AS col2
----
352558

skipif mysql # not compatible
query I rowsort label-2979
SELECT - CASE - - COUNT ( DISTINCT + - COALESCE ( 5, - - 62 * - - 75 ) ) WHEN 86 THEN + 35 WHEN 16 + + 78 THEN NULL ELSE ( + - 76 ) * + 96 + + - 51 END * + 48 - 98 AS col2
----
352558

query I rowsort
SELECT 40 * 46
----
1840

query I rowsort
SELECT 76 * 89 AS col1
----
6764

query II rowsort
SELECT 12 * + + 35 - + 77 - - + 28, 78 AS col1
----
371
78

query II rowsort
SELECT 82 * + - 60 AS col2, + ( - 56 ) AS col1
----
-4920
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2984
SELECT ALL 91 DIV + 32 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL 91 / + 32 AS col1
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT + 21 * ( - 82 ) * + MAX( - - 67 ) * 13 - 1 - - + 98 + CASE ( - + COUNT( * ) ) WHEN COUNT( * ) THEN NULL WHEN - 16 THEN + - 65 ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT + 21 * ( - 82 ) * + MAX ( - - 67 ) * 13 - 1 - - + 98 + CASE ( - + COUNT ( * ) ) WHEN COUNT ( * ) THEN NULL WHEN - 16 THEN + - 65 ELSE NULL END * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2987
SELECT ALL 56 * CAST( + 77 AS SIGNED )
----
4312

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL 56 * CAST ( + 77 AS INTEGER )
----
4312

onlyif mysql # aggregate syntax: 
query II rowsort label-2988
SELECT 26 + - 26 AS col1, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-2988
SELECT 26 + - 26 AS col1, COUNT ( * ) AS col0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT ALL 4 + MIN( + + 85 )
----
89

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL 4 + MIN ( + + 85 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT - - SUM( 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2990
SELECT - - SUM ( 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2991
SELECT COUNT( * ) DIV 37 AS col1, - COUNT( * ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-2991
SELECT COUNT ( * ) / 37 AS col1, - COUNT ( * ) AS col2
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL + ( - + COUNT( * ) ) + + - 84 * - SUM( ALL + 75 ) AS col1
----
6299

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL + ( - + COUNT ( * ) ) + + - 84 * - SUM ( ALL + 75 ) AS col1
----
6299

onlyif mysql # DIV for integer division: 
query II rowsort label-2993
SELECT DISTINCT - 84 DIV - 26 AS col0, - 21
----
3
-21

skipif mysql # not compatible
query II rowsort label-2993
SELECT DISTINCT - 84 / - 26 AS col0, - 21
----
3
-21

query II rowsort
SELECT 96 + - 55 AS col0, 61
----
41
61

query I rowsort
SELECT - 51 + 9 + + 83 AS col1
----
41

query I rowsort
SELECT DISTINCT + 91 + 35
----
126

query I rowsort
SELECT ALL - 32 + - 72 col0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - CASE 59 WHEN - + 28 * + 19 + 24 THEN 73 + - ( MIN( DISTINCT - - 72 ) ) ELSE + 65 END
----
-65

skipif mysql # not compatible
query I rowsort label-2998
SELECT - CASE 59 WHEN - + 28 * + 19 + 24 THEN 73 + - ( MIN ( DISTINCT - - 72 ) ) ELSE + 65 END
----
-65

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

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

query I rowsort
SELECT 44 * 85 AS col0
----
3740

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL - 72 - + MIN( ALL + 40 ) col0
----
-112

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL - 72 - + MIN ( ALL + 40 ) col0
----
-112

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

query I rowsort
SELECT ALL ( - 60 ) - - - 70
----
-130

query I rowsort
SELECT 47 - - - 80
----
-33

query II rowsort
SELECT 50 * + 91 * 98 AS col1, 22
----
445900
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT MIN( + 31 ) + SUM( DISTINCT - - 68 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-3006
SELECT MIN ( + 31 ) + SUM ( DISTINCT - - 68 ) AS col2
----
99

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

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

query I rowsort
SELECT 37 + + ( - - 79 ) AS col2
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-3009
SELECT DISTINCT + 8 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT + 8 / - 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3010
SELECT 17 * + ( - CAST( + COUNT( * ) AS SIGNED ) ) + - + COALESCE ( + 4, + + 39 ) - + + 59, ( + - 40 ) AS col2
----
-80
-40

skipif mysql # not compatible
query II rowsort label-3010
SELECT 17 * + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) + - + COALESCE ( + 4, + + 39 ) - + + 59, ( + - 40 ) AS col2
----
-80
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3011
SELECT ALL + CAST( NULL AS DECIMAL ) / - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL + CAST ( NULL AS REAL ) / - 98 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3012
SELECT 66 + + + 30 * - + 62 AS col2, + 15 * + 52 + 5 + - - 13 - - 79 + + + CAST( 6 AS SIGNED )
----
-1794
883

skipif mysql # not compatible
query II rowsort label-3012
SELECT 66 + + + 30 * - + 62 AS col2, + 15 * + 52 + 5 + - - 13 - - 79 + + + CAST ( 6 AS INTEGER )
----
-1794
883

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT ALL 9 * - ( + COUNT( * ) ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL 9 * - ( + COUNT ( * ) ) col0
----
-9

query I rowsort
SELECT DISTINCT + 8 * + - 46 AS col1
----
-368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3015
SELECT ALL - 54 + + + COALESCE ( 29, - CAST( NULL AS SIGNED ) )
----
-25

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL - 54 + + + COALESCE ( 29, - CAST ( NULL AS INTEGER ) )
----
-25

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3017
SELECT DISTINCT - 36 + + 80 * - 4 AS col0, COALESCE ( + CAST( NULL AS SIGNED ), + - 92 ) col1
----
-356
-92

skipif mysql # not compatible
query II rowsort label-3017
SELECT DISTINCT - 36 + + 80 * - 4 AS col0, COALESCE ( + CAST ( NULL AS INTEGER ), + - 92 ) col1
----
-356
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3018
SELECT + 75 AS col2, MAX( - 19 )
----
75
-19

skipif mysql # not compatible
query II rowsort label-3018
SELECT + 75 AS col2, MAX ( - 19 )
----
75
-19

query I rowsort
SELECT ALL - 18 + + + 8 col2
----
-10

query I rowsort
SELECT + COALESCE ( - 17, + 32 ) + + 5 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL - 88 + + - COUNT( * ) col1
----
-89

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL - 88 + + - COUNT ( * ) col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3022
SELECT + 85 * + + 53 + + - 4 + - + 80 - - 37 + + 98 * SUM( ALL CAST( - 78 AS SIGNED ) ) * - 33 * 93 AS col0
----
23463894

skipif mysql # not compatible
query I rowsort label-3022
SELECT + 85 * + + 53 + + - 4 + - + 80 - - 37 + + 98 * SUM ( ALL CAST ( - 78 AS INTEGER ) ) * - 33 * 93 AS col0
----
23463894

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL - MIN( + - 3 ) + - 69
----
-66

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL - MIN ( + - 3 ) + - 69
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3024
SELECT DISTINCT + SUM( + COALESCE ( 53, + - 91 + - CAST( NULL AS SIGNED ) * - 6, + 26 * - 54 ) )
----
53

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT + SUM ( + COALESCE ( 53, + - 91 + - CAST ( NULL AS INTEGER ) * - 6, + 26 * - 54 ) )
----
53

query I rowsort
SELECT DISTINCT + 55 + + - 50 col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL COALESCE ( + - COUNT( * ), + 1 * + COUNT( * ) * - - NULLIF ( - 84, - ( 58 ) ) + - + 57, + + 63 ) + + 0 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL COALESCE ( + - COUNT ( * ), + 1 * + COUNT ( * ) * - - NULLIF ( - 84, - ( 58 ) ) + - + 57, + + 63 ) + + 0 AS col0
----
-1

query I rowsort
SELECT 41 * 29
----
1189

query I rowsort
SELECT ALL + 6 * - 51 - + 43
----
-349

query I rowsort
SELECT DISTINCT - 95 + - - ( 22 )
----
-73

query II rowsort
SELECT - + 74 AS col2, 41
----
-74
41

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

skipif mysql # not compatible
query I rowsort label-3031
SELECT MIN ( + + 32 )
----
32

query I rowsort
SELECT ALL + 61 - + 7 AS col0
----
54

query I rowsort
SELECT DISTINCT - ( 63 )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3034
SELECT ALL CASE 12 WHEN + COALESCE ( 67, - - SUM( ALL + 90 ) + - MAX( + - 16 ) + - 77 + + - 24 * + 13 ) * COUNT( * ) THEN NULL ELSE - - 57 - + 31 + + CASE WHEN ( + 79 ) < CASE - 87 WHEN COUNT( * ) + + 55 THEN - ( 54 ) ELSE + 21 DIV + 40 END * 81 + MIN( + 0 + 59 ) THEN - 85 DIV 30 END * 87 END - - ( - ( 5 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL CASE 12 WHEN + COALESCE ( 67, - - SUM ( ALL + 90 ) + - MAX ( + - 16 ) + - 77 + + - 24 * + 13 ) * COUNT ( * ) THEN NULL ELSE - - 57 - + 31 + + CASE WHEN ( + 79 ) < CASE - 87 WHEN COUNT ( * ) + + 55 THEN - ( 54 ) ELSE + 21 / + 40 END * 81 + MIN ( + 0 + 59 ) THEN - 85 / 30 END * 87 END - - ( - ( 5 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3035
SELECT DISTINCT - 79 DIV MAX( DISTINCT - 73 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT - 79 / MAX ( DISTINCT - 73 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT + CASE - 24 WHEN - 75 * - ( - NULLIF ( - + 1, - NULLIF ( + SUM( + ( + + 36 ) ), 26 ) ) ) THEN 67 * + - SUM( + 72 ) WHEN + - 4 THEN NULL ELSE + + COUNT( * ) - 58 END + 6 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-3036
SELECT + CASE - 24 WHEN - 75 * - ( - NULLIF ( - + 1, - NULLIF ( + SUM ( + ( + + 36 ) ), 26 ) ) ) THEN 67 * + - SUM ( + 72 ) WHEN + - 4 THEN NULL ELSE + + COUNT ( * ) - 58 END + 6 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT DISTINCT + COUNT( - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT + COUNT ( - 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT CASE 52 WHEN + - COALESCE ( + + 69, + - COALESCE ( - 9, + 59 + - 99 ) ) THEN - 78 * COALESCE ( + 71, - 25 ) + - MIN( 73 ) WHEN - NULLIF ( + SUM( ALL - 31 ), 1 ) THEN 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT CASE 52 WHEN + - COALESCE ( + + 69, + - COALESCE ( - 9, + 59 + - 99 ) ) THEN - 78 * COALESCE ( + 71, - 25 ) + - MIN ( 73 ) WHEN - NULLIF ( + SUM ( ALL - 31 ), 1 ) THEN 61 END
----
NULL

query I rowsort
SELECT 94 * + 97 + + - 65 + 69 * ( + 76 ) + + 6 * + + 53 AS col2
----
14615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3040
SELECT + COUNT( * ) * - CASE + - 30 WHEN 16 THEN + + 6 + + - 2 END * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3040
SELECT + COUNT ( * ) * - CASE + - 30 WHEN 16 THEN + + 6 + + - 2 END * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL NULLIF ( - + 27, COUNT( * ) + - COUNT( * ) + - MIN( DISTINCT + - 0 ) ) * + + 25 AS col0
----
-675

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL NULLIF ( - + 27, COUNT ( * ) + - COUNT ( * ) + - MIN ( DISTINCT + - 0 ) ) * + + 25 AS col0
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL 57 * - + 6 + + COUNT( DISTINCT + 56 ) + 42 * - 37
----
-1895

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL 57 * - + 6 + + COUNT ( DISTINCT + 56 ) + 42 * - 37
----
-1895

query I rowsort
SELECT ALL 51 * - 99 + 9
----
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT DISTINCT 20 * - 50 + - COUNT( * )
----
-1001

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT 20 * - 50 + - COUNT ( * )
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT NULLIF ( 51, + + 19 * 89 * + MIN( ALL 77 ) * + CASE + + 70 WHEN NULLIF ( MIN( + ( 17 ) ), - 75 * + 34 ) - - COUNT( * ) * - 23 * ( + 13 ) + 8 THEN NULL ELSE + 96 END + ( 46 ) * + 68 )
----
51

skipif mysql # not compatible
query I rowsort label-3045
SELECT NULLIF ( 51, + + 19 * 89 * + MIN ( ALL 77 ) * + CASE + + 70 WHEN NULLIF ( MIN ( + ( 17 ) ), - 75 * + 34 ) - - COUNT ( * ) * - 23 * ( + 13 ) + 8 THEN NULL ELSE + 96 END + ( 46 ) * + 68 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL + 94 * + 54 + - 24 + CASE + 34 WHEN - ( - 0 ) * + - COUNT( * ) + + + 11 THEN + + CASE + 66 WHEN - + SUM( DISTINCT - 19 ) * 79 THEN - + 60 * 89 WHEN + 89 THEN + 26 + + ( 23 - + 99 ) ELSE + COUNT( * ) END * + 99 + + 70 * NULLIF ( + 67, 37 / + 73 ) WHEN + 51 * - COUNT( + 42 ) THEN NULL ELSE NULL END + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL + 94 * + 54 + - 24 + CASE + 34 WHEN - ( - 0 ) * + - COUNT ( * ) + + + 11 THEN + + CASE + 66 WHEN - + SUM ( DISTINCT - 19 ) * 79 THEN - + 60 * 89 WHEN + 89 THEN + 26 + + ( 23 - + 99 ) ELSE + COUNT ( * ) END * + 99 + + 70 * NULLIF ( + 67, 37 / + 73 ) WHEN + 51 * - COUNT ( + 42 ) THEN NULL ELSE NULL END + 88 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( + - 81, + - 27 ) AS col1
----
-81

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3049
SELECT - 44 / - CASE - 28 WHEN COUNT( DISTINCT + + 58 ) + COUNT( * ) * + 18 THEN NULL WHEN - AVG ( ALL + + ( - 51 ) ) THEN - 65 / - CAST( NULL AS SIGNED ) * - AVG ( DISTINCT - 64 ) * - ( + 58 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT - 44 / - CASE - 28 WHEN COUNT ( DISTINCT + + 58 ) + COUNT ( * ) * + 18 THEN NULL WHEN - AVG ( ALL + + ( - 51 ) ) THEN - 65 / - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT - 64 ) * - ( + 58 ) END
----
NULL

query I rowsort
SELECT ALL + - 27 * + + 31
----
-837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3051
SELECT DISTINCT + COUNT( + 36 ) DIV - 50 * 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT + COUNT ( + 36 ) / - 50 * 76 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT - + COUNT( ALL 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-3052
SELECT - + COUNT ( ALL 97 )
----
-1

query I rowsort
SELECT DISTINCT - 99 - + 93 AS col1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL - + ( - 3 ) - - 26 + + 31 * - ( MIN( ALL - 86 ) ) * + 94 * - COUNT( ALL 68 ) AS col2
----
-250575

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL - + ( - 3 ) - - 26 + + 31 * - ( MIN ( ALL - 86 ) ) * + 94 * - COUNT ( ALL 68 ) AS col2
----
-250575

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3055
SELECT + 85, 92 * + CAST( NULL AS SIGNED ) AS col1
----
85
NULL

skipif mysql # not compatible
query II rowsort label-3055
SELECT + 85, 92 * + CAST ( NULL AS INTEGER ) AS col1
----
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT - - COUNT( * ) + - 43 - + 50 * + 93 * - + 31 AS col2
----
144108

skipif mysql # not compatible
query I rowsort label-3056
SELECT - - COUNT ( * ) + - 43 - + 50 * + 93 * - + 31 AS col2
----
144108

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

skipif mysql # not compatible
query I rowsort label-3057
SELECT + CAST ( + + 41 AS INTEGER ) * COUNT ( * )
----
41

query II rowsort
SELECT - 19 col0, + 80 AS col1
----
-19
80

query I rowsort
SELECT ALL - 30 - 68 AS col2
----
-98

query I rowsort
SELECT DISTINCT + 40 col0
----
40

query II rowsort
SELECT ALL 81 AS col0, 35 * - + 69 AS col2
----
81
-2415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3062
SELECT + - 44 * 21 DIV - MAX( DISTINCT 70 ) col0
----
13

skipif mysql # not compatible
query I rowsort label-3062
SELECT + - 44 * 21 / - MAX ( DISTINCT 70 ) col0
----
13

query I rowsort
SELECT + + 69 + + 95 AS col1
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( + ( 62 ) AS SIGNED ) * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( + ( 62 ) AS INTEGER ) * + 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3065
SELECT + 17 + - - CAST( - ( - - COUNT( * ) ) AS SIGNED ) - + 55 DIV - ( + - ( 72 ) )
----
16

skipif mysql # not compatible
query I rowsort label-3065
SELECT + 17 + - - CAST ( - ( - - COUNT ( * ) ) AS INTEGER ) - + 55 / - ( + - ( 72 ) )
----
16

query I rowsort
SELECT DISTINCT 81 * - 59 AS col0
----
-4779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3067
SELECT - CAST( + - NULLIF ( 87, COUNT( * ) ) AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-3067
SELECT - CAST ( + - NULLIF ( 87, COUNT ( * ) ) AS INTEGER )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3068
SELECT + COALESCE ( + COUNT( * ), + 48 * + + 29 + + 17 * 96 ) * + + 91 AS col1, 12 + + 86 AS col0
----
91
98

skipif mysql # not compatible
query II rowsort label-3068
SELECT + COALESCE ( + COUNT ( * ), + 48 * + + 29 + + 17 * 96 ) * + + 91 AS col1, 12 + + 86 AS col0
----
91
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT ALL 72 DIV 93 + + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL 72 / 93 + + - 1
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT DISTINCT CAST( NULL AS SIGNED ) / 87 * + - 85 + + 32 * + + ( 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 87 * + - 85 + + 32 * + + ( 26 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT + COUNT( * ) * - 56 + - 47 - + 83
----
-186

skipif mysql # not compatible
query I rowsort label-3072
SELECT + COUNT ( * ) * - 56 + - 47 - + 83
----
-186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT ALL 22 DIV + - COUNT( * ) + 12 - + 65 * - 94 AS col2
----
6100

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL 22 / + - COUNT ( * ) + 12 - + 65 * - 94 AS col2
----
6100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3074
SELECT CAST( - ( - 9 ) AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-3074
SELECT CAST ( - ( - 9 ) AS INTEGER )
----
9

query I rowsort
SELECT + 56 + + ( 12 )
----
68

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3077
SELECT ALL 34 DIV + - 89 + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL 34 / + - 89 + 58 AS col2
----
58

query I rowsort
SELECT - 38 - + + NULLIF ( - + CASE - + 58 WHEN + 42 + + 49 + 9 THEN - 25 END, - + 72 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT DISTINCT 33 * - - 27 - COUNT( * )
----
890

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT 33 * - - 27 - COUNT ( * )
----
890

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3082
SELECT DISTINCT - COUNT( DISTINCT - + 38 ) AS col0, 85 + + 97
----
-1
182

skipif mysql # not compatible
query II rowsort label-3082
SELECT DISTINCT - COUNT ( DISTINCT - + 38 ) AS col0, 85 + + 97
----
-1
182

query I rowsort
SELECT - 31 + + 66
----
35

query II rowsort
SELECT + 40 + - 21 AS col0, 83 * + 77 + + + 97 col1
----
19
6488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3085
SELECT ALL NULLIF ( + COALESCE ( + - 84, 58 DIV 2 * - 8, + 29 DIV + SUM( - 14 ) + - 43, + 42 DIV + 60 * 5 + CAST( NULL AS SIGNED ) * - 12 DIV CAST( - 73 AS SIGNED ) + - 84 ), - NULLIF ( COALESCE ( 42, - 6 * 71 ), 98 ) ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL NULLIF ( + COALESCE ( + - 84, 58 / 2 * - 8, + 29 / + SUM ( - 14 ) + - 43, + 42 / + 60 * 5 + CAST ( NULL AS INTEGER ) * - 12 / CAST ( - 73 AS INTEGER ) + - 84 ), - NULLIF ( COALESCE ( 42, - 6 * 71 ), 98 ) ) col2
----
-84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT ALL - - COALESCE ( 95, - 34 ) DIV - 17
----
-5

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - - COALESCE ( 95, - 34 ) / - 17
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3088
SELECT + 6 DIV + + 22 * 41 * - 81 col1
----
0

skipif mysql # not compatible
query I rowsort label-3088
SELECT + 6 / + + 22 * 41 * - 81 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT DISTINCT - 51 * - ( + 1 ) DIV + 56 * + - 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT - 51 * - ( + 1 ) / + 56 * + - 21 AS col2
----
0

query I rowsort
SELECT DISTINCT + 60 * + 28
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT CASE 61 WHEN - COUNT( * ) THEN NULL WHEN - - ( 0 ) * - 52 THEN NULL ELSE - - 2 * 11 + 95 + + + 30 + - + 6 END * 48
----
6768

skipif mysql # not compatible
query I rowsort label-3091
SELECT CASE 61 WHEN - COUNT ( * ) THEN NULL WHEN - - ( 0 ) * - 52 THEN NULL ELSE - - 2 * 11 + 95 + + + 30 + - + 6 END * 48
----
6768

query I rowsort
SELECT ALL + 21 + - 79 * - 78
----
6183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3093
SELECT ALL - 67 + - CASE - 54 WHEN + COUNT( ALL - ( 55 ) ) * - 24 * - 27 + 56 + + + 49 + - 88 THEN 97 * 19 * + + 40 + - - CAST( + 0 AS SIGNED ) ELSE - - 78 * - + ( 96 ) + 53 * COALESCE ( + 20 - 8, 14 * - 73, - 58 * + 93 ) + 80 END AS col1
----
6705

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL - 67 + - CASE - 54 WHEN + COUNT ( ALL - ( 55 ) ) * - 24 * - 27 + 56 + + + 49 + - 88 THEN 97 * 19 * + + 40 + - - CAST ( + 0 AS INTEGER ) ELSE - - 78 * - + ( 96 ) + 53 * COALESCE ( + 20 - 8, 14 * - 73, - 58 * + 93 ) + 80 END AS col1
----
6705

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT COUNT( DISTINCT 5 ) * - 76 + + - 28 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-3094
SELECT COUNT ( DISTINCT 5 ) * - 76 + + - 28 AS col1
----
-104

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

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

query II rowsort
SELECT - 92 col2, + 62 AS col0
----
-92
62

query I rowsort
SELECT ALL + 22 + + 80 + - 11 AS col1
----
91

query I rowsort
SELECT ALL - 67 + + 64
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3099
SELECT ALL 86 + - - 81 + - 51 + 71 + ( COUNT( * ) ) * - CASE - MIN( DISTINCT - 92 ) WHEN + 47 - + COALESCE ( + 33, 64, 71 ) THEN + 44 END * - + COUNT( * ), - 96 AS col0
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-3099
SELECT ALL 86 + - - 81 + - 51 + 71 + ( COUNT ( * ) ) * - CASE - MIN ( DISTINCT - 92 ) WHEN + 47 - + COALESCE ( + 33, 64, 71 ) THEN + 44 END * - + COUNT ( * ), - 96 AS col0
----
NULL
-96

query II rowsort
SELECT DISTINCT + 49 + + 18 * - + 52 AS col0, 49 AS col0
----
-887
49

query I rowsort
SELECT 91 + 24
----
115

query I rowsort
SELECT + 5 * 9 - - ( 85 ) col2
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-3103
SELECT ALL - NULLIF ( 8, + 71 ), 23 * COUNT( * ) + + + 70 AS col2
----
-8
93

skipif mysql # not compatible
query II rowsort label-3103
SELECT ALL - NULLIF ( 8, + 71 ), 23 * COUNT ( * ) + + + 70 AS col2
----
-8
93

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

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

query I rowsort
SELECT ALL 50 + + 12 col1
----
62

query I rowsort
SELECT ALL 27 * + 99
----
2673

onlyif mysql # DIV for integer division: 
query I rowsort label-3107
SELECT 81 DIV 28
----
2

skipif mysql # not compatible
query I rowsort label-3107
SELECT 81 / 28
----
2

query I rowsort
SELECT DISTINCT - 78 * - 65 AS col1
----
5070

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT ALL COALESCE ( 2, + + 30 ) - 10 + - COUNT( * ) + 42
----
33

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL COALESCE ( 2, + + 30 ) - 10 + - COUNT ( * ) + 42
----
33

query I rowsort
SELECT DISTINCT + 14 * ( - 88 ) AS col2
----
-1232

query I rowsort
SELECT ALL - 36 col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT DISTINCT COUNT( * ) - - 21
----
22

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT COUNT ( * ) - - 21
----
22

query I rowsort
SELECT 47 * - 88 * - 56
----
231616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3114
SELECT + 79 / ( - COUNT( DISTINCT + + 34 ) ) * + 37 * 58 * - 86 / ( - 88 ) - 76 - + CAST( NULL AS SIGNED ) - + CASE + 53 WHEN ( - 73 ) * - 42 / + 31 THEN NULL WHEN - AVG ( DISTINCT 20 ) * + 59 THEN + 56 * 5 ELSE NULL END / ( 53 * 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT + 79 / ( - COUNT ( DISTINCT + + 34 ) ) * + 37 * 58 * - 86 / ( - 88 ) - 76 - + CAST ( NULL AS INTEGER ) - + CASE + 53 WHEN ( - 73 ) * - 42 / + 31 THEN NULL WHEN - AVG ( DISTINCT 20 ) * + 59 THEN + 56 * 5 ELSE NULL END / ( 53 * 70 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3115
SELECT - COUNT( * ) * - CASE 77 WHEN + COUNT( * ) THEN - - 4 WHEN + 60 * + CASE + 53 WHEN - 29 THEN NULL WHEN + COALESCE ( + + 37, - 47 * + 30, COUNT( * ) ) * - 73 - + NULLIF ( + 67, + - 41 + 53 ) - CASE CASE 18 WHEN 67 * + 9 THEN NULL WHEN + 50 THEN - 55 + + COUNT( * ) WHEN + 53 + 74 THEN + 74 * COALESCE ( 86, + 51 + ( - 1 ) * - 68, - SUM( - 6 ) + 97, + 72 ) ELSE 4 + 32 * + 70 END WHEN - CAST( ( 7 ) AS SIGNED ) THEN 23 - ( + ( 3 ) ) * 32 ELSE - AVG ( - 60 ) - + 47 * + CAST( + SUM( DISTINCT + 79 ) AS SIGNED ) END THEN + 63 * + 40 END * + COUNT( * ) THEN NULL ELSE NULL END * 50 + + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT - COUNT ( * ) * - CASE 77 WHEN + COUNT ( * ) THEN - - 4 WHEN + 60 * + CASE + 53 WHEN - 29 THEN NULL WHEN + COALESCE ( + + 37, - 47 * + 30, COUNT ( * ) ) * - 73 - + NULLIF ( + 67, + - 41 + 53 ) - CASE CASE 18 WHEN 67 * + 9 THEN NULL WHEN + 50 THEN - 55 + + COUNT ( * ) WHEN + 53 + 74 THEN + 74 * COALESCE ( 86, + 51 + ( - 1 ) * - 68, - SUM ( - 6 ) + 97, + 72 ) ELSE 4 + 32 * + 70 END WHEN - CAST ( ( 7 ) AS INTEGER ) THEN 23 - ( + ( 3 ) ) * 32 ELSE - AVG ( - 60 ) - + 47 * + CAST ( + SUM ( DISTINCT + 79 ) AS INTEGER ) END THEN + 63 * + 40 END * + COUNT ( * ) THEN NULL ELSE NULL END * 50 + + 47 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3116
SELECT - 47 * + 88 - - 41 * 6 DIV COALESCE ( + - 90, 56 * - - 41 * + 77 ) col0
----
-4138

skipif mysql # not compatible
query I rowsort label-3116
SELECT - 47 * + 88 - - 41 * 6 / COALESCE ( + - 90, 56 * - - 41 * + 77 ) col0
----
-4138

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT + COUNT( * ) * - 73 * + 27 * ( + 57 ) AS col0
----
-112347

skipif mysql # not compatible
query I rowsort label-3117
SELECT + COUNT ( * ) * - 73 * + 27 * ( + 57 ) AS col0
----
-112347

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3119
SELECT + 28 * 10 DIV + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3119
SELECT + 28 * 10 / + 16 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL - - 55 * - + 94 * - COUNT( * ) * 31 + - 16 * 52 * - 11 AS col0
----
169422

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - - 55 * - + 94 * - COUNT ( * ) * 31 + - 16 * 52 * - 11 AS col0
----
169422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3121
SELECT + 95 * - 19 - + ( + - ( + + 99 ) ) + - - 12 + CAST( NULL AS SIGNED ) + + - ( - 86 ) + ( - + 36 ) + + 55 + - 41 / 49 + + 35 - 93 * - 14 + - 95 * 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT + 95 * - 19 - + ( + - ( + + 99 ) ) + - - 12 + CAST ( NULL AS INTEGER ) + + - ( - 86 ) + ( - + 36 ) + + 55 + - 41 / 49 + + 35 - 93 * - 14 + - 95 * 22 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3122
SELECT - 71 * - 74 - + 27 AS col0, ( 99 ) + - COUNT( * ) + - ( 67 ) + - COUNT( * ) AS col1
----
5227
30

skipif mysql # not compatible
query II rowsort label-3122
SELECT - 71 * - 74 - + 27 AS col0, ( 99 ) + - COUNT ( * ) + - ( 67 ) + - COUNT ( * ) AS col1
----
5227
30

query II rowsort
SELECT 59 AS col1, + ( + 76 ) * 29 + + 76 - + + 71
----
59
2209

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

query I rowsort
SELECT ALL - + 88 + - 32 AS col0
----
-120

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3127
SELECT CAST( + - 56 AS SIGNED ) + + 10 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3127
SELECT CAST ( + - 56 AS INTEGER ) + + 10 AS col2
----
-46

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

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT ALL 63 + - - 39 * MAX( ALL + 35 ) AS col1
----
1428

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL 63 + - - 39 * MAX ( ALL + 35 ) AS col1
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT ALL + MIN( - 94 ) + + 14
----
-80

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL + MIN ( - 94 ) + + 14
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT 85 + - 24 * + 3 + + 84 + + - ( COUNT( * ) ) * + COUNT( * ) + + NULLIF ( - 91, + + 34 / - 67 ) + + 26 * + 75 col1
----
1955

skipif mysql # not compatible
query I rowsort label-3131
SELECT 85 + - 24 * + 3 + + 84 + + - ( COUNT ( * ) ) * + COUNT ( * ) + + NULLIF ( - 91, + + 34 / - 67 ) + + 26 * + 75 col1
----
1955

query I rowsort
SELECT DISTINCT + 9 * 69
----
621

query I rowsort
SELECT ALL - 91 * - - 39 * 68
----
-241332

query I rowsort
SELECT ALL + 36 + - - 25
----
61

query I rowsort
SELECT 81 + 68 + - 17 + 91 AS col2
----
223

query I rowsort
SELECT 84 * - 67
----
-5628

query I rowsort
SELECT 20 * - 56
----
-1120

query I rowsort
SELECT 91 + 20 + + 82 * 17
----
1505

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT ALL - 91 * 21 DIV 53
----
-36

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL - 91 * 21 / 53
----
-36

query I rowsort
SELECT ALL - ( + + COALESCE ( - - 82, 34, + - 61 ) ) AS col1
----
-82

query I rowsort
SELECT COALESCE ( 73, + 53 ) col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3142
SELECT DISTINCT MAX( ALL ( + - 17 ) ) * - 50 - - 4 * + CAST( - 99 AS SIGNED )
----
454

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT MAX ( ALL ( + - 17 ) ) * - 50 - - 4 * + CAST ( - 99 AS INTEGER )
----
454

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL 73 * 51 * MIN( DISTINCT 18 ) * - - 7
----
469098

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL 73 * 51 * MIN ( DISTINCT 18 ) * - - 7
----
469098

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT DISTINCT + MIN( 22 ) * 60 - + - MAX( + 39 ) col1
----
1359

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT + MIN ( 22 ) * 60 - + - MAX ( + 39 ) col1
----
1359

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3146
SELECT - + 89 * CASE - 64 WHEN - COUNT( * ) * 45 THEN 74 WHEN COALESCE ( + ( + 59 ), + CAST( NULL AS SIGNED ), - 97 * - CAST( - 6 AS DECIMAL ) + + 96 ) * 39 THEN + 85 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT - + 89 * CASE - 64 WHEN - COUNT ( * ) * 45 THEN 74 WHEN COALESCE ( + ( + 59 ), + CAST ( NULL AS INTEGER ), - 97 * - CAST ( - 6 AS REAL ) + + 96 ) * 39 THEN + 85 END AS col1
----
NULL

query I rowsort
SELECT - - 73 + - 1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3148
SELECT - COUNT( * ) * 7 DIV - - 99 + + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3148
SELECT - COUNT ( * ) * 7 / - - 99 + + ( - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT + COALESCE ( + + 26, 61, 79 ) - - COUNT( * ) col2
----
27

skipif mysql # not compatible
query I rowsort label-3149
SELECT + COALESCE ( + + 26, 61, 79 ) - - COUNT ( * ) col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT NULLIF ( ( - - 75 ), + 21 + COUNT( * ) + 69 ) / - + 90 - + CASE + 20 WHEN 27 THEN - 95 END * + 10 / - SUM( ALL - + 73 ) + 19 - - COUNT( * ) + - 98 * - - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT NULLIF ( ( - - 75 ), + 21 + COUNT ( * ) + 69 ) / - + 90 - + CASE + 20 WHEN 27 THEN - 95 END * + 10 / - SUM ( ALL - + 73 ) + 19 - - COUNT ( * ) + - 98 * - - 91 AS col2
----
NULL

query I rowsort
SELECT ALL - 17 * - ( + 7 ) + + 3 * + 99
----
416

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3153
SELECT + - 57 + - 98 col0, - 24 DIV - - COUNT( * )
----
-155
-24

skipif mysql # not compatible
query II rowsort label-3153
SELECT + - 57 + - 98 col0, - 24 / - - COUNT ( * )
----
-155
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT CASE + 80 WHEN COUNT( * ) + - MAX( DISTINCT + 33 ) THEN NULL ELSE - 84 END
----
-84

skipif mysql # not compatible
query I rowsort label-3154
SELECT CASE + 80 WHEN COUNT ( * ) + - MAX ( DISTINCT + 33 ) THEN NULL ELSE - 84 END
----
-84

query I rowsort
SELECT DISTINCT 80 + - 32
----
48

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

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

query I rowsort
SELECT + + 32 * - - 57
----
1824

query I rowsort
SELECT + - 21 * - + 27
----
567

query I rowsort
SELECT DISTINCT 47 + + + 59 AS col1
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3160
SELECT ALL CAST( + 87 AS SIGNED ) + + + 6 + MAX( DISTINCT - 71 ) + - 29 + 7 + COUNT( * ) * + + COALESCE ( 78, - - 1, + - NULLIF ( - 52, + - 91 ) ) * + + 50
----
3900

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL CAST ( + 87 AS INTEGER ) + + + 6 + MAX ( DISTINCT - 71 ) + - 29 + 7 + COUNT ( * ) * + + COALESCE ( 78, - - 1, + - NULLIF ( - 52, + - 91 ) ) * + + 50
----
3900

query I rowsort
SELECT + 58 * + 72
----
4176

query I rowsort
SELECT ALL 64 + 91 + + 58 AS col0
----
213

query I rowsort
SELECT DISTINCT 22 + - + 97 * - + 66 + + + 15
----
6439

onlyif mysql # aggregate syntax: 
query II rowsort label-3164
SELECT ALL 81 * + - 74 * - 74 AS col2, 82 + COALESCE ( + 32, 49 ) * + - 13 * + COUNT( ALL + + 23 ) * + + 26
----
443556
-10734

skipif mysql # not compatible
query II rowsort label-3164
SELECT ALL 81 * + - 74 * - 74 AS col2, 82 + COALESCE ( + 32, 49 ) * + - 13 * + COUNT ( ALL + + 23 ) * + + 26
----
443556
-10734

query I rowsort
SELECT ALL + 4 + + - 6 * 30
----
-176

onlyif mysql # aggregate syntax: 
query II rowsort label-3166
SELECT 95 AS col2, + COUNT( * ) + - 46 col1
----
95
-45

skipif mysql # not compatible
query II rowsort label-3166
SELECT 95 AS col2, + COUNT ( * ) + - 46 col1
----
95
-45

query I rowsort
SELECT DISTINCT 75 + 31 - + - 50 + + + 39 - 11 AS col1
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3168
SELECT - 45 + COUNT( * ) + + 40 + - CAST( NULL AS SIGNED ) / + 79 - 32 * - + 50 * 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT - 45 + COUNT ( * ) + + 40 + - CAST ( NULL AS INTEGER ) / + 79 - 32 * - + 50 * 24 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL COUNT( * ) - 5 col2
----
-4

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL COUNT ( * ) - 5 col2
----
-4

query I rowsort
SELECT + CASE + + 54 WHEN + 24 THEN NULL WHEN 55 THEN + 58 END - + 82 / 28 * - 72 / 78 AS col0
----
NULL

query I rowsort
SELECT + 68 - + 74
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3173
SELECT ALL 74 - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL 74 - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 14 * + 61
----
854

query I rowsort
SELECT ALL COALESCE ( - + 47, - + 47, - ( + 63 ) )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT - 62 DIV - + 81
----
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT - 62 / - + 81
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3177
SELECT ALL MAX( ALL - 95 ) DIV + 19 + - 59 + + 68 DIV - - ( 8 )
----
-56

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL MAX ( ALL - 95 ) / + 19 + - 59 + + 68 / - - ( 8 )
----
-56

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3179
SELECT ALL - AVG ( DISTINCT CAST( 24 AS SIGNED ) ) * - - MAX( CAST( NULL AS SIGNED ) ) + + COUNT( + ( + - 2 ) ) - - COUNT( DISTINCT - ( 92 ) ) * + - 5 - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - AVG ( DISTINCT CAST ( 24 AS INTEGER ) ) * - - MAX ( CAST ( NULL AS INTEGER ) ) + + COUNT ( + ( + - 2 ) ) - - COUNT ( DISTINCT - ( 92 ) ) * + - 5 - 10 AS col0
----
NULL

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

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

query I rowsort
SELECT - 83 * ( - ( 37 ) )
----
3071

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT DISTINCT - - 21 * - - SUM( + 99 ) + 26 + - + 9 + - SUM( 9 ) + + ( + ( + COUNT( * ) ) ) * + 39 * - + 11
----
1658

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT - - 21 * - - SUM ( + 99 ) + 26 + - + 9 + - SUM ( 9 ) + + ( + ( + COUNT ( * ) ) ) * + 39 * - + 11
----
1658

query I rowsort
SELECT - 50 * - + 55 * + 24
----
66000

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3189
SELECT 25 * CASE + COUNT( * ) WHEN 10 + - - 28 + + COUNT( 38 ) + 59 * + - 36 + + - 6 / + 66 THEN - - 54 * + 36 / - CAST( NULL AS SIGNED ) ELSE NULL END * - + 66 * 41 + + COALESCE ( + - 72, - COALESCE ( 87, 81 * - 68 + 16 ) + 21 ) - - 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT 25 * CASE + COUNT ( * ) WHEN 10 + - - 28 + + COUNT ( 38 ) + 59 * + - 36 + + - 6 / + 66 THEN - - 54 * + 36 / - CAST ( NULL AS INTEGER ) ELSE NULL END * - + 66 * 41 + + COALESCE ( + - 72, - COALESCE ( 87, 81 * - 68 + 16 ) + 21 ) - - 81 AS col2
----
NULL

query I rowsort
SELECT - 52 + + 62 col2
----
10

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3193
SELECT ALL + 7 AS col0, + 49 + + COUNT( * )
----
7
50

skipif mysql # not compatible
query II rowsort label-3193
SELECT ALL + 7 AS col0, + 49 + + COUNT ( * )
----
7
50

query I rowsort
SELECT - 66 + + 45 AS col0
----
-21

query I rowsort
SELECT DISTINCT + 12 * + - 58 AS col1
----
-696

query I rowsort
SELECT ALL 63 * + ( + + 22 ) + - 46 + 70
----
1410

query I rowsort
SELECT + ( + 37 ) * 70 + - 2 + 38 col2
----
2626

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

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

query I rowsort
SELECT COALESCE ( - - 55, + 64, - 35 ) * + - 74 - - 44 AS col2
----
-4026

onlyif mysql # aggregate syntax: 
query II rowsort label-3200
SELECT COUNT( * ), CASE 77 WHEN - + 6 + ( + COUNT( * ) ) * - 23 THEN MAX( - 25 ) * - 0 END + - + ( 57 ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3200
SELECT COUNT ( * ), CASE 77 WHEN - + 6 + ( + COUNT ( * ) ) * - 23 THEN MAX ( - 25 ) * - 0 END + - + ( 57 ) AS col1
----
1
NULL

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

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

query I rowsort
SELECT ALL 0 * 10 - - 66 AS col0
----
66

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

skipif mysql # not compatible
query II rowsort label-3203
SELECT - CAST ( NULL AS INTEGER ), + 16 AS col2
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT + COUNT( * ) + + 65 + + 61 + + COUNT( * ) AS col1
----
128

skipif mysql # not compatible
query I rowsort label-3204
SELECT + COUNT ( * ) + + 65 + + 61 + + COUNT ( * ) AS col1
----
128

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

skipif mysql # not compatible
query I rowsort label-3205
SELECT MIN ( + ( + - 26 ) )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3206
SELECT + CAST( - 4 AS SIGNED ) + - 45 * + 52 * - 77 DIV COUNT( * ) + - - 44 + - COUNT( DISTINCT - + 70 )
----
180219

skipif mysql # not compatible
query I rowsort label-3206
SELECT + CAST ( - 4 AS INTEGER ) + - 45 * + 52 * - 77 / COUNT ( * ) + - - 44 + - COUNT ( DISTINCT - + 70 )
----
180219

onlyif mysql # aggregate syntax: 
query II rowsort label-3207
SELECT ALL 99 AS col1, MIN( - ( 1 ) ) * + 19
----
99
-19

skipif mysql # not compatible
query II rowsort label-3207
SELECT ALL 99 AS col1, MIN ( - ( 1 ) ) * + 19
----
99
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-3208
SELECT ALL 52, - 9 + + 20 + - - COUNT( * ) + - COUNT( * ) * + ( + 81 ) * + COUNT( * ) * 36 AS col1
----
52
-2904

skipif mysql # not compatible
query II rowsort label-3208
SELECT ALL 52, - 9 + + 20 + - - COUNT ( * ) + - COUNT ( * ) * + ( + 81 ) * + COUNT ( * ) * 36 AS col1
----
52
-2904

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT + 86 * - COUNT( * ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-3209
SELECT + 86 * - COUNT ( * ) AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3210
SELECT DISTINCT MAX( ALL - + CAST( - CAST( + 54 AS SIGNED ) AS SIGNED ) ) * 88 AS col2
----
4752

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT MAX ( ALL - + CAST ( - CAST ( + 54 AS INTEGER ) AS INTEGER ) ) * 88 AS col2
----
4752

query I rowsort
SELECT ALL COALESCE ( 68, 94 ) col1
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT MIN( - 13 ) * + - 57 + - ( - 37 ) AS col1
----
778

skipif mysql # not compatible
query I rowsort label-3213
SELECT MIN ( - 13 ) * + - 57 + - ( - 37 ) AS col1
----
778

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3214
SELECT ( - MIN( ALL + 94 ) ) * - + 52 + + 20 + - - 81 DIV - COUNT( * ) + - 16 AS col0
----
4811

skipif mysql # not compatible
query I rowsort label-3214
SELECT ( - MIN ( ALL + 94 ) ) * - + 52 + + 20 + - - 81 / - COUNT ( * ) + - 16 AS col0
----
4811

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT DISTINCT MAX( ( 87 ) ) * 93 * COUNT( * )
----
8091

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT MAX ( ( 87 ) ) * 93 * COUNT ( * )
----
8091

query II rowsort
SELECT ALL 19 AS col2, 65 + COALESCE ( - 25, - + 65 )
----
19
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3217
SELECT 6 + 58 AS col1, + COUNT( * ) AS col0
----
64
1

skipif mysql # not compatible
query II rowsort label-3217
SELECT 6 + 58 AS col1, + COUNT ( * ) AS col0
----
64
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3218
SELECT + COALESCE ( + - COALESCE ( + CAST( 25 AS SIGNED ), + - COUNT( * ) ), 1 ) + 43 + - COUNT( * ) + 5, COUNT( * ) AS col0
----
22
1

skipif mysql # not compatible
query II rowsort label-3218
SELECT + COALESCE ( + - COALESCE ( + CAST ( 25 AS INTEGER ), + - COUNT ( * ) ), 1 ) + 43 + - COUNT ( * ) + 5, COUNT ( * ) AS col0
----
22
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT 24 + - COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3219
SELECT 24 + - COUNT ( * ) AS col1
----
23

query I rowsort
SELECT ALL - ( - 40 ) + - - 16
----
56

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

query I rowsort
SELECT 1 + 97 * - + 31
----
-3006

query I rowsort
SELECT ALL - 26 + + 67 * + 28 AS col2
----
1850

onlyif mysql # DIV for integer division: 
query I rowsort label-3224
SELECT 50 DIV 29 + - 75
----
-74

skipif mysql # not compatible
query I rowsort label-3224
SELECT 50 / 29 + - 75
----
-74

query I rowsort
SELECT ALL + 35 + - 7 * 67 AS col2
----
-434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3226
SELECT 40 + - 78 - + CAST( NULL AS SIGNED ) + - - ( - CASE WHEN NOT - 5 NOT IN ( + MAX( - 71 ) ) THEN NULL ELSE COUNT( * ) / - COUNT( * ) END ) * - COUNT( * ) * + 79 * - 89 AS col2, ( - 65 ) + ( - 99 ) AS col0
----
NULL
-164

skipif mysql # not compatible
query II rowsort label-3226
SELECT 40 + - 78 - + CAST ( NULL AS INTEGER ) + - - ( - CASE WHEN NOT - 5 NOT IN ( + MAX ( - 71 ) ) THEN NULL ELSE COUNT ( * ) / - COUNT ( * ) END ) * - COUNT ( * ) * + 79 * - 89 AS col2, ( - 65 ) + ( - 99 ) AS col0
----
NULL
-164

query I rowsort
SELECT - 23 + 9
----
-14

query I rowsort
SELECT DISTINCT + - 43 * + - ( - 86 )
----
-3698

query I rowsort
SELECT ALL - 74 + + - NULLIF ( - + 39, 98 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT COALESCE ( + 89, - 26, MAX( ALL + + 88 ) * + + 24 ) + + 13 * 98 * - 76 AS col2
----
-96735

skipif mysql # not compatible
query I rowsort label-3230
SELECT COALESCE ( + 89, - 26, MAX ( ALL + + 88 ) * + + 24 ) + + 13 * 98 * - 76 AS col2
----
-96735

query I rowsort
SELECT ALL + 99 + + + 28 + - + 42 AS col1
----
85

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

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL + - CAST ( 41 AS INTEGER ) + - ( + + CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT DISTINCT - - 29 AS col1, 66
----
29
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT ALL - + COALESCE ( + + 7, + 90 + NULLIF ( - 32, - - 0 ) * - - COUNT( * ) )
----
-7

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL - + COALESCE ( + + 7, + 90 + NULLIF ( - 32, - - 0 ) * - - COUNT ( * ) )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3235
SELECT DISTINCT - MAX( ALL + 47 ) - - CASE + 26 WHEN + 9 + - ( + COUNT( * ) ) THEN 67 END + + CAST( NULL AS SIGNED ), 31 + + + CASE 98 WHEN 73 THEN + 24 * - MIN( ALL 37 ) + + 22 + + 23 WHEN - COUNT( * ) THEN NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3235
SELECT DISTINCT - MAX ( ALL + 47 ) - - CASE + 26 WHEN + 9 + - ( + COUNT ( * ) ) THEN 67 END + + CAST ( NULL AS INTEGER ), 31 + + + CASE 98 WHEN 73 THEN + 24 * - MIN ( ALL 37 ) + + 22 + + 23 WHEN - COUNT ( * ) THEN NULL END
----
NULL
NULL

query I rowsort
SELECT 56 * - ( ( + - 68 ) ) AS col0
----
3808

query I rowsort
SELECT DISTINCT - ( 71 ) AS col1
----
-71

query I rowsort
SELECT ALL - 4 - 39 + + 22 + - 62 * ( + - 25 )
----
1529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3239
SELECT DISTINCT + COUNT( ALL - CAST( ( + 69 ) AS SIGNED ) ) * + + ( - 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT + COUNT ( ALL - CAST ( ( + 69 ) AS INTEGER ) ) * + + ( - 40 ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3240
SELECT COUNT( * ) + COALESCE ( - 99, - 88 DIV - - CAST( - 42 AS SIGNED ) * + MAX( DISTINCT ( + ( - 18 ) ) ) + + 49 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3240
SELECT COUNT ( * ) + COALESCE ( - 99, - 88 / - - CAST ( - 42 AS INTEGER ) * + MAX ( DISTINCT ( + ( - 18 ) ) ) + + 49 ) AS col2
----
-98

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

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

query I rowsort
SELECT ALL + 32 * + ( 13 ) * + - 36 AS col1
----
-14976

query I rowsort
SELECT ALL + 41 * - 17 col1
----
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT COUNT( * ) * + - ( - - 49 ) * + CASE + 84 WHEN - 17 * - - COUNT( * ) + - COUNT( * ) + - 76 THEN NULL WHEN + 61 THEN NULL WHEN + 80 THEN NULL ELSE - 28 END + NULLIF ( + 24, - COUNT( * ) * + 49 + MAX( - 37 ) ) * 56 AS col1
----
2716

skipif mysql # not compatible
query I rowsort label-3244
SELECT COUNT ( * ) * + - ( - - 49 ) * + CASE + 84 WHEN - 17 * - - COUNT ( * ) + - COUNT ( * ) + - 76 THEN NULL WHEN + 61 THEN NULL WHEN + 80 THEN NULL ELSE - 28 END + NULLIF ( + 24, - COUNT ( * ) * + 49 + MAX ( - 37 ) ) * 56 AS col1
----
2716

query I rowsort
SELECT DISTINCT 56 col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT 90 DIV + - ( - - 96 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3246
SELECT 90 / + - ( - - 96 ) col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT DISTINCT 79 DIV + + 58 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT 79 / + + 58 AS col1
----
1

query I rowsort
SELECT DISTINCT ( - 40 ) + + - 94
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT COUNT( * ) - + COUNT( * ) * - 81 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-3249
SELECT COUNT ( * ) - + COUNT ( * ) * - 81 AS col0
----
82

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

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

query II rowsort
SELECT ALL 88 + 43 AS col1, 71 * - 89 + 21 * - - 95 * - + 6 col1
----
131
-18289

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT ALL + 66 + + + 0 + 17 * - + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL + 66 + + + 0 + 17 * - + COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL 2 * - - NULLIF ( COUNT( * ), + 97 - - 41 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL 2 * - - NULLIF ( COUNT ( * ), + 97 - - 41 ) AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3254
SELECT DISTINCT - 97 + 1 * - + 99 DIV - - 19 + - 55 * - 70 DIV COUNT( * ) + + + 38 + - MIN( - + 86 ) col2
----
3872

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT - 97 + 1 * - + 99 / - - 19 + - 55 * - 70 / COUNT ( * ) + + + 38 + - MIN ( - + 86 ) col2
----
3872

query I rowsort
SELECT DISTINCT - 39 + - 57 col2
----
-96

onlyif mysql # aggregate syntax: 
query III rowsort label-3256
SELECT - SUM( DISTINCT - 7 ) AS col0, - COUNT( * ) AS col0, + - 44 AS col2
----
7
-1
-44

skipif mysql # not compatible
query III rowsort label-3256
SELECT - SUM ( DISTINCT - 7 ) AS col0, - COUNT ( * ) AS col0, + - 44 AS col2
----
7
-1
-44

query I rowsort
SELECT ALL - - 29
----
29

query I rowsort
SELECT 95 * - ( ( - - 27 ) ) AS col0
----
-2565

query I rowsort
SELECT + - 88
----
-88

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

query I rowsort
SELECT + 62 * + + 22 col1
----
1364

onlyif mysql # DIV for integer division: 
query I rowsort label-3262
SELECT ALL 31 DIV + + 45 * 54 - - 10
----
10

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL 31 / + + 45 * 54 - - 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL COUNT( * ) - 81 + - ( SUM( - 14 ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL COUNT ( * ) - 81 + - ( SUM ( - 14 ) ) AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3264
SELECT + 66 * CAST( NULL AS DECIMAL ) * + 58 * CASE 63 WHEN + 5 + + CASE + 99 WHEN 2 + - 39 + 71 + + 14 THEN NULL WHEN + COUNT( * ) / 21 THEN 46 * 15 + - 39 + - COALESCE ( + - COUNT( 43 ), 9 ) - - ( - 92 ) / COUNT( * ) END * CAST( NULL AS SIGNED ) THEN 39 WHEN 83 THEN NULL END * - 73 + - CAST( - 97 AS SIGNED ) + COUNT( - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT + 66 * CAST ( NULL AS REAL ) * + 58 * CASE 63 WHEN + 5 + + CASE + 99 WHEN 2 + - 39 + 71 + + 14 THEN NULL WHEN + COUNT ( * ) / 21 THEN 46 * 15 + - 39 + - COALESCE ( + - COUNT ( 43 ), 9 ) - - ( - 92 ) / COUNT ( * ) END * CAST ( NULL AS INTEGER ) THEN 39 WHEN 83 THEN NULL END * - 73 + - CAST ( - 97 AS INTEGER ) + COUNT ( - 54 )
----
NULL

query I rowsort
SELECT - 14 col1
----
-14

query I rowsort
SELECT ALL - 87 * + 87 + 17
----
-7552

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ( + 75 ) * 39 * - - ( - COUNT( * ) )
----
-2925

skipif mysql # not compatible
query I rowsort label-3267
SELECT ( + 75 ) * 39 * - - ( - COUNT ( * ) )
----
-2925

query I rowsort
SELECT 69 * + 90 AS col2
----
6210

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT ALL - COALESCE ( - 47, + 5, + ( - NULLIF ( COUNT( * ), - - 93 ) ) * + 82 + + 66, - COUNT( * ) + 0 )
----
47

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL - COALESCE ( - 47, + 5, + ( - NULLIF ( COUNT ( * ), - - 93 ) ) * + 82 + + 66, - COUNT ( * ) + 0 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3270
SELECT CAST( - - 65 AS SIGNED ) + - + 62 * + 98
----
-6011

skipif mysql # not compatible
query I rowsort label-3270
SELECT CAST ( - - 65 AS INTEGER ) + - + 62 * + 98
----
-6011

query I rowsort
SELECT ALL 99 * + + 22
----
2178

query II rowsort
SELECT 91 * 63 * - 79 AS col0, 59 AS col1
----
-452907
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3273
SELECT 94 + + + CAST( NULL AS SIGNED ) + + - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT 94 + + + CAST ( NULL AS INTEGER ) + + - 85 AS col2
----
NULL

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

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

query I rowsort
SELECT 4 * + 60 AS col2
----
240

onlyif mysql # aggregate syntax: 
query II rowsort label-3276
SELECT + 96, + 34 + - MAX( - - 75 ) + - ( + 52 ) * 36 AS col0
----
96
-1913

skipif mysql # not compatible
query II rowsort label-3276
SELECT + 96, + 34 + - MAX ( - - 75 ) + - ( + 52 ) * 36 AS col0
----
96
-1913

query I rowsort
SELECT ALL + ( - ( - + 75 ) ) * + - 62 + + 69
----
-4581

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT + COUNT( * ) + - 89 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3278
SELECT + COUNT ( * ) + - 89 AS col0
----
-88

query I rowsort
SELECT - 39 - 38 AS col2
----
-77

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

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

query I rowsort
SELECT - 9 + - 41
----
-50

query I rowsort
SELECT - 15 + + 42
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT ALL - 10 DIV + - 42 col1
----
0

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL - 10 / + - 42 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3284
SELECT ALL - 1 + 51 - + 21 AS col0, - ( COUNT( * ) )
----
29
-1

skipif mysql # not compatible
query II rowsort label-3284
SELECT ALL - 1 + 51 - + 21 AS col0, - ( COUNT ( * ) )
----
29
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT ALL CASE 11 WHEN + + 75 - + 29 + - + COUNT( * ) * + 50 * - - 5 THEN + + 57 / + 19 * 62 * + 53 * ( + 60 ) * + COUNT( * ) - - - 44 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL CASE 11 WHEN + + 75 - + 29 + - + COUNT ( * ) * + 50 * - - 5 THEN + + 57 / + 19 * 62 * + 53 * ( + 60 ) * + COUNT ( * ) - - - 44 END AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT - 55 + + 82 DIV 27 * 99 * - 57
----
-16984

skipif mysql # not compatible
query I rowsort label-3287
SELECT - 55 + + 82 / 27 * 99 * - 57
----
-16984

onlyif mysql # DIV for integer division: 
query I rowsort label-3288
SELECT - + 73 DIV - + 50
----
1

skipif mysql # not compatible
query I rowsort label-3288
SELECT - + 73 / - + 50
----
1

query II rowsort
SELECT 58, 47 + - + 49 * + 89 AS col0
----
58
-4314

query I rowsort
SELECT + 43 + + 60 AS col0
----
103

query I rowsort
SELECT ALL - 35 + - + 39 AS col1
----
-74

query I rowsort
SELECT - + 29 * 48 * - 93 + - 68 + 74
----
129462

query I rowsort
SELECT - - 23 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT - 5 + - + MAX( DISTINCT + - 92 ) * + + 0
----
-5

skipif mysql # not compatible
query I rowsort label-3294
SELECT - 5 + - + MAX ( DISTINCT + - 92 ) * + + 0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3295
SELECT DISTINCT NULLIF ( ( - + ( + 37 ) ), + - CAST( NULL AS DECIMAL ) ) - - + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT NULLIF ( ( - + ( + 37 ) ), + - CAST ( NULL AS REAL ) ) - - + COUNT ( * )
----
-36

query I rowsort
SELECT ALL 63 * - 57
----
-3591

query I rowsort
SELECT + + 72 + + 52 AS col2
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-3298
SELECT DISTINCT 20 * + 28 + - 28 DIV - 82 * + 79 AS col2
----
560

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT 20 * + 28 + - 28 / - 82 * + 79 AS col2
----
560

query I rowsort
SELECT ALL 97 * 15 + - 62 - - 51
----
1444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3300
SELECT ALL 29 * - CAST( + 16 AS SIGNED )
----
-464

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL 29 * - CAST ( + 16 AS INTEGER )
----
-464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3301
SELECT - 18 DIV - + 28 + - 14 + + ( - COALESCE ( - - 14, + CAST( NULL AS SIGNED ) ) ) + - 65 * - 68 + 4 + + COALESCE ( - 85, - 80 + + 64 + 11 + ( 98 ) DIV + + 7 ), + 57 * + 16 * 65 * - CASE - 30 WHEN + 93 DIV - 17 + + COUNT( * ) THEN NULL ELSE + 41 END + - 27 col1
----
4311
-2430507

skipif mysql # not compatible
query II rowsort label-3301
SELECT - 18 / - + 28 + - 14 + + ( - COALESCE ( - - 14, + CAST ( NULL AS INTEGER ) ) ) + - 65 * - 68 + 4 + + COALESCE ( - 85, - 80 + + 64 + 11 + ( 98 ) / + + 7 ), + 57 * + 16 * 65 * - CASE - 30 WHEN + 93 / - 17 + + COUNT ( * ) THEN NULL ELSE + 41 END + - 27 col1
----
4311
-2430507

query I rowsort
SELECT + + 11 + - 78
----
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT + - 75 * - SUM( ALL 1 ) - - 12 + - 95
----
-8

skipif mysql # not compatible
query I rowsort label-3304
SELECT + - 75 * - SUM ( ALL 1 ) - - 12 + - 95
----
-8

query I rowsort
SELECT DISTINCT + 23 col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL + COUNT( + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + COUNT ( + 39 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT + 45 * - + MAX( + - 71 ) col2
----
3195

skipif mysql # not compatible
query I rowsort label-3307
SELECT + 45 * - + MAX ( + - 71 ) col2
----
3195

query I rowsort
SELECT + 63 + + 40
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT + CASE + 80 WHEN 92 THEN - - 92 + + MIN( + 20 ) + - 49 ELSE 58 END
----
58

skipif mysql # not compatible
query I rowsort label-3309
SELECT + CASE + 80 WHEN 92 THEN - - 92 + + MIN ( + 20 ) + - 49 ELSE 58 END
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3310
SELECT - SUM( DISTINCT CAST( NULL AS SIGNED ) ) * + 9 + - 9 - - ( - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 9 + - 9 - - ( - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT ALL + MIN( + 58 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + MIN ( + 58 ) AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3312
SELECT + COALESCE ( - CASE 9 WHEN - + 88 THEN - 85 WHEN + COALESCE ( + - 63, 38 ) THEN - - 95 * + COUNT( * ) - - 65 ELSE 54 END, COUNT( * ) ) DIV + + NULLIF ( + 36, + 19 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3312
SELECT + COALESCE ( - CASE 9 WHEN - + 88 THEN - 85 WHEN + COALESCE ( + - 63, 38 ) THEN - - 95 * + COUNT ( * ) - - 65 ELSE 54 END, COUNT ( * ) ) / + + NULLIF ( + 36, + 19 ) AS col0
----
-1

query I rowsort
SELECT CASE + AVG ( ALL + 80 ) WHEN ( 53 ) THEN NULL ELSE + 48 + 58 + 10 END AS col0
----
116

query I rowsort
SELECT DISTINCT - 72 * + 13 + 19
----
-917

query I rowsort
SELECT ALL + 88 * 98 + - + 99
----
8525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT - CAST( + - 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-3316
SELECT - CAST ( + - 80 AS INTEGER )
----
80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3318
SELECT DISTINCT - SUM( + - 84 ) * + + COUNT( * ) + 43 DIV - - ( CAST( + 46 AS SIGNED ) ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT - SUM ( + - 84 ) * + + COUNT ( * ) + 43 / - - ( CAST ( + 46 AS INTEGER ) ) AS col1
----
84

query I rowsort
SELECT DISTINCT - 70 + - + 6 + - + 56 * 28 + 75
----
-1569

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3320
SELECT DISTINCT 96 + + 11 DIV - + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT 96 + + 11 / - + COUNT ( * )
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT + 44 + - 62 * - COUNT( + - NULLIF ( - + 75, 63 * - + 65 + - 42 + 70 ) ) * - 85
----
-5226

skipif mysql # not compatible
query I rowsort label-3322
SELECT + 44 + - 62 * - COUNT ( + - NULLIF ( - + 75, 63 * - + 65 + - 42 + 70 ) ) * - 85
----
-5226

query I rowsort
SELECT - - 44 * - 57
----
-2508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT ALL ( + - CAST( + 93 AS SIGNED ) )
----
-93

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL ( + - CAST ( + 93 AS INTEGER ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT - MIN( ALL - 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3325
SELECT - MIN ( ALL - 66 ) AS col2
----
66

query I rowsort
SELECT DISTINCT - 6 * 13 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT - ( 88 ) * + COUNT( - 8 ) * + 8 AS col1
----
-704

skipif mysql # not compatible
query I rowsort label-3327
SELECT - ( 88 ) * + COUNT ( - 8 ) * + 8 AS col1
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT - 94 - + 48 + + MAX( ( 89 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-3328
SELECT - 94 - + 48 + + MAX ( ( 89 ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT - ( + 60 ) * - + 53 * + + COUNT( * ) * + + 39 col1
----
124020

skipif mysql # not compatible
query I rowsort label-3331
SELECT - ( + 60 ) * - + 53 * + + COUNT ( * ) * + + 39 col1
----
124020

query I rowsort
SELECT ALL + 12 * + 53 AS col1
----
636

query I rowsort
SELECT - + 68 - + + 34 AS col0
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT + + 29 DIV 59 - 35 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3334
SELECT + + 29 / 59 - 35 AS col1
----
-35

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

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT + COUNT ( * ) / 54 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3336
SELECT - - 7 DIV ( + 60 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3336
SELECT - - 7 / ( + 60 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT + 80 DIV 7 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-3337
SELECT + 80 / 7 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT + COALESCE ( + 71, - 55 * + - 52 + + + 10 + COUNT( ( 24 ) ) )
----
71

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT + COALESCE ( + 71, - 55 * + - 52 + + + 10 + COUNT ( ( 24 ) ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT DISTINCT + ( + MIN( + 82 ) ) col2
----
82

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT + ( + MIN ( + 82 ) ) col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT ALL 45 * + CASE + 18 WHEN - 74 * + 16 + 13 + 68 THEN - 9 WHEN + 50 THEN + SUM( - 48 ) ELSE - ( + 10 ) END * + + 8
----
-3600

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL 45 * + CASE + 18 WHEN - 74 * + 16 + 13 + 68 THEN - 9 WHEN + 50 THEN + SUM ( - 48 ) ELSE - ( + 10 ) END * + + 8
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT + 83 * - + MIN( DISTINCT 27 ) + - COUNT( * ) + - - 46 * MAX( + 63 ) AS col2
----
656

skipif mysql # not compatible
query I rowsort label-3341
SELECT + 83 * - + MIN ( DISTINCT 27 ) + - COUNT ( * ) + - - 46 * MAX ( + 63 ) AS col2
----
656

query II rowsort
SELECT 73 AS col2, 33 AS col0
----
73
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT DISTINCT ( + COUNT( 41 ) ) + 21 * - 64 * - 25
----
33601

skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT ( + COUNT ( 41 ) ) + 21 * - 64 * - 25
----
33601

onlyif mysql # aggregate syntax: 
query II rowsort label-3344
SELECT ALL COUNT( + 77 ) + + 53 col0, + 29 AS col2
----
54
29

skipif mysql # not compatible
query II rowsort label-3344
SELECT ALL COUNT ( + 77 ) + + 53 col0, + 29 AS col2
----
54
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT ALL COUNT( DISTINCT 12 ) + + - 13 + COUNT( * ) + + 19 * + 11
----
198

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL COUNT ( DISTINCT 12 ) + + - 13 + COUNT ( * ) + + 19 * + 11
----
198

query II rowsort
SELECT 73 AS col0, - 71 col0
----
73
-71

query I rowsort
SELECT ALL 38 + 35 AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3348
SELECT 47 * - - CAST( 18 AS SIGNED ) - + ( + + 43 ) * - COALESCE ( + COALESCE ( 19, + MIN( ALL - 2 ), + 48 * + 43 ), - CAST( 38 AS SIGNED ) + 58, + 10 DIV + + 49, 69 ) * - COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3348
SELECT 47 * - - CAST ( 18 AS INTEGER ) - + ( + + 43 ) * - COALESCE ( + COALESCE ( 19, + MIN ( ALL - 2 ), + 48 * + 43 ), - CAST ( 38 AS INTEGER ) + 58, + 10 / + + 49, 69 ) * - COUNT ( * ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT COUNT( * ) + + 50
----
51

skipif mysql # not compatible
query I rowsort label-3349
SELECT COUNT ( * ) + + 50
----
51

query I rowsort
SELECT ALL ( + 15 ) * - ( + 99 )
----
-1485

query I rowsort
SELECT NULLIF ( - 52, + 63 ) * 92
----
-4784

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT DISTINCT 77 * + + ( - COUNT( ALL - 10 ) ) + + + 46 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT 77 * + + ( - COUNT ( ALL - 10 ) ) + + + 46 AS col0
----
-31

query I rowsort
SELECT ALL 95 * - 99
----
-9405

query I rowsort
SELECT 60 * 42 AS col2
----
2520

query I rowsort
SELECT ALL - 16 * + 64
----
-1024

query II rowsort
SELECT ALL 25 AS col1, - 14 AS col2
----
25
-14

query I rowsort
SELECT DISTINCT 79 - + 44 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT ALL NULLIF ( 13, + - COUNT( * ) * - - COUNT( * ) + 19 + - + 68 )
----
13

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL NULLIF ( 13, + - COUNT ( * ) * - - COUNT ( * ) + 19 + - + 68 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT 73 + - MIN( DISTINCT - - 29 )
----
44

skipif mysql # not compatible
query I rowsort label-3359
SELECT 73 + - MIN ( DISTINCT - - 29 )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3360
SELECT COUNT( * ) + + CASE + - 96 WHEN 16 THEN NULL WHEN - + 8 + 59 * 5 + COUNT( 44 ) THEN + + 0 END + - 4, - 1 AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3360
SELECT COUNT ( * ) + + CASE + - 96 WHEN 16 THEN NULL WHEN - + 8 + 59 * 5 + COUNT ( 44 ) THEN + + 0 END + - 4, - 1 AS col2
----
NULL
-1

query I rowsort
SELECT - 81 * + 21 * + 17
----
-28917

query I rowsort
SELECT - 50 * 44 + + 5
----
-2195

query I rowsort
SELECT ALL + 0 * + 73 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT + CASE + 57 WHEN 98 + - 70 * - 70 THEN 2 * + 28 * + + 99 WHEN - ( + 44 ) * + - 16 - - COUNT( * ) + - + 19 THEN NULL END + + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT + CASE + 57 WHEN 98 + - 70 * - 70 THEN 2 * + 28 * + + 99 WHEN - ( + 44 ) * + - 16 - - COUNT ( * ) + - + 19 THEN NULL END + + 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3365
SELECT - - 11 AS col0, COALESCE ( 6, - - 82 * COUNT( * ) )
----
11
6

skipif mysql # not compatible
query II rowsort label-3365
SELECT - - 11 AS col0, COALESCE ( 6, - - 82 * COUNT ( * ) )
----
11
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT - + SUM( - 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3366
SELECT - + SUM ( - 78 ) AS col2
----
78

query I rowsort
SELECT 42 + 58 AS col2
----
100

query I rowsort
SELECT ALL + 50 * - 34 AS col2
----
-1700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3369
SELECT + NULLIF ( + + COALESCE ( + COUNT( * ), + MAX( + - ( 91 ) ) ), + - CAST( AVG ( - - 10 ) AS SIGNED ) ) + - 48
----
-47

skipif mysql # not compatible
query I rowsort label-3369
SELECT + NULLIF ( + + COALESCE ( + COUNT ( * ), + MAX ( + - ( 91 ) ) ), + - CAST ( AVG ( - - 10 ) AS INTEGER ) ) + - 48
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL + 39 + + + ( - MAX( DISTINCT + 75 ) ) + + CASE - 71 WHEN COUNT( * ) * + 5 THEN 24 / - 96 / COUNT( * ) + + ( - - 68 ) + + + 86 * - 69 END + + MIN( ALL - - 66 ) + - COUNT( * ) * 15 / 86 * + MIN( - 68 ) * 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL + 39 + + + ( - MAX ( DISTINCT + 75 ) ) + + CASE - 71 WHEN COUNT ( * ) * + 5 THEN 24 / - 96 / COUNT ( * ) + + ( - - 68 ) + + + 86 * - 69 END + + MIN ( ALL - - 66 ) + - COUNT ( * ) * 15 / 86 * + MIN ( - 68 ) * 80 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT DISTINCT - - COUNT( DISTINCT + + 41 )
----
1

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT - - COUNT ( DISTINCT + + 41 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3372
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) + 67 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) + 67 AS col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT 78 * ( - - 16 ) + 97 DIV + 55
----
1249

skipif mysql # not compatible
query I rowsort label-3373
SELECT 78 * ( - - 16 ) + 97 / + 55
----
1249

query I rowsort
SELECT 10 * 37 AS col0
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT NULLIF ( - SUM( ALL - 92 ), - + 65 ) + 35
----
127

skipif mysql # not compatible
query I rowsort label-3375
SELECT NULLIF ( - SUM ( ALL - 92 ), - + 65 ) + 35
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT DISTINCT + 42 DIV - NULLIF ( + - 39, 0 )
----
1

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT + 42 / - NULLIF ( + - 39, 0 )
----
1

query I rowsort
SELECT DISTINCT + 70 + + 37
----
107

query II rowsort
SELECT + 50, - 58 col2
----
50
-58

query I rowsort
SELECT DISTINCT COALESCE ( + 56, + + ( + 67 ), NULLIF ( - 82, + 76 + 18 + - 95 * - - 64 * + 75 ) ) + - 19 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3380
SELECT DISTINCT + 97 + 61 AS col0, + 17 * - 8 - + 65 - - 19 * - CAST( NULL AS SIGNED ) AS col0
----
158
NULL

skipif mysql # not compatible
query II rowsort label-3380
SELECT DISTINCT + 97 + 61 AS col0, + 17 * - 8 - + 65 - - 19 * - CAST ( NULL AS INTEGER ) AS col0
----
158
NULL

query II rowsort
SELECT 45 AS col0, + 15
----
45
15

query I rowsort
SELECT ALL 44 - + + 46 * 24 col1
----
-1060

query II rowsort
SELECT + 16 AS col1, - 38 + + - 84
----
16
-122

query II rowsort
SELECT + 67 AS col0, 20 * + 25 * - - 20 * + ( - NULLIF ( - 40, 40 ) ) AS col1
----
67
400000

query I rowsort
SELECT ALL ( - + 47 ) - - 80
----
33

query I rowsort
SELECT 34 * 15
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT CASE + ( 15 ) WHEN 73 + 90 + + 80 * + + 41 * 63 THEN + + 8 ELSE NULL END * + COUNT( * ) - - 68 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT CASE + ( 15 ) WHEN 73 + 90 + + 80 * + + 41 * 63 THEN + + 8 ELSE NULL END * + COUNT ( * ) - - 68 col1
----
NULL

query II rowsort
SELECT 75, + 23 + - ( + NULLIF ( + - 41, + 68 ) ) + + 87 col2
----
75
151

onlyif mysql # aggregate syntax: 
query II rowsort label-3389
SELECT + + MIN( 30 ) AS col1, 78 * + 55 * + 23
----
30
98670

skipif mysql # not compatible
query II rowsort label-3389
SELECT + + MIN ( 30 ) AS col1, 78 * + 55 * + 23
----
30
98670

query II rowsort
SELECT ALL - + ( - 30 ), + 60 + 78 - - 15 AS col1
----
30
153

query I rowsort
SELECT 16 + - 46 AS col0
----
-30

query II rowsort
SELECT DISTINCT 14 AS col1, + 98
----
14
98

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

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

query II rowsort
SELECT - 70 col0, 88 AS col1
----
-70
88

query I rowsort
SELECT ALL ( + 69 ) AS col2
----
69

query II rowsort
SELECT + 3, - 39 AS col0
----
3
-39

query I rowsort
SELECT ALL - 6 * + 59
----
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT - COUNT( * ) * + 16 * + 89 * + 70 - 96 AS col2
----
-99776

skipif mysql # not compatible
query I rowsort label-3398
SELECT - COUNT ( * ) * + 16 * + 89 * + 70 - 96 AS col2
----
-99776

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

skipif mysql # not compatible
query I rowsort label-3399
SELECT AVG ( DISTINCT - ( - - CAST ( NULL AS INTEGER ) ) ) + + + 80 col1
----
NULL

query I rowsort
SELECT + 21 + 55 AS col1
----
76

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3402
SELECT ALL ( CASE NULLIF ( + ( 48 ), - 76 ) WHEN + + COALESCE ( - 21, + - ( + COUNT( * ) ), + MAX( - 37 ) ) THEN NULL ELSE + 17 * + 83 + + + 36 DIV + 85 END ) * - COUNT( * )
----
-1411

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL ( CASE NULLIF ( + ( 48 ), - 76 ) WHEN + + COALESCE ( - 21, + - ( + COUNT ( * ) ), + MAX ( - 37 ) ) THEN NULL ELSE + 17 * + 83 + + + 36 / + 85 END ) * - COUNT ( * )
----
-1411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3403
SELECT CASE + + 81 WHEN 82 / - 30 THEN 67 ELSE + 13 / + 50 * + - 71 * 13 END / - CAST( NULL AS SIGNED ) * - - 73 * + 43 * - - 92 * + + COUNT( * ) + - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT CASE + + 81 WHEN 82 / - 30 THEN 67 ELSE + 13 / + 50 * + - 71 * 13 END / - CAST ( NULL AS INTEGER ) * - - 73 * + 43 * - - 92 * + + COUNT ( * ) + - 47 AS col0
----
NULL

query I rowsort
SELECT 65 * - 94 * 21
----
-128310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3405
SELECT + CAST( + ( + 75 ) AS SIGNED ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-3405
SELECT + CAST ( + ( + 75 ) AS INTEGER ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3406
SELECT ALL MIN( ALL - 20 ) + 20 + - + 28, 89 AS col2
----
-28
89

skipif mysql # not compatible
query II rowsort label-3406
SELECT ALL MIN ( ALL - 20 ) + 20 + - + 28, 89 AS col2
----
-28
89

query I rowsort
SELECT DISTINCT + 21 + - - 42
----
63

query II rowsort
SELECT ALL - 63 + - 15, - 78 * + - 52 AS col0
----
-78
4056

query II rowsort
SELECT 1 AS col2, - 75 AS col1
----
1
-75

query I rowsort
SELECT ALL - 30 + - + 46 - - + 96 - + 47 * - 51 AS col0
----
2417

onlyif mysql # DIV for integer division: 
query II rowsort label-3411
SELECT - 75 DIV + 55 - + 29 col0, 78 DIV + - 79 AS col1
----
-30
0

skipif mysql # not compatible
query II rowsort label-3411
SELECT - 75 / + 55 - + 29 col0, 78 / + - 79 AS col1
----
-30
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT + 80 DIV - 34
----
-2

skipif mysql # not compatible
query I rowsort label-3412
SELECT + 80 / - 34
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3413
SELECT ALL + 29 * - 92 + + - 84 DIV - 73 - + 58 + 92 + + 55 col1, - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) * + + CAST( NULL AS SIGNED ) * + ( 62 ) + - 4
----
-2578
NULL

skipif mysql # not compatible
query II rowsort label-3413
SELECT ALL + 29 * - 92 + + - 84 / - 73 - + 58 + 92 + + 55 col1, - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + + CAST ( NULL AS INTEGER ) * + ( 62 ) + - 4
----
-2578
NULL

query I rowsort
SELECT DISTINCT + 38 * + + 75 * - - 11
----
31350

query I rowsort
SELECT ALL ( 94 ) * - ( + 91 ) - 91 AS col2
----
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT COALESCE ( - CASE 59 WHEN + COUNT( * ) * + 48 * + 40 THEN - ( - 53 ) END, - 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3416
SELECT COALESCE ( - CASE 59 WHEN + COUNT ( * ) * + 48 * + 40 THEN - ( - 53 ) END, - 78 ) AS col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3417
SELECT 84 DIV ( + 86 ) - COALESCE ( 12, - - 56 + + 32 + - MIN( - 40 ), + - CASE + COALESCE ( - 52, 64 ) WHEN - 18 THEN + 66 END ) * - 4 col1
----
48

skipif mysql # not compatible
query I rowsort label-3417
SELECT 84 / ( + 86 ) - COALESCE ( 12, - - 56 + + 32 + - MIN ( - 40 ), + - CASE + COALESCE ( - 52, 64 ) WHEN - 18 THEN + 66 END ) * - 4 col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3418
SELECT ALL - NULLIF ( 80, + CAST( + 52 AS DECIMAL ) * 11 + 19 + - MAX( + 77 ) / - 35 ) * - COUNT( * ) * 35
----
2800

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL - NULLIF ( 80, + CAST ( + 52 AS REAL ) * 11 + 19 + - MAX ( + 77 ) / - 35 ) * - COUNT ( * ) * 35
----
2800

query I rowsort
SELECT COALESCE ( + 37, + + 51 ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT 93 * - ( - - 78 ) + COUNT( * )
----
-7253

skipif mysql # not compatible
query I rowsort label-3420
SELECT 93 * - ( - - 78 ) + COUNT ( * )
----
-7253

query I rowsort
SELECT 84 * + + 72 + + - 20 AS col2
----
6028

query I rowsort
SELECT - 20 * 36 * + + 47 * + ( + 80 ) AS col0
----
-2707200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3423
SELECT - MAX( ALL + + 40 ) + + COUNT( * ) + - - 72 - + CAST( NULL AS DECIMAL ) * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT - MAX ( ALL + + 40 ) + + COUNT ( * ) + - - 72 - + CAST ( NULL AS REAL ) * + 34
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3425
SELECT ALL - 94 DIV + 47 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL - 94 / + 47 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT - 56 DIV - 91 * + 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3426
SELECT - 56 / - 91 * + 14 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT + 84 * 94 * - 49 + - CAST( NULL AS SIGNED ) + - 49 + 56 + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT + 84 * 94 * - 49 + - CAST ( NULL AS INTEGER ) + - 49 + 56 + 2
----
NULL

query I rowsort
SELECT ALL 0 * 43 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3429
SELECT - CASE 86 WHEN - 37 * + 59 / + + 74 + + + 11 + - + 68 + - NULLIF ( - COUNT( * ), + 24 * - MAX( ALL - 99 ) ) + + + 23 * - 73 THEN NULL WHEN + 41 + + + 16 THEN NULL ELSE - 15 * + + 73 + + 0 END * CAST( NULL AS SIGNED ) / COUNT( ALL + - CAST( NULL AS DECIMAL ) ), 71 + - + CASE - ( - + SUM( + 55 ) ) WHEN - 10 + 80 THEN - 25 WHEN + 13 THEN NULL ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3429
SELECT - CASE 86 WHEN - 37 * + 59 / + + 74 + + + 11 + - + 68 + - NULLIF ( - COUNT ( * ), + 24 * - MAX ( ALL - 99 ) ) + + + 23 * - 73 THEN NULL WHEN + 41 + + + 16 THEN NULL ELSE - 15 * + + 73 + + 0 END * CAST ( NULL AS INTEGER ) / COUNT ( ALL + - CAST ( NULL AS REAL ) ), 71 + - + CASE - ( - + SUM ( + 55 ) ) WHEN - 10 + 80 THEN - 25 WHEN + 13 THEN NULL ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT 30 * + 79 + 85 AS col1
----
2455

query I rowsort
SELECT - + 44 * - 17
----
748

query II rowsort
SELECT + + 39 * + + 94, 92 AS col2
----
3666
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT DISTINCT + COUNT( * ) + + ( - + 83 )
----
-82

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT + COUNT ( * ) + + ( - + 83 )
----
-82

query I rowsort
SELECT DISTINCT + ( - 40 ) * - 3
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT - + COUNT( + 50 ) + + ( - 27 )
----
-28

skipif mysql # not compatible
query I rowsort label-3435
SELECT - + COUNT ( + 50 ) + + ( - 27 )
----
-28

query I rowsort
SELECT - 72 * + 29 + + - 23 AS col0
----
-2111

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT DISTINCT - 72 + - COUNT( DISTINCT 12 ) * 48 AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT - 72 + - COUNT ( DISTINCT 12 ) * 48 AS col1
----
-120

query I rowsort
SELECT ALL + 14 + + + 3 + - ( + 13 ) + + 83 - - 38 - - 67 * 61 * - + 13 * 69
----
-3665914

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT DISTINCT + 50 + 69 - COUNT( * ) AS col2
----
118

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT + 50 + 69 - COUNT ( * ) AS col2
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT ALL 29 DIV 98 DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL 29 / 98 / + 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT + + 12 - 25 + + ( COALESCE ( 13, - + SUM( + 27 ) ) ) * + 49 AS col2
----
624

skipif mysql # not compatible
query I rowsort label-3441
SELECT + + 12 - 25 + + ( COALESCE ( 13, - + SUM ( + 27 ) ) ) * + 49 AS col2
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL 22 + + 4 + - 28 * - 90 + - - SUM( - 67 ) AS col2
----
2479

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL 22 + + 4 + - 28 * - 90 + - - SUM ( - 67 ) AS col2
----
2479

query II rowsort
SELECT + 28 + + 91 + - - 70, 19 * + 63 + - 78 + - ( + 47 ) + 31 AS col2
----
189
1103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3444
SELECT - CASE - MAX( 11 ) WHEN + 54 + - + MAX( CAST( NULL AS SIGNED ) ) THEN - 63 + - MAX( DISTINCT 66 ) ELSE + 96 END
----
-96

skipif mysql # not compatible
query I rowsort label-3444
SELECT - CASE - MAX ( 11 ) WHEN + 54 + - + MAX ( CAST ( NULL AS INTEGER ) ) THEN - 63 + - MAX ( DISTINCT 66 ) ELSE + 96 END
----
-96

query I rowsort
SELECT + 4 + 20
----
24

query I rowsort
SELECT + 81 + + 62 AS col2
----
143

query I rowsort
SELECT + 57 + 91
----
148

query I rowsort
SELECT ALL 68 - 51
----
17

query I rowsort
SELECT + COALESCE ( 53, 87, + - 3 ) * 90
----
4770

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

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

query I rowsort
SELECT + 38 * + 61
----
2318

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT - COUNT( * ) + 76 + 88 AS col2
----
163

skipif mysql # not compatible
query I rowsort label-3453
SELECT - COUNT ( * ) + 76 + 88 AS col2
----
163

query I rowsort
SELECT + 73 * + 66 AS col1
----
4818

query I rowsort
SELECT - 79 + - 84 * + - 29
----
2357

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

skipif mysql # not compatible
query I rowsort label-3456
SELECT + CAST ( - + COUNT ( - 18 ) AS INTEGER )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3457
SELECT - 43 * - ( - 42 ) AS col1, - 13 + - - 7 + + - 83 DIV ( - 80 )
----
-1806
-5

skipif mysql # not compatible
query II rowsort label-3457
SELECT - 43 * - ( - 42 ) AS col1, - 13 + - - 7 + + - 83 / ( - 80 )
----
-1806
-5

query I rowsort
SELECT ALL - 39 * 24 + - 34 * + 76
----
-3520

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

query I rowsort
SELECT + - 90 * + - 89
----
8010

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT - - MIN( ALL + - 12 ) * + - 54 + + - COUNT( * ) AS col2
----
647

skipif mysql # not compatible
query I rowsort label-3461
SELECT - - MIN ( ALL + - 12 ) * + - 54 + + - COUNT ( * ) AS col2
----
647

query II rowsort
SELECT + NULLIF ( 79, 95 ) AS col0, - 78
----
79
-78

query I rowsort
SELECT ALL 48 * - ( - - 95 ) + - 88 * - 13
----
-3416

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT + + MIN( DISTINCT + 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT + + MIN ( DISTINCT + 79 ) AS col2
----
79

query I rowsort
SELECT - 47 * 70 + 66
----
-3224

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT ALL - - 36 DIV - - 6
----
6

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL - - 36 / - - 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT DISTINCT - + 73 * + 71 + - - CASE 89 WHEN + - 85 + - + COUNT( * ) THEN + 66 + + 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT - + 73 * + 71 + - - CASE 89 WHEN + - 85 + - + COUNT ( * ) THEN + 66 + + 6 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3468
SELECT DISTINCT + 85 DIV + + 5 col0
----
17

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT + 85 / + + 5 col0
----
17

query I rowsort
SELECT DISTINCT - 21 + + + 58 AS col1
----
37

query I rowsort
SELECT - 27 + + - 19 * - 96 * + 73
----
133125

query II rowsort
SELECT 61, + 82 - NULLIF ( - + 98, 64 ) col2
----
61
180

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT - COALESCE ( + + MIN( 34 ), + ( ( - - COALESCE ( - + 69, + COUNT( * ), - + 76 * + - 18, - 13 ) ) ) )
----
-34

skipif mysql # not compatible
query I rowsort label-3472
SELECT - COALESCE ( + + MIN ( 34 ), + ( ( - - COALESCE ( - + 69, + COUNT ( * ), - + 76 * + - 18, - 13 ) ) ) )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3473
SELECT - 19 + + 24 + 12 * + CAST( - 76 AS SIGNED ) / - 74 + - + COUNT( * ) + COALESCE ( + + 65, + 62, - NULLIF ( + 52, + COUNT( ALL + 52 ) - 69 ) / - ( - 99 ) ) + - 28 + 64 * - 59 * + - 88 - - 6 + + CAST( NULL AS SIGNED ) + + 68 / 9 + - - 31 * - 83 * + COUNT( * ) * COALESCE ( 64 * - 93, 11 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT - 19 + + 24 + 12 * + CAST ( - 76 AS INTEGER ) / - 74 + - + COUNT ( * ) + COALESCE ( + + 65, + 62, - NULLIF ( + 52, + COUNT ( ALL + 52 ) - 69 ) / - ( - 99 ) ) + - 28 + 64 * - 59 * + - 88 - - 6 + + CAST ( NULL AS INTEGER ) + + 68 / 9 + - - 31 * - 83 * + COUNT ( * ) * COALESCE ( 64 * - 93, 11 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL - 28 + - + MAX( DISTINCT 48 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL - 28 + - + MAX ( DISTINCT 48 ) AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3475
SELECT CASE 22 WHEN - CAST( NULL AS SIGNED ) * + - COUNT( * ) + + + 4 THEN + - 63 - 11 + 83 * + + MIN( 33 ) * - 43 + + 8 WHEN + COUNT( * ) * + COUNT( * ) THEN - 16 / - 25 END * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT CASE 22 WHEN - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + + + 4 THEN + - 63 - 11 + 83 * + + MIN ( 33 ) * - 43 + + 8 WHEN + COUNT ( * ) * + COUNT ( * ) THEN - 16 / - 25 END * 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3476
SELECT DISTINCT - 83 - 33 * - - CAST( - 24 AS SIGNED ) * - COUNT( * ) + 4
----
-871

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT - 83 - 33 * - - CAST ( - 24 AS INTEGER ) * - COUNT ( * ) + 4
----
-871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3477
SELECT DISTINCT CAST( + 73 AS SIGNED ) - - MAX( ALL - 80 ) + 37 + 77 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT CAST ( + 73 AS INTEGER ) - - MAX ( ALL - 80 ) + 37 + 77 AS col1
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-3478
SELECT DISTINCT 86 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT 86 / 93
----
0

query I rowsort
SELECT 48 * - 52 * 52
----
-129792

query I rowsort
SELECT 19 * + 28
----
532

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT 35 - - ( - 63 ) + - NULLIF ( - 6, COUNT( * ) )
----
-22

skipif mysql # not compatible
query I rowsort label-3482
SELECT 35 - - ( - 63 ) + - NULLIF ( - 6, COUNT ( * ) )
----
-22

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

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

query I rowsort
SELECT ALL 61 * - 83 * + 67
----
-339221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3485
SELECT DISTINCT + COUNT( * ) * 35 DIV + + NULLIF ( + - 17, ( + + COALESCE ( 39, - COUNT( * ) * - CASE 20 WHEN - - 6 DIV ( - 42 ) + + - 33 + 88 * + 27 + + 87 * 85 + - + CAST( NULL AS SIGNED ) THEN NULL WHEN + 81 THEN NULL WHEN + - 43 DIV - 39 * + 84 + - - 1 THEN NULL WHEN 83 DIV - - 14 + - + 96 THEN + - 42 + CAST( 96 AS SIGNED ) + AVG ( 68 + + 98 ) * 29 END + - 61 ) ) )
----
-2

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT + COUNT ( * ) * 35 / + + NULLIF ( + - 17, ( + + COALESCE ( 39, - COUNT ( * ) * - CASE 20 WHEN - - 6 / ( - 42 ) + + - 33 + 88 * + 27 + + 87 * 85 + - + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 81 THEN NULL WHEN + - 43 / - 39 * + 84 + - - 1 THEN NULL WHEN 83 / - - 14 + - + 96 THEN + - 42 + CAST ( 96 AS INTEGER ) + AVG ( 68 + + 98 ) * 29 END + - 61 ) ) )
----
-2

query II rowsort
SELECT DISTINCT 91 * 55, 84 AS col1
----
5005
84

query I rowsort
SELECT 73 * 23
----
1679

query I rowsort
SELECT ALL 25 + + - COALESCE ( + 93, + - 54 )
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT 44 + - CAST( + 88 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-3489
SELECT 44 + - CAST ( + 88 AS INTEGER )
----
-44

query II rowsort
SELECT + + 1 * + 77 * - 16 + 99, - 27 + 6 col0
----
-1133
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL COUNT( * ) + + MIN( DISTINCT + 52 )
----
53

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL COUNT ( * ) + + MIN ( DISTINCT + 52 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3492
SELECT DISTINCT - CAST( + 36 AS SIGNED ), 9 + + 91 + - + MIN( ALL + 67 ) * 3 AS col2
----
-36
-101

skipif mysql # not compatible
query II rowsort label-3492
SELECT DISTINCT - CAST ( + 36 AS INTEGER ), 9 + + 91 + - + MIN ( ALL + 67 ) * 3 AS col2
----
-36
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3493
SELECT 44 / CAST( NULL AS SIGNED ) - 78 + - 21 - + 10 * + - ( + - 19 ) * + 61 * - COUNT( * ) - - - 53 + - 57 * + + 14 + - - 92 + + - 97 / - + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT 44 / CAST ( NULL AS INTEGER ) - 78 + - 21 - + 10 * + - ( + - 19 ) * + 61 * - COUNT ( * ) - - - 53 + - 57 * + + 14 + - - 92 + + - 97 / - + 90 AS col0
----
NULL

query I rowsort
SELECT 52 * - + 92 * + 31 AS col2
----
-148304

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

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

query I rowsort
SELECT ALL - ( - 52 ) + - 13 AS col2
----
39

query I rowsort
SELECT 32 + - 33 * + 29
----
-925

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT ALL + 56 DIV + 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL + 56 / + 58 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT + NULLIF ( 10, MIN( ALL 60 ) + + 61 + + 8 )
----
10

skipif mysql # not compatible
query I rowsort label-3499
SELECT + NULLIF ( 10, MIN ( ALL 60 ) + + 61 + + 8 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT NULLIF ( - + 3, - MIN( + 43 ) + - 80 ) * - 58 * + 11 + 46
----
1960

skipif mysql # not compatible
query I rowsort label-3500
SELECT NULLIF ( - + 3, - MIN ( + 43 ) + - 80 ) * - 58 * + 11 + 46
----
1960

query I rowsort
SELECT - + 21 * 48 + + 3
----
-1005

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT 1 + - 23 * + MAX( - 8 ) AS col1
----
185

skipif mysql # not compatible
query I rowsort label-3502
SELECT 1 + - 23 * + MAX ( - 8 ) AS col1
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3503
SELECT ALL - COUNT( * ) + - COUNT( * ) - + + MAX( DISTINCT ( - 69 ) ) + - 30 DIV + + 61
----
67

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL - COUNT ( * ) + - COUNT ( * ) - + + MAX ( DISTINCT ( - 69 ) ) + - 30 / + + 61
----
67

query I rowsort
SELECT + 56 + + 57 + + 44 AS col2
----
157

query I rowsort
SELECT DISTINCT - 29 - 65 * 80
----
-5229

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT DISTINCT - CAST( - 34 AS SIGNED ) - + + 85 * + 74 AS col2
----
-6256

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT - CAST ( - 34 AS INTEGER ) - + + 85 * + 74 AS col2
----
-6256

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

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

query I rowsort
SELECT ALL - 33 - 22 * 34 AS col2
----
-781

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT 45 - MIN( 58 ) * + 73
----
-4189

skipif mysql # not compatible
query I rowsort label-3511
SELECT 45 - MIN ( 58 ) * + 73
----
-4189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3512
SELECT - 88 AS col0, NULLIF ( + 58, 23 ) * - + 86 * - 33 + ( - + NULLIF ( 6, MIN( DISTINCT - ( + + CAST( NULL AS SIGNED ) ) ) ) ) AS col2
----
-88
164598

skipif mysql # not compatible
query II rowsort label-3512
SELECT - 88 AS col0, NULLIF ( + 58, 23 ) * - + 86 * - 33 + ( - + NULLIF ( 6, MIN ( DISTINCT - ( + + CAST ( NULL AS INTEGER ) ) ) ) ) AS col2
----
-88
164598

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT 57 + - - ( + - 47 ) + + 35 * + SUM( ALL + 53 ) AS col0
----
1865

skipif mysql # not compatible
query I rowsort label-3513
SELECT 57 + - - ( + - 47 ) + + 35 * + SUM ( ALL + 53 ) AS col0
----
1865

onlyif mysql # aggregate syntax: 
query II rowsort label-3514
SELECT 28 * + + 79 * - COUNT( * ) AS col2, - 25 + 37 + - 12
----
-2212
0

skipif mysql # not compatible
query II rowsort label-3514
SELECT 28 * + + 79 * - COUNT ( * ) AS col2, - 25 + 37 + - 12
----
-2212
0

query I rowsort
SELECT 64 * 13
----
832

query I rowsort
SELECT 35 + - - 81
----
116

query I rowsort
SELECT DISTINCT - 16 * + + 82
----
-1312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3518
SELECT ALL + NULLIF ( - - COUNT( * ), - 54 * 94 ) * - - ( - COALESCE ( + MIN( 28 ), 51 * ( + 64 ) + + CAST( NULL AS SIGNED ) * 26 + - + COUNT( * ) + - + COUNT( * ) - - 67 * - SUM( - 53 ) * + CAST( + - ( + 1 ) AS SIGNED ) * - - COALESCE ( 91, + 48 * 26 * + 66 ) * - ( - 19 ) + - 67 * ( 46 ) + - 98 * - 52 * + 55 ) ) + + 46 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL + NULLIF ( - - COUNT ( * ), - 54 * 94 ) * - - ( - COALESCE ( + MIN ( 28 ), 51 * ( + 64 ) + + CAST ( NULL AS INTEGER ) * 26 + - + COUNT ( * ) + - + COUNT ( * ) - - 67 * - SUM ( - 53 ) * + CAST ( + - ( + 1 ) AS INTEGER ) * - - COALESCE ( 91, + 48 * 26 * + 66 ) * - ( - 19 ) + - 67 * ( 46 ) + - 98 * - 52 * + 55 ) ) + + 46 AS col1
----
18

query I rowsort
SELECT 54 + 86 * - 42
----
-3558

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3520
SELECT ALL 55, - CAST( 29 AS SIGNED ) + - 91 AS col1
----
55
-120

skipif mysql # not compatible
query II rowsort label-3520
SELECT ALL 55, - CAST ( 29 AS INTEGER ) + - 91 AS col1
----
55
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL - CASE + 7 WHEN - + 39 THEN NULL WHEN 5 THEN NULL WHEN COUNT( * ) * + COUNT( * ) - - 26 THEN NULL ELSE + + 43 END + + + 76 + - + 56
----
-23

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL - CASE + 7 WHEN - + 39 THEN NULL WHEN 5 THEN NULL WHEN COUNT ( * ) * + COUNT ( * ) - - 26 THEN NULL ELSE + + 43 END + + + 76 + - + 56
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT 70 + - 91 + - + COUNT( * ) * CASE - + AVG ( - - 91 ) WHEN 8 + - 0 THEN - 92 WHEN COUNT( ALL 72 ) THEN NULL END / - 93 * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT 70 + - 91 + - + COUNT ( * ) * CASE - + AVG ( - - 91 ) WHEN 8 + - 0 THEN - 92 WHEN COUNT ( ALL 72 ) THEN NULL END / - 93 * - 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3523
SELECT MAX( + 66 ) DIV COALESCE ( - COUNT( * ), + - 72 ) * - ( - COUNT( * ) ) + CAST( 22 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-3523
SELECT MAX ( + 66 ) / COALESCE ( - COUNT ( * ), + - 72 ) * - ( - COUNT ( * ) ) + CAST ( 22 AS INTEGER )
----
-44

query I rowsort
SELECT 44 * + 79 * - + CASE + - 77 WHEN - 83 THEN ( - 71 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3525
SELECT ALL - ( - MAX( DISTINCT + 29 ) ) AS col2, - 42 - CAST( NULL AS SIGNED )
----
29
NULL

skipif mysql # not compatible
query II rowsort label-3525
SELECT ALL - ( - MAX ( DISTINCT + 29 ) ) AS col2, - 42 - CAST ( NULL AS INTEGER )
----
29
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3526
SELECT DISTINCT 31 * - - MAX( ALL COALESCE ( - + 9, + + 17 ) ) + + CAST( 70 AS SIGNED ) - + 77 * + 11 AS col1
----
-1056

skipif mysql # not compatible
query I rowsort label-3526
SELECT DISTINCT 31 * - - MAX ( ALL COALESCE ( - + 9, + + 17 ) ) + + CAST ( 70 AS INTEGER ) - + 77 * + 11 AS col1
----
-1056

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3528
SELECT DISTINCT + - 2 DIV + 92 col0
----
0

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT + - 2 / + 92 col0
----
0

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

skipif mysql # not compatible
query I rowsort label-3529
SELECT 0 / 40 * + 27 * + COUNT ( * ) * 41 AS col2
----
0

query I rowsort
SELECT + 38 * + + 38 + - 45 * + + 71
----
-1751

query I rowsort
SELECT DISTINCT + 85 * - + 3 AS col0
----
-255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3532
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) - 31 DIV - 41 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) - 31 / - 41 AS col0
----
1

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

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

query I rowsort
SELECT + NULLIF ( - 80, + - 71 + - - 42 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT + + 80 - 58 * - COUNT( * ) col0
----
138

skipif mysql # not compatible
query I rowsort label-3535
SELECT + + 80 - 58 * - COUNT ( * ) col0
----
138

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

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

query I rowsort
SELECT ALL + COALESCE ( + 66, - COALESCE ( + + 23, - 10 ) ) AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3538
SELECT ALL + + 15, - MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-3538
SELECT ALL + + 15, - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT + + MIN( DISTINCT + - 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3539
SELECT + + MIN ( DISTINCT + - 51 ) AS col0
----
-51

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

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

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

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT + + 39 * - COUNT ( * ) / + + 80
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3542
SELECT ALL NULLIF ( - 71, 86 ) * - COUNT( * ), 43 AS col2
----
71
43

skipif mysql # not compatible
query II rowsort label-3542
SELECT ALL NULLIF ( - 71, 86 ) * - COUNT ( * ), 43 AS col2
----
71
43

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT + MIN( + - 38 ) + + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-3545
SELECT + MIN ( + - 38 ) + + COUNT ( * )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3546
SELECT DISTINCT ( - + 37 ) * - 96 * + CASE CAST( - COUNT( ALL - + ( + 85 ) ) AS SIGNED ) WHEN 63 * 88 / - 11 + 90 * - + 53 THEN + 89 * + 43 - + 74 * + 96 / - - MAX( ALL + CAST( NULL AS DECIMAL ) ) + 86 + + - 26 END * - 33 + + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT ( - + 37 ) * - 96 * + CASE CAST ( - COUNT ( ALL - + ( + 85 ) ) AS INTEGER ) WHEN 63 * 88 / - 11 + 90 * - + 53 THEN + 89 * + 43 - + 74 * + 96 / - - MAX ( ALL + CAST ( NULL AS REAL ) ) + 86 + + - 26 END * - 33 + + + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT - 28 + COUNT( * ) + 79 * + COALESCE ( - 57, + - COUNT( * ) ) * - - 91
----
-409800

skipif mysql # not compatible
query I rowsort label-3547
SELECT - 28 + COUNT ( * ) + 79 * + COALESCE ( - 57, + - COUNT ( * ) ) * - - 91
----
-409800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3548
SELECT - NULLIF ( + CAST( 26 AS SIGNED ), COUNT( * ) ) * + 50 + + + 40
----
-1260

skipif mysql # not compatible
query I rowsort label-3548
SELECT - NULLIF ( + CAST ( 26 AS INTEGER ), COUNT ( * ) ) * + 50 + + + 40
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL COUNT( + - 6 )
----
1

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL COUNT ( + - 6 )
----
1

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

query II rowsort
SELECT ALL 95 AS col2, 38 * + 77 AS col1
----
95
2926

onlyif mysql # DIV for integer division: 
query I rowsort label-3552
SELECT ALL + 57 DIV - 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL + 57 / - 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT 9 + + ( - 88 ) * + - CASE + 70 WHEN - - 56 * 36 THEN - COALESCE ( + 58, + + 34 + COALESCE ( - 84, 72 ) * + 54, + COUNT( * ) ) WHEN + 86 * - 69 THEN + + 66 * COUNT( * ) * - - 54 + - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT 9 + + ( - 88 ) * + - CASE + 70 WHEN - - 56 * 36 THEN - COALESCE ( + 58, + + 34 + COALESCE ( - 84, 72 ) * + 54, + COUNT ( * ) ) WHEN + 86 * - 69 THEN + + 66 * COUNT ( * ) * - - 54 + - 92 END
----
NULL

query II rowsort
SELECT 21, 18 col1
----
21
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3555
SELECT ALL - 58 + MAX( DISTINCT CAST( NULL AS SIGNED ) ) + - 28 AS col0, CAST( + ( 69 ) AS SIGNED ) * 51 - 96 * - CAST( 1 AS SIGNED )
----
NULL
3615

skipif mysql # not compatible
query II rowsort label-3555
SELECT ALL - 58 + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + - 28 AS col0, CAST ( + ( 69 ) AS INTEGER ) * 51 - 96 * - CAST ( 1 AS INTEGER )
----
NULL
3615

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT + COUNT( * ) * - COUNT( * ) * + 27 col2
----
-27

skipif mysql # not compatible
query I rowsort label-3556
SELECT + COUNT ( * ) * - COUNT ( * ) * + 27 col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT - NULLIF ( 87, COUNT( ALL 97 ) + + COUNT( * ) ) * + 32 * + COUNT( * ) - 77 AS col0
----
-2861

skipif mysql # not compatible
query I rowsort label-3557
SELECT - NULLIF ( 87, COUNT ( ALL 97 ) + + COUNT ( * ) ) * + 32 * + COUNT ( * ) - 77 AS col0
----
-2861

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

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

query II rowsort
SELECT - 17 col1, - 69
----
-17
-69

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

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL - COUNT ( * ) + 1 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT + - COALESCE ( + CAST( 84 AS SIGNED ), - 56 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3561
SELECT + - COALESCE ( + CAST ( 84 AS INTEGER ), - 56 ) AS col1
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3562
SELECT ALL - 64 DIV 67 * 82 - + NULLIF ( 96, COUNT( * ) ) * - 34 + - COUNT( * ) + - COUNT( DISTINCT + 72 ) DIV - + MIN( 95 ) * + + COUNT( * ) * - 66 + + + 28 AS col2
----
3291

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL - 64 / 67 * 82 - + NULLIF ( 96, COUNT ( * ) ) * - 34 + - COUNT ( * ) + - COUNT ( DISTINCT + 72 ) / - + MIN ( 95 ) * + + COUNT ( * ) * - 66 + + + 28 AS col2
----
3291

query I rowsort
SELECT - - 11 - + - 9 AS col0
----
20

query I rowsort
SELECT DISTINCT + + ( + 30 ) * - 50
----
-1500

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT ALL + - 75 DIV NULLIF ( + + NULLIF ( + + 41, 33 ), 54 ) + - + 16
----
-17

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL + - 75 / NULLIF ( + + NULLIF ( + + 41, 33 ), 54 ) + - + 16
----
-17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3566
SELECT ALL + CAST( CAST( + 75 AS DECIMAL ) AS SIGNED ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL + CAST ( CAST ( + 75 AS REAL ) AS INTEGER ) AS col0
----
75

query I rowsort
SELECT ALL + - 97 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT - SUM( DISTINCT - 47 ) + 21 * + 56
----
1223

skipif mysql # not compatible
query I rowsort label-3568
SELECT - SUM ( DISTINCT - 47 ) + 21 * + 56
----
1223

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

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

query II rowsort
SELECT ALL + + 19 AS col1, 0 AS col1
----
19
0

query I rowsort
SELECT + + 63 * - - 73 + + - 63 AS col2
----
4536

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3572
SELECT DISTINCT + - COUNT( * ) DIV - 94 * 55 + + 61 col0, 85
----
61
85

skipif mysql # not compatible
query II rowsort label-3572
SELECT DISTINCT + - COUNT ( * ) / - 94 * 55 + + 61 col0, 85
----
61
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3573
SELECT - - 84 * CAST( - 92 AS SIGNED ) + + - 87 AS col2
----
-7815

skipif mysql # not compatible
query I rowsort label-3573
SELECT - - 84 * CAST ( - 92 AS INTEGER ) + + - 87 AS col2
----
-7815

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

query I rowsort
SELECT ALL 69 * ( + - 54 ) col1
----
-3726

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT NULLIF ( 74, SUM( ALL - 87 ) )
----
74

skipif mysql # not compatible
query I rowsort label-3576
SELECT NULLIF ( 74, SUM ( ALL - 87 ) )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3577
SELECT DISTINCT + COUNT( 17 ), - 77 AS col1
----
1
-77

skipif mysql # not compatible
query II rowsort label-3577
SELECT DISTINCT + COUNT ( 17 ), - 77 AS col1
----
1
-77

query I rowsort
SELECT DISTINCT + + 20 * + + 23
----
460

query I rowsort
SELECT - - 57 * 26 - + - 15
----
1497

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT COALESCE ( ( + COUNT( * ) ), - 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3580
SELECT COALESCE ( ( + COUNT ( * ) ), - 56 ) AS col1
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3582
SELECT + ( - - 56 ) AS col2, + CAST( + 93 AS SIGNED ) * - ( + - 25 )
----
56
2325

skipif mysql # not compatible
query II rowsort label-3582
SELECT + ( - - 56 ) AS col2, + CAST ( + 93 AS INTEGER ) * - ( + - 25 )
----
56
2325

query II rowsort
SELECT + 87 + - 84, + 3
----
3
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL - ( + MIN( DISTINCT + 49 ) ) * - - COUNT( * ) + - ( 0 ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL - ( + MIN ( DISTINCT + 49 ) ) * - - COUNT ( * ) + - ( 0 ) col2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3586
SELECT - CAST( - COUNT( * ) AS SIGNED ), ( - 17 ) AS col0
----
1
-17

skipif mysql # not compatible
query II rowsort label-3586
SELECT - CAST ( - COUNT ( * ) AS INTEGER ), ( - 17 ) AS col0
----
1
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + SUM( + - 6 ) + + 93 * + + 63 AS col2
----
5853

skipif mysql # not compatible
query I rowsort label-3587
SELECT + SUM ( + - 6 ) + + 93 * + + 63 AS col2
----
5853

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT MAX( + 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3588
SELECT MAX ( + 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT MIN( DISTINCT 23 )
----
23

skipif mysql # not compatible
query I rowsort label-3589
SELECT MIN ( DISTINCT 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT ALL SUM( - 97 ) + 77 * - 99 AS col0
----
-7720

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL SUM ( - 97 ) + 77 * - 99 AS col0
----
-7720

query I rowsort
SELECT ALL 39 * - - 84
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT COUNT( ALL + ( + ( 90 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3592
SELECT COUNT ( ALL + ( + ( 90 ) ) )
----
1

query I rowsort
SELECT DISTINCT 68 * + - 34
----
-2312

query I rowsort
SELECT + 32 + + 6 - - 71 * 45
----
3233

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT + COUNT( * ) + - 35 + - 47 * 70
----
-3324

skipif mysql # not compatible
query I rowsort label-3595
SELECT + COUNT ( * ) + - 35 + - 47 * 70
----
-3324

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

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

query I rowsort
SELECT DISTINCT 61 + - 14 + - 51 - + 70 + + - 41 AS col2
----
-115

query I rowsort
SELECT - ( - 3 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT ALL 96 + + 61 DIV ( - 14 )
----
92

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL 96 + + 61 / ( - 14 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT + COALESCE ( + SUM( + ( - 79 ) ), - 70, 16, - COUNT( * ) ) + + 3 + + 11 - - COUNT( - 25 ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-3600
SELECT + COALESCE ( + SUM ( + ( - 79 ) ), - 70, 16, - COUNT ( * ) ) + + 3 + + 11 - - COUNT ( - 25 ) col0
----
-64

query I rowsort
SELECT + 61 * 15 * + 71 * + - 4 * + 60 * 35
----
-545706000

query I rowsort
SELECT + 78 + + NULLIF ( - 2, - 49 * - + 54 ) + 73 AS col2
----
149

query I rowsort
SELECT ALL 67 - 93 * 21
----
-1886

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3604
SELECT ALL - - COUNT( * ) / - - 24 + 99 * - - 62 - + + 43 + - - CAST( NULL AS DECIMAL ) * + + 62 + - + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL - - COUNT ( * ) / - - 24 + 99 * - - 62 - + + 43 + - - CAST ( NULL AS REAL ) * + + 62 + - + 80 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL - + COUNT( * ) - - + 0
----
-1

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL - + COUNT ( * ) - - + 0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT + CASE MAX( - 57 ) WHEN NULLIF ( - 8, - 5 ) * - - 95 * - 52 THEN 89 WHEN + + 13 + - + COUNT( * ) THEN NULLIF ( - 47, - 74 ) * COUNT( * ) + 99 WHEN + 16 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3607
SELECT + CASE MAX ( - 57 ) WHEN NULLIF ( - 8, - 5 ) * - - 95 * - 52 THEN 89 WHEN + + 13 + - + COUNT ( * ) THEN NULLIF ( - 47, - 74 ) * COUNT ( * ) + 99 WHEN + 16 THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - 18 / + 8 * 62 * COUNT( * ) * - + COUNT( * ) * + 34 * + 65 * + + SUM( ALL + ( + 1 ) ) + + CASE 67 WHEN + 22 THEN - 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3608
SELECT - 18 / + 8 * 62 * COUNT ( * ) * - + COUNT ( * ) * + 34 * + 65 * + + SUM ( ALL + ( + 1 ) ) + + CASE 67 WHEN + 22 THEN - 71 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT + 61 + - 95 + 81 DIV 84 * - 56 + + + 65 * - 58 + + - 46
----
-3850

skipif mysql # not compatible
query I rowsort label-3609
SELECT + 61 + - 95 + 81 / 84 * - 56 + + + 65 * - 58 + + - 46
----
-3850

query II rowsort
SELECT ALL + + 22 * + 3 AS col2, 34
----
66
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT - - MIN( - 79 ) - 12 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - - MIN ( - 79 ) - 12 AS col2
----
-91

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3613
SELECT DISTINCT - + MIN( DISTINCT 26 ) AS col0, + CAST( + - 11 AS SIGNED ) AS col1
----
-26
-11

skipif mysql # not compatible
query II rowsort label-3613
SELECT DISTINCT - + MIN ( DISTINCT 26 ) AS col0, + CAST ( + - 11 AS INTEGER ) AS col1
----
-26
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT + 36 * - NULLIF ( - COUNT( ALL - 65 ), + 88 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3615
SELECT + 36 * - NULLIF ( - COUNT ( ALL - 65 ), + 88 ) AS col1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3616
SELECT + CASE - + 62 WHEN + 44 THEN - ( - 77 ) * 94 + + ( - CAST( - 41 AS SIGNED ) ) * AVG ( + 3 ) * 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT + CASE - + 62 WHEN + 44 THEN - ( - 77 ) * 94 + + ( - CAST ( - 41 AS INTEGER ) ) * AVG ( + 3 ) * 8 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3617
SELECT + 3 DIV - 44 AS col0, - ( + - CAST( - 39 AS SIGNED ) ) AS col0
----
0
-39

skipif mysql # not compatible
query II rowsort label-3617
SELECT + 3 / - 44 AS col0, - ( + - CAST ( - 39 AS INTEGER ) ) AS col0
----
0
-39

query I rowsort
SELECT 86 + 63 AS col0
----
149

query I rowsort
SELECT 67 * - 84 * - 62 * 11
----
3838296

onlyif mysql # aggregate syntax: 
query II rowsort label-3620
SELECT ALL - 75 + + 91 + + 24 AS col0, + 40 + - SUM( - 77 ) AS col2
----
40
117

skipif mysql # not compatible
query II rowsort label-3620
SELECT ALL - 75 + + 91 + + 24 AS col0, + 40 + - SUM ( - 77 ) AS col2
----
40
117

query I rowsort
SELECT 38 - 59
----
-21

query II rowsort
SELECT ALL - 73 AS col1, NULLIF ( - 50, + 4 ) AS col0
----
-73
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) * - 35 * 12
----
-419

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) * - 35 * 12
----
-419

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3624
SELECT - COUNT( * ) * + CAST( NULL AS DECIMAL ) * + 86 * + + 88 * - - COUNT( * ) / - 26 - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT - COUNT ( * ) * + CAST ( NULL AS REAL ) * + 86 * + + 88 * - - COUNT ( * ) / - 26 - 56
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT ALL + ( - - 8 ) + - - 34 AS col2, COUNT( * ) col1
----
42
1

skipif mysql # not compatible
query II rowsort label-3625
SELECT ALL + ( - - 8 ) + - - 34 AS col2, COUNT ( * ) col1
----
42
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3626
SELECT ALL - MAX( + 39 ) + - 49, 73 AS col1
----
-88
73

skipif mysql # not compatible
query II rowsort label-3626
SELECT ALL - MAX ( + 39 ) + - 49, 73 AS col1
----
-88
73

query II rowsort
SELECT - 38 AS col1, 59 * + ( ( - - 47 ) )
----
-38
2773

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

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL COUNT ( * ) + ( + 36 ) * - COUNT ( * ) AS col1
----
-35

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

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

query I rowsort
SELECT 44 * 92 AS col0
----
4048

query II rowsort
SELECT DISTINCT 0, 0
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT ALL 20 + - CASE 44 WHEN - + 78 THEN NULL WHEN 84 * 6 + CAST( - 40 AS SIGNED ) THEN - SUM( 62 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL 20 + - CASE 44 WHEN - + 78 THEN NULL WHEN 84 * 6 + CAST ( - 40 AS INTEGER ) THEN - SUM ( 62 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT ALL 55 + + + 77 - - COUNT( * )
----
133

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL 55 + + + 77 - - COUNT ( * )
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL 49 * MIN( ALL - 72 ) col0
----
-3528

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL 49 * MIN ( ALL - 72 ) col0
----
-3528

query II rowsort
SELECT DISTINCT 66 AS col0, 71 * 40 AS col1
----
66
2840

query I rowsort
SELECT DISTINCT 19 - + + 70 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3637
SELECT - 19 AS col2, + COUNT( * ) * 50 + + - 91 AS col0
----
-19
-41

skipif mysql # not compatible
query II rowsort label-3637
SELECT - 19 AS col2, + COUNT ( * ) * 50 + + - 91 AS col0
----
-19
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3638
SELECT ALL NULLIF ( - 52, + 11 ) AS col1, + 5 * + COUNT( * ) AS col1
----
-52
5

skipif mysql # not compatible
query II rowsort label-3638
SELECT ALL NULLIF ( - 52, + 11 ) AS col1, + 5 * + COUNT ( * ) AS col1
----
-52
5

query II rowsort
SELECT DISTINCT + 27 AS col1, - 15 AS col2
----
27
-15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3641
SELECT CAST( - 39 AS SIGNED ) + + 80 + + COALESCE ( - - ( 5 ), 67 ) + 40 + - 72 + - 76 DIV - COALESCE ( + 1, + - 98 ) * - ( COUNT( * ) ) + 13 + - + 27 DIV + + 82
----
-49

skipif mysql # not compatible
query I rowsort label-3641
SELECT CAST ( - 39 AS INTEGER ) + + 80 + + COALESCE ( - - ( 5 ), 67 ) + 40 + - 72 + - 76 / - COALESCE ( + 1, + - 98 ) * - ( COUNT ( * ) ) + 13 + - + 27 / + + 82
----
-49

query I rowsort
SELECT DISTINCT 97 * - COALESCE ( + 24, - 93 ) AS col2
----
-2328

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT 63 - + + MAX( 0 ) - - + 4 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3643
SELECT 63 - + + MAX ( 0 ) - - + 4 AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT + CAST( - - 59 AS SIGNED ) * - + 45 * + - 99 + - 49 AS col0
----
262796

skipif mysql # not compatible
query I rowsort label-3644
SELECT + CAST ( - - 59 AS INTEGER ) * - + 45 * + - 99 + - 49 AS col0
----
262796

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3645
SELECT DISTINCT - + COALESCE ( + COALESCE ( 40, COUNT( 67 ) * + 58 ), - 25, 85 ) col1, - 81 DIV 9 * - 96
----
-40
864

skipif mysql # not compatible
query II rowsort label-3645
SELECT DISTINCT - + COALESCE ( + COALESCE ( 40, COUNT ( 67 ) * + 58 ), - 25, 85 ) col1, - 81 / 9 * - 96
----
-40
864

onlyif mysql # aggregate syntax: 
query II rowsort label-3646
SELECT 1 * COUNT( * ) * 54 AS col2, + 32 * + + 76 AS col2
----
54
2432

skipif mysql # not compatible
query II rowsort label-3646
SELECT 1 * COUNT ( * ) * 54 AS col2, + 32 * + + 76 AS col2
----
54
2432

query II rowsort
SELECT ALL - 45 AS col0, + 22
----
-45
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT DISTINCT - - MIN( + 68 ) col2
----
68

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT - - MIN ( + 68 ) col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT + MIN( 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-3649
SELECT + MIN ( 98 ) AS col1
----
98

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

skipif mysql # not compatible
query II rowsort label-3650
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, ( - 95 )
----
NULL
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-3651
SELECT 27 DIV + - 23 + - 45 - + 85
----
-131

skipif mysql # not compatible
query I rowsort label-3651
SELECT 27 / + - 23 + - 45 - + 85
----
-131

query I rowsort
SELECT ALL - 63 + + 63 AS col2
----
0

query I rowsort
SELECT - + 32 * - 20 + - 4
----
636

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3655
SELECT - CAST( NULL AS SIGNED ) * 4 + + ( 47 ) + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT - CAST ( NULL AS INTEGER ) * 4 + + ( 47 ) + 75 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3656
SELECT ALL - 72 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL - 72 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3657
SELECT - 44, + 22 DIV + COUNT( * ) AS col2
----
-44
22

skipif mysql # not compatible
query II rowsort label-3657
SELECT - 44, + 22 / + COUNT ( * ) AS col2
----
-44
22

query I rowsort
SELECT + + 16 AS col1
----
16

query I rowsort
SELECT DISTINCT ( + - 13 ) + - 7
----
-20

query I rowsort
SELECT + 46 * + 49 + - 17
----
2237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3661
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) * + - 83 + + - 7 * 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) * + - 83 + + - 7 * 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT COUNT( - NULLIF ( - 74, - - 60 + 54 ) ) * + - COALESCE ( 36, + 79 * + 64 * 35 ) + 37 col1
----
1

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT COUNT ( - NULLIF ( - 74, - - 60 + 54 ) ) * + - COALESCE ( 36, + 79 * + 64 * 35 ) + 37 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT DISTINCT + 98 + + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT + 98 + + COUNT ( * )
----
99

query I rowsort
SELECT ALL - 44 + - 24 * + ( + ( NULLIF ( 31, - 78 ) ) ) AS col2
----
-788

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT COUNT( * ) + + 0 + - MAX( ALL + 14 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3665
SELECT COUNT ( * ) + + 0 + - MAX ( ALL + 14 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT COUNT( + 11 ) + + + 41 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3666
SELECT COUNT ( + 11 ) + + + 41 AS col2
----
42

query I rowsort
SELECT ALL + 99 + + + 27 + - 23
----
103

query I rowsort
SELECT ALL - 44 + - 25 + + - 37 col1
----
-106

query I rowsort
SELECT 63 * - - 94
----
5922

query I rowsort
SELECT 69 + - + 11
----
58

query I rowsort
SELECT DISTINCT + 27 * - 54 * 93 AS col2
----
-135594

query I rowsort
SELECT DISTINCT - 54 * + 37 AS col2
----
-1998

query I rowsort
SELECT ALL - 82 - + ( - 26 )
----
-56

query I rowsort
SELECT DISTINCT + 27 * - 92
----
-2484

onlyif mysql # DIV for integer division: 
query I rowsort label-3675
SELECT - 7 DIV 42 * - 7
----
0

skipif mysql # not compatible
query I rowsort label-3675
SELECT - 7 / 42 * - 7
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL + 69 * - CASE COUNT( * ) WHEN + COALESCE ( - 76, + 99 + + COUNT( * ) ) THEN NULL ELSE + - 92 END + - + 48 * + 17
----
5532

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + 69 * - CASE COUNT ( * ) WHEN + COALESCE ( - 76, + 99 + + COUNT ( * ) ) THEN NULL ELSE + - 92 END + - + 48 * + 17
----
5532

query I rowsort
SELECT - 33 + + 38
----
5

query I rowsort
SELECT + ( - 73 ) + + 43 AS col0
----
-30

query I rowsort
SELECT + + 99 * - 40 AS col0
----
-3960

query I rowsort
SELECT + 16 + + 6 col0
----
22

query I rowsort
SELECT - - 72 + + 75 + - - 41 AS col2
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT - - 22 + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-3682
SELECT - - 22 + COUNT ( * )
----
23

query I rowsort
SELECT + + ( 38 ) + - 12 - - - 92 * + 43 + 72 AS col0
----
-3858

query I rowsort
SELECT + - 72 * - 7
----
504

query I rowsort
SELECT ALL 49 + - 77 - - 61 + 28 - + 67 * - - NULLIF ( - - 24, + + COALESCE ( - 98, + 65 * 28 * - ( + + 77 ) ) * + + 59 * 93 - - 74 ) * - 61 * - + CASE + 30 WHEN - 72 THEN + 34 WHEN + - 45 * ( - 30 ) THEN - 36 END * + 74 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT + + CAST( - + 93 AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-3686
SELECT + + CAST ( - + 93 AS INTEGER )
----
-93

query I rowsort
SELECT ALL - + 8 * 97 + 99
----
-677

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL + 56 * - + 32 + CASE - COUNT( * ) WHEN - 32 THEN NULL WHEN - + COUNT( * ) THEN NULL WHEN + 76 * + CASE - 72 WHEN 19 THEN 33 / + + MIN( + 87 ) * 55 - 74 END * - 97 * - 74 * + 1 THEN - 98 * + 52 * + COUNT( * ) * 29 + + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + 56 * - + 32 + CASE - COUNT ( * ) WHEN - 32 THEN NULL WHEN - + COUNT ( * ) THEN NULL WHEN + 76 * + CASE - 72 WHEN 19 THEN 33 / + + MIN ( + 87 ) * 55 - 74 END * - 97 * - 74 * + 1 THEN - 98 * + 52 * + COUNT ( * ) * 29 + + COUNT ( * ) END col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3689
SELECT ALL + CASE + 9 WHEN + CAST( NULL AS DECIMAL ) + - 27 THEN + + ( - 4 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL + CASE + 9 WHEN + CAST ( NULL AS REAL ) + - 27 THEN + + ( - 4 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + CASE 97 WHEN - + 60 THEN + 29 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3691
SELECT + 28 * + COALESCE ( 40, - CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) + + 78 )
----
1120

skipif mysql # not compatible
query I rowsort label-3691
SELECT + 28 * + COALESCE ( 40, - CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) + + 78 )
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT ALL SUM( DISTINCT + 91 ) * 60 + - - 13 col0
----
5473

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL SUM ( DISTINCT + 91 ) * 60 + - - 13 col0
----
5473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3693
SELECT CASE CASE WHEN 71 BETWEEN - 95 AND + CASE - CAST( NULL AS SIGNED ) WHEN 33 - + COALESCE ( - COALESCE ( - 22, - + 75 ), - - 92 ) THEN + CAST( NULL AS SIGNED ) * + - ( - 12 ) END + + + 69 THEN NULL ELSE - 46 END WHEN - - COUNT( * ) THEN NULL WHEN + 47 + 63 + + 99 - - - 3 * 3 * - - COALESCE ( 77, + 85 / 84 * - + 60 ) + COUNT( * ) + - - ( - + 34 ) THEN - - 12 WHEN + 49 / - COUNT( * ) - + 94 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT CASE CASE WHEN 71 BETWEEN - 95 AND + CASE - CAST ( NULL AS INTEGER ) WHEN 33 - + COALESCE ( - COALESCE ( - 22, - + 75 ), - - 92 ) THEN + CAST ( NULL AS INTEGER ) * + - ( - 12 ) END + + + 69 THEN NULL ELSE - 46 END WHEN - - COUNT ( * ) THEN NULL WHEN + 47 + 63 + + 99 - - - 3 * 3 * - - COALESCE ( 77, + 85 / 84 * - + 60 ) + COUNT ( * ) + - - ( - + 34 ) THEN - - 12 WHEN + 49 / - COUNT ( * ) - + 94 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3694
SELECT ALL 4 * - 92 DIV + + 7 + + COUNT( * ) + - + 52 * + 82 DIV COUNT( * ) * 78 - 36 + - - NULLIF ( - 86, + 48 DIV - 3 * - ( + 90 ) DIV - - COUNT( * ) ) * - 14 * - 75 * + MIN( DISTINCT + - 54 )
----
4543521

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL 4 * - 92 / + + 7 + + COUNT ( * ) + - + 52 * + 82 / COUNT ( * ) * 78 - 36 + - - NULLIF ( - 86, + 48 / - 3 * - ( + 90 ) / - - COUNT ( * ) ) * - 14 * - 75 * + MIN ( DISTINCT + - 54 )
----
4543521

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT + ( 42 ) * COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3695
SELECT + ( 42 ) * COUNT ( * ) AS col2
----
42

query I rowsort
SELECT + 92 + - 58 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT - COUNT( * ) + 46 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3697
SELECT - COUNT ( * ) + 46 AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3698
SELECT - CAST( 36 AS SIGNED ) DIV 1 + + + 40 + - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3698
SELECT - CAST ( 36 AS INTEGER ) / 1 + + + 40 + - COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT ALL 41 * 71 - + - MIN( 26 )
----
2937

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL 41 * 71 - + - MIN ( 26 )
----
2937

query I rowsort
SELECT + AVG ( DISTINCT 1 ) - - CASE - 53 WHEN - 41 THEN NULL WHEN 79 THEN + + 76 END - 66 * 17 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL - COUNT( * ) * - 47 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL - COUNT ( * ) * - 47 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT MIN( DISTINCT + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-3702
SELECT MIN ( DISTINCT + 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT DISTINCT 85 * - - COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT 85 * - - COUNT ( * ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT DISTINCT COALESCE ( - 27, COUNT( * ) ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT COALESCE ( - 27, COUNT ( * ) ) AS col1
----
-27

query I rowsort
SELECT ALL 37 * + 53 col1
----
1961

query I rowsort
SELECT + 2 + + 23
----
25

query I rowsort
SELECT DISTINCT CASE + 5 WHEN + 48 THEN - - 62 WHEN + - 21 - 75 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT DISTINCT NULLIF ( + - COUNT( * ), - 33 + - + ( - - 70 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT NULLIF ( + - COUNT ( * ), - 33 + - + ( - - 70 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT + COUNT( * ) * + 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3709
SELECT + COUNT ( * ) * + 78 AS col2
----
78

query I rowsort
SELECT - + 12 * + - 87 + + 13
----
1057

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL + SUM( - 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL + SUM ( - 18 ) AS col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3712
SELECT - + ( CASE + 83 WHEN + COUNT( * ) THEN + COUNT( * ) END ) * + 72 + + COALESCE ( 27, + CASE + 59 WHEN ( + + NULLIF ( - CASE + COALESCE ( + 65, + 22 ) WHEN + + 5 + 50 / - 71 THEN - COUNT( * ) END, COALESCE ( + - 46, CAST( NULL AS SIGNED ) ) + - 18 + - + 42 ) ) + 96 THEN + ( - 73 ) WHEN - - 56 + - 41 THEN NULL END, + - NULLIF ( - 70, + 80 + + 12 ) + - + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT - + ( CASE + 83 WHEN + COUNT ( * ) THEN + COUNT ( * ) END ) * + 72 + + COALESCE ( 27, + CASE + 59 WHEN ( + + NULLIF ( - CASE + COALESCE ( + 65, + 22 ) WHEN + + 5 + 50 / - 71 THEN - COUNT ( * ) END, COALESCE ( + - 46, CAST ( NULL AS INTEGER ) ) + - 18 + - + 42 ) ) + 96 THEN + ( - 73 ) WHEN - - 56 + - 41 THEN NULL END, + - NULLIF ( - 70, + 80 + + 12 ) + - + 96 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3713
SELECT ALL + - 98 DIV COUNT( * ) * - 69
----
6762

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL + - 98 / COUNT ( * ) * - 69
----
6762

query II rowsort
SELECT - 38, + 59 AS col2
----
-38
59

query I rowsort
SELECT ALL - - 3 + + - ( 22 )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3716
SELECT ALL CASE + - COUNT( * ) WHEN COUNT( * ) THEN + CAST( NULL AS SIGNED ) + + MIN( + 65 ) * - 9 * - + SUM( + 54 ) WHEN + - 97 / + 82 + - NULLIF ( 1, NULLIF ( - 81, + 73 ) ) THEN NULL END AS col1, 51
----
NULL
51

skipif mysql # not compatible
query II rowsort label-3716
SELECT ALL CASE + - COUNT ( * ) WHEN COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) + + MIN ( + 65 ) * - 9 * - + SUM ( + 54 ) WHEN + - 97 / + 82 + - NULLIF ( 1, NULLIF ( - 81, + 73 ) ) THEN NULL END AS col1, 51
----
NULL
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3717
SELECT - 3 * - - CAST( NULL AS SIGNED ) * + + 16 * + ( - NULLIF ( + - 46, 55 * - + MIN( ALL + - 33 ) + NULLIF ( + 29, 37 + + 15 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT - 3 * - - CAST ( NULL AS INTEGER ) * + + 16 * + ( - NULLIF ( + - 46, 55 * - + MIN ( ALL + - 33 ) + NULLIF ( + 29, 37 + + 15 ) ) ) AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - 75, - 31 * - 32 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT - 46 + - COUNT( ALL - CASE + - 14 WHEN - 38 THEN + 91 ELSE + - 62 + - - 24 END )
----
-47

skipif mysql # not compatible
query I rowsort label-3719
SELECT - 46 + - COUNT ( ALL - CASE + - 14 WHEN - 38 THEN + 91 ELSE + - 62 + - - 24 END )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3720
SELECT - 60 DIV SUM( - 67 )
----
0

skipif mysql # not compatible
query I rowsort label-3720
SELECT - 60 / SUM ( - 67 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3721
SELECT + - 35 DIV MIN( DISTINCT + + 58 ) * - ( - + 23 )
----
0

skipif mysql # not compatible
query I rowsort label-3721
SELECT + - 35 / MIN ( DISTINCT + + 58 ) * - ( - + 23 )
----
0

query I rowsort
SELECT - - ( 66 ) - - 21 AS col2
----
87

query I rowsort
SELECT - ( + - 23 ) AS col2
----
23

query I rowsort
SELECT DISTINCT - + 81 + + + 20 - 7 - + 44
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3725
SELECT CAST( + COUNT( * ) AS SIGNED ) * + CAST( NULL AS SIGNED ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) + - 0
----
NULL

query I rowsort
SELECT + CASE - - 33 WHEN - ( + ( - - ( + - 90 ) ) ) * + 23 THEN + + 76 WHEN - + 79 * 15 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + ( 57 ) AS col1
----
57

query I rowsort
SELECT - 16 + + - 45 col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-3729
SELECT 44 DIV 8 - - ( + 11 )
----
16

skipif mysql # not compatible
query I rowsort label-3729
SELECT 44 / 8 - - ( + 11 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3730
SELECT CAST( NULL AS SIGNED ), 23 - + COUNT( ALL - + 95 ) + + + 52 AS col2
----
NULL
74

skipif mysql # not compatible
query II rowsort label-3730
SELECT CAST ( NULL AS INTEGER ), 23 - + COUNT ( ALL - + 95 ) + + + 52 AS col2
----
NULL
74

query I rowsort
SELECT - 38 * + 60 + + 36
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL 4 * SUM( DISTINCT - 23 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL 4 * SUM ( DISTINCT - 23 ) AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3733
SELECT - NULLIF ( - 52, SUM( + CAST( NULL AS SIGNED ) ) / 80 + - CAST( NULL AS SIGNED ) * 99 + - - MIN( - + 99 ) ) * + COUNT( + 79 ) col2
----
52

skipif mysql # not compatible
query I rowsort label-3733
SELECT - NULLIF ( - 52, SUM ( + CAST ( NULL AS INTEGER ) ) / 80 + - CAST ( NULL AS INTEGER ) * 99 + - - MIN ( - + 99 ) ) * + COUNT ( + 79 ) col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3734
SELECT CAST( + 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-3734
SELECT CAST ( + 63 AS INTEGER )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT + COALESCE ( - - COUNT( * ), - 7 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3735
SELECT + COALESCE ( - - COUNT ( * ), - 7 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT CAST( - 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-3736
SELECT CAST ( - 15 AS INTEGER )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL + 45 * 68 * - COUNT( * ) AS col1
----
-3060

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL + 45 * 68 * - COUNT ( * ) AS col1
----
-3060

query II rowsort
SELECT + 92 col0, + 43
----
92
43

query II rowsort
SELECT DISTINCT 3 * 65, - 31 AS col1
----
195
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3740
SELECT ALL 26 DIV - + 7 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL 26 / - + 7 AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3741
SELECT NULLIF ( 55, + 42 ) * + - 86 col2, 43 * + 64 + 8 - - - 19 * - + CAST( ( + - CASE COUNT( * ) WHEN + ( - 58 ) + 13 + - - 42 + + 98 + + + COUNT( * ) + + 60 / + - 22 + 41 THEN + COALESCE ( + 55, 23 ) + 2 END ) AS DECIMAL ) * - - CAST( + ( + + 50 ) AS SIGNED ) + + 87
----
-4730
NULL

skipif mysql # not compatible
query II rowsort label-3741
SELECT NULLIF ( 55, + 42 ) * + - 86 col2, 43 * + 64 + 8 - - - 19 * - + CAST ( ( + - CASE COUNT ( * ) WHEN + ( - 58 ) + 13 + - - 42 + + 98 + + + COUNT ( * ) + + 60 / + - 22 + 41 THEN + COALESCE ( + 55, 23 ) + 2 END ) AS REAL ) * - - CAST ( + ( + + 50 ) AS INTEGER ) + + 87
----
-4730
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT MAX( - - 9 ) + + 72 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3742
SELECT MAX ( - - 9 ) + + 72 AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT ALL 90 DIV + + 38 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL 90 / + + 38 AS col2
----
2

query I rowsort
SELECT 23 * - 81 col0
----
-1863

onlyif mysql # aggregate syntax: 
query II rowsort label-3745
SELECT - 66 col2, 61 - - COUNT( * )
----
-66
62

skipif mysql # not compatible
query II rowsort label-3745
SELECT - 66 col2, 61 - - COUNT ( * )
----
-66
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ( + CASE + - COALESCE ( - 2, + + 29 + + MIN( 1 ) ) WHEN - + COUNT( DISTINCT + + 80 ) + - + 29 THEN + 84 WHEN + + ( - 2 ) THEN + + 72 ELSE NULL END ) * - + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT ( + CASE + - COALESCE ( - 2, + + 29 + + MIN ( 1 ) ) WHEN - + COUNT ( DISTINCT + + 80 ) + - + 29 THEN + 84 WHEN + + ( - 2 ) THEN + + 72 ELSE NULL END ) * - + 92 AS col0
----
NULL

query II rowsort
SELECT ALL ( 26 ) + - 51 + - + 16 AS col2, 11 AS col1
----
-41
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3748
SELECT - 37 + NULLIF ( + - 58, + - 40 ), - 76 * + + COUNT( * ) col2
----
-95
-76

skipif mysql # not compatible
query II rowsort label-3748
SELECT - 37 + NULLIF ( + - 58, + - 40 ), - 76 * + + COUNT ( * ) col2
----
-95
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-3749
SELECT ALL + 74, - ( + + ( COUNT( * ) ) ) + - 84 AS col2
----
74
-85

skipif mysql # not compatible
query II rowsort label-3749
SELECT ALL + 74, - ( + + ( COUNT ( * ) ) ) + - 84 AS col2
----
74
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT SUM( - - 26 ) * + + 48 * - 54 + - - 98 + + ( + - 95 ) + + 23 AS col1
----
-67366

skipif mysql # not compatible
query I rowsort label-3750
SELECT SUM ( - - 26 ) * + + 48 * - 54 + - - 98 + + ( + - 95 ) + + 23 AS col1
----
-67366

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL 25 * CASE + 42 WHEN 99 * - - 77 * 21 * 69 THEN COUNT( ALL 47 ) WHEN - - ( - 96 ) + 1 THEN NULL END / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL 25 * CASE + 42 WHEN 99 * - - 77 * 21 * 69 THEN COUNT ( ALL 47 ) WHEN - - ( - 96 ) + 1 THEN NULL END / COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - 18 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3753
SELECT - COUNT( * ) AS col2, 23 DIV 89 col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-3753
SELECT - COUNT ( * ) AS col2, 23 / 89 col2
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3754
SELECT COUNT( * ) + + - 47, - COUNT( - ( 46 ) ) AS col1
----
-46
-1

skipif mysql # not compatible
query II rowsort label-3754
SELECT COUNT ( * ) + + - 47, - COUNT ( - ( 46 ) ) AS col1
----
-46
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT + ( 73 ) + + + 41 + - 45 + - + 87 DIV - + ( - + MAX( - 90 ) )
----
69

skipif mysql # not compatible
query I rowsort label-3755
SELECT + ( 73 ) + + + 41 + - 45 + - + 87 / - + ( - + MAX ( - 90 ) )
----
69

query I rowsort
SELECT 30 + - - 15 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL + COALESCE ( - - 3, + NULLIF ( - COUNT( * ), + 40 ) * + - COUNT( * ) ) + 20 * 1
----
23

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + COALESCE ( - - 3, + NULLIF ( - COUNT ( * ), + 40 ) * + - COUNT ( * ) ) + 20 * 1
----
23

query I rowsort
SELECT ( - NULLIF ( - - 50, - 55 + - 69 ) )
----
-50

query I rowsort
SELECT - 53 + - + 88 * + 81 + + 84
----
-7097

onlyif mysql # DIV for integer division: 
query II rowsort label-3760
SELECT - - 78 AS col1, + 99 DIV - - 33 AS col0
----
78
3

skipif mysql # not compatible
query II rowsort label-3760
SELECT - - 78 AS col1, + 99 / - - 33 AS col0
----
78
3

query I rowsort
SELECT + 27 + - 80 AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT ALL - ( + + COALESCE ( - CAST( NULL AS SIGNED ), - 23, - + COUNT( - 2 ) ) ) + - 41 + + CAST( + 49 AS SIGNED ) + - - 61 * + 11 * - 70 * + - 98 * - 57 * - COUNT( * )
----
262374451

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL - ( + + COALESCE ( - CAST ( NULL AS INTEGER ), - 23, - + COUNT ( - 2 ) ) ) + - 41 + + CAST ( + 49 AS INTEGER ) + - - 61 * + 11 * - 70 * + - 98 * - 57 * - COUNT ( * )
----
262374451

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL COUNT( * ) + - 88 * 37
----
-3255

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL COUNT ( * ) + - 88 * 37
----
-3255

onlyif mysql # DIV for integer division: 
query II rowsort label-3764
SELECT ALL 79 AS col0, + 62 DIV + 81
----
79
0

skipif mysql # not compatible
query II rowsort label-3764
SELECT ALL 79 AS col0, + 62 / + 81
----
79
0

query I rowsort
SELECT 55 + 15 AS col2
----
70

query II rowsort
SELECT ALL + 43, + 27 AS col2
----
43
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3767
SELECT DISTINCT - COUNT( * ) col1, + COUNT( * ) * 24 AS col2
----
-1
24

skipif mysql # not compatible
query II rowsort label-3767
SELECT DISTINCT - COUNT ( * ) col1, + COUNT ( * ) * 24 AS col2
----
-1
24

query I rowsort
SELECT 35 * 17 * + 50
----
29750

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3769
SELECT CAST( NULL AS DECIMAL ) / + 44 + - ( + 60 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3769
SELECT CAST ( NULL AS REAL ) / + 44 + - ( + 60 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT 54 * + ( + COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-3770
SELECT 54 * + ( + COUNT ( * ) )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3771
SELECT SUM( DISTINCT + - 10 ) + + - COALESCE ( 64, - 13 ) + + 88 DIV + + 46 AS col1, - 40 - - - COALESCE ( - + SUM( - ( + 18 ) ), - + 32 + - 95 DIV 63 * 39 * 69 + + 71 * 51, - CASE - - 7 WHEN - 15 * - + 25 THEN - 11 + - 8 ELSE - 51 END ) AS col2
----
-73
-58

skipif mysql # not compatible
query II rowsort label-3771
SELECT SUM ( DISTINCT + - 10 ) + + - COALESCE ( 64, - 13 ) + + 88 / + + 46 AS col1, - 40 - - - COALESCE ( - + SUM ( - ( + 18 ) ), - + 32 + - 95 / 63 * 39 * 69 + + 71 * 51, - CASE - - 7 WHEN - 15 * - + 25 THEN - 11 + - 8 ELSE - 51 END ) AS col2
----
-73
-58

query I rowsort
SELECT 63 * - + 18 * 0
----
0

query I rowsort
SELECT DISTINCT + 58 * - + 21 AS col0
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT MIN( DISTINCT - + 7 ) * - SUM( DISTINCT 80 ) AS col0
----
560

skipif mysql # not compatible
query I rowsort label-3774
SELECT MIN ( DISTINCT - + 7 ) * - SUM ( DISTINCT 80 ) AS col0
----
560

query I rowsort
SELECT DISTINCT - ( 25 )
----
-25

query I rowsort
SELECT + 58 * - ( + COALESCE ( + + 76, - 6 ) ) - + - 46 * + 45 + - ( + 41 ) AS col0
----
-2379

query II rowsort
SELECT 78 * + 13 AS col1, 50 * - 10
----
1014
-500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3778
SELECT 27 * - 84 * ( - + CASE + AVG ( + 29 ) WHEN CASE WHEN NOT - 62 IS NULL THEN + 47 END THEN + 36 * 1 * + MAX( ALL - 56 ) - + - 28 * + + 2 * + 64 ELSE - - 0 END ) DIV COUNT( * ) + 17 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3778
SELECT 27 * - 84 * ( - + CASE + AVG ( + 29 ) WHEN CASE WHEN NOT - 62 IS NULL THEN + 47 END THEN + 36 * 1 * + MAX ( ALL - 56 ) - + - 28 * + + 2 * + 64 ELSE - - 0 END ) / COUNT ( * ) + 17 AS col0
----
17

query I rowsort
SELECT ALL 84 + 4
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3780
SELECT 4 * - - CASE 67 WHEN - + ( - 14 ) THEN NULL WHEN + + 34 THEN NULL WHEN + - 21 THEN + - CAST( - COUNT( * ) AS SIGNED ) + + - 12 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT 4 * - - CASE 67 WHEN - + ( - 14 ) THEN NULL WHEN + + 34 THEN NULL WHEN + - 21 THEN + - CAST ( - COUNT ( * ) AS INTEGER ) + + - 12 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT DISTINCT - COUNT( * ) + - SUM( - 69 ) * + COUNT( * ) + - + 66 + - - COUNT( DISTINCT - 40 ) - - + 6
----
9

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT - COUNT ( * ) + - SUM ( - 69 ) * + COUNT ( * ) + - + 66 + - - COUNT ( DISTINCT - 40 ) - - + 6
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT DISTINCT - + 82 + + - COUNT( * ) AS col0, - COUNT( * ) AS col0
----
-83
-1

skipif mysql # not compatible
query II rowsort label-3782
SELECT DISTINCT - + 82 + + - COUNT ( * ) AS col0, - COUNT ( * ) AS col0
----
-83
-1

query II rowsort
SELECT 51 * - 13 - - 55 - - 19 * - 16 * - - ( 24 ) AS col2, 32
----
-7904
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3784
SELECT DISTINCT 97 DIV COUNT( * ) + - 73
----
24

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT 97 / COUNT ( * ) + - 73
----
24

query II rowsort
SELECT 91 * + - 83 + - COALESCE ( - ( - + 47 ), 4 ) + - 90 col1, 34
----
-7690
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT + COUNT( ALL - COALESCE ( - 80, - + 12 + - - 62 ) ) * + 59
----
59

skipif mysql # not compatible
query I rowsort label-3786
SELECT + COUNT ( ALL - COALESCE ( - 80, - + 12 + - - 62 ) ) * + 59
----
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3787
SELECT - CAST( - - 3 AS SIGNED ) DIV ( 49 )
----
0

skipif mysql # not compatible
query I rowsort label-3787
SELECT - CAST ( - - 3 AS INTEGER ) / ( 49 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3788
SELECT 14 - - COALESCE ( - 98, 8 * - 71 DIV - + COUNT( * ) + + - 80 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-3788
SELECT 14 - - COALESCE ( - 98, 8 * - 71 / - + COUNT ( * ) + + - 80 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3789
SELECT DISTINCT MIN( - 56 ) AS col2, - COUNT( * ) * - - 96 AS col0
----
-56
-96

skipif mysql # not compatible
query II rowsort label-3789
SELECT DISTINCT MIN ( - 56 ) AS col2, - COUNT ( * ) * - - 96 AS col0
----
-56
-96

query I rowsort
SELECT ALL - - 43 - - 9
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL MAX( ( - 31 ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL MAX ( ( - 31 ) ) AS col2
----
-31

query I rowsort
SELECT ALL 70 * + 73 - + 15
----
5095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3793
SELECT + 45 + + 92 + - - COUNT( * ) DIV + CAST( + COALESCE ( + 65, - 87 ) AS SIGNED ) AS col2, + 55 * + - ( 74 ) AS col0
----
137
-4070

skipif mysql # not compatible
query II rowsort label-3793
SELECT + 45 + + 92 + - - COUNT ( * ) / + CAST ( + COALESCE ( + 65, - 87 ) AS INTEGER ) AS col2, + 55 * + - ( 74 ) AS col0
----
137
-4070

query I rowsort
SELECT 57 + + 21 * - - 6 * 11 AS col1
----
1443

query II rowsort
SELECT - 20 AS col0, 9
----
-20
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT 63 - - 4 DIV + ( 5 ) * - ( - 14 )
----
63

skipif mysql # not compatible
query I rowsort label-3796
SELECT 63 - - 4 / + ( 5 ) * - ( - 14 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT - 92 * SUM( 6 )
----
-552

skipif mysql # not compatible
query I rowsort label-3797
SELECT - 92 * SUM ( 6 )
----
-552

onlyif mysql # aggregate syntax: 
query II rowsort label-3798
SELECT + CASE - COALESCE ( + SUM( + 5 ), - 63 ) WHEN - 39 THEN - ( - 17 ) / - + 50 END + - COALESCE ( - + 83, + 54, + + MAX( DISTINCT - + NULLIF ( - CASE - 8 WHEN + 76 THEN NULL WHEN - - 93 * + 34 / + 95 * - 69 * - 26 / + - 98 * + + 85 + - + 58 - + + 26 THEN NULL ELSE - + NULLIF ( 84, - 57 ) END, + 88 * + 30 ) ) / - + 13 * 30 / COUNT( * ) ) AS col0, 31
----
NULL
31

skipif mysql # not compatible
query II rowsort label-3798
SELECT + CASE - COALESCE ( + SUM ( + 5 ), - 63 ) WHEN - 39 THEN - ( - 17 ) / - + 50 END + - COALESCE ( - + 83, + 54, + + MAX ( DISTINCT - + NULLIF ( - CASE - 8 WHEN + 76 THEN NULL WHEN - - 93 * + 34 / + 95 * - 69 * - 26 / + - 98 * + + 85 + - + 58 - + + 26 THEN NULL ELSE - + NULLIF ( 84, - 57 ) END, + 88 * + 30 ) ) / - + 13 * 30 / COUNT ( * ) ) AS col0, 31
----
NULL
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3799
SELECT ALL 77, ( + COUNT( - CASE WHEN NULL IS NULL THEN NULL ELSE + CAST( NULL AS SIGNED ) END ) ) AS col1
----
77
0

skipif mysql # not compatible
query II rowsort label-3799
SELECT ALL 77, ( + COUNT ( - CASE WHEN NULL IS NULL THEN NULL ELSE + CAST ( NULL AS INTEGER ) END ) ) AS col1
----
77
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3800
SELECT - MIN( ALL - + 80 ) DIV - - 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3800
SELECT - MIN ( ALL - + 80 ) / - - 70 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3801
SELECT ALL + COUNT( * ), + MAX( ALL 50 ) DIV 63 + + 3 * 65 * 61 DIV + + ( + + 85 ) AS col2
----
1
139

skipif mysql # not compatible
query II rowsort label-3801
SELECT ALL + COUNT ( * ), + MAX ( ALL 50 ) / 63 + + 3 * 65 * 61 / + + ( + + 85 ) AS col2
----
1
139

query II rowsort
SELECT + 88 AS col2, 11 AS col1
----
88
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT + COUNT( * ) + + - 34 * - - ( - COUNT( * ) ) + - ( 65 ) - + 5
----
-35

skipif mysql # not compatible
query I rowsort label-3803
SELECT + COUNT ( * ) + + - 34 * - - ( - COUNT ( * ) ) + - ( 65 ) - + 5
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT 18 / - 85 / + - CAST( NULL AS SIGNED ) - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT 18 / - 85 / + - CAST ( NULL AS INTEGER ) - + 72
----
NULL

query I rowsort
SELECT ALL - 82 * - NULLIF ( 90, - - 28 * - 96 / 51 )
----
7380

query I rowsort
SELECT COALESCE ( + - ( - + 28 ), 2 )
----
28

query I rowsort
SELECT - 2 * + 31 AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3808
SELECT DISTINCT - 44 * - - 29 + + MIN( ALL + + CAST( NULL AS SIGNED ) ) + - + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT - 44 * - - 29 + + MIN ( ALL + + CAST ( NULL AS INTEGER ) ) + - + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT COALESCE ( + 17, 62 * COUNT( * ) + + + 52 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-3809
SELECT COALESCE ( + 17, 62 * COUNT ( * ) + + + 52 ) AS col2
----
17

query I rowsort
SELECT - 49 + - 91
----
-140

query I rowsort
SELECT ALL - 19 * - 50 AS col1
----
950

onlyif mysql # aggregate syntax: 
query II rowsort label-3812
SELECT DISTINCT 90 * - - COUNT( - - 96 ) + 46 AS col1, - ( 12 ) * - 87 + + 31 AS col0
----
136
1075

skipif mysql # not compatible
query II rowsort label-3812
SELECT DISTINCT 90 * - - COUNT ( - - 96 ) + 46 AS col1, - ( 12 ) * - 87 + + 31 AS col0
----
136
1075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3813
SELECT CAST( - 45 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-3813
SELECT CAST ( - 45 AS INTEGER )
----
-45

query I rowsort
SELECT - 99 + + 0 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT + ( COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT + ( COUNT ( * ) ) col1
----
1

query I rowsort
SELECT ALL + - 67 * + 37 + - 65 + - ( 12 ) + - - 53 * + + 0 + 84 col1
----
-2472

query II rowsort
SELECT ALL - 59 AS col2, + 2 AS col2
----
-59
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3818
SELECT - + 37 + - 24 + + - COUNT( * ) AS col1, - 83
----
-62
-83

skipif mysql # not compatible
query II rowsort label-3818
SELECT - + 37 + - 24 + + - COUNT ( * ) AS col1, - 83
----
-62
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3819
SELECT - COALESCE ( 12, + 58 DIV - 79 + 63 DIV - 34 DIV + 58 + + COUNT( * ) ) * + + SUM( - 21 ) AS col2
----
252

skipif mysql # not compatible
query I rowsort label-3819
SELECT - COALESCE ( 12, + 58 / - 79 + 63 / - 34 / + 58 + + COUNT ( * ) ) * + + SUM ( - 21 ) AS col2
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT ALL - - 37 * + COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-3820
SELECT ALL - - 37 * + COUNT ( * ) AS col1
----
37

query I rowsort
SELECT ALL - 57 * 95 AS col0
----
-5415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3822
SELECT ALL CAST( MIN( - 60 ) AS SIGNED ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL CAST ( MIN ( - 60 ) AS INTEGER ) AS col2
----
-60

query I rowsort
SELECT DISTINCT + + 62 - + 71 * + + 2 AS col0
----
-80

query I rowsort
SELECT + - ( ( - 49 ) ) * 28 + - 91 + 43 * - 27 AS col1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3825
SELECT + 85 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT + 85 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 58 col0
----
58

query I rowsort
SELECT + ( + 5 ) + + 96 * + - ( + 35 )
----
-3355

query III rowsort
SELECT + 42 * + 4 * 73, + 3 AS col2, 55 AS col0
----
12264
3
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3829
SELECT ALL + COUNT( * ) DIV 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL + COUNT ( * ) / 80 AS col0
----
0

query II rowsort
SELECT + + NULLIF ( - 31, + 68 / + 37 ) + + + 69 + - 1, 97 * + 33 AS col1
----
37
3201

query I rowsort
SELECT - ( + 30 )
----
-30

query I rowsort
SELECT + 15 * + - 19 col1
----
-285

query I rowsort
SELECT ALL 39 * - 67
----
-2613

query I rowsort
SELECT + 9 + + 35
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3835
SELECT 23 DIV - 79 + + + 74
----
74

skipif mysql # not compatible
query I rowsort label-3835
SELECT 23 / - 79 + + + 74
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3836
SELECT CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3836
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT CAST( 25 AS SIGNED ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3837
SELECT CAST ( 25 AS INTEGER ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT ALL COUNT( * ) / - - CASE 2 WHEN + 82 * 35 THEN NULL WHEN + 36 + - - 44 - 22 THEN + - COALESCE ( - + 34, - ( + 51 ), - - 26 ) END + COUNT( DISTINCT 10 ) * + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL COUNT ( * ) / - - CASE 2 WHEN + 82 * 35 THEN NULL WHEN + 36 + - - 44 - 22 THEN + - COALESCE ( - + 34, - ( + 51 ), - - 26 ) END + COUNT ( DISTINCT 10 ) * + 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT + 49 * COUNT( * ) * + 30 AS col1
----
1470

skipif mysql # not compatible
query I rowsort label-3839
SELECT + 49 * COUNT ( * ) * + 30 AS col1
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT ALL + CASE 32 WHEN 74 THEN + 17 END / + - CASE - - ( COUNT( * ) ) WHEN + 46 THEN NULL ELSE - COUNT( * ) * + + 55 + 58 END - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL + CASE 32 WHEN 74 THEN + 17 END / + - CASE - - ( COUNT ( * ) ) WHEN + 46 THEN NULL ELSE - COUNT ( * ) * + + 55 + 58 END - 88
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3841
SELECT - 5 * 0 + - 33 DIV - - 23 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3841
SELECT - 5 * 0 + - 33 / - - 23 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3842
SELECT ALL - 39 DIV 42 * - 23 * + COUNT( + 59 ) + - - 21 * 36 - + + 36 AS col2
----
720

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL - 39 / 42 * - 23 * + COUNT ( + 59 ) + - - 21 * 36 - + + 36 AS col2
----
720

query I rowsort
SELECT - 19 * - - 71
----
-1349

query I rowsort
SELECT DISTINCT + + 14 * - 78
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + 88 + - SUM( + 54 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3845
SELECT + 88 + - SUM ( + 54 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT + - COUNT( 0 ) * - + 24 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3846
SELECT + - COUNT ( 0 ) * - + 24 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT + + COUNT( * ) * 3 + - ( + 76 ) * + - 94
----
7147

skipif mysql # not compatible
query I rowsort label-3847
SELECT + + COUNT ( * ) * 3 + - ( + 76 ) * + - 94
----
7147

query I rowsort
SELECT ALL + NULLIF ( - - 43, + - 13 )
----
43

query I rowsort
SELECT ALL + 50 * + 82 - + - 66 + - + 22
----
4144

query II rowsort
SELECT ALL + 77 * - 92 AS col2, 34
----
-7084
34

query I rowsort
SELECT DISTINCT 85 * 90
----
7650

query I rowsort
SELECT - 6 * - 83 - + 13 AS col1
----
485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3853
SELECT DISTINCT - + COALESCE ( + COUNT( * ), + NULLIF ( - + COUNT( * ), 46 DIV + 34 * 31 + + 80 ), + + 7 - + 10 * - 39 DIV COUNT( * ) * - 68 ) * - 31 * - 79
----
-2449

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT - + COALESCE ( + COUNT ( * ), + NULLIF ( - + COUNT ( * ), 46 / + 34 * 31 + + 80 ), + + 7 - + 10 * - 39 / COUNT ( * ) * - 68 ) * - 31 * - 79
----
-2449

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT + 18 * - - 51 - - MAX( + 18 ) - 23 * 91 col0
----
-1157

skipif mysql # not compatible
query I rowsort label-3854
SELECT + 18 * - - 51 - - MAX ( + 18 ) - 23 * 91 col0
----
-1157

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT - 74 * - + 15 * + 95 - - 31 + + + ( + - ( - - 28 ) ) * 48 + - + 55 + 91 + + 88 + COUNT( * ) * + 98 AS col1
----
104359

skipif mysql # not compatible
query I rowsort label-3855
SELECT - 74 * - + 15 * + 95 - - 31 + + + ( + - ( - - 28 ) ) * 48 + - + 55 + 91 + + 88 + COUNT ( * ) * + 98 AS col1
----
104359

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT - COUNT( * ) * - 23 * + 18 * + MIN( + - 12 ) + - + 58 DIV 36 DIV 65 DIV + + 18 + - - 94 + - 68 * - 28 * - 61
----
-121018

skipif mysql # not compatible
query I rowsort label-3856
SELECT - COUNT ( * ) * - 23 * + 18 * + MIN ( + - 12 ) + - + 58 / 36 / 65 / + + 18 + - - 94 + - 68 * - 28 * - 61
----
-121018

query I rowsort
SELECT - + 76 AS col0
----
-76

query I rowsort
SELECT DISTINCT + 12 * + 62
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT DISTINCT + 8 * + COUNT( ALL + 81 )
----
8

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT + 8 * + COUNT ( ALL + 81 )
----
8

query I rowsort
SELECT DISTINCT + 99 * + + 83
----
8217

query I rowsort
SELECT ALL COALESCE ( + 97, + 96 ) + - 55
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT ALL - COUNT( * ) + + 90
----
89

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - COUNT ( * ) + + 90
----
89

query I rowsort
SELECT 72 + 15 AS col1
----
87

query I rowsort
SELECT 91 + 42 * ( + 88 ) * 84 + - 49
----
310506

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT COUNT( * ) * - - 90 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-3865
SELECT COUNT ( * ) * - - 90 AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3866
SELECT ALL 68 + + - 97 DIV - + COUNT( * ) - + 56 * + ( - - ( - 79 ) ) * + 9 - - COUNT( DISTINCT 91 ), 94 col2
----
39982
94

skipif mysql # not compatible
query II rowsort label-3866
SELECT ALL 68 + + - 97 / - + COUNT ( * ) - + 56 * + ( - - ( - 79 ) ) * + 9 - - COUNT ( DISTINCT 91 ), 94 col2
----
39982
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT 98 + + 83 * - + COUNT( - - 75 ) * - MAX( - 41 ) * - 91
----
309771

skipif mysql # not compatible
query I rowsort label-3867
SELECT 98 + + 83 * - + COUNT ( - - 75 ) * - MAX ( - 41 ) * - 91
----
309771

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3868
SELECT ALL + 64 DIV - - MAX( DISTINCT - 19 ) col1, + 16 + - - 96
----
-3
112

skipif mysql # not compatible
query II rowsort label-3868
SELECT ALL + 64 / - - MAX ( DISTINCT - 19 ) col1, + 16 + - - 96
----
-3
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT DISTINCT - COUNT( * ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT - COUNT ( * ) + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3870
SELECT ALL CAST( + COALESCE ( 30, 79 ) AS SIGNED ) * 31 DIV + 83 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL CAST ( + COALESCE ( 30, 79 ) AS INTEGER ) * 31 / + 83 AS col0
----
11

query I rowsort
SELECT ALL 32 + + - 93 AS col1
----
-61

query I rowsort
SELECT ALL 14 + + + 29 AS col0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3873
SELECT COUNT( * ) + - COALESCE ( + 63, - 88 DIV + 66 * + 72 - 24 * - + 19 + - 17 - 46 + - + 71 + 82 * - 39 ), 71 AS col0
----
-62
71

skipif mysql # not compatible
query II rowsort label-3873
SELECT COUNT ( * ) + - COALESCE ( + 63, - 88 / + 66 * + 72 - 24 * - + 19 + - 17 - 46 + - + 71 + 82 * - 39 ), 71 AS col0
----
-62
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT + + 53 * + + COUNT( * ) + + 60 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-3874
SELECT + + 53 * + + COUNT ( * ) + + 60 AS col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3875
SELECT ALL - 17 - 48 + COUNT( * ) * + + 81 / + ( - CAST( NULL AS SIGNED ) ) + 57 + + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL - 17 - 48 + COUNT ( * ) * + + 81 / + ( - CAST ( NULL AS INTEGER ) ) + 57 + + - 36
----
NULL

query I rowsort
SELECT + 95 * + 1 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT DISTINCT - COALESCE ( - 0, COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT - COALESCE ( - 0, COUNT ( * ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3878
SELECT DISTINCT - COUNT( * ) AS col0, + 75 * - 46 * 13 AS col1
----
-1
-44850

skipif mysql # not compatible
query II rowsort label-3878
SELECT DISTINCT - COUNT ( * ) AS col0, + 75 * - 46 * 13 AS col1
----
-1
-44850

query I rowsort
SELECT DISTINCT + 68 * + 86
----
5848

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT - ( - MAX( - 16 ) ) * - - 5 + + 67 - + ( + + 97 )
----
-110

skipif mysql # not compatible
query I rowsort label-3880
SELECT - ( - MAX ( - 16 ) ) * - - 5 + + 67 - + ( + + 97 )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL - ( - - SUM( DISTINCT 54 ) ) - - 74
----
20

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL - ( - - SUM ( DISTINCT 54 ) ) - - 74
----
20

query I rowsort
SELECT ALL - + 14 col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT 60 * 40 + + - CASE + 18 WHEN - CAST( + 89 AS SIGNED ) THEN - 61 ELSE NULL END + + ( - 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT 60 * 40 + + - CASE + 18 WHEN - CAST ( + 89 AS INTEGER ) THEN - 61 ELSE NULL END + + ( - 33 ) AS col0
----
NULL

query I rowsort
SELECT + ( + + ( 45 ) ) col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + - MIN( DISTINCT - 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-3885
SELECT + - MIN ( DISTINCT - 20 ) AS col1
----
20

query I rowsort
SELECT ALL + 74 * + 80 col0
----
5920

query I rowsort
SELECT + 11 * 2 * + 6
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT - 20 + + 61 * - + COUNT( * ) * - 51
----
3091

skipif mysql # not compatible
query I rowsort label-3888
SELECT - 20 + + 61 * - + COUNT ( * ) * - 51
----
3091

query I rowsort
SELECT DISTINCT - 72 + 69 AS col2
----
-3

query II rowsort
SELECT ALL 3 * + 56 * + 40 * + 25 + + 80 AS col2, + 15 AS col1
----
168080
15

query II rowsort
SELECT ALL 71 AS col2, 27
----
71
27

query I rowsort
SELECT - 47 + 50 AS col0
----
3

query I rowsort
SELECT ALL ( ( - 95 ) ) + - 95 AS col0
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT 92 + - COUNT( 22 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3894
SELECT 92 + - COUNT ( 22 ) AS col2
----
91

query I rowsort
SELECT ALL - 22 + + - 89 * 60 + - - 35
----
-5327

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3896
SELECT - 70, + COUNT( 40 ) DIV + 54 AS col2
----
-70
0

skipif mysql # not compatible
query II rowsort label-3896
SELECT - 70, + COUNT ( 40 ) / + 54 AS col2
----
-70
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT ALL + MIN( DISTINCT 43 ) + - 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL + MIN ( DISTINCT 43 ) + - 43 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT CAST( - 20 AS SIGNED ) * + ( + + 6 ) AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-3898
SELECT CAST ( - 20 AS INTEGER ) * + ( + + 6 ) AS col2
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-3899
SELECT 6, + COUNT( * ) col0
----
6
1

skipif mysql # not compatible
query II rowsort label-3899
SELECT 6, + COUNT ( * ) col0
----
6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT COUNT( * ) + COUNT( * ) * 54 * ( 96 ) AS col2
----
5185

skipif mysql # not compatible
query I rowsort label-3900
SELECT COUNT ( * ) + COUNT ( * ) * 54 * ( 96 ) AS col2
----
5185

query I rowsort
SELECT 98 * - 6
----
-588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3902
SELECT DISTINCT + SUM( ALL - 57 ) + + + 66 / - + 29 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT + SUM ( ALL - 57 ) + + + 66 / - + 29 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 23 + + 82 AS col0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3904
SELECT COUNT( * ) DIV + 8
----
0

skipif mysql # not compatible
query I rowsort label-3904
SELECT COUNT ( * ) / + 8
----
0

query II rowsort
SELECT DISTINCT 46 AS col0, 44 AS col2
----
46
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL SUM( + 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL SUM ( + 67 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3907
SELECT ALL COUNT( * ) AS col1, + 94 AS col2
----
1
94

skipif mysql # not compatible
query II rowsort label-3907
SELECT ALL COUNT ( * ) AS col1, + 94 AS col2
----
1
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3908
SELECT 42 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-3908
SELECT 42 / + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT + MIN( DISTINCT - + ( - - 83 ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3909
SELECT + MIN ( DISTINCT - + ( - - 83 ) ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL 18 * COUNT( * ) - 15 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL 18 * COUNT ( * ) - 15 AS col0
----
3

query II rowsort
SELECT ALL - - 62 AS col1, + 17 AS col2
----
62
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT DISTINCT - COUNT( * ) * + + 79 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT - COUNT ( * ) * + + 79 AS col1
----
-79

query II rowsort
SELECT DISTINCT - 73 AS col2, 64 AS col1
----
-73
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3914
SELECT + CAST( NULL AS SIGNED ) * - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT + CAST ( NULL AS INTEGER ) * - 74 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 21
----
21

query I rowsort
SELECT + 95 * 16
----
1520

onlyif mysql # DIV for integer division: 
query I rowsort label-3917
SELECT + 65 * 22 DIV + 75
----
19

skipif mysql # not compatible
query I rowsort label-3917
SELECT + 65 * 22 / + 75
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3918
SELECT DISTINCT + + NULLIF ( 94, + CAST( - COUNT( * ) AS DECIMAL ) / - 79 )
----
94

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT + + NULLIF ( 94, + CAST ( - COUNT ( * ) AS REAL ) / - 79 )
----
94

query I rowsort
SELECT ALL 48 + - 66 + + + 7 * + + 30
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3920
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + 70 - + + 67 * + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + 70 - + + 67 * + 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT + - MAX( DISTINCT - 85 ) * - - 63
----
5355

skipif mysql # not compatible
query I rowsort label-3921
SELECT + - MAX ( DISTINCT - 85 ) * - - 63
----
5355

query I rowsort
SELECT DISTINCT - + COALESCE ( + 64, - 3 + - + 57 ) + + 67 AS col0
----
3

query I rowsort
SELECT DISTINCT + - COALESCE ( - 92, 50, + + 56 * + 97 ) AS col1
----
92

query I rowsort
SELECT ALL - 93 + - + ( - + 22 ) AS col0
----
-71

query II rowsort
SELECT - - 42 AS col0, 73
----
42
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3926
SELECT ALL 98 DIV + - 5
----
-19

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL 98 / + - 5
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3927
SELECT ALL COUNT( + CAST( NULL AS SIGNED ) ) + - 34 * + COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL COUNT ( + CAST ( NULL AS INTEGER ) ) + - 34 * + COUNT ( * ) AS col2
----
-34

query II rowsort
SELECT ALL 51 * + ( + 32 ) col2, 26 col0
----
1632
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL SUM( + 41 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL SUM ( + 41 ) col0
----
41

query II rowsort
SELECT + 50 * + 85 AS col0, 19 * + 9 col0
----
4250
171

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL - COUNT( 20 ) - + 0 + - 81
----
-82

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL - COUNT ( 20 ) - + 0 + - 81
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3932
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) AS col0, + 2 DIV - 31 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3932
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) ) AS col0, + 2 / - 31 AS col1
----
NULL
0

query I rowsort
SELECT + 90 + ( - - 96 ) * + 31 AS col1
----
3066

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT + 67 + - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-3934
SELECT + 67 + - COUNT ( * )
----
66

query I rowsort
SELECT - 90 * - + 2
----
180

query I rowsort
SELECT ALL ( + + 85 )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3937
SELECT ALL - 2 * + CAST( NULL AS SIGNED ) AS col0, - 48
----
NULL
-48

skipif mysql # not compatible
query II rowsort label-3937
SELECT ALL - 2 * + CAST ( NULL AS INTEGER ) AS col0, - 48
----
NULL
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3938
SELECT - 77 + 48 DIV + 50 + 3 + - 42
----
-116

skipif mysql # not compatible
query I rowsort label-3938
SELECT - 77 + 48 / + 50 + 3 + - 42
----
-116

query I rowsort
SELECT - - ( 25 ) * 78 AS col0
----
1950

query I rowsort
SELECT + + 16 * - ( - 1 ) + - + 73
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-3941
SELECT ALL + ( + + COUNT( * ) ), - 54 col1
----
1
-54

skipif mysql # not compatible
query II rowsort label-3941
SELECT ALL + ( + + COUNT ( * ) ), - 54 col1
----
1
-54

query I rowsort
SELECT - 52 * - NULLIF ( + 6, - + 52 ) AS col2
----
312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3943
SELECT + 26 + + 95 + + - 89 + - + COUNT( * ) + - COUNT( * ) * - 92 DIV 59 + + + COALESCE ( + 38, 79 * + + 77 + - 92 + - 84 ) + - - 42 * + + 53 AS col1
----
2296

skipif mysql # not compatible
query I rowsort label-3943
SELECT + 26 + + 95 + + - 89 + - + COUNT ( * ) + - COUNT ( * ) * - 92 / 59 + + + COALESCE ( + 38, 79 * + + 77 + - 92 + - 84 ) + - - 42 * + + 53 AS col1
----
2296

query I rowsort
SELECT - - 85 * 89 + - - 87 * - + 79 AS col2
----
692

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT + 40 + 45 + - 44 * + + COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3945
SELECT + 40 + 45 + - 44 * + + COUNT ( * ) AS col1
----
41

query I rowsort
SELECT ALL + - COALESCE ( - ( 92 ), + 52 * + 7 * - 36 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT DISTINCT + ( - - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT + ( - - COUNT ( * ) ) col0
----
1

query I rowsort
SELECT ALL 78 * - 14 + - 95
----
-1187

query I rowsort
SELECT ALL - 50 * - 14 + - 38
----
662

query I rowsort
SELECT - 6 + - - 71 col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3951
SELECT ALL - + 11 DIV - MAX( DISTINCT + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - + 11 / - MAX ( DISTINCT + 80 )
----
0

query I rowsort
SELECT ALL + 57 * + - 83 + 15 AS col1
----
-4716

query I rowsort
SELECT ALL - 21 * 45 * 69 * 5 + + 66
----
-325959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3954
SELECT - + COUNT( * ) * - ( + CAST( NULL AS SIGNED ) ) - 98 - + + MAX( + + 82 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT - + COUNT ( * ) * - ( + CAST ( NULL AS INTEGER ) ) - 98 - + + MAX ( + + 82 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT DISTINCT 85 * + ( 88 ) - + 88 DIV - 41 + + 63 AS col0
----
7545

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT 85 * + ( 88 ) - + 88 / - 41 + + 63 AS col0
----
7545

query II rowsort
SELECT NULLIF ( + - 95, 43 * - 98 ), 29 AS col0
----
-95
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT + 86 * - - MAX( DISTINCT 46 ) * + - 26
----
-102856

skipif mysql # not compatible
query I rowsort label-3957
SELECT + 86 * - - MAX ( DISTINCT 46 ) * + - 26
----
-102856

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT + CASE WHEN NOT ( NULL ) IS NOT NULL THEN + MAX( DISTINCT + + 99 ) END AS col0
----
99

skipif mysql # not compatible
query I rowsort label-3958
SELECT + CASE WHEN NOT ( NULL ) IS NOT NULL THEN + MAX ( DISTINCT + + 99 ) END AS col0
----
99

query I rowsort
SELECT DISTINCT 15 * - 2 + - - 39 + + 93
----
102

query I rowsort
SELECT DISTINCT 84 * - 53 * - 14 + - + 95
----
62233

onlyif mysql # aggregate syntax: 
query II rowsort label-3961
SELECT ALL 25 AS col1, + COUNT( * ) * 22 * + - 87 AS col1
----
25
-1914

skipif mysql # not compatible
query II rowsort label-3961
SELECT ALL 25 AS col1, + COUNT ( * ) * 22 * + - 87 AS col1
----
25
-1914

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT MAX( + 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3962
SELECT MAX ( + 8 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT - COALESCE ( - 57, - COUNT( * ) + + - 60 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3963
SELECT - COALESCE ( - 57, - COUNT ( * ) + + - 60 ) AS col1
----
57

query I rowsort
SELECT + 20 + 32
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3965
SELECT - CAST( + 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-3965
SELECT - CAST ( + 72 AS INTEGER )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT + COUNT( - 6 ) + - 6 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3966
SELECT + COUNT ( - 6 ) + - 6 AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT ALL CAST( NULL AS SIGNED ) - + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL CAST ( NULL AS INTEGER ) - + 66
----
NULL

query I rowsort
SELECT + 67 * - 14 AS col2
----
-938

query I rowsort
SELECT - 73 + - 17
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3970
SELECT + 84 DIV + 16 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3970
SELECT + 84 / + 16 AS col1
----
5

query I rowsort
SELECT ALL 55 * 15 AS col1
----
825

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL CASE 45 WHEN MAX( ALL + 38 ) THEN NULL WHEN + MAX( + 17 ) * - 13 THEN + 24 + + 27 * - + AVG ( ALL - 35 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL CASE 45 WHEN MAX ( ALL + 38 ) THEN NULL WHEN + MAX ( + 17 ) * - 13 THEN + 24 + + 27 * - + AVG ( ALL - 35 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3973
SELECT ALL COALESCE ( ( + 4 ), + 69, - + MAX( ALL 71 ) ) * + + 0 DIV + 34 + - 5 * - - 10 + + + MAX( DISTINCT - 37 ) + 94 * 60
----
5553

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL COALESCE ( ( + 4 ), + 69, - + MAX ( ALL 71 ) ) * + + 0 / + 34 + - 5 * - - 10 + + + MAX ( DISTINCT - 37 ) + 94 * 60
----
5553

query I rowsort
SELECT DISTINCT 1 * + 93 AS col2
----
93

query II rowsort
SELECT ALL + 41 AS col2, 51 * - 19
----
41
-969

query II rowsort
SELECT - 82 AS col1, 17
----
-82
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3977
SELECT - 93, ( + COUNT( * ) ) AS col0
----
-93
1

skipif mysql # not compatible
query II rowsort label-3977
SELECT - 93, ( + COUNT ( * ) ) AS col0
----
-93
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3978
SELECT - - 74, COUNT( * ) AS col2
----
74
1

skipif mysql # not compatible
query II rowsort label-3978
SELECT - - 74, COUNT ( * ) AS col2
----
74
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT + SUM( - 60 ) * + 27 - + ( 32 )
----
-1652

skipif mysql # not compatible
query I rowsort label-3979
SELECT + SUM ( - 60 ) * + 27 - + ( 32 )
----
-1652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3980
SELECT + ( + CAST( - 62 AS SIGNED ) )
----
-62

skipif mysql # not compatible
query I rowsort label-3980
SELECT + ( + CAST ( - 62 AS INTEGER ) )
----
-62

query I rowsort
SELECT DISTINCT + 87 + - 7
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3982
SELECT ALL - - 75 + - CAST( NULL AS SIGNED ) - - - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL - - 75 + - CAST ( NULL AS INTEGER ) - - - 66
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3983
SELECT + 67 * + 19 DIV - NULLIF ( + COUNT( * ), - COUNT( * ) * + ( + 36 ) ) + + 76 - + + 92 + 98 col2
----
-1191

skipif mysql # not compatible
query I rowsort label-3983
SELECT + 67 * + 19 / - NULLIF ( + COUNT ( * ), - COUNT ( * ) * + ( + 36 ) ) + + 76 - + + 92 + 98 col2
----
-1191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3984
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1, - 73 + + - 53 DIV ( + MAX( DISTINCT - 98 ) )
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-3984
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, - 73 + + - 53 / ( + MAX ( DISTINCT - 98 ) )
----
NULL
-73

query I rowsort
SELECT + NULLIF ( + 90, + 7 - + + 77 + - + 50 ) AS col1
----
90

query I rowsort
SELECT ALL - 51 * - - 67
----
-3417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3987
SELECT 64 DIV - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-3987
SELECT 64 / - COUNT ( * )
----
-64

query I rowsort
SELECT CASE - 14 WHEN - - 50 + + NULLIF ( - 88, - 13 ) THEN 4 ELSE NULL END * COALESCE ( 81, + 24 ) + + - 17 + + 34 * - - 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3989
SELECT COUNT( * ) AS col2, + COUNT( * ) * - - 40 * 4
----
1
160

skipif mysql # not compatible
query II rowsort label-3989
SELECT COUNT ( * ) AS col2, + COUNT ( * ) * - - 40 * 4
----
1
160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3990
SELECT CASE 13 WHEN + 58 THEN + + 98 WHEN - NULLIF ( - COUNT( * ), + COUNT( * ) + + + CASE CASE - - 43 WHEN + 79 THEN - 57 - + + ( ( 75 ) ) WHEN - 72 THEN NULL WHEN - + 66 THEN COALESCE ( - - COUNT( * ), - 29 ) * + 72 + 36 ELSE NULL END WHEN - 84 * - COUNT( * ) + + 94 THEN 95 * - 32 + - 62 WHEN - - 54 * - - CAST( - - COUNT( ALL 25 ) AS DECIMAL ) THEN NULL ELSE + - 6 END ) THEN NULL ELSE + + 76 END + + - 44
----
32

skipif mysql # not compatible
query I rowsort label-3990
SELECT CASE 13 WHEN + 58 THEN + + 98 WHEN - NULLIF ( - COUNT ( * ), + COUNT ( * ) + + + CASE CASE - - 43 WHEN + 79 THEN - 57 - + + ( ( 75 ) ) WHEN - 72 THEN NULL WHEN - + 66 THEN COALESCE ( - - COUNT ( * ), - 29 ) * + 72 + 36 ELSE NULL END WHEN - 84 * - COUNT ( * ) + + 94 THEN 95 * - 32 + - 62 WHEN - - 54 * - - CAST ( - - COUNT ( ALL 25 ) AS REAL ) THEN NULL ELSE + - 6 END ) THEN NULL ELSE + + 76 END + + - 44
----
32

query I rowsort
SELECT DISTINCT - + 46 + + 21
----
-25

query I rowsort
SELECT + - 56 col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-3993
SELECT - - ( - 16 ) * - CASE 75 WHEN 14 - + ( - - CASE 28 WHEN COUNT( * ) THEN NULL ELSE - ( - 7 ) / + SUM( DISTINCT 21 ) END ) THEN NULL WHEN + COUNT( * ) THEN + - 15 * - 14 END + 29 * - 67 AS col2, 61
----
NULL
61

skipif mysql # not compatible
query II rowsort label-3993
SELECT - - ( - 16 ) * - CASE 75 WHEN 14 - + ( - - CASE 28 WHEN COUNT ( * ) THEN NULL ELSE - ( - 7 ) / + SUM ( DISTINCT 21 ) END ) THEN NULL WHEN + COUNT ( * ) THEN + - 15 * - 14 END + 29 * - 67 AS col2, 61
----
NULL
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3994
SELECT DISTINCT + 18 DIV 70 AS col2, + SUM( + 77 ) * + 78 - - NULLIF ( 34, + MIN( ALL - + 7 ) ) DIV + NULLIF ( + - 13, - - 91 )
----
0
6004

skipif mysql # not compatible
query II rowsort label-3994
SELECT DISTINCT + 18 / 70 AS col2, + SUM ( + 77 ) * + 78 - - NULLIF ( 34, + MIN ( ALL - + 7 ) ) / + NULLIF ( + - 13, - - 91 )
----
0
6004

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT 98 * - MAX( DISTINCT - + 35 ) AS col1
----
3430

skipif mysql # not compatible
query I rowsort label-3995
SELECT 98 * - MAX ( DISTINCT - + 35 ) AS col1
----
3430

query I rowsort
SELECT DISTINCT - 91 - + + 20 + 55
----
-56

query I rowsort
SELECT ALL - NULLIF ( 97, - NULLIF ( - 74, + 92 ) * - - 73 )
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3998
SELECT DISTINCT + COUNT( * ) DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT + COUNT ( * ) / - 82
----
0

query I rowsort
SELECT ALL ( + 41 ) * - - NULLIF ( + - 87, - 24 * 82 * - - NULLIF ( 43, 29 ) )
----
-3567

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT COUNT( * ) * - COUNT( * ) * 14 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4000
SELECT COUNT ( * ) * - COUNT ( * ) * 14 AS col0
----
-14

query II rowsort
SELECT ALL - ( - 23 ) AS col2, 28
----
23
28

query I rowsort
SELECT 97 - + 84 + + + 24
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4003
SELECT 0 + + ( - CAST( - 58 AS SIGNED ) ) - + - COALESCE ( + - 17, - + 23 - - 14 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-4003
SELECT 0 + + ( - CAST ( - 58 AS INTEGER ) ) - + - COALESCE ( + - 17, - + 23 - - 14 ) AS col1
----
41

query I rowsort
SELECT 36 * + 79 AS col1
----
2844

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT COUNT( * ) - - 53
----
54

skipif mysql # not compatible
query I rowsort label-4005
SELECT COUNT ( * ) - - 53
----
54

query I rowsort
SELECT 26 * 94 AS col2
----
2444

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT MIN( + 62 ) * 11 * 13 + - 80 * ( - 20 )
----
10466

skipif mysql # not compatible
query I rowsort label-4007
SELECT MIN ( + 62 ) * 11 * 13 + - 80 * ( - 20 )
----
10466

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL - NULLIF ( - - SUM( ALL - 73 ), - 90 + + 57 ) * - 54
----
-3942

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - NULLIF ( - - SUM ( ALL - 73 ), - 90 + + 57 ) * - 54
----
-3942

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT + CASE - - 88 WHEN - + 36 THEN - 1 ELSE + ( 7 ) * - + COUNT( * ) END - + + 54
----
-61

skipif mysql # not compatible
query I rowsort label-4009
SELECT + CASE - - 88 WHEN - + 36 THEN - 1 ELSE + ( 7 ) * - + COUNT ( * ) END - + + 54
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT MAX( - - 1 ) + - 32
----
-31

skipif mysql # not compatible
query I rowsort label-4010
SELECT MAX ( - - 1 ) + - 32
----
-31

query I rowsort
SELECT ( - 7 ) - + 94 * + - 8
----
745

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT MAX( - - 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4012
SELECT MAX ( - - 79 ) AS col2
----
79

query I rowsort
SELECT + 39 + - ( - 93 ) AS col0
----
132

query I rowsort
SELECT - + ( + 27 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT ALL - CAST( + - 20 AS SIGNED ) + - 51 col0
----
-31

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - CAST ( + - 20 AS INTEGER ) + - 51 col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT 22 + 97 - - NULLIF ( + 94, - CAST( NULL AS SIGNED ) * - + 87 - - 28 + - AVG ( ALL + 71 ) + - - 66 )
----
213

skipif mysql # not compatible
query I rowsort label-4016
SELECT 22 + 97 - - NULLIF ( + 94, - CAST ( NULL AS INTEGER ) * - + 87 - - 28 + - AVG ( ALL + 71 ) + - - 66 )
----
213

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4017
SELECT 68 + + - 61 + 5 * - NULLIF ( CASE + 68 WHEN - 19 THEN NULL WHEN - 68 THEN NULL ELSE + + 30 END, - + 33 ) * - CAST( NULL AS DECIMAL ) + - + 23 + - 64 + CAST( NULL AS SIGNED ) * - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT 68 + + - 61 + 5 * - NULLIF ( CASE + 68 WHEN - 19 THEN NULL WHEN - 68 THEN NULL ELSE + + 30 END, - + 33 ) * - CAST ( NULL AS REAL ) + - + 23 + - 64 + CAST ( NULL AS INTEGER ) * - 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT DISTINCT - 55 + COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT - 55 + COUNT ( * ) AS col0
----
-54

query I rowsort
SELECT ALL 58 + - 11 * 57 AS col2
----
-569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT - 98 * - COUNT( * ) * + CAST( - - 45 AS SIGNED ) AS col1
----
4410

skipif mysql # not compatible
query I rowsort label-4020
SELECT - 98 * - COUNT ( * ) * + CAST ( - - 45 AS INTEGER ) AS col1
----
4410

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL 72 + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL 72 + COUNT ( * )
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4022
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) * COUNT( * ) * 30 AS col1, - 22 / - CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4022
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) * COUNT ( * ) * 30 AS col1, - 22 / - CAST ( NULL AS REAL )
----
NULL
NULL

query I rowsort
SELECT ALL - + 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT COUNT( * ) + + + 2 + - - 23
----
26

skipif mysql # not compatible
query I rowsort label-4024
SELECT COUNT ( * ) + + + 2 + - - 23
----
26

query I rowsort
SELECT DISTINCT - - 3
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4026
SELECT NULLIF ( - 7, + - 34 + + COUNT( * ) ) AS col1, 95
----
-7
95

skipif mysql # not compatible
query II rowsort label-4026
SELECT NULLIF ( - 7, + - 34 + + COUNT ( * ) ) AS col1, 95
----
-7
95

query I rowsort
SELECT ALL + + 31 * - 6 AS col2
----
-186

query I rowsort
SELECT ALL - + 68 - - 84 col2
----
16

query I rowsort
SELECT DISTINCT + + 6 * + - 35
----
-210

query I rowsort
SELECT 10 * 55
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL COUNT( * ) * - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL COUNT ( * ) * - 92 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT 33 * - + 72 * + - 22 + - COUNT( * )
----
52271

skipif mysql # not compatible
query I rowsort label-4032
SELECT 33 * - + 72 * + - 22 + - COUNT ( * )
----
52271

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT ALL + ( COUNT( * ) ) * 5
----
5

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + ( COUNT ( * ) ) * 5
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4034
SELECT CAST( NULL AS DECIMAL ) + + 36 * + - 34 + + 97 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT CAST ( NULL AS REAL ) + + 36 * + - 34 + + 97 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4035
SELECT - COUNT( + 2 ) * + - 9 - + - 14 - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT - COUNT ( + 2 ) * + - 9 - + - 14 - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 27 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT 32 + + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4037
SELECT 32 + + COUNT ( * ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT DISTINCT + 61 DIV - - 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT + 61 / - - 77 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4039
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) + COUNT( * ) + 35 * COALESCE ( 71, COUNT( * ), + COALESCE ( 1, + + 69 + - COALESCE ( + NULLIF ( - 54, + 92 ), + ( + ( - - 68 ) ) * 49 * - + 38 + - 27 + + CAST( + - 73 AS SIGNED ) ) / + + 77 * - 10 + - + COUNT( * ) + 11 * + 73, + 77 * 59 ) ) * 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) + 35 * COALESCE ( 71, COUNT ( * ), + COALESCE ( 1, + + 69 + - COALESCE ( + NULLIF ( - 54, + 92 ), + ( + ( - - 68 ) ) * 49 * - + 38 + - 27 + + CAST ( + - 73 AS INTEGER ) ) / + + 77 * - 10 + - + COUNT ( * ) + 11 * + 73, + 77 * 59 ) ) * 35 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4040
SELECT DISTINCT NULLIF ( + - 75, COUNT( DISTINCT - 32 ) * - + 21 / + COALESCE ( - 70, + CAST( - - COUNT( * ) AS SIGNED ), - 56 ) + COUNT( * ) ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT NULLIF ( + - 75, COUNT ( DISTINCT - 32 ) * - + 21 / + COALESCE ( - 70, + CAST ( - - COUNT ( * ) AS INTEGER ), - 56 ) + COUNT ( * ) ) AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT ALL 8 * 69 * - CAST( + CASE + 25 WHEN + + COALESCE ( - 78, + 75 + - 51 * + - 55 ) / - - 73 / 45 + + COALESCE ( + 47, 83 * - 62, + - CASE + 12 WHEN 84 / - 98 THEN - + ( - 74 ) ELSE + 25 / - - 13 - + 92 END ) THEN NULL WHEN + ( + ( - 67 ) ) THEN - - 5 * - 12 - + CAST( + 31 AS SIGNED ) * + - 82 END AS SIGNED ) * - - 30 * - 36 * - 31 - + MAX( 43 ) + - 43 - + 52 * + + 79 * - 60 * - 91 - - ( - ( + 36 ) ) + + NULLIF ( 17 - - 27, MAX( + 0 ) * 1 ) / + 36 * CASE 52 WHEN 97 THEN NULL WHEN 51 * 86 THEN 29 WHEN 25 * 1 THEN NULL END / CAST( + 19 - + 68 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL 8 * 69 * - CAST ( + CASE + 25 WHEN + + COALESCE ( - 78, + 75 + - 51 * + - 55 ) / - - 73 / 45 + + COALESCE ( + 47, 83 * - 62, + - CASE + 12 WHEN 84 / - 98 THEN - + ( - 74 ) ELSE + 25 / - - 13 - + 92 END ) THEN NULL WHEN + ( + ( - 67 ) ) THEN - - 5 * - 12 - + CAST ( + 31 AS INTEGER ) * + - 82 END AS INTEGER ) * - - 30 * - 36 * - 31 - + MAX ( 43 ) + - 43 - + 52 * + + 79 * - 60 * - 91 - - ( - ( + 36 ) ) + + NULLIF ( 17 - - 27, MAX ( + 0 ) * 1 ) / + 36 * CASE 52 WHEN 97 THEN NULL WHEN 51 * 86 THEN 29 WHEN 25 * 1 THEN NULL END / CAST ( + 19 - + 68 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 70 + 82 AS col0
----
12

query I rowsort
SELECT ALL + 98 * - 5
----
-490

query I rowsort
SELECT ALL - 43 + 87
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT ALL + + COUNT( * ) * - 84 * - 65 + + 26
----
5486

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL + + COUNT ( * ) * - 84 * - 65 + + 26
----
5486

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT - + 72 * COUNT( * ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-4046
SELECT - + 72 * COUNT ( * ) col1
----
-72

query II rowsort
SELECT ALL 62 + + 60 * - 58 AS col2, + NULLIF ( + 14, + - 85 )
----
-3418
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4048
SELECT ALL COUNT( DISTINCT - + 43 ) + + NULLIF ( + 62, CASE - 69 WHEN + + 85 THEN + 8 WHEN + 54 THEN NULL ELSE NULL END * 45 ) AS col1, + CASE COUNT( * ) WHEN + - 74 THEN - 23 END * + CAST( NULL AS SIGNED ) + + 77 + - 20 * + + 66 / + 79 AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-4048
SELECT ALL COUNT ( DISTINCT - + 43 ) + + NULLIF ( + 62, CASE - 69 WHEN + + 85 THEN + 8 WHEN + 54 THEN NULL ELSE NULL END * 45 ) AS col1, + CASE COUNT ( * ) WHEN + - 74 THEN - 23 END * + CAST ( NULL AS INTEGER ) + + 77 + - 20 * + + 66 / + 79 AS col2
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT DISTINCT + NULLIF ( 97, - 71 * - 22 ) + + MAX( DISTINCT - - ( + + 87 ) )
----
184

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT + NULLIF ( 97, - 71 * - 22 ) + + MAX ( DISTINCT - - ( + + 87 ) )
----
184

onlyif mysql # DIV for integer division: 
query II rowsort label-4050
SELECT ALL + 78 col0, - 19 DIV 40
----
78
0

skipif mysql # not compatible
query II rowsort label-4050
SELECT ALL + 78 col0, - 19 / 40
----
78
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4051
SELECT DISTINCT - 59 + - COUNT( + COALESCE ( 76, - CAST( NULL AS DECIMAL ), + - NULLIF ( + + 76, 99 / + - 38 ), - 24 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - 59 + - COUNT ( + COALESCE ( 76, - CAST ( NULL AS REAL ), + - NULLIF ( + + 76, 99 / + - 38 ), - 24 ) )
----
-60

query I rowsort
SELECT ALL - - 4 + - 16 * 59 AS col2
----
-940

query I rowsort
SELECT - + 46 - + 1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4054
SELECT + + ( - 9 ) * + 28, CASE + 14 WHEN + 82 THEN + 56 END + + MIN( DISTINCT + + 92 ) - + 10 col1
----
-252
NULL

skipif mysql # not compatible
query II rowsort label-4054
SELECT + + ( - 9 ) * + 28, CASE + 14 WHEN + 82 THEN + 56 END + + MIN ( DISTINCT + + 92 ) - + 10 col1
----
-252
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT ALL + 35 DIV + + 49 * - 3
----
0

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL + 35 / + + 49 * - 3
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4056
SELECT + COUNT( * ) AS col0, 20 AS col0
----
1
20

skipif mysql # not compatible
query II rowsort label-4056
SELECT + COUNT ( * ) AS col0, 20 AS col0
----
1
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4057
SELECT - - 93, - NULLIF ( + 15, + 77 ) * NULLIF ( + - ( - - MAX( DISTINCT + - 85 ) ), - 54 ) DIV + 84 - + 59 AS col2
----
93
-74

skipif mysql # not compatible
query II rowsort label-4057
SELECT - - 93, - NULLIF ( + 15, + 77 ) * NULLIF ( + - ( - - MAX ( DISTINCT + - 85 ) ), - 54 ) / + 84 - + 59 AS col2
----
93
-74

query I rowsort
SELECT DISTINCT + - CASE + 82 WHEN - + 65 * - 76 + 72 THEN - 15 END
----
NULL

query I rowsort
SELECT + 28 * 28 * - - 92 col2
----
72128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4060
SELECT ALL 33 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL 33 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL MIN( - 4 ) * - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL MIN ( - 4 ) * - COUNT ( * ) AS col2
----
4

query II rowsort
SELECT DISTINCT + 59 AS col1, 31 * + + ( + 55 )
----
59
1705

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT + 80 DIV - 11 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4063
SELECT + 80 / - 11 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4064
SELECT ALL + 71 col0, - COUNT( * )
----
71
-1

skipif mysql # not compatible
query II rowsort label-4064
SELECT ALL + 71 col0, - COUNT ( * )
----
71
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT + NULLIF ( + + CAST( 99 AS SIGNED ), - 46 )
----
99

skipif mysql # not compatible
query I rowsort label-4065
SELECT + NULLIF ( + + CAST ( 99 AS INTEGER ), - 46 )
----
99

query I rowsort
SELECT - 97 + + - ( - 9 ) AS col1
----
-88

query I rowsort
SELECT - 84 * - 24 - 44
----
1972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4068
SELECT ALL + SUM( CAST( - 92 AS SIGNED ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL + SUM ( CAST ( - 92 AS INTEGER ) ) AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4069
SELECT CASE - 10 WHEN - - COUNT( * ) THEN - 77 * - CAST( NULL AS DECIMAL ) / + 86 * 21 - - - 48 + 79 / 18 WHEN - 13 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT CASE - 10 WHEN - - COUNT ( * ) THEN - 77 * - CAST ( NULL AS REAL ) / + 86 * 21 - - - 48 + 79 / 18 WHEN - 13 THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL + 61 AS col1, + 44 AS col1
----
61
44

query I rowsort
SELECT + ( + 30 )
----
30

query I rowsort
SELECT ALL 46 * + ( 43 ) + + - 68
----
1910

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT + COUNT( * ) * 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4073
SELECT + COUNT ( * ) * 73 AS col2
----
73

query I rowsort
SELECT ALL - 38 * + 53 + - 21 * + 6
----
-2140

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4075
SELECT + 43 AS col1, + 93 DIV + + 83 + COUNT( * ) AS col1
----
43
2

skipif mysql # not compatible
query II rowsort label-4075
SELECT + 43 AS col1, + 93 / + + 83 + COUNT ( * ) AS col1
----
43
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT DISTINCT + COUNT( * ) * - 19 + - - 98 + 96 AS col0
----
175

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT + COUNT ( * ) * - 19 + - - 98 + 96 AS col0
----
175

query I rowsort
SELECT - 8 * 43 AS col0
----
-344

query I rowsort
SELECT DISTINCT - 66 * 37 AS col1
----
-2442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4079
SELECT - 8 AS col0, 63 + - + CAST( - 73 AS SIGNED ) + + ( + COUNT( ALL + 96 ) ) col2
----
-8
137

skipif mysql # not compatible
query II rowsort label-4079
SELECT - 8 AS col0, 63 + - + CAST ( - 73 AS INTEGER ) + + ( + COUNT ( ALL + 96 ) ) col2
----
-8
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4080
SELECT - 60 DIV - 44 DIV + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4080
SELECT - 60 / - 44 / + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL - 39 + - 72 + - 19
----
-130

onlyif mysql # DIV for integer division: 
query II rowsort label-4082
SELECT ALL 12 AS col1, + 95 DIV 50 + - 88 * - 53
----
12
4665

skipif mysql # not compatible
query II rowsort label-4082
SELECT ALL 12 AS col1, + 95 / 50 + - 88 * - 53
----
12
4665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4083
SELECT ALL - + MAX( - 98 ) DIV - - 1 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL - + MAX ( - 98 ) / - - 1 AS col1
----
98

query I rowsort
SELECT ALL - - 52 + + 77
----
129

query I rowsort
SELECT ALL - 8 col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT DISTINCT - 8 * 75 + COUNT( * ) - - 6 * 33 AS col1
----
-401

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT - 8 * 75 + COUNT ( * ) - - 6 * 33 AS col1
----
-401

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL + MIN( ALL + 11 ) - + 92 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL + MIN ( ALL + 11 ) - + 92 AS col0
----
-81

query II rowsort
SELECT - 68 AS col1, + 87 * - 15
----
-68
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT - - 75 + MIN( DISTINCT + 31 ) + - 81 - - 0 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4089
SELECT - - 75 + MIN ( DISTINCT + 31 ) + - 81 - - 0 AS col2
----
25

query I rowsort
SELECT - 80 - + ( - 84 ) * - 5
----
-500

query I rowsort
SELECT - 23 + + 68
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4092
SELECT - COALESCE ( 93, COUNT( * ) + + 82 * + + 95 ) * + 23 DIV + COUNT( * )
----
-2139

skipif mysql # not compatible
query I rowsort label-4092
SELECT - COALESCE ( 93, COUNT ( * ) + + 82 * + + 95 ) * + 23 / + COUNT ( * )
----
-2139

query I rowsort
SELECT - 37 + - 51
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT DISTINCT + ( COALESCE ( + 80, - 5 ) ) * + - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT + ( COALESCE ( + 80, - 5 ) ) * + - COUNT ( * )
----
-80

query I rowsort
SELECT ALL + + 97 * + 28 + - 43
----
2673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4096
SELECT - CASE 78 WHEN 84 THEN - 87 * 65 + 96 WHEN CASE 78 WHEN - 66 + ( 58 ) THEN - 98 WHEN - 14 + - COALESCE ( + 96, + - 44 / - + NULLIF ( + - 13, - 30 * + 4 ) + - - 59 * - 48, - + 63 * - CAST( NULL AS SIGNED ) ) THEN - COALESCE ( COUNT( * ), + + MAX( + + NULLIF ( - 83, + ( + + ( + ( 38 ) ) ) ) ) ) WHEN - 41 THEN + 83 ELSE + COUNT( * ) * - 97 END THEN - 40 + - - NULLIF ( + + 11, - 19 ) + COALESCE ( + - COALESCE ( 75, - CAST( NULL AS SIGNED ) + + 90 ), 28 + + COALESCE ( - COUNT( * ), + 94 ) ) / + 16 ELSE NULL END + 75 * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT - CASE 78 WHEN 84 THEN - 87 * 65 + 96 WHEN CASE 78 WHEN - 66 + ( 58 ) THEN - 98 WHEN - 14 + - COALESCE ( + 96, + - 44 / - + NULLIF ( + - 13, - 30 * + 4 ) + - - 59 * - 48, - + 63 * - CAST ( NULL AS INTEGER ) ) THEN - COALESCE ( COUNT ( * ), + + MAX ( + + NULLIF ( - 83, + ( + + ( + ( 38 ) ) ) ) ) ) WHEN - 41 THEN + 83 ELSE + COUNT ( * ) * - 97 END THEN - 40 + - - NULLIF ( + + 11, - 19 ) + COALESCE ( + - COALESCE ( 75, - CAST ( NULL AS INTEGER ) + + 90 ), 28 + + COALESCE ( - COUNT ( * ), + 94 ) ) / + 16 ELSE NULL END + 75 * 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT - 12 * COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT - 12 * COUNT ( * ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL CASE + + COUNT( * ) WHEN - 23 THEN 68 WHEN - 69 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL CASE + + COUNT ( * ) WHEN - 23 THEN 68 WHEN - 69 THEN NULL ELSE NULL END col2
----
NULL

query II rowsort
SELECT 93 AS col1, 59 * + 88 * + 72
----
93
373824

onlyif mysql # DIV for integer division: 
query I rowsort label-4100
SELECT ALL - 73 * - - COALESCE ( + + 45, + 27 * - NULLIF ( + CASE - 10 WHEN - 63 THEN 12 DIV + 45 DIV + 32 WHEN - 79 THEN NULL ELSE NULL END, + 97 ), + 42 ) AS col2
----
-3285

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL - 73 * - - COALESCE ( + + 45, + 27 * - NULLIF ( + CASE - 10 WHEN - 63 THEN 12 / + 45 / + 32 WHEN - 79 THEN NULL ELSE NULL END, + 97 ), + 42 ) AS col2
----
-3285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT + - CAST( 23 AS SIGNED ) * - ( + 84 ) AS col2
----
1932

skipif mysql # not compatible
query I rowsort label-4101
SELECT + - CAST ( 23 AS INTEGER ) * - ( + 84 ) AS col2
----
1932

onlyif mysql # DIV for integer division: 
query I rowsort label-4102
SELECT DISTINCT 45 DIV + CASE 40 WHEN + 11 THEN NULL ELSE - 46 * - - 9 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT 45 / + CASE 40 WHEN + 11 THEN NULL ELSE - 46 * - - 9 END AS col1
----
0

query I rowsort
SELECT - 51 * + 25
----
-1275

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT - 68 DIV 34 * 34 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4104
SELECT - 68 / 34 * 34 AS col1
----
-68

query I rowsort
SELECT + 74 * ( 61 ) AS col1
----
4514

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL + ( CASE WHEN NOT NULL IN ( - 66 ) THEN + 28 * 6 * 93 WHEN NULL > NULL THEN NULL ELSE + COUNT( * ) END )
----
1

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL + ( CASE WHEN NOT NULL IN ( - 66 ) THEN + 28 * 6 * 93 WHEN NULL > NULL THEN NULL ELSE + COUNT ( * ) END )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4107
SELECT DISTINCT - 27 DIV + 51 + + 85 col2
----
85

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT - 27 / + 51 + + 85 col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4108
SELECT ALL - ( + 50 ) DIV - + 22 + + 5 + + 84 - COUNT( - - 92 ) * - - 61 * + 23 * COUNT( 7 ) AS col1
----
-1312

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL - ( + 50 ) / - + 22 + + 5 + + 84 - COUNT ( - - 92 ) * - - 61 * + 23 * COUNT ( 7 ) AS col1
----
-1312

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4109
SELECT + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT ( + 1 ) + + - COUNT( - 55 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT ( + 1 ) + + - COUNT ( - 55 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT + 41 * - + MIN( - ( - + 96 ) ) + CAST( - 27 AS SIGNED ) AS col0
----
-3963

skipif mysql # not compatible
query I rowsort label-4111
SELECT + 41 * - + MIN ( - ( - + 96 ) ) + CAST ( - 27 AS INTEGER ) AS col0
----
-3963

query II rowsort
SELECT ALL 66 + + 47 AS col0, 17 AS col0
----
113
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT SUM( DISTINCT + 20 ) + - - 3
----
23

skipif mysql # not compatible
query I rowsort label-4113
SELECT SUM ( DISTINCT + 20 ) + - - 3
----
23

query I rowsort
SELECT DISTINCT - 28 col1
----
-28

query I rowsort
SELECT DISTINCT ( + 60 ) + - 97 * - + 68 * 85 * + 25 AS col1
----
14016560

query I rowsort
SELECT ALL ( + + 86 ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4117
SELECT + - 23 * CAST( NULL AS SIGNED ) / + + 47 * 69 + + + 0 * - ( - + 16 ) + + 79 + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT + - 23 * CAST ( NULL AS INTEGER ) / + + 47 * 69 + + + 0 * - ( - + 16 ) + + 79 + 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL + 59 - 3 + COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL + 59 - 3 + COUNT ( * ) AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4119
SELECT ALL + NULLIF ( - - SUM( 30 ), 7 + + COUNT( + CAST( NULL AS SIGNED ) ) )
----
30

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL + NULLIF ( - - SUM ( 30 ), 7 + + COUNT ( + CAST ( NULL AS INTEGER ) ) )
----
30

query I rowsort
SELECT + 41 + - ( - ( + + 52 ) )
----
93

query I rowsort
SELECT ALL - 79 - - 63 AS col2
----
-16

query I rowsort
SELECT - 50 * - 24 AS col0
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - CASE + - 61 WHEN + 32 THEN COUNT( * ) * + + 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - CASE + - 61 WHEN + 32 THEN COUNT ( * ) * + + 35 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT 97 + - 27 * + 63 + - + 51 DIV - 82 * + 17
----
-1604

skipif mysql # not compatible
query I rowsort label-4124
SELECT 97 + - 27 * + 63 + - + 51 / - 82 * + 17
----
-1604

query I rowsort
SELECT - 68 * 62
----
-4216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT ALL - 35 * CAST( NULLIF ( - 2, 51 * - - 47 ) AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL - 35 * CAST ( NULLIF ( - 2, 51 * - - 47 ) AS INTEGER )
----
70

query I rowsort
SELECT + 17 * 89 * - 82 * - - 31 AS col1
----
-3846046

query I rowsort
SELECT - 35 * + 35 col1
----
-1225

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT ALL - - COALESCE ( - 95, 39 ) DIV - 31
----
3

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL - - COALESCE ( - 95, 39 ) / - 31
----
3

query I rowsort
SELECT - ( - + 66 ) AS col0
----
66

query I rowsort
SELECT ALL NULLIF ( + 66, + 92 / ( 88 ) )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4132
SELECT DISTINCT - 24 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT - 24 / - 53
----
0

query I rowsort
SELECT COALESCE ( ( - - 87 ), - + 95 ) * + 78 AS col2
----
6786

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4134
SELECT ALL + - 49 * + + 67 / ( 64 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL + - 49 * + + 67 / ( 64 ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4135
SELECT - 24 - + COUNT( * ) AS col1, 48 * + - NULLIF ( - - 43, - COUNT( * ) )
----
-25
-2064

skipif mysql # not compatible
query II rowsort label-4135
SELECT - 24 - + COUNT ( * ) AS col1, 48 * + - NULLIF ( - - 43, - COUNT ( * ) )
----
-25
-2064

query II rowsort
SELECT 10 * - + 29 * - 18 AS col0, 30 AS col1
----
5220
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT - 62, + COALESCE ( 13, ( ( - 8 ) ), COUNT( DISTINCT + 92 ) ) AS col1
----
-62
13

skipif mysql # not compatible
query II rowsort label-4137
SELECT - 62, + COALESCE ( 13, ( ( - 8 ) ), COUNT ( DISTINCT + 92 ) ) AS col1
----
-62
13

query II rowsort
SELECT ALL 63 AS col1, - 93 AS col1
----
63
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT SUM( DISTINCT 46 ) + + + 97 + + 14 col2
----
157

skipif mysql # not compatible
query I rowsort label-4139
SELECT SUM ( DISTINCT 46 ) + + + 97 + + 14 col2
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4140
SELECT ALL - MIN( - + 39 ) + + COUNT( * ) * + 39 DIV - - COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL - MIN ( - + 39 ) + + COUNT ( * ) * + 39 / - - COUNT ( * ) AS col0
----
78

query I rowsort
SELECT DISTINCT - ( - 93 ) AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4142
SELECT DISTINCT 91 + + NULLIF ( CASE + + 45 WHEN + - COUNT( * ) * + 32 * - 64 * AVG ( ALL 7 ) THEN - COUNT( * ) ELSE + 37 * - + CAST( - 19 AS SIGNED ) * + + COUNT( * ) END, - + 88 * - 37 + 4 ) * + - 90 AS col2
----
-63179

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT 91 + + NULLIF ( CASE + + 45 WHEN + - COUNT ( * ) * + 32 * - 64 * AVG ( ALL 7 ) THEN - COUNT ( * ) ELSE + 37 * - + CAST ( - 19 AS INTEGER ) * + + COUNT ( * ) END, - + 88 * - 37 + 4 ) * + - 90 AS col2
----
-63179

query I rowsort
SELECT ALL - 84 + ( 25 ) * - 6 AS col0
----
-234

query I rowsort
SELECT DISTINCT - ( + 64 ) AS col1
----
-64

query I rowsort
SELECT DISTINCT 26 + + 91
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT ALL - CAST( - - 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL - CAST ( - - 14 AS INTEGER )
----
-14

query I rowsort
SELECT DISTINCT - 57 + + + 89
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4148
SELECT DISTINCT 90 + CAST( - ( + COALESCE ( + + 34, + - NULLIF ( + 96, 76 ) ) ) AS SIGNED ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT 90 + CAST ( - ( + COALESCE ( + + 34, + - NULLIF ( + 96, 76 ) ) ) AS INTEGER ) AS col1
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-4149
SELECT + 97 AS col2, 74 - - - 70 * - - 86 + - - NULLIF ( - 2, - - 85 ) + 44 DIV + 53 AS col2
----
97
-5948

skipif mysql # not compatible
query II rowsort label-4149
SELECT + 97 AS col2, 74 - - - 70 * - - 86 + - - NULLIF ( - 2, - - 85 ) + 44 / + 53 AS col2
----
97
-5948

query I rowsort
SELECT ALL 25 + 42
----
67

query I rowsort
SELECT ALL 43 * + 5
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT 67 / + CASE 98 WHEN + - 86 THEN 86 / + - 32 WHEN + 77 THEN + + 97 END * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT 67 / + CASE 98 WHEN + - 86 THEN 86 / + - 32 WHEN + 77 THEN + + 97 END * + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 39 - - 53 + 6
----
98

query I rowsort
SELECT ALL - 76 - + - 23 + 3
----
-50

query I rowsort
SELECT DISTINCT 36 - - 57 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT DISTINCT - 72 * - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT - 72 * - COUNT ( * ) AS col2
----
72

query II rowsort
SELECT ALL - 78, + 33 * 65 AS col2
----
-78
2145

query I rowsort
SELECT 22 + - 13 AS col0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-4159
SELECT 67 AS col1, 81 DIV + 43 AS col1
----
67
1

skipif mysql # not compatible
query II rowsort label-4159
SELECT 67 AS col1, 81 / + 43 AS col1
----
67
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT ALL + CAST( - - 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL + CAST ( - - 73 AS INTEGER )
----
73

query II rowsort
SELECT ALL 8 AS col0, 78 AS col1
----
8
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4162
SELECT - 89 * - + 28 * + 11 - MIN( COALESCE ( + 91, - - CAST( + - 71 AS SIGNED ) ) ) + - 73 * - + 56 + - NULLIF ( + 1, + MIN( DISTINCT 63 ) ) * - 88 + ( + 91 )
----
31588

skipif mysql # not compatible
query I rowsort label-4162
SELECT - 89 * - + 28 * + 11 - MIN ( COALESCE ( + 91, - - CAST ( + - 71 AS INTEGER ) ) ) + - 73 * - + 56 + - NULLIF ( + 1, + MIN ( DISTINCT 63 ) ) * - 88 + ( + 91 )
----
31588

query II rowsort
SELECT DISTINCT - 32 AS col1, 31 + + 21
----
-32
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL CASE - - 37 WHEN NULLIF ( + 4, COUNT( + + 5 ) ) * 32 THEN 40 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL CASE - - 37 WHEN NULLIF ( + 4, COUNT ( + + 5 ) ) * 32 THEN 40 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT 91 - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-4165
SELECT 91 - COUNT ( * )
----
90

query I rowsort
SELECT - 42 + 22
----
-20

query I rowsort
SELECT ALL - - 97 * 14 * - 43 * - 16 * - + 15 * + - 66
----
924960960

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT MIN( - - 66 ) * + + COUNT( * ) + + - 78 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4168
SELECT MIN ( - - 66 ) * + + COUNT ( * ) + + - 78 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT DISTINCT + 95 * - - MAX( 62 )
----
5890

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT + 95 * - - MAX ( 62 )
----
5890

query I rowsort
SELECT 71 + 22 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT 30 * + + COUNT( - ( + 76 ) )
----
30

skipif mysql # not compatible
query I rowsort label-4171
SELECT 30 * + + COUNT ( - ( + 76 ) )
----
30

query I rowsort
SELECT - 8 + + 77
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4173
SELECT 47 DIV + COUNT( * ) + - + 89 - + 1 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4173
SELECT 47 / + COUNT ( * ) + - + 89 - + 1 AS col0
----
-43

query I rowsort
SELECT + 22 + + 59
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT + 91 - 91 + COUNT( * ) + + 86 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4175
SELECT + 91 - 91 + COUNT ( * ) + + 86 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL - SUM( ALL + - 95 ) col0
----
95

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL - SUM ( ALL + - 95 ) col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-4177
SELECT - MAX( - - 89 ) AS col2, 38 col1
----
-89
38

skipif mysql # not compatible
query II rowsort label-4177
SELECT - MAX ( - - 89 ) AS col2, 38 col1
----
-89
38

query I rowsort
SELECT ALL + NULLIF ( 47, + 86 ) + + 93
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT 36 + + COUNT( * ) + + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-4179
SELECT 36 + + COUNT ( * ) + + COUNT ( * )
----
38

query I rowsort
SELECT 42 * + 41 AS col2
----
1722

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4181
SELECT ALL ( - COUNT( * ) ) + CAST( NULL AS DECIMAL ) + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL ( - COUNT ( * ) ) + CAST ( NULL AS REAL ) + + 48
----
NULL

query II rowsort
SELECT ALL + 15 * NULLIF ( + 89, - 26 ), ( 33 ) AS col1
----
1335
33

query I rowsort
SELECT CASE 71 WHEN - 96 THEN NULL ELSE + 33 END AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4184
SELECT + COUNT( + + ( - 81 ) ) DIV - 58 AS col2, + 48 * + - CASE 27 WHEN - 5 THEN NULL WHEN + 5 * - 39 THEN NULL WHEN 61 * - 48 + - 31 + 78 THEN - ( - COUNT( * ) ) * 8 + + 15 END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4184
SELECT + COUNT ( + + ( - 81 ) ) / - 58 AS col2, + 48 * + - CASE 27 WHEN - 5 THEN NULL WHEN + 5 * - 39 THEN NULL WHEN 61 * - 48 + - 31 + 78 THEN - ( - COUNT ( * ) ) * 8 + + 15 END
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT - ( COUNT( * ) ) * - - 22 - + - 95
----
73

skipif mysql # not compatible
query I rowsort label-4185
SELECT - ( COUNT ( * ) ) * - - 22 - + - 95
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4186
SELECT - COUNT( DISTINCT 53 ) + + + SUM( + ( - + 78 ) ) + - CAST( 23 AS SIGNED ) AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-4186
SELECT - COUNT ( DISTINCT 53 ) + + + SUM ( + ( - + 78 ) ) + - CAST ( 23 AS INTEGER ) AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT - COUNT( * ) + 81 * + + 87 + - + 75
----
6971

skipif mysql # not compatible
query I rowsort label-4187
SELECT - COUNT ( * ) + 81 * + + 87 + - + 75
----
6971

query I rowsort
SELECT DISTINCT + ( + - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT - 35 * + ( + + ( + MIN( DISTINCT 11 ) ) )
----
-385

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT - 35 * + ( + + ( + MIN ( DISTINCT 11 ) ) )
----
-385

query I rowsort
SELECT ALL - 53 * - 77 AS col0
----
4081

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT - COUNT( * ) + - + 35 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4191
SELECT - COUNT ( * ) + - + 35 AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4192
SELECT DISTINCT 64 * + + ( 41 ) - + CASE WHEN NOT + 79 IS NULL THEN + + 17 DIV - MIN( DISTINCT + ( 58 ) ) ELSE NULL END + 4 * 76 AS col0
----
2928

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT 64 * + + ( 41 ) - + CASE WHEN NOT + 79 IS NULL THEN + + 17 / - MIN ( DISTINCT + ( 58 ) ) ELSE NULL END + 4 * 76 AS col0
----
2928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT 44 * - + CAST( NULL AS SIGNED ) + - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT 44 * - + CAST ( NULL AS INTEGER ) + - 6 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4194
SELECT - COUNT( - + 67 ) * - 87 - - CAST( + - 88 AS SIGNED ) * 32
----
-2729

skipif mysql # not compatible
query I rowsort label-4194
SELECT - COUNT ( - + 67 ) * - 87 - - CAST ( + - 88 AS INTEGER ) * 32
----
-2729

query I rowsort
SELECT - + 73 * - 24 + - 89
----
1663

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT + + SUM( DISTINCT - + ( 28 ) ) * - + NULLIF ( + 90, COUNT( * ) * + MIN( ALL + 50 ) + + - 45 - 23 ) + 31 AS col0
----
2551

skipif mysql # not compatible
query I rowsort label-4196
SELECT + + SUM ( DISTINCT - + ( 28 ) ) * - + NULLIF ( + 90, COUNT ( * ) * + MIN ( ALL + 50 ) + + - 45 - 23 ) + 31 AS col0
----
2551

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4197
SELECT - + CAST( NULL AS DECIMAL ) * - + 41 * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT - + CAST ( NULL AS REAL ) * - + 41 * + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT + 59 + COUNT( * ) + + - 32 col0
----
28

skipif mysql # not compatible
query I rowsort label-4198
SELECT + 59 + COUNT ( * ) + + - 32 col0
----
28

query I rowsort
SELECT + 26 + - 91 - + 82 * + ( - 78 )
----
6331

query I rowsort
SELECT ALL + 8 col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT COALESCE ( 59, - - 74 + 46 + - MIN( - 53 ) )
----
59

skipif mysql # not compatible
query I rowsort label-4201
SELECT COALESCE ( 59, - - 74 + 46 + - MIN ( - 53 ) )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4202
SELECT - + COALESCE ( - 39, 81 + + - 45, ( + + ( + 79 ) ) * + COUNT( * ) + - - COUNT( * ) - 65 DIV + - 45 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4202
SELECT - + COALESCE ( - 39, 81 + + - 45, ( + + ( + 79 ) ) * + COUNT ( * ) + - - COUNT ( * ) - 65 / + - 45 ) AS col0
----
39

query I rowsort
SELECT ALL - 91 + 27
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4204
SELECT - - CAST( + - 25 AS SIGNED ) * + 55 - + - 2
----
-1373

skipif mysql # not compatible
query I rowsort label-4204
SELECT - - CAST ( + - 25 AS INTEGER ) * + 55 - + - 2
----
-1373

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4205
SELECT + - 80 + + - 42 DIV COUNT( * ) - - 70 * 29
----
1908

skipif mysql # not compatible
query I rowsort label-4205
SELECT + - 80 + + - 42 / COUNT ( * ) - - 70 * 29
----
1908

query I rowsort
SELECT - + 11 * - 13 col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL 45 + + COUNT( + 14 )
----
46

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL 45 + + COUNT ( + 14 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT DISTINCT 54 + + - 26 * 95 * + COUNT( * ) * - 22 * + 69 AS col2
----
3749514

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT 54 + + - 26 * 95 * + COUNT ( * ) * - 22 * + 69 AS col2
----
3749514

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT - CASE - - 94 WHEN 55 THEN + 3 WHEN COUNT( * ) THEN 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT - CASE - - 94 WHEN 55 THEN + 3 WHEN COUNT ( * ) THEN 87 END
----
NULL

query I rowsort
SELECT ALL 16 + 46
----
62

query I rowsort
SELECT + 21 * ( + 16 ) AS col2
----
336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4212
SELECT DISTINCT 51 + - - 40 + 35 * 91 DIV COUNT( * ) AS col1
----
3276

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT 51 + - - 40 + 35 * 91 / COUNT ( * ) AS col1
----
3276

query II rowsort
SELECT DISTINCT 67 AS col0, - ( 87 )
----
67
-87

query I rowsort
SELECT DISTINCT + 29 * 11
----
319

query I rowsort
SELECT + 86 - 6
----
80

query I rowsort
SELECT - 85 + - 3 AS col2
----
-88

query I rowsort
SELECT - ( - 13 ) * 3
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT - CAST( + 77 AS SIGNED ) + - + ( + 61 ) col0
----
-138

skipif mysql # not compatible
query I rowsort label-4218
SELECT - CAST ( + 77 AS INTEGER ) + - + ( + 61 ) col0
----
-138

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4219
SELECT ALL MAX( ALL - - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL MAX ( ALL - - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4220
SELECT DISTINCT + 19 DIV CAST( - 8 AS SIGNED ) - - 95
----
93

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT + 19 / CAST ( - 8 AS INTEGER ) - - 95
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4221
SELECT CAST( - 9 AS SIGNED ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4221
SELECT CAST ( - 9 AS INTEGER ) AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4222
SELECT + CAST( + 99 AS SIGNED ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4222
SELECT + CAST ( + 99 AS INTEGER ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL + COUNT( 43 )
----
1

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL + COUNT ( 43 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4224
SELECT DISTINCT - MAX( DISTINCT + 15 ) * 94, NULLIF ( - + 33, NULLIF ( 63, + COALESCE ( 3, + 76 / ( - ( - 6 ) ) - - 71 * 39 ) ) * + SUM( + - 76 ) ) AS col0
----
-1410
-33

skipif mysql # not compatible
query II rowsort label-4224
SELECT DISTINCT - MAX ( DISTINCT + 15 ) * 94, NULLIF ( - + 33, NULLIF ( 63, + COALESCE ( 3, + 76 / ( - ( - 6 ) ) - - 71 * 39 ) ) * + SUM ( + - 76 ) ) AS col0
----
-1410
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT - 78 DIV 18
----
-4

skipif mysql # not compatible
query I rowsort label-4225
SELECT - 78 / 18
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT + 89 * - MIN( DISTINCT + 50 )
----
-4450

skipif mysql # not compatible
query I rowsort label-4226
SELECT + 89 * - MIN ( DISTINCT + 50 )
----
-4450

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT - 95 + + MAX( - 33 ), - 96 + 55 AS col0
----
-128
-41

skipif mysql # not compatible
query II rowsort label-4227
SELECT - 95 + + MAX ( - 33 ), - 96 + 55 AS col0
----
-128
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4228
SELECT + CAST( 22 AS SIGNED ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4228
SELECT + CAST ( 22 AS INTEGER ) AS col1
----
22

query I rowsort
SELECT - 71 + - 13 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT 95 * - 53 - COUNT( ALL 71 ) AS col2
----
-5036

skipif mysql # not compatible
query I rowsort label-4230
SELECT 95 * - 53 - COUNT ( ALL 71 ) AS col2
----
-5036

query I rowsort
SELECT ALL - 59 * 4
----
-236

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT - 42 DIV 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4232
SELECT - 42 / 51 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT - 48 * - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-4233
SELECT - 48 * - COUNT ( * )
----
48

query I rowsort
SELECT DISTINCT + 27 col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT ALL - COUNT( * ) * - 95 + - 64 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL - COUNT ( * ) * - 95 + - 64 AS col1
----
31

query I rowsort
SELECT ( - 50 )
----
-50

query I rowsort
SELECT DISTINCT 8 * - 88 + - 75 AS col2
----
-779

query I rowsort
SELECT - 88 * 21
----
-1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4239
SELECT - CAST( - 32 AS SIGNED ) + - ( + COUNT( * ) + 88 ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-4239
SELECT - CAST ( - 32 AS INTEGER ) + - ( + COUNT ( * ) + 88 ) col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT + MAX( - 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4240
SELECT + MAX ( - 99 ) AS col2
----
-99

query I rowsort
SELECT - 76 + + 42
----
-34

query I rowsort
SELECT NULLIF ( - 44, - 31 / 4 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL + COUNT( 71 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL + COUNT ( 71 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4244
SELECT ALL CAST( - SUM( DISTINCT 11 ) AS SIGNED ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL CAST ( - SUM ( DISTINCT 11 ) AS INTEGER ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT - 8 * 40 + MIN( - 10 ) * - 95
----
630

skipif mysql # not compatible
query I rowsort label-4245
SELECT - 8 * 40 + MIN ( - 10 ) * - 95
----
630

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4246
SELECT + CASE 36 WHEN CAST( - 73 AS DECIMAL ) THEN - 13 WHEN + 7 / - 30 + COUNT( * ) * - MAX( 44 ) THEN 21 + 47 END * SUM( DISTINCT - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT + CASE 36 WHEN CAST ( - 73 AS REAL ) THEN - 13 WHEN + 7 / - 30 + COUNT ( * ) * - MAX ( 44 ) THEN 21 + 47 END * SUM ( DISTINCT - 8 )
----
NULL

query I rowsort
SELECT NULLIF ( 67, 9 / 67 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4248
SELECT ALL - COUNT( * ) * 50 + + CAST( 89 + 82 DIV + 6 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL - COUNT ( * ) * 50 + + CAST ( 89 + 82 / + 6 AS INTEGER )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT 51 * - 49 - MIN( DISTINCT 85 + - 9 ) AS col0
----
-2575

skipif mysql # not compatible
query I rowsort label-4249
SELECT 51 * - 49 - MIN ( DISTINCT 85 + - 9 ) AS col0
----
-2575

query I rowsort
SELECT ALL ( 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - 22 + COUNT( * ) * COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-4251
SELECT - 22 + COUNT ( * ) * COUNT ( * )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT ALL 33 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL 33 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT - COUNT( * ) * 5 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT - COUNT ( * ) * 5 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT SUM( ALL - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-4254
SELECT SUM ( ALL - 56 )
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4255
SELECT ALL - CAST( NULL AS DECIMAL ) - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL - CAST ( NULL AS REAL ) - 11
----
NULL

query I rowsort
SELECT 61 * + 46 AS col0
----
2806

query I rowsort
SELECT 35 + 6
----
41

query I rowsort
SELECT 80 - 89 AS col2
----
-9

query I rowsort
SELECT 51 * + 25
----
1275

query I rowsort
SELECT 86 * - 69 AS col1
----
-5934

onlyif mysql # DIV for integer division: 
query I rowsort label-4261
SELECT DISTINCT 67 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT 67 / + 68
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4262
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT - CAST ( NULL AS REAL ) - 26 AS col2
----
NULL

query I rowsort
SELECT 70 + - 98 col0
----
-28

query I rowsort
SELECT ( + 71 ) + 0
----
71

query I rowsort
SELECT ALL CASE WHEN ( 66 ) <> ( + 16 ) THEN + 11 END * + 97 AS col1
----
1067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 87 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4267
SELECT ( COALESCE ( + 34, 32, + 4 + - 2 ) ) DIV 15 + + ( NULLIF ( - ( 11 ), + 13 ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4267
SELECT ( COALESCE ( + 34, 32, + 4 + - 2 ) ) / 15 + + ( NULLIF ( - ( 11 ), + 13 ) ) AS col0
----
-9

query I rowsort
SELECT 5 + 5 col1
----
10

query I rowsort
SELECT ALL 60 * - 75 AS col0
----
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT 76 + - MAX( ALL 97 ) * - 6 AS col0
----
658

skipif mysql # not compatible
query I rowsort label-4270
SELECT 76 + - MAX ( ALL 97 ) * - 6 AS col0
----
658

query I rowsort
SELECT 11 * - 18
----
-198

query I rowsort
SELECT 15 + 19 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT + MAX( DISTINCT + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4273
SELECT + MAX ( DISTINCT + 48 )
----
48

query I rowsort
SELECT ALL - 90 * + 35
----
-3150

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT + ( 13 ) * ( 68 ) + + 91 DIV + 35 AS col0
----
886

skipif mysql # not compatible
query I rowsort label-4275
SELECT + ( 13 ) * ( 68 ) + + 91 / + 35 AS col0
----
886

query I rowsort
SELECT ( 69 ) AS col0
----
69

query I rowsort
SELECT DISTINCT 60 + - 32 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT ALL COUNT( ALL 32 ) + + 77 * - 25 AS col2
----
-1924

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL COUNT ( ALL 32 ) + + 77 * - 25 AS col2
----
-1924

query I rowsort
SELECT ALL - - 15 * 35
----
525

query I rowsort
SELECT + 90 * + 36 + 24 AS col0
----
3264

query I rowsort
SELECT + ( 20 ) AS col1
----
20

query I rowsort
SELECT - 61 * 72
----
-4392

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT DISTINCT + 33 + - ( COUNT( * ) ) col1
----
32

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT + 33 + - ( COUNT ( * ) ) col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL - - 23 * + COUNT( * ) col2
----
23

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - - 23 * + COUNT ( * ) col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT COALESCE ( - MAX( DISTINCT + 76 ), 94 * - 26 - - CASE + MIN( ALL 95 ) + - 37 * - 51 WHEN + 44 * 98 THEN + MIN( 81 ) * + COUNT( * ) END, - COUNT( * ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-4285
SELECT COALESCE ( - MAX ( DISTINCT + 76 ), 94 * - 26 - - CASE + MIN ( ALL 95 ) + - 37 * - 51 WHEN + 44 * 98 THEN + MIN ( 81 ) * + COUNT ( * ) END, - COUNT ( * ) ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT + MIN( DISTINCT - 7 ) * - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4286
SELECT + MIN ( DISTINCT - 7 ) * - COUNT ( * ) AS col0
----
7

query I rowsort
SELECT DISTINCT - + 73 * - 43 AS col1
----
3139

query I rowsort
SELECT ( 95 ) + 14 AS col0
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT ALL - + CAST( CAST( + 72 AS SIGNED ) AS SIGNED ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL - + CAST ( CAST ( + 72 AS INTEGER ) AS INTEGER ) AS col0
----
-72

query I rowsort
SELECT 3 * 28 + - 85
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL - - COUNT( ALL - 34 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL - - COUNT ( ALL - 34 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT + COUNT( * ) + 42
----
43

skipif mysql # not compatible
query I rowsort label-4292
SELECT + COUNT ( * ) + 42
----
43

query I rowsort
SELECT ALL - + 18 - + 0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT DISTINCT - COUNT( * ) - + NULLIF ( 25, - 79 - + 46 ) * COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT - COUNT ( * ) - + NULLIF ( 25, - 79 - + 46 ) * COUNT ( * )
----
-26

query I rowsort
SELECT 71 + + 98 * - ( + 85 ) AS col2
----
-8259

query I rowsort
SELECT 42 * + ( 42 ) * - 84 AS col0
----
-148176

query I rowsort
SELECT 54 * 3
----
162

query I rowsort
SELECT ALL - 94 * - - 12
----
-1128

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT 61 DIV 31 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4299
SELECT 61 / 31 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT DISTINCT 61 * - 16 * + COUNT( * )
----
-976

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT 61 * - 16 * + COUNT ( * )
----
-976

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4301
SELECT 86 DIV COUNT( 3 ) * - MAX( ( - 47 ) * + 86 )
----
347612

skipif mysql # not compatible
query I rowsort label-4301
SELECT 86 / COUNT ( 3 ) * - MAX ( ( - 47 ) * + 86 )
----
347612

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT ALL + 22 * CASE - ( 45 ) WHEN 40 THEN - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL + 22 * CASE - ( 45 ) WHEN 40 THEN - COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 70 - + 34
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT 76 DIV - - 36
----
2

skipif mysql # not compatible
query I rowsort label-4304
SELECT 76 / - - 36
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL COUNT( * ) + + + 60 col1
----
61

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL COUNT ( * ) + + + 60 col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL - NULLIF ( 44, + SUM( ALL 97 ) ) col0
----
-44

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL - NULLIF ( 44, + SUM ( ALL 97 ) ) col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT DISTINCT - ( - MAX( DISTINCT 69 ) ) * + 58 + 95
----
4097

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT - ( - MAX ( DISTINCT 69 ) ) * + 58 + 95
----
4097

query I rowsort
SELECT ALL - - NULLIF ( - + 96, 79 ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT 12 * - + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4309
SELECT 12 * - + COUNT ( * ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT - CASE 93 WHEN + 14 THEN NULL WHEN COUNT( * ) + 76 THEN NULL ELSE + 78 END AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4310
SELECT - CASE 93 WHEN + 14 THEN NULL WHEN COUNT ( * ) + 76 THEN NULL ELSE + 78 END AS col0
----
-78

query I rowsort
SELECT ( - ( - 98 ) ) AS col0
----
98

query I rowsort
SELECT + 15 * + - 35
----
-525

query I rowsort
SELECT DISTINCT 93 * + 20 AS col0
----
1860

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL + + MAX( + - 72 ) * 10 + - 85 AS col2
----
-805

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL + + MAX ( + - 72 ) * 10 + - 85 AS col2
----
-805

query I rowsort
SELECT ALL - 64 * - 91 + 68
----
5892

query I rowsort
SELECT - 81 * + 48 AS col2
----
-3888

query I rowsort
SELECT DISTINCT - - 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT - MIN( + 56 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT - MIN ( + 56 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT DISTINCT + + COUNT( - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT + + COUNT ( - 60 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4320
SELECT + 61 + + COALESCE ( 86, 40 * + COUNT( * ) ) + + 40 * - CAST( 0 AS SIGNED ) AS col1
----
147

skipif mysql # not compatible
query I rowsort label-4320
SELECT + 61 + + COALESCE ( 86, 40 * + COUNT ( * ) ) + + 40 * - CAST ( 0 AS INTEGER ) AS col1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT - COUNT( * ) * 54 col2
----
-54

skipif mysql # not compatible
query I rowsort label-4321
SELECT - COUNT ( * ) * 54 col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4322
SELECT ALL 5 / CAST( NULL AS SIGNED ) * CASE 55 WHEN 45 THEN - ( + ( 55 ) ) + + 37 / 97 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL 5 / CAST ( NULL AS INTEGER ) * CASE 55 WHEN 45 THEN - ( + ( 55 ) ) + + 37 / 97 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4323
SELECT + + ( - COUNT( DISTINCT 94 ) ) + ( 65 ) DIV + 66 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4323
SELECT + + ( - COUNT ( DISTINCT 94 ) ) + ( 65 ) / + 66 AS col0
----
-1

query II rowsort
SELECT 7 AS col0, 33 - 88 AS col0
----
7
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4325
SELECT 98 * - - 61 + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT 98 * - - 61 + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 15, + 78 AS col0
----
15
78

query I rowsort
SELECT + 56 * + + 38 AS col1
----
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT + COUNT( * ) * 49 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4328
SELECT + COUNT ( * ) * 49 AS col1
----
49

query I rowsort
SELECT ALL + 62 * + 93
----
5766

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4330
SELECT + 5 * - 95 DIV - 86 - + ( + MIN( ALL 38 ) - 78 )
----
45

skipif mysql # not compatible
query I rowsort label-4330
SELECT + 5 * - 95 / - 86 - + ( + MIN ( ALL 38 ) - 78 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT DISTINCT MAX( - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT MAX ( - 71 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4332
SELECT DISTINCT 72, CAST( NULL AS DECIMAL ) * + 57 - 72 * - COUNT( * ) AS col0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-4332
SELECT DISTINCT 72, CAST ( NULL AS REAL ) * + 57 - 72 * - COUNT ( * ) AS col0
----
72
NULL

query I rowsort
SELECT - ( + 15 ) + + 88 + 49 * 6 * NULLIF ( 4, + 2 ) AS col0
----
1249

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT DISTINCT 49 * COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT 49 * COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT - MAX( - + 91 ) + 51 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-4335
SELECT - MAX ( - + 91 ) + 51 AS col2
----
142

onlyif mysql # DIV for integer division: 
query II rowsort label-4336
SELECT - 35 AS col1, 11 DIV + + 93
----
-35
0

skipif mysql # not compatible
query II rowsort label-4336
SELECT - 35 AS col1, 11 / + + 93
----
-35
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4337
SELECT ALL COUNT( * ), 0 DIV + 97 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-4337
SELECT ALL COUNT ( * ), 0 / + 97 AS col0
----
1
0

query I rowsort
SELECT ALL + 35 + COALESCE ( - + 83, - 64 + - 4 ) col1
----
-48

query I rowsort
SELECT + ( 53 ) + + ( 20 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - 55 - - - 19 * - COUNT( DISTINCT 39 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4340
SELECT - 55 - - - 19 * - COUNT ( DISTINCT 39 ) AS col2
----
-36

query II rowsort
SELECT 1 col2, 55 * - + 2
----
1
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - COUNT( * ) + - 79
----
-80

skipif mysql # not compatible
query I rowsort label-4342
SELECT - COUNT ( * ) + - 79
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4343
SELECT - 31 + - ( - COUNT( * ) ) DIV COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-4343
SELECT - 31 + - ( - COUNT ( * ) ) / COUNT ( * )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4344
SELECT ALL COALESCE ( - + NULLIF ( - - CASE + 88 WHEN + 22 DIV + 3 THEN 54 ELSE - COUNT( * ) + 20 END, 82 ), - COALESCE ( - MAX( ALL - 14 ), - 7 DIV CAST( NULL AS SIGNED ), + 12 ) DIV + 75, 53 + - 26 )
----
-19

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL COALESCE ( - + NULLIF ( - - CASE + 88 WHEN + 22 / + 3 THEN 54 ELSE - COUNT ( * ) + 20 END, 82 ), - COALESCE ( - MAX ( ALL - 14 ), - 7 / CAST ( NULL AS INTEGER ), + 12 ) / + 75, 53 + - 26 )
----
-19

query II rowsort
SELECT - 46 AS col2, 17
----
-46
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4346
SELECT ALL COUNT( * ), + 82 AS col1
----
1
82

skipif mysql # not compatible
query II rowsort label-4346
SELECT ALL COUNT ( * ), + 82 AS col1
----
1
82

query I rowsort
SELECT ALL + 0 + - 2 * + 63 * - 4 + - 64 AS col1
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT - 19 + - - SUM( 78 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4348
SELECT - 19 + - - SUM ( 78 ) AS col1
----
59

query I rowsort
SELECT ALL ( + 35 )
----
35

query I rowsort
SELECT DISTINCT - 18 + 75 * - + 83
----
-6243

query I rowsort
SELECT ALL + 27 * 87 * + 87 AS col0
----
204363

query I rowsort
SELECT - - 77 + 70 AS col0
----
147

query I rowsort
SELECT - 20 * 10 * - 34 col1
----
6800

query I rowsort
SELECT - - ( ( - - 15 ) ) * 90 AS col0
----
1350

query I rowsort
SELECT ALL + 8 * + 68 AS col1
----
544

onlyif mysql # DIV for integer division: 
query I rowsort label-4356
SELECT + + 97 DIV + 26
----
3

skipif mysql # not compatible
query I rowsort label-4356
SELECT + + 97 / + 26
----
3

query I rowsort
SELECT + + 39 + - 91 AS col2
----
-52

query I rowsort
SELECT DISTINCT + 78 col1
----
78

query I rowsort
SELECT ALL + - 96 * - 10 - - 88 * + 89 AS col1
----
8792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT DISTINCT - + 2 * CAST( NULL AS SIGNED ) + - COALESCE ( 49, - 44, - COALESCE ( 82, 94, 36 * 87 + 95 ) ) + 4 / 71 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT - + 2 * CAST ( NULL AS INTEGER ) + - COALESCE ( 49, - 44, - COALESCE ( 82, 94, 36 * 87 + 95 ) ) + 4 / 71 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4361
SELECT DISTINCT - 25 DIV 16
----
-1

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT - 25 / 16
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT DISTINCT + MIN( 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT + MIN ( 18 ) AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4363
SELECT ALL - 88 * + 50 * + COALESCE ( 6, + 96 DIV - 68 ) * ( - COUNT( * ) ) + COUNT( * ) DIV 53 - - 37 * 9 AS col2
----
26733

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL - 88 * + 50 * + COALESCE ( 6, + 96 / - 68 ) * ( - COUNT ( * ) ) + COUNT ( * ) / 53 - - 37 * 9 AS col2
----
26733

query I rowsort
SELECT ALL + - 23 col0
----
-23

query I rowsort
SELECT - 36 * 45 * - + 24 + + 31 AS col1
----
38911

query I rowsort
SELECT + + 95 + + + 30 + + 74 + - 65 * + 96 col1
----
-6041

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT + - CASE 5 WHEN + 41 THEN - 26 / + 39 + + 30 WHEN - MAX( DISTINCT 47 ) * + 31 THEN + 84 * + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT + - CASE 5 WHEN + 41 THEN - 26 / + 39 + + 30 WHEN - MAX ( DISTINCT 47 ) * + 31 THEN + 84 * + 80 END
----
NULL

query I rowsort
SELECT DISTINCT 94 * - + 90
----
-8460

query I rowsort
SELECT - + 51 * - 6 AS col1
----
306

query I rowsort
SELECT + 59 * 85 * - 67 + - 58 AS col0
----
-336063

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4371
SELECT ALL CAST( NULL AS SIGNED ) * - 55 * - 72 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL CAST ( NULL AS INTEGER ) * - 55 * - 72 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT DISTINCT + NULLIF ( - 96, 79 * + - 81 * - 52 ) * COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT + NULLIF ( - 96, 79 * + - 81 * - 52 ) * COUNT ( * )
----
-96

query I rowsort
SELECT ALL 15 * + 72 * 2 * + ( 45 )
----
97200

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT MAX( ALL + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-4374
SELECT MAX ( ALL + 85 )
----
85

query I rowsort
SELECT + ( + 33 ) * + 37
----
1221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4376
SELECT + CAST( + 67 AS SIGNED ) + - CASE + 21 WHEN + 86 / - 12 THEN NULL WHEN - NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) ) * - 26 THEN + ( - ( 28 ) ) * + CAST( NULL AS DECIMAL ) END * 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT + CAST ( + 67 AS INTEGER ) + - CASE + 21 WHEN + 86 / - 12 THEN NULL WHEN - NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) ) * - 26 THEN + ( - ( 28 ) ) * + CAST ( NULL AS REAL ) END * 79 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL 69 * - - 13 * + MIN( 48 ) + - COUNT( * ) * - 78 AS col0
----
43134

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL 69 * - - 13 * + MIN ( 48 ) + - COUNT ( * ) * - 78 AS col0
----
43134

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT MAX( ALL + 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4378
SELECT MAX ( ALL + 31 ) AS col0
----
31

query I rowsort
SELECT - 55 + + 30 AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT + ( - CAST( NULL AS SIGNED ) ) / + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT + ( - CAST ( NULL AS INTEGER ) ) / + 23
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4381
SELECT - 31 + 30 AS col0, - 42 * + 44 + MIN( DISTINCT - 47 ) * 86
----
-1
-5890

skipif mysql # not compatible
query II rowsort label-4381
SELECT - 31 + 30 AS col0, - 42 * + 44 + MIN ( DISTINCT - 47 ) * 86
----
-1
-5890

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT COUNT( ALL + + NULLIF ( - 56, 81 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4382
SELECT COUNT ( ALL + + NULLIF ( - 56, 81 ) ) col1
----
1

query I rowsort
SELECT ALL 8 + + 86 - + 92
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT CASE ( - COUNT( * ) ) WHEN - + 42 THEN NULL WHEN 19 + - 10 THEN 77 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT CASE ( - COUNT ( * ) ) WHEN - + 42 THEN NULL WHEN 19 + - 10 THEN 77 END AS col2
----
NULL

query I rowsort
SELECT ALL - 59 * - 70 * + 99 AS col0
----
408870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4386
SELECT ALL COUNT( * ) + + + CAST( + COALESCE ( - 85, + 55 ) AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL COUNT ( * ) + + + CAST ( + COALESCE ( - 85, + 55 ) AS INTEGER )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL + 12 * + + 38 + COUNT( * ) col1
----
457

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + 12 * + + 38 + COUNT ( * ) col1
----
457

query I rowsort
SELECT + + 48 - - 8 - - 0
----
56

query I rowsort
SELECT + - 73 + + ( 82 ) + + + 21 col2
----
30

query I rowsort
SELECT - 97 + + 27 + - ( + - 99 ) * - COALESCE ( - 81 * + 3, - 6 )
----
23987

query I rowsort
SELECT 32 / ( CASE - 58 WHEN COALESCE ( 15, + 92 ) + + 30 THEN - 50 WHEN 88 THEN 23 + 41 ELSE NULL END ) - + 8
----
NULL

query I rowsort
SELECT DISTINCT + - 53 * + 60 * 84 * - 12 AS col2
----
3205440

query I rowsort
SELECT ALL + 35 * + 7
----
245

query I rowsort
SELECT NULLIF ( - - 9, + - ( + + 37 ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT MIN( - 71 ) * + + 4 + 55 * 3
----
-119

skipif mysql # not compatible
query I rowsort label-4395
SELECT MIN ( - 71 ) * + + 4 + 55 * 3
----
-119

query I rowsort
SELECT + ( - - 42 ) AS col2
----
42

query I rowsort
SELECT DISTINCT + + 62 * - + 21 * + 29 * + + 41 AS col1
----
-1548078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4398
SELECT - 26 * - 91 * - - COUNT( * ) - 10 - 9 DIV + 20
----
2356

skipif mysql # not compatible
query I rowsort label-4398
SELECT - 26 * - 91 * - - COUNT ( * ) - 10 - 9 / + 20
----
2356

onlyif mysql # aggregate syntax: 
query II rowsort label-4399
SELECT - 70 * 38, 91 + MIN( DISTINCT - 85 ) + 47 AS col1
----
-2660
53

skipif mysql # not compatible
query II rowsort label-4399
SELECT - 70 * 38, 91 + MIN ( DISTINCT - 85 ) + 47 AS col1
----
-2660
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ALL + + 32 * + COUNT( + 64 ) * + ( - 24 ) + 16
----
-752

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL + + 32 * + COUNT ( + 64 ) * + ( - 24 ) + 16
----
-752

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT ALL 3 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL 3 / 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT 70 * COUNT( * ) * + + 16 * 90 * + + 34
----
3427200

skipif mysql # not compatible
query I rowsort label-4402
SELECT 70 * COUNT ( * ) * + + 16 * 90 * + + 34
----
3427200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT ALL - COALESCE ( + CAST( NULL AS SIGNED ), 11 * + NULLIF ( - + 39, 38 ) + - 18 )
----
447

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL - COALESCE ( + CAST ( NULL AS INTEGER ), 11 * + NULLIF ( - + 39, 38 ) + - 18 )
----
447

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT COUNT( 61 ) * ( COUNT( * ) ) + - SUM( ALL - NULLIF ( - 6, 40 * 92 ) ) * - 36
----
217

skipif mysql # not compatible
query I rowsort label-4404
SELECT COUNT ( 61 ) * ( COUNT ( * ) ) + - SUM ( ALL - NULLIF ( - 6, 40 * 92 ) ) * - 36
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT + ( 97 ) * + + 29 / - CASE 51 WHEN 17 + 26 THEN - COUNT( * ) END + COUNT( * ) + + 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT + ( 97 ) * + + 29 / - CASE 51 WHEN 17 + 26 THEN - COUNT ( * ) END + COUNT ( * ) + + 63 AS col2
----
NULL

query I rowsort
SELECT ALL - 35 + - 62 + 89 + + + 36 + 77 * - 56 col2
----
-4284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4407
SELECT CAST( + ( + MIN( 23 ) ) AS SIGNED ) * + 25 - 1
----
574

skipif mysql # not compatible
query I rowsort label-4407
SELECT CAST ( + ( + MIN ( 23 ) ) AS INTEGER ) * + 25 - 1
----
574

query I rowsort
SELECT 70 + 70
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT COALESCE ( - 81, - + 53 * + - 68 + + 37 + - 47, + 21 - + CASE WHEN ( NULL ) >= 89 THEN - CAST( 43 AS SIGNED ) WHEN NOT 90 IS NOT NULL THEN NULL ELSE 91 END ) * 39
----
-3159

skipif mysql # not compatible
query I rowsort label-4409
SELECT COALESCE ( - 81, - + 53 * + - 68 + + 37 + - 47, + 21 - + CASE WHEN ( NULL ) >= 89 THEN - CAST ( 43 AS INTEGER ) WHEN NOT 90 IS NOT NULL THEN NULL ELSE 91 END ) * 39
----
-3159

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT 72 * - COUNT( DISTINCT + 54 ) + - - 89 + - 38 + 95 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4410
SELECT 72 * - COUNT ( DISTINCT + 54 ) + - - 89 + - 38 + 95 AS col0
----
74

query I rowsort
SELECT DISTINCT 35 col2
----
35

query I rowsort
SELECT DISTINCT - 18 + + 81
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT ALL SUM( ALL 48 ) + 37, 69 + - 89 * + 67 AS col1
----
85
-5894

skipif mysql # not compatible
query II rowsort label-4413
SELECT ALL SUM ( ALL 48 ) + 37, 69 + - 89 * + 67 AS col1
----
85
-5894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT 5 + - + CAST( 13 AS SIGNED ) * + MAX( + + 63 ) + - 83 AS col2
----
-897

skipif mysql # not compatible
query I rowsort label-4414
SELECT 5 + - + CAST ( 13 AS INTEGER ) * + MAX ( + + 63 ) + - 83 AS col2
----
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT ALL - 0 + MIN( DISTINCT + + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL - 0 + MIN ( DISTINCT + + 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ( COUNT( * ) ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-4416
SELECT ( COUNT ( * ) ) + - 58
----
-57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4417
SELECT CAST( NULL AS DECIMAL ) * CASE 5 WHEN - 76 THEN + + COUNT( * ) WHEN - ( ( - 57 ) ) THEN NULL WHEN 92 + - 91 * 48 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT CAST ( NULL AS REAL ) * CASE 5 WHEN - 76 THEN + + COUNT ( * ) WHEN - ( ( - 57 ) ) THEN NULL WHEN 92 + - 91 * 48 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT COUNT( * ) + - - MAX( + + ( 81 ) ) + - - ( 37 ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-4418
SELECT COUNT ( * ) + - - MAX ( + + ( 81 ) ) + - - ( 37 ) AS col1
----
119

query I rowsort
SELECT 95 + - 82 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT - 2 + + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-4420
SELECT - 2 + + - COUNT ( * )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4421
SELECT ALL 42 DIV + 21 + + 26 + + 73 * + - 42 * 88 col0
----
-269780

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL 42 / + 21 + + 26 + + 73 * + - 42 * 88 col0
----
-269780

query I rowsort
SELECT - 11 * + - 61
----
671

query II rowsort
SELECT 57, + 75 * 77 + - + 35 * - - 92 AS col1
----
57
2555

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT - 86 + + COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4424
SELECT - 86 + + COUNT ( * ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT DISTINCT 4 - - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT 4 - - COUNT ( * )
----
5

query I rowsort
SELECT ALL NULLIF ( + - 94, - + 98 ) col1
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4427
SELECT + ( - COALESCE ( - 96, - NULLIF ( - + 15, 62 ) DIV COUNT( * ) ) ) + SUM( DISTINCT - 43 )
----
53

skipif mysql # not compatible
query I rowsort label-4427
SELECT + ( - COALESCE ( - 96, - NULLIF ( - + 15, 62 ) / COUNT ( * ) ) ) + SUM ( DISTINCT - 43 )
----
53

query I rowsort
SELECT ALL + 56 * - + 39 AS col2
----
-2184

onlyif mysql # aggregate syntax: 
query II rowsort label-4429
SELECT - - COUNT( * ), 11 + - 1 AS col0
----
1
10

skipif mysql # not compatible
query II rowsort label-4429
SELECT - - COUNT ( * ), 11 + - 1 AS col0
----
1
10

query I rowsort
SELECT - - 58 col0
----
58

query I rowsort
SELECT 46 + - 28 AS col2
----
18

query I rowsort
SELECT 4 * + - 70 col0
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT - 27 + - COUNT( * ) * - 35 + + 97
----
105

skipif mysql # not compatible
query I rowsort label-4433
SELECT - 27 + - COUNT ( * ) * - 35 + + 97
----
105

query I rowsort
SELECT + - 35 col1
----
-35

query II rowsort
SELECT 43 AS col0, + 9
----
43
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT - COUNT( 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-4436
SELECT - COUNT ( 18 )
----
-1

query I rowsort
SELECT 84 * - 95 AS col0
----
-7980

onlyif mysql # aggregate syntax: 
query II rowsort label-4438
SELECT ALL + ( - - 83 ) + - 43 AS col2, + 7 - - 12 + COUNT( ALL - 4 + 24 * ( - ( - 63 ) ) )
----
40
20

skipif mysql # not compatible
query II rowsort label-4438
SELECT ALL + ( - - 83 ) + - 43 AS col2, + 7 - - 12 + COUNT ( ALL - 4 + 24 * ( - ( - 63 ) ) )
----
40
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT + MAX( DISTINCT - COALESCE ( + 83, - 44 ) )
----
-83

skipif mysql # not compatible
query I rowsort label-4439
SELECT + MAX ( DISTINCT - COALESCE ( + 83, - 44 ) )
----
-83

query I rowsort
SELECT ALL + - 96 + - 40 * 75
----
-3096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4441
SELECT + + COUNT( * ) DIV - 27 + + 48 + 35 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4441
SELECT + + COUNT ( * ) / - 27 + + 48 + 35 AS col1
----
83

query I rowsort
SELECT DISTINCT - NULLIF ( 77, + 53 ) AS col2
----
-77

query I rowsort
SELECT DISTINCT + 21 + 79
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT 51 * - + NULLIF ( - 61, MAX( + + 14 ) + 96 * 76 ) AS col0
----
3111

skipif mysql # not compatible
query I rowsort label-4444
SELECT 51 * - + NULLIF ( - 61, MAX ( + + 14 ) + 96 * 76 ) AS col0
----
3111

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT + MIN( DISTINCT + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-4445
SELECT + MIN ( DISTINCT + 69 )
----
69

query I rowsort
SELECT ALL + 3 + + + 73 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT + SUM( DISTINCT + + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-4447
SELECT + SUM ( DISTINCT + + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT 96 + - COUNT( * ) + + 47
----
142

skipif mysql # not compatible
query I rowsort label-4448
SELECT 96 + - COUNT ( * ) + + 47
----
142

query II rowsort
SELECT + 17 AS col0, 8 col0
----
17
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT 67 * 16 + + CASE - - NULLIF ( + + 61, 61 + - COUNT( * ) ) WHEN - 80 THEN + ( 47 ) - 32 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4450
SELECT 67 * 16 + + CASE - - NULLIF ( + + 61, 61 + - COUNT ( * ) ) WHEN - 80 THEN + ( 47 ) - 32 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL - 31 + + 30 - + - COUNT( * ) + 26 * 78 * + 78
----
158184

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL - 31 + + 30 - + - COUNT ( * ) + 26 * 78 * + 78
----
158184

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT COUNT( * ) + - 11 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-4452
SELECT COUNT ( * ) + - 11 AS col2
----
-10

query II rowsort
SELECT 17 AS col0, + 90
----
17
90

query I rowsort
SELECT ALL - 4 + - - 26 AS col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4455
SELECT 95 DIV - 36 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4455
SELECT 95 / - 36 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT ALL - CAST( - CAST( - - 66 AS SIGNED ) AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - CAST ( - CAST ( - - 66 AS INTEGER ) AS INTEGER )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4457
SELECT DISTINCT - 14 DIV + + 46
----
0

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT - 14 / + + 46
----
0

query I rowsort
SELECT DISTINCT - ( - ( - 11 ) ) col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT 85 - + COUNT( * ) * - 33 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-4459
SELECT 85 - + COUNT ( * ) * - 33 AS col1
----
118

query II rowsort
SELECT - 94, - 0 AS col0
----
-94
0

query I rowsort
SELECT 95 * - 18
----
-1710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4462
SELECT ALL CASE 87 WHEN + - ( - 43 ) + + NULLIF ( - 4, + COALESCE ( + 25, 33, 53 ) * + COUNT( ALL + 16 ) + 21 ) / 80 THEN NULL ELSE - CAST( NULL AS SIGNED ) + 41 * 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL CASE 87 WHEN + - ( - 43 ) + + NULLIF ( - 4, + COALESCE ( + 25, 33, 53 ) * + COUNT ( ALL + 16 ) + 21 ) / 80 THEN NULL ELSE - CAST ( NULL AS INTEGER ) + 41 * 56 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT DISTINCT 7 * + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT 7 * + COUNT ( * )
----
7

query I rowsort
SELECT + 9 * 72
----
648

query I rowsort
SELECT DISTINCT 49 * - 53 AS col2
----
-2597

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4466
SELECT ALL SUM( DISTINCT + - COALESCE ( + 6, - 34 DIV + 41, - 59 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL SUM ( DISTINCT + - COALESCE ( + 6, - 34 / + 41, - 59 ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL ( + - MIN( 42 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL ( + - MIN ( 42 ) )
----
-42

query I rowsort
SELECT + 32 + + 61 AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4469
SELECT - - 50, + CAST( NULL AS SIGNED ) AS col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-4469
SELECT - - 50, + CAST ( NULL AS INTEGER ) AS col2
----
50
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4470
SELECT ALL + 37 AS col1, - CASE 68 WHEN + COALESCE ( 21, 18, 3 - + 14 DIV - 61 ) THEN NULL WHEN + 31 THEN 75 ELSE 31 - + 37 DIV + 48 END AS col2
----
37
-31

skipif mysql # not compatible
query II rowsort label-4470
SELECT ALL + 37 AS col1, - CASE 68 WHEN + COALESCE ( 21, 18, 3 - + 14 / - 61 ) THEN NULL WHEN + 31 THEN 75 ELSE 31 - + 37 / + 48 END AS col2
----
37
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL MAX( 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL MAX ( 67 ) AS col1
----
67

query II rowsort
SELECT + 9, 5 * + NULLIF ( - 88, 79 ) * - 77 AS col2
----
9
33880

query II rowsort
SELECT ALL 37 AS col2, - 29 AS col0
----
37
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT - 3 + - 24 + + - ( - - CASE + 4 WHEN + + COUNT( * ) THEN - 44 + - 37 WHEN + 23 + - 46 THEN NULL ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT - 3 + - 24 + + - ( - - CASE + 4 WHEN + + COUNT ( * ) THEN - 44 + - 37 WHEN + 23 + - 46 THEN NULL ELSE NULL END ) AS col0
----
NULL

query II rowsort
SELECT + 59 AS col1, 32
----
59
32

query I rowsort
SELECT - + 13 * 38
----
-494

query I rowsort
SELECT + + 8 + + 82 AS col0
----
90

query II rowsort
SELECT ALL 21 AS col1, + 44 * - 68 * - + 2 + 41 AS col1
----
21
6025

query I rowsort
SELECT + - NULLIF ( - 94, - 99 + + + 22 + - 97 * - - 13 ) + - 79
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT ALL - + CAST( - 19 AS SIGNED ) + - 20 * - + 60 AS col2
----
1219

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL - + CAST ( - 19 AS INTEGER ) + - 20 * - + 60 AS col2
----
1219

query I rowsort
SELECT ALL 78 + 19
----
97

query I rowsort
SELECT + 48 * - 58
----
-2784

query I rowsort
SELECT + 61 * - - 15 * - 40 AS col1
----
-36600

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT - 86 / CASE + 0 WHEN + + 99 - - 85 * + 93 + 86 THEN + 24 END * - 10 + - 46 * - CASE - COUNT( * ) * + 78 + COUNT( * ) WHEN + AVG ( 98 ) + 91 THEN - 68 ELSE NULL END + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT - 86 / CASE + 0 WHEN + + 99 - - 85 * + 93 + 86 THEN + 24 END * - 10 + - 46 * - CASE - COUNT ( * ) * + 78 + COUNT ( * ) WHEN + AVG ( 98 ) + 91 THEN - 68 ELSE NULL END + 67
----
NULL

query I rowsort
SELECT DISTINCT - 50 * - 43 * - ( + 18 ) col1
----
-38700

query I rowsort
SELECT + - 87 - - + 38
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT CASE 50 WHEN 63 + + CASE - 67 WHEN 13 * - - MAX( DISTINCT 90 ) + - COUNT( DISTINCT - 71 ) THEN + 39 + 85 WHEN + ( - 6 ) THEN NULL ELSE NULL END THEN 2 + - 55 / - 71 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT CASE 50 WHEN 63 + + CASE - 67 WHEN 13 * - - MAX ( DISTINCT 90 ) + - COUNT ( DISTINCT - 71 ) THEN + 39 + 85 WHEN + ( - 6 ) THEN NULL ELSE NULL END THEN 2 + - 55 / - 71 END AS col1
----
NULL

query I rowsort
SELECT + 74 * 88
----
6512

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT - 80 * + CASE - ( SUM( - 17 ) ) WHEN 53 THEN + 40 ELSE + 46 * SUM( NULLIF ( - 40, - 23 ) ) END
----
147200

skipif mysql # not compatible
query I rowsort label-4489
SELECT - 80 * + CASE - ( SUM ( - 17 ) ) WHEN 53 THEN + 40 ELSE + 46 * SUM ( NULLIF ( - 40, - 23 ) ) END
----
147200

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT COALESCE ( - - 39, + + 94, 39 + COUNT( * ) * 23 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4490
SELECT COALESCE ( - - 39, + + 94, 39 + COUNT ( * ) * 23 ) AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT 81 * - 11 - - - 8 + 29 * 37 * + COALESCE ( + + 44, CAST( - 23 AS SIGNED ) + + 79 ) AS col0
----
46313

skipif mysql # not compatible
query I rowsort label-4491
SELECT 81 * - 11 - - - 8 + 29 * 37 * + COALESCE ( + + 44, CAST ( - 23 AS INTEGER ) + + 79 ) AS col0
----
46313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4492
SELECT - 32 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4492
SELECT - 32 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 50 * 97 + + - 0
----
4850

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT NULLIF ( - COUNT( * ), - + 72 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4494
SELECT NULLIF ( - COUNT ( * ), - + 72 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL + ( + NULLIF ( + MIN( DISTINCT 25 ), - + 67 ) )
----
25

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL + ( + NULLIF ( + MIN ( DISTINCT 25 ), - + 67 ) )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT 37 * + 93 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT 37 * + 93 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT 46 * - - COUNT( * ) + - + 66
----
-20

skipif mysql # not compatible
query I rowsort label-4497
SELECT 46 * - - COUNT ( * ) + - + 66
----
-20

query I rowsort
SELECT ALL 19 * - 58 AS col2
----
-1102

onlyif mysql # DIV for integer division: 
query I rowsort label-4499
SELECT - 30 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-4499
SELECT - 30 / + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT DISTINCT + COALESCE ( 44, + + COUNT( * ) ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT + COALESCE ( 44, + + COUNT ( * ) ) AS col0
----
44

query II rowsort
SELECT - 21 + - 24 AS col1, + 42 AS col1
----
-45
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT ALL + 9 DIV + + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL + 9 / + + 94 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT - - 3 DIV - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4503
SELECT - - 3 / - 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4504
SELECT DISTINCT - COUNT( ALL - + 2 ) + - - 65 AS col2, 84 AS col0
----
64
84

skipif mysql # not compatible
query II rowsort label-4504
SELECT DISTINCT - COUNT ( ALL - + 2 ) + - - 65 AS col2, 84 AS col0
----
64
84

query II rowsort
SELECT ALL + 24 + + - 28, 25 col1
----
-4
25

query II rowsort
SELECT DISTINCT ( - 5 ) AS col2, - 46 * + ( 33 ) + + + ( + - 99 ) AS col1
----
-5
-1617

query I rowsort
SELECT ALL + + 13 + - 56 col2
----
-43

query I rowsort
SELECT ALL - 63 + + 43 * 66
----
2775

query I rowsort
SELECT - - 41 + 53 AS col1
----
94

query I rowsort
SELECT + 15 + - 84 * + 59 AS col2
----
-4941

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4511
SELECT CAST( - 94 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-4511
SELECT CAST ( - 94 AS INTEGER )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4512
SELECT ALL - 68 DIV + + ( - CAST( - + COALESCE ( + + 89, 2 ) AS SIGNED ) ) * + 69 + + - ( - COALESCE ( - COUNT( * ), 68 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL - 68 / + + ( - CAST ( - + COALESCE ( + + 89, 2 ) AS INTEGER ) ) * + 69 + + - ( - COALESCE ( - COUNT ( * ), 68 ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4513
SELECT DISTINCT + 31 DIV 79 col0
----
0

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT + 31 / 79 col0
----
0

query I rowsort
SELECT 4 * ( + - 12 ) + - 91 AS col1
----
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT ALL 85 DIV COALESCE ( + 99, + 5 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL 85 / COALESCE ( + 99, + 5 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4516
SELECT DISTINCT + 37, + COUNT( * ) * + 91 AS col2
----
37
91

skipif mysql # not compatible
query II rowsort label-4516
SELECT DISTINCT + 37, + COUNT ( * ) * + 91 AS col2
----
37
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT ALL 79 * ( - COUNT( 24 ) ) * 38
----
-3002

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL 79 * ( - COUNT ( 24 ) ) * 38
----
-3002

query I rowsort
SELECT + 84 * 62 AS col2
----
5208

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT + 90 * + - COALESCE ( - 4, + + 25 DIV - - 7 + 75, + 9, - + 7 + 80 ) * 53 AS col1
----
19080

skipif mysql # not compatible
query I rowsort label-4519
SELECT + 90 * + - COALESCE ( - 4, + + 25 / - - 7 + 75, + 9, - + 7 + 80 ) * 53 AS col1
----
19080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4520
SELECT + CAST( - 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-4520
SELECT + CAST ( - 27 AS INTEGER )
----
-27

query I rowsort
SELECT + CASE WHEN NOT NULL IS NOT NULL THEN 20 END AS col2
----
20

query I rowsort
SELECT - 96 * + 7 + + + 39 + 31 - + + 25 AS col2
----
-627

onlyif mysql # aggregate syntax: 
query II rowsort label-4523
SELECT ALL + 66 AS col0, MAX( - 27 ) AS col0
----
66
-27

skipif mysql # not compatible
query II rowsort label-4523
SELECT ALL + 66 AS col0, MAX ( - 27 ) AS col0
----
66
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4524
SELECT 41 * + 69 + - + 35 * 5 AS col0, - 93 DIV - + COALESCE ( + + CAST( NULL AS SIGNED ), - COUNT( * ) * + 59 ) - - 54 AS col1
----
2654
53

skipif mysql # not compatible
query II rowsort label-4524
SELECT 41 * + 69 + - + 35 * 5 AS col0, - 93 / - + COALESCE ( + + CAST ( NULL AS INTEGER ), - COUNT ( * ) * + 59 ) - - 54 AS col1
----
2654
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT + 54 * - 61 * - COALESCE ( - MIN( ALL 9 ), 8 + 58 )
----
-29646

skipif mysql # not compatible
query I rowsort label-4525
SELECT + 54 * - 61 * - COALESCE ( - MIN ( ALL 9 ), 8 + 58 )
----
-29646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT ( - NULLIF ( - CAST( - 49 AS SIGNED ), + 32 ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-4526
SELECT ( - NULLIF ( - CAST ( - 49 AS INTEGER ), + 32 ) ) AS col2
----
-49

query I rowsort
SELECT + 89 * - + 72 * - 18 AS col2
----
115344

query I rowsort
SELECT ALL + 69 * - 59 col2
----
-4071

query I rowsort
SELECT + ( - + 67 )
----
-67

query I rowsort
SELECT NULLIF ( + 46, 80 ) * + 86 - - + 49
----
4005

onlyif mysql # DIV for integer division: 
query I rowsort label-4531
SELECT ALL + ( - COALESCE ( 2, - 30, + 76 ) ) DIV ( ( - 99 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL + ( - COALESCE ( 2, - 30, + 76 ) ) / ( ( - 99 ) ) AS col1
----
0

query I rowsort
SELECT 21 - 12 * NULLIF ( + 39, - 83 )
----
-447

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - ( COUNT( - 51 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4533
SELECT - ( COUNT ( - 51 ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4534
SELECT ALL + + 3 + + ( + - COUNT( ALL - + CAST( NULL AS SIGNED ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL + + 3 + + ( + - COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT - 54 * 5 + 20 * - CAST( + + 53 AS SIGNED ) AS col1
----
-1330

skipif mysql # not compatible
query I rowsort label-4535
SELECT - 54 * 5 + 20 * - CAST ( + + 53 AS INTEGER ) AS col1
----
-1330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4536
SELECT ALL - - 90 + COUNT( * ) DIV + 71 + - 0 * 43 + 84 + - 57
----
117

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - - 90 + COUNT ( * ) / + 71 + - 0 * 43 + 84 + - 57
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + NULLIF ( + + 94, 44 + - + COUNT( * ) + - 85 + + - 83 ) + + - 82
----
12

skipif mysql # not compatible
query I rowsort label-4537
SELECT + NULLIF ( + + 94, 44 + - + COUNT ( * ) + - 85 + + - 83 ) + + - 82
----
12

query I rowsort
SELECT DISTINCT + - 61 + + 22 * - - 15
----
269

onlyif mysql # aggregate syntax: 
query II rowsort label-4539
SELECT - - 13, + SUM( DISTINCT - + 87 ) AS col2
----
13
-87

skipif mysql # not compatible
query II rowsort label-4539
SELECT - - 13, + SUM ( DISTINCT - + 87 ) AS col2
----
13
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4540
SELECT - 48 DIV - + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4540
SELECT - 48 / - + 85 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT ALL + + 10 + - - CAST( - 98 AS SIGNED ) * - + 15
----
1480

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL + + 10 + - - CAST ( - 98 AS INTEGER ) * - + 15
----
1480

query I rowsort
SELECT + 87 + + 53 - - 42
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT + MIN( DISTINCT - + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-4543
SELECT + MIN ( DISTINCT - + 46 )
----
-46

query II rowsort
SELECT - - 92, 65 + - - 44 AS col0
----
92
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4545
SELECT - 79 + + + 72 + COUNT( * ) * - 83 + + 12 DIV - - 52 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4545
SELECT - 79 + + + 72 + COUNT ( * ) * - 83 + + 12 / - - 52 AS col1
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4546
SELECT ALL + NULLIF ( - 51, - 1 ) - - 6 + - 28 DIV + SUM( ( - 88 ) ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL + NULLIF ( - 51, - 1 ) - - 6 + - 28 / + SUM ( ( - 88 ) ) AS col2
----
-45

query I rowsort
SELECT ALL + 45 * 59 AS col2
----
2655

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT 98 + MAX( + 43 )
----
141

skipif mysql # not compatible
query I rowsort label-4548
SELECT 98 + MAX ( + 43 )
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT + 27 * + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT + 27 * + COUNT ( * ) AS col2
----
27

query I rowsort
SELECT 85 - - - 78 - - + 58 * + + 17 + + 30
----
1023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4551
SELECT NULLIF ( + COUNT( * ), + + 13 ) DIV + + 27
----
0

skipif mysql # not compatible
query I rowsort label-4551
SELECT NULLIF ( + COUNT ( * ), + + 13 ) / + + 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT COUNT( * ) * 79 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4552
SELECT COUNT ( * ) * 79 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT - ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT - ( - COUNT ( * ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT 73 DIV + 4 - 87
----
-69

skipif mysql # not compatible
query I rowsort label-4554
SELECT 73 / + 4 - 87
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT DISTINCT - MAX( 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT - MAX ( 28 )
----
-28

query I rowsort
SELECT DISTINCT 19 * 35 AS col1
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL 77 * + MIN( - 86 ) AS col0
----
-6622

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL 77 * + MIN ( - 86 ) AS col0
----
-6622

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT 13 DIV - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4558
SELECT 13 / - 70 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4559
SELECT 49 DIV + SUM( DISTINCT - 90 )
----
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT 49 / + SUM ( DISTINCT - 90 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT 89 + + 51 * - 81 + COUNT( * ) + 24 * + ( 76 ) * + - 28 col1
----
-55113

skipif mysql # not compatible
query I rowsort label-4560
SELECT 89 + + 51 * - 81 + COUNT ( * ) + 24 * + ( 76 ) * + - 28 col1
----
-55113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4561
SELECT CAST( NULL AS SIGNED ) * + - COUNT( * ) * - 5 + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * - 5 + 58 AS col2
----
NULL

query I rowsort
SELECT 35 + 76 AS col0
----
111

query I rowsort
SELECT 79 - 94
----
-15

query I rowsort
SELECT ALL 99 + + 27
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT + MIN( + 54 ) * - 44 + + - COUNT( * ) + + 35 - 23 - + COUNT( * ) * 0 * COUNT( * )
----
-2365

skipif mysql # not compatible
query I rowsort label-4565
SELECT + MIN ( + 54 ) * - 44 + + - COUNT ( * ) + + 35 - 23 - + COUNT ( * ) * 0 * COUNT ( * )
----
-2365

query II rowsort
SELECT ALL 22 + 6 col1, 75 AS col2
----
28
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4567
SELECT ALL CASE - 24 WHEN + + CASE - + 86 WHEN COUNT( * ) THEN - - CASE 63 WHEN + - 40 + - + 59 * - 76 THEN 76 END * COUNT( * ) WHEN - CASE CAST( NULL AS SIGNED ) WHEN 96 * + 76 + + 26 / + 70 THEN + COUNT( * ) WHEN 63 - - MIN( 96 ) THEN NULL ELSE 71 END + + 94 THEN NULL END * MIN( 42 ) THEN - 37 - + 77 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL CASE - 24 WHEN + + CASE - + 86 WHEN COUNT ( * ) THEN - - CASE 63 WHEN + - 40 + - + 59 * - 76 THEN 76 END * COUNT ( * ) WHEN - CASE CAST ( NULL AS INTEGER ) WHEN 96 * + 76 + + 26 / + 70 THEN + COUNT ( * ) WHEN 63 - - MIN ( 96 ) THEN NULL ELSE 71 END + + 94 THEN NULL END * MIN ( 42 ) THEN - 37 - + 77 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL ( - 3 ) AS col2
----
-3

query I rowsort
SELECT ALL + 7 * - - 30 AS col0
----
210

query I rowsort
SELECT + 19 + - ( ( 0 ) ) AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT ALL + CAST( 52 AS SIGNED ) + - 24
----
28

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL + CAST ( 52 AS INTEGER ) + - 24
----
28

query I rowsort
SELECT - 85 * 15 * + + 18
----
-22950

query I rowsort
SELECT - - 4 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT DISTINCT + 13 - SUM( 44 ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT + 13 - SUM ( 44 ) col1
----
-31

query I rowsort
SELECT ALL CASE - - 59 WHEN + - 28 * 11 + - NULLIF ( - + 31, + 32 ) THEN + - 94 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ALL - - COUNT( ALL - ( - 54 ) ) - + 79 * MIN( + - 10 ) * COUNT( * )
----
791

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - - COUNT ( ALL - ( - 54 ) ) - + 79 * MIN ( + - 10 ) * COUNT ( * )
----
791

query I rowsort
SELECT 53 * - 63 + - 68 * 27 AS col1
----
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT DISTINCT 68 * - COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT 68 * - COUNT ( * ) AS col0
----
-68

query I rowsort
SELECT 99 * + NULLIF ( + - 81, - 30 ) * - - 51 + + 87 AS col2
----
-408882

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT ALL SUM( ALL - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL SUM ( ALL - 1 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4581
SELECT DISTINCT - MIN( ALL NULLIF ( + 57, 73 ) ) DIV - 12 col1
----
4

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT - MIN ( ALL NULLIF ( + 57, 73 ) ) / - 12 col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4582
SELECT ALL 62 - 58 DIV + - ( + 2 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL 62 - 58 / + - ( + 2 ) AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT 79 DIV + 40
----
1

skipif mysql # not compatible
query I rowsort label-4583
SELECT 79 / + 40
----
1

query I rowsort
SELECT 14 * - - ( - 27 ) * + 91
----
-34398

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ( - 93 ) * - COUNT( + 21 ) + - 86 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4585
SELECT ( - 93 ) * - COUNT ( + 21 ) + - 86 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT 24 * + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4586
SELECT 24 * + COUNT ( * ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL MIN( ALL + 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL MIN ( ALL + 20 ) AS col0
----
20

query I rowsort
SELECT ( 12 ) + 23 col2
----
35

query I rowsort
SELECT 30 - - + 34 + + 3
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4590
SELECT COALESCE ( COUNT( * ), - 50, + CAST( NULL AS SIGNED ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4590
SELECT COALESCE ( COUNT ( * ), - 50, + CAST ( NULL AS INTEGER ) ) col1
----
1

query I rowsort
SELECT 14 * ( - 28 ) AS col0
----
-392

query II rowsort
SELECT + 34, 90 AS col2
----
34
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4593
SELECT ALL MAX( ALL 31 ) * + 86 * + - NULLIF ( + + 76, + COUNT( * ) ) + CASE CASE + - 7 WHEN CAST( NULL AS SIGNED ) * + 81 THEN NULL WHEN + MIN( 8 ) THEN ( NULLIF ( + 1, COUNT( * ) ) ) * + 92 ELSE + 94 END WHEN NULLIF ( 50, + 4 - 50 * - SUM( ALL - 77 ) ) * - 14 THEN 80 * + 51 END + + CAST( - 18 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL MAX ( ALL 31 ) * + 86 * + - NULLIF ( + + 76, + COUNT ( * ) ) + CASE CASE + - 7 WHEN CAST ( NULL AS INTEGER ) * + 81 THEN NULL WHEN + MIN ( 8 ) THEN ( NULLIF ( + 1, COUNT ( * ) ) ) * + 92 ELSE + 94 END WHEN NULLIF ( 50, + 4 - 50 * - SUM ( ALL - 77 ) ) * - 14 THEN 80 * + 51 END + + CAST ( - 18 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 60 * - 23 * - 65 + 85 AS col2
----
89785

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL + MIN( - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL + MIN ( - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT - 60 + + - COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-4596
SELECT - 60 + + - COUNT ( * ) AS col0
----
-61

query I rowsort
SELECT - 48 * 61 AS col0
----
-2928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4598
SELECT DISTINCT 61 * 23 + + 35 + - COUNT( * ) DIV - - ( - COUNT( * ) )
----
1439

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT 61 * 23 + + 35 + - COUNT ( * ) / - - ( - COUNT ( * ) )
----
1439

query I rowsort
SELECT 80 col1
----
80

query I rowsort
SELECT DISTINCT 15 * + 63 AS col1
----
945

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT DISTINCT - + ( - COUNT( 61 ) ) * + + SUM( - 71 ) + 60
----
-11

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT - + ( - COUNT ( 61 ) ) * + + SUM ( - 71 ) + 60
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4602
SELECT ALL + 36 * MIN( ALL 92 ), + 84 AS col2
----
3312
84

skipif mysql # not compatible
query II rowsort label-4602
SELECT ALL + 36 * MIN ( ALL 92 ), + 84 AS col2
----
3312
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT + - 31 DIV 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4603
SELECT + - 31 / 91 AS col0
----
0

query I rowsort
SELECT - 42 * - 28
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT + 12 * MIN( ALL - - 28 )
----
336

skipif mysql # not compatible
query I rowsort label-4605
SELECT + 12 * MIN ( ALL - - 28 )
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - MIN( 81 ) - 0 * + MIN( DISTINCT + - 23 )
----
-81

skipif mysql # not compatible
query I rowsort label-4606
SELECT - MIN ( 81 ) - 0 * + MIN ( DISTINCT + - 23 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT + COUNT( + 35 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4607
SELECT + COUNT ( + 35 ) AS col2
----
1

query I rowsort
SELECT ALL - 84 - + 35 AS col1
----
-119

query I rowsort
SELECT + - ( - 46 ) * - NULLIF ( + 63, 10 * + 20 ) AS col2
----
-2898

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT ALL + 73 * COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL + 73 * COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT + MIN( DISTINCT - 64 ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT + MIN ( DISTINCT - 64 ) col0
----
-64

query I rowsort
SELECT DISTINCT - ( + 91 ) AS col0
----
-91

query I rowsort
SELECT DISTINCT 8 col0
----
8

query I rowsort
SELECT - NULLIF ( + 99, - ( 75 ) )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4615
SELECT 83 AS col2, + ( - 11 ) * + ( - NULLIF ( - 76, - CAST( 94 AS SIGNED ) ) ) AS col0
----
83
-836

skipif mysql # not compatible
query II rowsort label-4615
SELECT 83 AS col2, + ( - 11 ) * + ( - NULLIF ( - 76, - CAST ( 94 AS INTEGER ) ) ) AS col0
----
83
-836

query II rowsort
SELECT ALL 56, 19 AS col2
----
56
19

query I rowsort
SELECT 53 col0
----
53

query I rowsort
SELECT + 44 + - 94 + + 96 * + 95 + + 8
----
9078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4619
SELECT + 50 * + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT + 50 * + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 56 * + 29 AS col1
----
1624

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT + ( + 54 ) + - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-4621
SELECT + ( + 54 ) + - COUNT ( * )
----
53

query I rowsort
SELECT ALL 8 * + - 65
----
-520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4623
SELECT + 14 DIV COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4623
SELECT + 14 / COUNT ( * )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4624
SELECT ALL 20 + + 12 DIV 48 * + - 98, - COUNT( * ) * 99 col2
----
20
-99

skipif mysql # not compatible
query II rowsort label-4624
SELECT ALL 20 + + 12 / 48 * + - 98, - COUNT ( * ) * 99 col2
----
20
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT MAX( DISTINCT + - 38 ) + - + COUNT( * ) * + 20 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT MAX ( DISTINCT + - 38 ) + - + COUNT ( * ) * + 20 AS col2
----
-58

query I rowsort
SELECT ALL + 83 + 74 AS col1
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT DISTINCT NULLIF ( - SUM( DISTINCT + 32 ), 36 * - - CAST( NULL AS SIGNED ) * + 19 * COUNT( * ) + + COUNT( * ) * - 61 ) + - 64 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT NULLIF ( - SUM ( DISTINCT + 32 ), 36 * - - CAST ( NULL AS INTEGER ) * + 19 * COUNT ( * ) + + COUNT ( * ) * - 61 ) + - 64 AS col2
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4628
SELECT - 84 DIV - + 56
----
1

skipif mysql # not compatible
query I rowsort label-4628
SELECT - 84 / - + 56
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT DISTINCT 52 DIV + 28 + - 24 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT 52 / + 28 + - 24 AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT CAST( 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-4630
SELECT CAST ( 11 AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT - CASE - 47 WHEN + COUNT( * ) + 13 THEN - + 84 / 53 + + 95 + - 83 + 8 * + 38 * 15 + 42 ELSE NULL END * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT - CASE - 47 WHEN + COUNT ( * ) + 13 THEN - + 84 / 53 + + 95 + - 83 + 8 * + 38 * 15 + 42 ELSE NULL END * + 46
----
NULL

query I rowsort
SELECT + 72 - - + 17 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4633
SELECT + 93 AS col2, - 2 + CAST( NULL AS SIGNED ) * - - COUNT( * )
----
93
NULL

skipif mysql # not compatible
query II rowsort label-4633
SELECT + 93 AS col2, - 2 + CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
93
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4634
SELECT ALL - 17 DIV + 31 + 64
----
64

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL - 17 / + 31 + 64
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4635
SELECT + CAST( NULL AS SIGNED ), + 50 * - + 74 AS col0
----
NULL
-3700

skipif mysql # not compatible
query II rowsort label-4635
SELECT + CAST ( NULL AS INTEGER ), + 50 * - + 74 AS col0
----
NULL
-3700

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4636
SELECT ALL ( + COUNT( * ) ) DIV - 36 + 50, 33 AS col1
----
50
33

skipif mysql # not compatible
query II rowsort label-4636
SELECT ALL ( + COUNT ( * ) ) / - 36 + 50, 33 AS col1
----
50
33

query II rowsort
SELECT + 12, 41 * 57 + + 95 col2
----
12
2432

query II rowsort
SELECT DISTINCT + - 16 AS col1, + 49 col1
----
-16
49

query I rowsort
SELECT ALL - 40 * - 69
----
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT - 74 - + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-4640
SELECT - 74 - + COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT - - COUNT( * ) * 45 * 2 + 66
----
156

skipif mysql # not compatible
query I rowsort label-4641
SELECT - - COUNT ( * ) * 45 * 2 + 66
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - + COUNT( 11 ) + + 25 + + + COUNT( * ) + 91 * - + COUNT( * ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-4642
SELECT - + COUNT ( 11 ) + + 25 + + + COUNT ( * ) + 91 * - + COUNT ( * ) col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT + + 94 - + 35 * + 39 - - COALESCE ( - 11, + 92 ) DIV + - 91
----
-1271

skipif mysql # not compatible
query I rowsort label-4643
SELECT + + 94 - + 35 * + 39 - - COALESCE ( - 11, + 92 ) / + - 91
----
-1271

query I rowsort
SELECT 24 * 6 + - 79
----
65

query I rowsort
SELECT ALL 91 * - COALESCE ( - + 49, - - 8 ) + 30 - + 5 AS col0
----
4484

onlyif mysql # aggregate syntax: 
query II rowsort label-4646
SELECT DISTINCT - 18 AS col0, + SUM( ALL + + 75 )
----
-18
75

skipif mysql # not compatible
query II rowsort label-4646
SELECT DISTINCT - 18 AS col0, + SUM ( ALL + + 75 )
----
-18
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4647
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), - 43 * - 20 - - 6 - + CAST( - 89 AS SIGNED ) DIV 10 ) * + ( + 35 ) + 6 - 11 * - COUNT( * ) col1
----
30607

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), - 43 * - 20 - - 6 - + CAST ( - 89 AS INTEGER ) / 10 ) * + ( + 35 ) + 6 - 11 * - COUNT ( * ) col1
----
30607

query I rowsort
SELECT - 3 + + 24
----
21

query I rowsort
SELECT + 17 + 6
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT - SUM( - 32 ) * + ( 35 ) + + 34 AS col2
----
1154

skipif mysql # not compatible
query I rowsort label-4650
SELECT - SUM ( - 32 ) * + ( 35 ) + + 34 AS col2
----
1154

query I rowsort
SELECT + + 67 * - + 16 * + 35
----
-37520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4652
SELECT - CASE 32 WHEN - 11 THEN NULL WHEN 36 THEN NULL ELSE - 58 + - 46 * CASE + - CAST( NULL AS SIGNED ) WHEN - + 1 THEN + + MIN( - 54 ) ELSE - - ( - 84 ) + - 47 DIV - 91 END END + - 8 AS col1
----
-3814

skipif mysql # not compatible
query I rowsort label-4652
SELECT - CASE 32 WHEN - 11 THEN NULL WHEN 36 THEN NULL ELSE - 58 + - 46 * CASE + - CAST ( NULL AS INTEGER ) WHEN - + 1 THEN + + MIN ( - 54 ) ELSE - - ( - 84 ) + - 47 / - 91 END END + - 8 AS col1
----
-3814

query I rowsort
SELECT + 26 + - - 56
----
82

query II rowsort
SELECT - 38 * + 79, + 11 col1
----
-3002
11

query I rowsort
SELECT ALL + 51 + + - 69 AS col0
----
-18

query II rowsort
SELECT 30 + 89 AS col2, + 83 AS col0
----
119
83

query I rowsort
SELECT DISTINCT 14 + - - 2 - - 96 * - 52
----
-4976

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT DISTINCT 31 + + CASE + - 98 WHEN 51 - + - 79 / + + COALESCE ( + COALESCE ( - 53, 7 ), + 58, 55, + + 63 ) * COUNT( * ) THEN 22 WHEN + 97 * 44 THEN 94 END / + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT 31 + + CASE + - 98 WHEN 51 - + - 79 / + + COALESCE ( + COALESCE ( - 53, 7 ), + 58, 55, + + 63 ) * COUNT ( * ) THEN 22 WHEN + 97 * 44 THEN 94 END / + 6
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4659
SELECT 20 + - CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) - + + 98 + + 7 + 31 - - ( 44 ) + - + 69 + + 10 * - - CASE + - 4 WHEN + 89 THEN 85 * ( + 51 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT 20 + - CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) - + + 98 + + 7 + 31 - - ( 44 ) + - + 69 + + 10 * - - CASE + - 4 WHEN + 89 THEN 85 * ( + 51 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT NULLIF ( - 68, 64 ) + - + COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-4660
SELECT NULLIF ( - 68, 64 ) + - + COUNT ( * ) AS col1
----
-69

query I rowsort
SELECT DISTINCT 60 + + 37 AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4662
SELECT DISTINCT 54 * 53 AS col1, COUNT( * )
----
2862
1

skipif mysql # not compatible
query II rowsort label-4662
SELECT DISTINCT 54 * 53 AS col1, COUNT ( * )
----
2862
1

query I rowsort
SELECT DISTINCT - + 14
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4664
SELECT ALL + 58 - - 96 + + MIN( ALL + CAST( NULL AS SIGNED ) ) + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL + 58 - - 96 + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) + 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4665
SELECT ALL - - ( 43 ), COUNT( * ) * - 43 * 71 + - 83 AS col1
----
43
-3136

skipif mysql # not compatible
query II rowsort label-4665
SELECT ALL - - ( 43 ), COUNT ( * ) * - 43 * 71 + - 83 AS col1
----
43
-3136

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT + 71 + - - SUM( DISTINCT + 36 ) * - 13 AS col1
----
-397

skipif mysql # not compatible
query I rowsort label-4666
SELECT + 71 + - - SUM ( DISTINCT + 36 ) * - 13 AS col1
----
-397

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4667
SELECT - COUNT( * ) * + 18 DIV + 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4667
SELECT - COUNT ( * ) * + 18 / + 40 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4668
SELECT 33 + 67 + 85 - - - 69 * CAST( - + 67 AS SIGNED ) * + - 28 + - 64 DIV + 83 * - + 84 * - MIN( ALL 28 ) AS col2
----
-129259

skipif mysql # not compatible
query I rowsort label-4668
SELECT 33 + 67 + 85 - - - 69 * CAST ( - + 67 AS INTEGER ) * + - 28 + - 64 / + 83 * - + 84 * - MIN ( ALL 28 ) AS col2
----
-129259

onlyif mysql # DIV for integer division: 
query I rowsort label-4669
SELECT DISTINCT + 75 DIV 64 col0
----
1

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT + 75 / 64 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4670
SELECT - 60 * - 78 * - + COUNT( * ) + 42 + - + 36 + + CAST( NULL AS SIGNED ) + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT - 60 * - 78 * - + COUNT ( * ) + 42 + - + 36 + + CAST ( NULL AS INTEGER ) + + 54
----
NULL

query I rowsort
SELECT DISTINCT - + 95 AS col2
----
-95

query I rowsort
SELECT + + 28 col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT DISTINCT - + ( - - CAST( - 0 AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT - + ( - - CAST ( - 0 AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT + + 5 col2
----
5

query I rowsort
SELECT ALL - + 57 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT DISTINCT - + 97 * + NULLIF ( ( - 49 ), 77 / ( 22 ) + + COUNT( + 69 ) + 6 * + - 19 ) * - MAX( DISTINCT - 37 ) * + 64
----
11255104

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT - + 97 * + NULLIF ( ( - 49 ), 77 / ( 22 ) + + COUNT ( + 69 ) + 6 * + - 19 ) * - MAX ( DISTINCT - 37 ) * + 64
----
11255104

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT 82 * + ( COUNT( * ) ) + - - 26 + + SUM( 77 )
----
185

skipif mysql # not compatible
query I rowsort label-4677
SELECT 82 * + ( COUNT ( * ) ) + - - 26 + + SUM ( 77 )
----
185

query I rowsort
SELECT + + 41 * 94 - + - 58 + - + 27
----
3885

query I rowsort
SELECT - 2 col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4680
SELECT 4 DIV - MIN( DISTINCT - 44 ), - COUNT( * ) col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-4680
SELECT 4 / - MIN ( DISTINCT - 44 ), - COUNT ( * ) col2
----
0
-1

query II rowsort
SELECT 40 + - 3 * - + 73, 87 AS col2
----
259
87

query I rowsort
SELECT ALL - 28 + 54 + 6
----
32

query I rowsort
SELECT ALL - 82 + - - 51
----
-31

query I rowsort
SELECT DISTINCT - 10 + + 60
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4685
SELECT ALL 66 col1, + COUNT( * ) / 14 * + 20 - - CASE - 7 WHEN 34 THEN - 8 END + + 49 * + CAST( NULL AS SIGNED ) * + 57 + + 89 col1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-4685
SELECT ALL 66 col1, + COUNT ( * ) / 14 * + 20 - - CASE - 7 WHEN 34 THEN - 8 END + + 49 * + CAST ( NULL AS INTEGER ) * + 57 + + 89 col1
----
66
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4686
SELECT ALL 20 col1, SUM( ALL + 75 ) - COUNT( * ) + - + 63 * + 22
----
20
-1312

skipif mysql # not compatible
query II rowsort label-4686
SELECT ALL 20 col1, SUM ( ALL + 75 ) - COUNT ( * ) + - + 63 * + 22
----
20
-1312

onlyif mysql # DIV for integer division: 
query I rowsort label-4687
SELECT DISTINCT + 37 DIV 83 * - 99 * 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT + 37 / 83 * - 99 * 23 AS col1
----
0

query I rowsort
SELECT ALL - ( + 16 ) + + 75 col0
----
59

query I rowsort
SELECT 13 * + 61
----
793

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL + NULLIF ( + COUNT( * ), - 44 ) * - 3 - + 96
----
-99

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL + NULLIF ( + COUNT ( * ), - 44 ) * - 3 - + 96
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4691
SELECT 20 DIV + 82 * - 15 * - - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4691
SELECT 20 / + 82 * - 15 * - - 46 AS col1
----
0

query I rowsort
SELECT DISTINCT - 47 + - 41
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL - ( - 27 ) - COUNT( * ) * + ( 6 ) * + - 21
----
153

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - ( - 27 ) - COUNT ( * ) * + ( 6 ) * + - 21
----
153

query I rowsort
SELECT DISTINCT - 48 * + + 82 * + 49
----
-192864

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL COUNT( DISTINCT - NULLIF ( 59, + - 17 * + 92 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL COUNT ( DISTINCT - NULLIF ( 59, + - 17 * + 92 ) )
----
1

query II rowsort
SELECT 59, 98 * 2 * - 82 * - - 12 AS col2
----
59
-192864

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT MIN( ALL 74 ) + - + 3 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4697
SELECT MIN ( ALL 74 ) + - + 3 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT + + ( + COUNT( + - COALESCE ( NULLIF ( + + 92, - + 42 * + 35 ), 32 + + - 38, + 22 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4698
SELECT + + ( + COUNT ( + - COALESCE ( NULLIF ( + + 92, - + 42 * + 35 ), 32 + + - 38, + 22 ) ) )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4699
SELECT ALL - CAST( - - CASE + + 57 WHEN + ( - + 16 ) + - 13 THEN + 88 WHEN 72 THEN NULL END AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL - CAST ( - - CASE + + 57 WHEN + ( - + 16 ) + - 13 THEN + 88 WHEN 72 THEN NULL END AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4700
SELECT - 91 DIV 5 + - COALESCE ( + - 49, 97 * + 1 * - 66 * - 0 + + - 21 ) + + ( - 47 ) DIV COUNT( DISTINCT + 33 ) - + 76
----
-92

skipif mysql # not compatible
query I rowsort label-4700
SELECT - 91 / 5 + - COALESCE ( + - 49, 97 * + 1 * - 66 * - 0 + + - 21 ) + + ( - 47 ) / COUNT ( DISTINCT + 33 ) - + 76
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4701
SELECT 58 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT 58 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 16 * + 72 + - 71 + + 19 + - 99
----
1001

onlyif mysql # DIV for integer division: 
query I rowsort label-4703
SELECT DISTINCT + - 57 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT + - 57 / - 86
----
0

query I rowsort
SELECT ALL - + 88 AS col1
----
-88

query I rowsort
SELECT ALL - 86 * + 57 AS col0
----
-4902

query I rowsort
SELECT + ( + 57 ) - + - 32 AS col0
----
89

query I rowsort
SELECT DISTINCT - 53 * - 0 + + 75 + + - 83 col1
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-4708
SELECT DISTINCT 50 + + 90 DIV 1 AS col1, 59 AS col2
----
140
59

skipif mysql # not compatible
query II rowsort label-4708
SELECT DISTINCT 50 + + 90 / 1 AS col1, 59 AS col2
----
140
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT + 24 * - 61 * CASE + 69 WHEN - 86 THEN + MIN( DISTINCT - 5 ) END * - 9 + - COUNT( * ) * - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT + 24 * - 61 * CASE + 69 WHEN - 86 THEN + MIN ( DISTINCT - 5 ) END * - 9 + - COUNT ( * ) * - 48 AS col2
----
NULL

query I rowsort
SELECT + + 50 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL + 61 + - COUNT( * ) + + 24 + - SUM( + + 77 )
----
7

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL + 61 + - COUNT ( * ) + + 24 + - SUM ( + + 77 )
----
7

query I rowsort
SELECT - 38 + - + 34
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT - COUNT( * ) - + COUNT( - + 87 )
----
-2

skipif mysql # not compatible
query I rowsort label-4713
SELECT - COUNT ( * ) - + COUNT ( - + 87 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4714
SELECT ALL ( + + COUNT( * ) ) DIV 24, 42 AS col1
----
0
42

skipif mysql # not compatible
query II rowsort label-4714
SELECT ALL ( + + COUNT ( * ) ) / 24, 42 AS col1
----
0
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT COUNT( ( 97 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4715
SELECT COUNT ( ( 97 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4716
SELECT - COUNT( * ) * - COUNT( * ) + - - 61 DIV 96
----
1

skipif mysql # not compatible
query I rowsort label-4716
SELECT - COUNT ( * ) * - COUNT ( * ) + - - 61 / 96
----
1

query I rowsort
SELECT ALL 3 + 58 * 25 AS col2
----
1453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT ALL - CAST( + + 47 AS SIGNED ) + - 40
----
-87

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - CAST ( + + 47 AS INTEGER ) + - 40
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT - 67 + 29 DIV + 90 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4719
SELECT - 67 + 29 / + 90 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT DISTINCT CASE + - MIN( DISTINCT - 24 ) WHEN + 71 THEN - - 93 WHEN - 68 THEN NULL ELSE - + 14 - COUNT( * ) + - - COUNT( * ) + 6 + - + 48 * NULLIF ( - 94, + 48 * ( + 3 ) ) * 18 END + + 84 AS col1
----
81292

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT CASE + - MIN ( DISTINCT - 24 ) WHEN + 71 THEN - - 93 WHEN - 68 THEN NULL ELSE - + 14 - COUNT ( * ) + - - COUNT ( * ) + 6 + - + 48 * NULLIF ( - 94, + 48 * ( + 3 ) ) * 18 END + + 84 AS col1
----
81292

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4721
SELECT ALL - COUNT( - - CAST( NULL AS DECIMAL ) ) + - - 8 - 94 * + SUM( - ( - 37 ) ) col2, MAX( 32 )
----
-3470
32

skipif mysql # not compatible
query II rowsort label-4721
SELECT ALL - COUNT ( - - CAST ( NULL AS REAL ) ) + - - 8 - 94 * + SUM ( - ( - 37 ) ) col2, MAX ( 32 )
----
-3470
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT - NULLIF ( + + 93, + 50 / + + 44 * - ( 10 ) + - + CAST( NULL AS SIGNED ) * + 14 * - 49 )
----
-93

skipif mysql # not compatible
query I rowsort label-4722
SELECT - NULLIF ( + + 93, + 50 / + + 44 * - ( 10 ) + - + CAST ( NULL AS INTEGER ) * + 14 * - 49 )
----
-93

query I rowsort
SELECT ALL + 33 + + 57 * NULLIF ( - 18, - ( 86 ) )
----
-993

query I rowsort
SELECT + 31 * - + 0 * 62 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT - 13 + + CASE - 89 WHEN + MIN( CASE 19 WHEN + NULLIF ( CASE + 20 WHEN + + 18 THEN + 78 ELSE - - 98 END, + 64 ) THEN NULL WHEN + - 29 THEN NULL ELSE - 29 END ) / 92 THEN NULL WHEN 95 THEN - COUNT( * ) ELSE 50 END
----
37

skipif mysql # not compatible
query I rowsort label-4725
SELECT - 13 + + CASE - 89 WHEN + MIN ( CASE 19 WHEN + NULLIF ( CASE + 20 WHEN + + 18 THEN + 78 ELSE - - 98 END, + 64 ) THEN NULL WHEN + - 29 THEN NULL ELSE - 29 END ) / 92 THEN NULL WHEN 95 THEN - COUNT ( * ) ELSE 50 END
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ALL ( - - 58 ) - + 7 + + + 30 + - - NULLIF ( + + MIN( DISTINCT 74 ), - + ( - 68 ) ) * - 21 * 66 * - 6 * - COUNT( * ) AS col0
----
-615303

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL ( - - 58 ) - + 7 + + + 30 + - - NULLIF ( + + MIN ( DISTINCT 74 ), - + ( - 68 ) ) * - 21 * 66 * - 6 * - COUNT ( * ) AS col0
----
-615303

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT - COUNT( * ) * + + 28
----
-28

skipif mysql # not compatible
query I rowsort label-4727
SELECT - COUNT ( * ) * + + 28
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4728
SELECT ALL + 88 DIV - - COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL + 88 / - - COUNT ( * ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4729
SELECT DISTINCT COUNT( - + 7 ) AS col2, ( 24 )
----
1
24

skipif mysql # not compatible
query II rowsort label-4729
SELECT DISTINCT COUNT ( - + 7 ) AS col2, ( 24 )
----
1
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4730
SELECT - ( CASE CASE + 8 WHEN - 18 DIV + 32 - CAST( NULL AS SIGNED ) + + COUNT( * ) * - 21 DIV 32 THEN + 74 WHEN - 77 * + 98 THEN - 32 ELSE NULL END WHEN 71 + 86 * + 19 THEN - 81 WHEN - ( - 72 ) THEN NULL WHEN 57 THEN NULL ELSE + 74 + 26 END ) DIV 32 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4730
SELECT - ( CASE CASE + 8 WHEN - 18 / + 32 - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 21 / 32 THEN + 74 WHEN - 77 * + 98 THEN - 32 ELSE NULL END WHEN 71 + 86 * + 19 THEN - 81 WHEN - ( - 72 ) THEN NULL WHEN 57 THEN NULL ELSE + 74 + 26 END ) / 32 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT ALL SUM( ALL 6 ) * - 2 * - 17 AS col0, - 95 + + NULLIF ( 95, - ( 92 ) ) + + SUM( DISTINCT - - 97 ) AS col1
----
204
97

skipif mysql # not compatible
query II rowsort label-4731
SELECT ALL SUM ( ALL 6 ) * - 2 * - 17 AS col0, - 95 + + NULLIF ( 95, - ( 92 ) ) + + SUM ( DISTINCT - - 97 ) AS col1
----
204
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4732
SELECT - CAST( + 15 AS SIGNED ) + - COALESCE ( + COUNT( * ), + MIN( - + 31 ) * - 58 DIV COUNT( * ) + - CAST( - - 14 AS SIGNED ) )
----
-16

skipif mysql # not compatible
query I rowsort label-4732
SELECT - CAST ( + 15 AS INTEGER ) + - COALESCE ( + COUNT ( * ), + MIN ( - + 31 ) * - 58 / COUNT ( * ) + - CAST ( - - 14 AS INTEGER ) )
----
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-4733
SELECT ALL + 89 DIV - 19 AS col1, COALESCE ( + 66, + 8, + - ( - 99 ) ) * - 76
----
-4
-5016

skipif mysql # not compatible
query II rowsort label-4733
SELECT ALL + 89 / - 19 AS col1, COALESCE ( + 66, + 8, + - ( - 99 ) ) * - 76
----
-4
-5016

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT - 93 + COUNT( * ) * + 81 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4734
SELECT - 93 + COUNT ( * ) * + 81 AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4735
SELECT - 97 - - CASE WHEN + MIN( + - 27 ) NOT IN ( - + 13, 22, + 8 * 14 + - COUNT( * ) + + 73 ) THEN - 6 - - 72 DIV - 13 ELSE NULL END
----
-108

skipif mysql # not compatible
query I rowsort label-4735
SELECT - 97 - - CASE WHEN + MIN ( + - 27 ) NOT IN ( - + 13, 22, + 8 * 14 + - COUNT ( * ) + + 73 ) THEN - 6 - - 72 / - 13 ELSE NULL END
----
-108

query I rowsort
SELECT + 81 * 15 AS col1
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT ALL + + 97 * COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL + + 97 * COUNT ( * )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT ALL + 57 * MAX( ALL - ( + + 68 ) ) - - CASE + 83 WHEN + COUNT( * ) + - 40 + - + 1 THEN NULL ELSE + + NULLIF ( 34, - 86 ) END + + - CAST( NULL AS SIGNED ) + + 58 * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL + 57 * MAX ( ALL - ( + + 68 ) ) - - CASE + 83 WHEN + COUNT ( * ) + - 40 + - + 1 THEN NULL ELSE + + NULLIF ( 34, - 86 ) END + + - CAST ( NULL AS INTEGER ) + + 58 * 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4739
SELECT DISTINCT - COUNT( * ) * - MAX( 96 ) + 11 AS col0, - SUM( + 25 ) * - - COALESCE ( + 19, NULLIF ( - COALESCE ( + + COUNT( * ), - 20 + 39, + 49 + COUNT( * ), 21 ), - MIN( ALL + 22 ) ) + - 52 * 7, COUNT( - CAST( NULL AS SIGNED ) ) + - 75 ) + + NULLIF ( 98, - ( - 18 ) ) AS col2
----
107
-377

skipif mysql # not compatible
query II rowsort label-4739
SELECT DISTINCT - COUNT ( * ) * - MAX ( 96 ) + 11 AS col0, - SUM ( + 25 ) * - - COALESCE ( + 19, NULLIF ( - COALESCE ( + + COUNT ( * ), - 20 + 39, + 49 + COUNT ( * ), 21 ), - MIN ( ALL + 22 ) ) + - 52 * 7, COUNT ( - CAST ( NULL AS INTEGER ) ) + - 75 ) + + NULLIF ( 98, - ( - 18 ) ) AS col2
----
107
-377

query I rowsort
SELECT ALL 92 * + 79 * + + 84 + 34
----
610546

query I rowsort
SELECT + 83 * - + ( - 50 ) + + 31 - - + 38
----
4219

query II rowsort
SELECT 5 * - 28 + + - 51 + 6, 97 AS col1
----
-185
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4743
SELECT + 49 DIV - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4743
SELECT + 49 / - 85 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT ALL - 61 * 56 - + CAST( NULL AS SIGNED ) + + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL - 61 * 56 - + CAST ( NULL AS INTEGER ) + + - 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4745
SELECT ALL + 13 DIV + 96 AS col0, CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4745
SELECT ALL + 13 / + 96 AS col0, CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT ALL + NULLIF ( - 52, + - 72 * + 6 * 64 * - + AVG ( ALL + + 87 ) ) * 9 * 77 + 8 + + 26
----
-36002

query I rowsort
SELECT ALL 56 * - 91 AS col2
----
-5096

onlyif mysql # DIV for integer division: 
query I rowsort label-4748
SELECT + 44 * 12 DIV + - 10 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4748
SELECT + 44 * 12 / + - 10 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL + 56 * MAX( + 93 ) + + + 35 AS col0
----
5243

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + 56 * MAX ( + 93 ) + + + 35 AS col0
----
5243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4750
SELECT CASE + CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN 41 * - ( + ( 30 ) ) / - COALESCE ( 5, + ( + 82 ), COUNT( * ) * - 4 ) + + 7 WHEN 11 * 41 + - 15 THEN 82 ELSE 68 + 0 END
----
68

skipif mysql # not compatible
query I rowsort label-4750
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN 41 * - ( + ( 30 ) ) / - COALESCE ( 5, + ( + 82 ), COUNT ( * ) * - 4 ) + + 7 WHEN 11 * 41 + - 15 THEN 82 ELSE 68 + 0 END
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT SUM( 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4751
SELECT SUM ( 50 ) AS col2
----
50

query I rowsort
SELECT 65 * 68 - - 53
----
4473

query I rowsort
SELECT + 37 * 96
----
3552

onlyif mysql # aggregate syntax: 
query II rowsort label-4754
SELECT + 8 - + MAX( DISTINCT - + 6 ) AS col0, - 5 AS col1
----
14
-5

skipif mysql # not compatible
query II rowsort label-4754
SELECT + 8 - + MAX ( DISTINCT - + 6 ) AS col0, - 5 AS col1
----
14
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4755
SELECT - COALESCE ( + 57, - 39 ) * - + 10 + COUNT( * ) + - MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) + 48 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT - COALESCE ( + 57, - 39 ) * - + 10 + COUNT ( * ) + - MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + 48 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4756
SELECT ALL 30 AS col2, COUNT( * )
----
30
1

skipif mysql # not compatible
query II rowsort label-4756
SELECT ALL 30 AS col2, COUNT ( * )
----
30
1

query I rowsort
SELECT ALL + 2 * + 9 * 47 AS col0
----
846

query I rowsort
SELECT 97 col1
----
97

query I rowsort
SELECT ALL ( - - 67 ) AS col1
----
67

query I rowsort
SELECT ALL 36 * 69 AS col2
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT + COALESCE ( 10, + 77 * - ( - COUNT( * ) ) * - - 56 ) * - 6 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4761
SELECT + COALESCE ( 10, + 77 * - ( - COUNT ( * ) ) * - - 56 ) * - 6 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT + COUNT( * ) + - - 15 col0
----
16

skipif mysql # not compatible
query I rowsort label-4762
SELECT + COUNT ( * ) + - - 15 col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT - MIN( ALL + - 9 ) col1
----
9

skipif mysql # not compatible
query I rowsort label-4763
SELECT - MIN ( ALL + - 9 ) col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT - ( + COUNT( - + 47 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4764
SELECT - ( + COUNT ( - + 47 ) ) AS col2
----
-1

query I rowsort
SELECT - + 41 * 30
----
-1230

query II rowsort
SELECT DISTINCT 4 AS col0, + 19 AS col2
----
4
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4767
SELECT DISTINCT - 97 DIV - - ( + 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT - 97 / - - ( + 74 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT - - CASE 78 WHEN 27 + 3 + 60 + SUM( 55 ) * - 42 * - + 18 + + - 51 THEN - 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT - - CASE 78 WHEN 27 + 3 + 60 + SUM ( 55 ) * - 42 * - + 18 + + - 51 THEN - 89 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 69 + - - 18
----
-51

query I rowsort
SELECT + 84 * 43 + - - 52 AS col2
----
3664

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4771
SELECT + CAST( NULL AS DECIMAL ) / - 14 - + 63 + 47 + NULLIF ( + - SUM( 97 ), - NULLIF ( 80, + 80 ) ) + - 1 * - - 77 - 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT + CAST ( NULL AS REAL ) / - 14 - + 63 + 47 + NULLIF ( + - SUM ( 97 ), - NULLIF ( 80, + 80 ) ) + - 1 * - - 77 - 83 AS col1
----
NULL

query II rowsort
SELECT 40 AS col0, 89 col0
----
40
89

query I rowsort
SELECT - - 9 * 69
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT DISTINCT - COUNT( * ) * ( 73 ) + - - 51 * - 45 + - 45 + + COUNT( * ) + + 52 * + 30 col0
----
-852

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT - COUNT ( * ) * ( 73 ) + - - 51 * - 45 + - 45 + + COUNT ( * ) + + 52 * + 30 col0
----
-852

query I rowsort
SELECT + 69 * + + 29 + 99 - 36 + 15
----
2079

query I rowsort
SELECT 83 col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4777
SELECT 83 AS col2, + CAST( + 58 AS SIGNED ) * + 96 + + - 18 + - COUNT( * ) - - + 54 + + 26 * - 46 AS col0
----
83
4407

skipif mysql # not compatible
query II rowsort label-4777
SELECT 83 AS col2, + CAST ( + 58 AS INTEGER ) * + 96 + + - 18 + - COUNT ( * ) - - + 54 + + 26 * - 46 AS col0
----
83
4407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4778
SELECT ALL + + 86 * COALESCE ( + COUNT( * ), 88, 48 ) * - 96 + + CAST( - + 6 AS SIGNED ) + + 2 * + 96 AS col1, - 64 + - 64 + - 66 col0
----
-8070
-194

skipif mysql # not compatible
query II rowsort label-4778
SELECT ALL + + 86 * COALESCE ( + COUNT ( * ), 88, 48 ) * - 96 + + CAST ( - + 6 AS INTEGER ) + + 2 * + 96 AS col1, - 64 + - 64 + - 66 col0
----
-8070
-194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT - 56 - - 86 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT - 56 - - 86 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT DISTINCT - 51 + MAX( + 72 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT - 51 + MAX ( + 72 ) AS col0
----
21

query I rowsort
SELECT 69 * + 3 + - - 29 AS col0
----
236

onlyif mysql # DIV for integer division: 
query I rowsort label-4782
SELECT 97 DIV - - 93 + + + 83
----
84

skipif mysql # not compatible
query I rowsort label-4782
SELECT 97 / - - 93 + + + 83
----
84

query I rowsort
SELECT 23 + + 48
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-4784
SELECT ALL 2 * - 98 DIV - COALESCE ( - 43, 76 * + + 87 * + 9 * 2 * 30 + + 35 DIV - - 99, 14 ) AS col2, 55 * - 89
----
-4
-4895

skipif mysql # not compatible
query II rowsort label-4784
SELECT ALL 2 * - 98 / - COALESCE ( - 43, 76 * + + 87 * + 9 * 2 * 30 + + 35 / - - 99, 14 ) AS col2, 55 * - 89
----
-4
-4895

query I rowsort
SELECT 70 * - 33 + + 6
----
-2304

query I rowsort
SELECT 39 * + NULLIF ( - 14, 64 ) * - 45 - - 87 AS col1
----
24657

query I rowsort
SELECT - 75 * + 51 + - 25 * 1 * + 88 AS col2
----
-6025

query I rowsort
SELECT ALL 96 - + ( + + 80 ) col0
----
16

query I rowsort
SELECT ALL - ( - 20 ) AS col0
----
20

query I rowsort
SELECT 58 + 60 AS col0
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT 64 * - + NULLIF ( - - 38, - 33 ) DIV - - COUNT( * )
----
-2432

skipif mysql # not compatible
query I rowsort label-4791
SELECT 64 * - + NULLIF ( - - 38, - 33 ) / - - COUNT ( * )
----
-2432

onlyif mysql # aggregate syntax: 
query II rowsort label-4792
SELECT 75 col1, + COUNT( * ) * + - COUNT( * )
----
75
-1

skipif mysql # not compatible
query II rowsort label-4792
SELECT 75 col1, + COUNT ( * ) * + - COUNT ( * )
----
75
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4793
SELECT MIN( DISTINCT + 44 ) DIV ( - 17 ) * + CAST( - - 81 AS SIGNED ) + + 28 + 26
----
-108

skipif mysql # not compatible
query I rowsort label-4793
SELECT MIN ( DISTINCT + 44 ) / ( - 17 ) * + CAST ( - - 81 AS INTEGER ) + + 28 + 26
----
-108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4794
SELECT 54 + - 88 + 39 + - - CASE + COALESCE ( - 21, - - 36, - COUNT( * ) ) WHEN - + 32 THEN + COUNT( 65 ) * + 45 WHEN - 42 * COALESCE ( - COUNT( * ), - + 41 ) * CAST( NULL AS DECIMAL ) THEN - 63 END * - 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4794
SELECT 54 + - 88 + 39 + - - CASE + COALESCE ( - 21, - - 36, - COUNT ( * ) ) WHEN - + 32 THEN + COUNT ( 65 ) * + 45 WHEN - 42 * COALESCE ( - COUNT ( * ), - + 41 ) * CAST ( NULL AS REAL ) THEN - 63 END * - 67 AS col2
----
NULL

query II rowsort
SELECT ALL 95, 70 AS col1
----
95
70

query I rowsort
SELECT ( 66 ) + + + 83
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-4797
SELECT - 97 AS col0, COUNT( DISTINCT - + 92 ) - + - 74
----
-97
75

skipif mysql # not compatible
query II rowsort label-4797
SELECT - 97 AS col0, COUNT ( DISTINCT - + 92 ) - + - 74
----
-97
75

query II rowsort
SELECT DISTINCT 98, 60 col0
----
98
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4799
SELECT - 88 DIV - MAX( ALL + 53 )
----
1

skipif mysql # not compatible
query I rowsort label-4799
SELECT - 88 / - MAX ( ALL + 53 )
----
1

query I rowsort
SELECT ALL 28 + + 54 * - + 70 * 16 AS col2
----
-60452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4801
SELECT ALL + CASE + - COUNT( * ) WHEN - ( MAX( DISTINCT - 39 ) ) / - - 50 * - SUM( ALL + 98 ) + + + 49 - - 80 THEN - AVG ( ALL - 13 ) * ( + + MAX( + 82 ) ) * - 66 WHEN - MIN( ALL 74 ) * 52 THEN + CAST( COUNT( * ) AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + CASE + - COUNT ( * ) WHEN - ( MAX ( DISTINCT - 39 ) ) / - - 50 * - SUM ( ALL + 98 ) + + + 49 - - 80 THEN - AVG ( ALL - 13 ) * ( + + MAX ( + 82 ) ) * - 66 WHEN - MIN ( ALL 74 ) * 52 THEN + CAST ( COUNT ( * ) AS INTEGER ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 46 AS col2, - 32 * 35 * - + NULLIF ( - 31, - 86 * + 87 / - + 84 ) + - + 85
----
46
-34805

onlyif mysql # aggregate syntax: 
query II rowsort label-4803
SELECT ALL + 9 + COUNT( * ) AS col1, - SUM( DISTINCT 93 )
----
10
-93

skipif mysql # not compatible
query II rowsort label-4803
SELECT ALL + 9 + COUNT ( * ) AS col1, - SUM ( DISTINCT 93 )
----
10
-93

query I rowsort
SELECT + 38 + 63 AS col1
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4805
SELECT 13 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT 13 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4806
SELECT - COUNT( * ), + 80 AS col1
----
-1
80

skipif mysql # not compatible
query II rowsort label-4806
SELECT - COUNT ( * ), + 80 AS col1
----
-1
80

query I rowsort
SELECT 2 + - 94 + + + 82 * + - 68 AS col2
----
-5668

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT - NULLIF ( 30, - CASE COUNT( * ) WHEN + 86 + - 40 * 21 THEN + - 37 ELSE NULL END / - 77 )
----
-30

skipif mysql # not compatible
query I rowsort label-4808
SELECT - NULLIF ( 30, - CASE COUNT ( * ) WHEN + 86 + - 40 * 21 THEN + - 37 ELSE NULL END / - 77 )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4809
SELECT ALL - 74 * + MAX( ALL ( + - 10 ) ), + 38 AS col1
----
740
38

skipif mysql # not compatible
query II rowsort label-4809
SELECT ALL - 74 * + MAX ( ALL ( + - 10 ) ), + 38 AS col1
----
740
38

query I rowsort
SELECT 5 * + 0 AS col1
----
0

query I rowsort
SELECT - 74 + + 22 + 85 * + 60 - - + 65 + - 97 - 8 col0
----
5008

query I rowsort
SELECT 82 + 1 AS col0
----
83

query II rowsort
SELECT DISTINCT - + 97 AS col1, - ( 12 )
----
-97
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4814
SELECT DISTINCT + 55 + CASE - ( + 66 ) WHEN + 68 THEN - COUNT( * ) / + - 51 + 31 WHEN + + CASE + ( - 81 ) WHEN + 81 THEN - MIN( 17 ) / - CAST( - 97 AS SIGNED ) - + ( + 65 ) END THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT + 55 + CASE - ( + 66 ) WHEN + 68 THEN - COUNT ( * ) / + - 51 + 31 WHEN + + CASE + ( - 81 ) WHEN + 81 THEN - MIN ( 17 ) / - CAST ( - 97 AS INTEGER ) - + ( + 65 ) END THEN NULL END AS col2
----
NULL

query II rowsort
SELECT 16 AS col1, 63 AS col2
----
16
63

query I rowsort
SELECT ALL + 22 - + - 8
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4817
SELECT ALL - 33, 70 DIV CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
-33
-70

skipif mysql # not compatible
query II rowsort label-4817
SELECT ALL - 33, 70 / CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
-33
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-4818
SELECT + COUNT( * ) col1, - ( COALESCE ( - 87, - 14 * + NULLIF ( 2, - ( - 58 ) ) - - - 18 * ( 31 ) ) )
----
1
87

skipif mysql # not compatible
query II rowsort label-4818
SELECT + COUNT ( * ) col1, - ( COALESCE ( - 87, - 14 * + NULLIF ( 2, - ( - 58 ) ) - - - 18 * ( 31 ) ) )
----
1
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4819
SELECT COALESCE ( + 85, - 43 ) DIV + 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4819
SELECT COALESCE ( + 85, - 43 ) / + 78 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT DISTINCT + ( COUNT( * ) ) * + 56 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT + ( COUNT ( * ) ) * + 56 AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4821
SELECT ALL + 74 * + + 57 DIV 19 AS col0
----
222

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL + 74 * + + 57 / 19 AS col0
----
222

query I rowsort
SELECT 39 * 16
----
624

query I rowsort
SELECT DISTINCT + 93 * 99
----
9207

onlyif mysql # DIV for integer division: 
query I rowsort label-4824
SELECT 49 * 35 * + - 56 DIV - 8 AS col0
----
12005

skipif mysql # not compatible
query I rowsort label-4824
SELECT 49 * 35 * + - 56 / - 8 AS col0
----
12005

query I rowsort
SELECT ALL - 29 * + 84 * - 84
----
204624

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL + ( 26 ) * COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL + ( 26 ) * COUNT ( * ) AS col1
----
26

query I rowsort
SELECT DISTINCT - 20 * - + 58 AS col2
----
1160

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT 39 * + COALESCE ( - + COUNT( * ), - - 75 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4828
SELECT 39 * + COALESCE ( - + COUNT ( * ), - - 75 ) AS col0
----
-39

query II rowsort
SELECT 48 - - - 14 AS col2, 91
----
34
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT COUNT( DISTINCT - - 90 ) + + + 57 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-4830
SELECT COUNT ( DISTINCT - - 90 ) + + + 57 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL + 30 + + COUNT( * ) * + 76
----
106

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL + 30 + + COUNT ( * ) * + 76
----
106

query I rowsort
SELECT ALL 83 + 31 AS col1
----
114

query II rowsort
SELECT DISTINCT - 60 + + 60, 36 AS col2
----
0
36

query I rowsort
SELECT DISTINCT 44 + + 77
----
121

query I rowsort
SELECT + 13 - + 62 AS col1
----
-49

query I rowsort
SELECT ALL + 69 * - 6 * - - 70 + + 84 AS col1
----
-28896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4837
SELECT - + CASE - + 12 WHEN 16 THEN NULL ELSE + - 35 DIV - 27 END AS col0, - CAST( - COUNT( * ) AS SIGNED )
----
-1
1

skipif mysql # not compatible
query II rowsort label-4837
SELECT - + CASE - + 12 WHEN 16 THEN NULL ELSE + - 35 / - 27 END AS col0, - CAST ( - COUNT ( * ) AS INTEGER )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT - COUNT( DISTINCT 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-4838
SELECT - COUNT ( DISTINCT 62 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4839
SELECT 86 * + 15 * + COUNT( + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4839
SELECT 86 * + 15 * + COUNT ( + - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT - 78 col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT + 58 DIV + - 2
----
-29

skipif mysql # not compatible
query I rowsort label-4841
SELECT + 58 / + - 2
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4842
SELECT ALL + 42 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL + 42 / + 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4843
SELECT + - 31 DIV + 62 + - - NULLIF ( CASE + COALESCE ( - MAX( ALL ( + 54 ) ), 81, 84 ) WHEN - 72 * 86 + + - 66 - - - COALESCE ( 92, - 70 ) + - + 7 THEN NULL WHEN 4 DIV + CAST( 21 AS SIGNED ) THEN 29 + 11 ELSE - 62 * 25 END, + 86 ) col1
----
-1550

skipif mysql # not compatible
query I rowsort label-4843
SELECT + - 31 / + 62 + - - NULLIF ( CASE + COALESCE ( - MAX ( ALL ( + 54 ) ), 81, 84 ) WHEN - 72 * 86 + + - 66 - - - COALESCE ( 92, - 70 ) + - + 7 THEN NULL WHEN 4 / + CAST ( 21 AS INTEGER ) THEN 29 + 11 ELSE - 62 * 25 END, + 86 ) col1
----
-1550

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL - COUNT( * ) - - - NULLIF ( + 91, - + 75 ) + + - 88 * + 52
----
-4668

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL - COUNT ( * ) - - - NULLIF ( + 91, - + 75 ) + + - 88 * + 52
----
-4668

query I rowsort
SELECT ALL + ( - - 34 ) * + 4 * - 67 AS col0
----
-9112

query I rowsort
SELECT DISTINCT 17 * 9 AS col2
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT + 91 + 15 + 14 DIV 83 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-4847
SELECT + 91 + 15 + 14 / 83 AS col0
----
106

query I rowsort
SELECT + + 20 col2
----
20

query I rowsort
SELECT ALL ( + 8 ) * + 18 AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT - 10 * + 91 + + COUNT( * ) AS col0
----
-909

skipif mysql # not compatible
query I rowsort label-4850
SELECT - 10 * + 91 + + COUNT ( * ) AS col0
----
-909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4851
SELECT NULLIF ( + 90, + + AVG ( - 90 ) * - CASE + MAX( 61 ) WHEN + AVG ( - + 98 ) * CAST( + COUNT( * ) AS SIGNED ) * - 24 * - - 12 + ( - 53 ) THEN NULL WHEN - ( - 84 ) THEN NULL WHEN - COALESCE ( + 44, COUNT( * ) * - ( + COUNT( * ) ) + 84 ) * + 75 THEN - 55 * 30 END * 75 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4851
SELECT NULLIF ( + 90, + + AVG ( - 90 ) * - CASE + MAX ( 61 ) WHEN + AVG ( - + 98 ) * CAST ( + COUNT ( * ) AS INTEGER ) * - 24 * - - 12 + ( - 53 ) THEN NULL WHEN - ( - 84 ) THEN NULL WHEN - COALESCE ( + 44, COUNT ( * ) * - ( + COUNT ( * ) ) + 84 ) * + 75 THEN - 55 * 30 END * 75 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL 49 * + - 51 - - - COUNT( * ) col1
----
-2500

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL 49 * + - 51 - - - COUNT ( * ) col1
----
-2500

query I rowsort
SELECT + NULLIF ( 12, 89 ) col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4854
SELECT ALL CASE + 41 WHEN + + 18 THEN + 18 * + 42 + + COUNT( * ) END * - CASE 71 WHEN + - ( + - COUNT( * ) ) THEN - 13 WHEN - + 29 * CAST( NULL AS DECIMAL ) * + 27 THEN NULL END + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL CASE + 41 WHEN + + 18 THEN + 18 * + 42 + + COUNT ( * ) END * - CASE 71 WHEN + - ( + - COUNT ( * ) ) THEN - 13 WHEN - + 29 * CAST ( NULL AS REAL ) * + 27 THEN NULL END + + 36
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT CASE 78 WHEN ( + CAST( NULL AS SIGNED ) ) * CASE - 51 WHEN + + 79 * - ( ( - 37 ) ) THEN NULL WHEN + 69 THEN + + 51 * - + 14 - - 61 - - 50 - - CAST( + 56 AS SIGNED ) * + 4 * NULLIF ( - ( + 64 ), ( - CAST( CAST( + 66 AS SIGNED ) AS SIGNED ) ) ) ELSE NULL END THEN 81 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT CASE 78 WHEN ( + CAST ( NULL AS INTEGER ) ) * CASE - 51 WHEN + + 79 * - ( ( - 37 ) ) THEN NULL WHEN + 69 THEN + + 51 * - + 14 - - 61 - - 50 - - CAST ( + 56 AS INTEGER ) * + 4 * NULLIF ( - ( + 64 ), ( - CAST ( CAST ( + 66 AS INTEGER ) AS INTEGER ) ) ) ELSE NULL END THEN 81 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 79 + + - 1 * + 60 * 78 * - - 36 AS col1
----
-168559

onlyif mysql # aggregate syntax: 
query II rowsort label-4857
SELECT + 79 * 60 + + COUNT( * ) col1, - 72
----
4741
-72

skipif mysql # not compatible
query II rowsort label-4857
SELECT + 79 * 60 + + COUNT ( * ) col1, - 72
----
4741
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4858
SELECT DISTINCT 78 DIV - 91 col2
----
0

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT 78 / - 91 col2
----
0

query I rowsort
SELECT + 43 + + 17
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4860
SELECT + 29 * + 70 - + - 72 * - 13 - + + 42 - + - COUNT( * ) AS col2, + 96 AS col2
----
1053
96

skipif mysql # not compatible
query II rowsort label-4860
SELECT + 29 * + 70 - + - 72 * - 13 - + + 42 - + - COUNT ( * ) AS col2, + 96 AS col2
----
1053
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4861
SELECT - COALESCE ( + 36, + 35, + 9 * - 31 ) DIV + - ( + + ( COUNT( * ) ) ) col0
----
36

skipif mysql # not compatible
query I rowsort label-4861
SELECT - COALESCE ( + 36, + 35, + 9 * - 31 ) / + - ( + + ( COUNT ( * ) ) ) col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT ( - 67 ) * - 38 * - - COUNT( * ) + - 16 AS col2
----
2530

skipif mysql # not compatible
query I rowsort label-4862
SELECT ( - 67 ) * - 38 * - - COUNT ( * ) + - 16 AS col2
----
2530

query I rowsort
SELECT - 1 - 6
----
-7

query I rowsort
SELECT ALL - 71 * 2
----
-142

query I rowsort
SELECT + 92 col1
----
92

query I rowsort
SELECT ALL - 72 * - 74 * + 46
----
245088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT - 93 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT - 93 * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT - + COUNT( * ) + + + 52 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4868
SELECT - + COUNT ( * ) + + + 52 AS col1
----
51

query I rowsort
SELECT ALL - + ( - + 36 ) + + 9 * 21 + + 96 AS col0
----
321

onlyif mysql # aggregate syntax: 
query II rowsort label-4870
SELECT ALL 73 AS col1, - MIN( DISTINCT 46 ) AS col0
----
73
-46

skipif mysql # not compatible
query II rowsort label-4870
SELECT ALL 73 AS col1, - MIN ( DISTINCT 46 ) AS col0
----
73
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT - - COUNT( * ) + 88
----
89

skipif mysql # not compatible
query I rowsort label-4871
SELECT - - COUNT ( * ) + 88
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4872
SELECT DISTINCT - - 33 - - 50 + + 71 DIV 43 + - 4 + 46 DIV 45
----
81

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - - 33 - - 50 + + 71 / 43 + - 4 + 46 / 45
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4873
SELECT ALL + - 71 * + - 13 * 55 + - 55 AS col1, - 38 * + CASE - ( - MIN( DISTINCT 42 ) ) WHEN - + 9 + 19 THEN NULL WHEN + - 32 THEN NULL WHEN - MAX( + - 75 ) * + - 45 - COALESCE ( - + COUNT( * ), - 64 * + 9 ) THEN COUNT( * ) * COUNT( * ) ELSE NULL END
----
50710
NULL

skipif mysql # not compatible
query II rowsort label-4873
SELECT ALL + - 71 * + - 13 * 55 + - 55 AS col1, - 38 * + CASE - ( - MIN ( DISTINCT 42 ) ) WHEN - + 9 + 19 THEN NULL WHEN + - 32 THEN NULL WHEN - MAX ( + - 75 ) * + - 45 - COALESCE ( - + COUNT ( * ), - 64 * + 9 ) THEN COUNT ( * ) * COUNT ( * ) ELSE NULL END
----
50710
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT - + CASE - 81 WHEN - 41 THEN + - 69 * 19 * 11 + + - 93 - 30 WHEN 5 THEN 79 + - 44 - - 93 * - - COUNT( - 17 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT - + CASE - 81 WHEN - 41 THEN + - 69 * 19 * 11 + + - 93 - 30 WHEN 5 THEN 79 + - 44 - - 93 * - - COUNT ( - 17 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4875
SELECT - - 34, 41 DIV - + COUNT( * ) AS col0
----
34
-41

skipif mysql # not compatible
query II rowsort label-4875
SELECT - - 34, 41 / - + COUNT ( * ) AS col0
----
34
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4876
SELECT - COALESCE ( + + COUNT( * ), 0 + + - 74, + NULLIF ( + - 99, + - 23 * + 96 ) DIV - + 66, + - COUNT( * ), + COALESCE ( + SUM( DISTINCT - 7 ), 16 ) * 32 + 1 ) + - - 29 DIV + 73 DIV COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4876
SELECT - COALESCE ( + + COUNT ( * ), 0 + + - 74, + NULLIF ( + - 99, + - 23 * + 96 ) / - + 66, + - COUNT ( * ), + COALESCE ( + SUM ( DISTINCT - 7 ), 16 ) * 32 + 1 ) + - - 29 / + 73 / COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4877
SELECT DISTINCT - - COALESCE ( - 98, 10 + + 72 - - - COUNT( * ) DIV - - 89 + ( + - 42 ) ) - + 70 col2
----
-168

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT - - COALESCE ( - 98, 10 + + 72 - - - COUNT ( * ) / - - 89 + ( + - 42 ) ) - + 70 col2
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4878
SELECT ALL + - CAST( - 32 AS SIGNED ) * + 13 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL + - CAST ( - 32 AS INTEGER ) * + 13 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4879
SELECT - - COUNT( * ) AS col2, + 77 + COUNT( * ) AS col0
----
1
78

skipif mysql # not compatible
query II rowsort label-4879
SELECT - - COUNT ( * ) AS col2, + 77 + COUNT ( * ) AS col0
----
1
78

query II rowsort
SELECT - 42 AS col2, 43
----
-42
43

query I rowsort
SELECT + + 20 + + 86 AS col0
----
106

onlyif mysql # DIV for integer division: 
query II rowsort label-4882
SELECT 51 AS col1, 78 DIV - 73 AS col2
----
51
-1

skipif mysql # not compatible
query II rowsort label-4882
SELECT 51 AS col1, 78 / - 73 AS col2
----
51
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4883
SELECT ALL 79 DIV - 22 AS col1, - ( - - NULLIF ( - COUNT( * ), - - 72 + + ( + 77 ) * + CAST( NULL AS SIGNED ) ) ) * + - MAX( - 51 ) AS col0
----
-3
51

skipif mysql # not compatible
query II rowsort label-4883
SELECT ALL 79 / - 22 AS col1, - ( - - NULLIF ( - COUNT ( * ), - - 72 + + ( + 77 ) * + CAST ( NULL AS INTEGER ) ) ) * + - MAX ( - 51 ) AS col0
----
-3
51

query II rowsort
SELECT + 85 * + 90 AS col1, - 37 * NULLIF ( - - 87, + - 1 )
----
7650
-3219

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT + CASE 40 WHEN 90 THEN - 65 * + 88 WHEN COUNT( * ) * - 67 + - + 86 THEN NULL ELSE - 10 END
----
-10

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT + CASE 40 WHEN 90 THEN - 65 * + 88 WHEN COUNT ( * ) * - 67 + - + 86 THEN NULL ELSE - 10 END
----
-10

query I rowsort
SELECT DISTINCT 32 * 13
----
416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4887
SELECT DISTINCT 8 * + 17 * 4 * - 11 DIV COUNT( * )
----
-5984

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT 8 * + 17 * 4 * - 11 / COUNT ( * )
----
-5984

query I rowsort
SELECT + 26 * 82
----
2132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT CAST( + 21 AS SIGNED ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4889
SELECT CAST ( + 21 AS INTEGER ) AS col0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4890
SELECT ALL 31 DIV - + COUNT( * ) + + - 98 + - - 14 DIV 62 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL 31 / - + COUNT ( * ) + + - 98 + - - 14 / 62 AS col0
----
-129

query I rowsort
SELECT + ( + - ( - + 91 ) ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT 39 * - 32 * MAX( - 3 ) + + 19 * - 10 AS col2
----
3554

skipif mysql # not compatible
query I rowsort label-4892
SELECT 39 * - 32 * MAX ( - 3 ) + + 19 * - 10 AS col2
----
3554

query I rowsort
SELECT DISTINCT 37 * 77 + - - 4
----
2853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4894
SELECT + CAST( 72 AS SIGNED ) * - - 80 * + + MAX( 47 )
----
270720

skipif mysql # not compatible
query I rowsort label-4894
SELECT + CAST ( 72 AS INTEGER ) * - - 80 * + + MAX ( 47 )
----
270720

query I rowsort
SELECT + NULLIF ( + + 16, - 55 ) * - - 60 + - 12 + - 62
----
886

query I rowsort
SELECT ( 95 ) col2
----
95

query I rowsort
SELECT ALL + + ( + COALESCE ( - - 61, 60 ) ) col1
----
61

query I rowsort
SELECT ALL + 91 * 0 + 4
----
4

query I rowsort
SELECT + 35 - 88 col1
----
-53

query I rowsort
SELECT - 4 * 17 * - - 80 AS col1
----
-5440

query I rowsort
SELECT - COALESCE ( + 6, - ( - 77 ) ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT + - 27 * 68 + + ( - 74 ) * + MAX( - 25 ) * 86 * + 56
----
8907764

skipif mysql # not compatible
query I rowsort label-4902
SELECT + - 27 * 68 + + ( - 74 ) * + MAX ( - 25 ) * 86 * + 56
----
8907764

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT + CASE + - ( 15 ) WHEN - 88 + + 40 THEN + 33 WHEN + 66 THEN COUNT( * ) * - + ( + COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT + CASE + - ( 15 ) WHEN - 88 + + 40 THEN + 33 WHEN + 66 THEN COUNT ( * ) * - + ( + COUNT ( * ) ) END AS col2
----
NULL

query II rowsort
SELECT + 27 + + - 65 + 24 + - 35, 93 - + - 16 + + 45 AS col1
----
-49
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL - 86 * 21 * + + NULLIF ( - COUNT( 84 ), - COUNT( * ) / + 18 - + + 39 * - 31 ) AS col0
----
1806

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL - 86 * 21 * + + NULLIF ( - COUNT ( 84 ), - COUNT ( * ) / + 18 - + + 39 * - 31 ) AS col0
----
1806

query I rowsort
SELECT DISTINCT 49 * + 12 AS col0
----
588

query I rowsort
SELECT - 51 * 62
----
-3162

query I rowsort
SELECT 18 * 6 + - - 29 AS col1
----
137

query I rowsort
SELECT ALL COALESCE ( + + 23, NULLIF ( ( 29 ), 89 * - 68 + - - 2 ) ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT COUNT( * ) * + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4910
SELECT COUNT ( * ) * + - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT 49 - SUM( ALL + - 51 ) col2
----
100

skipif mysql # not compatible
query I rowsort label-4911
SELECT 49 - SUM ( ALL + - 51 ) col2
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4912
SELECT SUM( - 45 ) DIV 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-4912
SELECT SUM ( - 45 ) / 78 col0
----
0

query I rowsort
SELECT ALL 73 + + 16
----
89

query I rowsort
SELECT DISTINCT 91 * 70
----
6370

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT - 61 + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT - 61 + COUNT ( * )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT 39 + + 85 * + CAST( NULL AS SIGNED ) * - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT 39 + + 85 * + CAST ( NULL AS INTEGER ) * - 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL - 43 + + - 24 + - 25 + + 92 * - CASE - 79 WHEN COUNT( * ) THEN NULL ELSE + - 22 END AS col1
----
1932

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL - 43 + + - 24 + - 25 + + 92 * - CASE - 79 WHEN COUNT ( * ) THEN NULL ELSE + - 22 END AS col1
----
1932

query I rowsort
SELECT 48 + - 86
----
-38

query II rowsort
SELECT ALL - 29, COALESCE ( - - 82, + 72 ) * 94 AS col0
----
-29
7708

query I rowsort
SELECT DISTINCT - 41 AS col1
----
-41

query I rowsort
SELECT ALL + 80 + + 30 * - 34
----
-940

onlyif mysql # DIV for integer division: 
query I rowsort label-4922
SELECT + 21 DIV + 82 + + 8 * + 86 AS col1
----
688

skipif mysql # not compatible
query I rowsort label-4922
SELECT + 21 / + 82 + + 8 * + 86 AS col1
----
688

query I rowsort
SELECT ALL 60 + + 5 - + 70
----
-5

query I rowsort
SELECT 93 + - 17
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4925
SELECT ALL - 8 DIV + 47
----
0

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL - 8 / + 47
----
0

query I rowsort
SELECT ALL 77 * + + 77
----
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT - COUNT( * ) * + 87 + 26
----
-61

skipif mysql # not compatible
query I rowsort label-4927
SELECT - COUNT ( * ) * + 87 + 26
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT ALL 24 - COUNT( * ) - - 30 * - 86
----
-2557

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL 24 - COUNT ( * ) - - 30 * - 86
----
-2557

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT 83 + + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4929
SELECT 83 + + - COUNT ( * )
----
82

query I rowsort
SELECT + 32 + - - 10 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT 92 + - COUNT( ALL 70 )
----
91

skipif mysql # not compatible
query I rowsort label-4931
SELECT 92 + - COUNT ( ALL 70 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4932
SELECT + - CASE - CAST( NULL AS SIGNED ) WHEN + 93 * 21 THEN NULL WHEN 94 THEN COALESCE ( 0, 33 * - 0 * MAX( + 32 ) + + NULLIF ( - + 60, - 20 + COUNT( * ) + - COUNT( * ) ) + + 40 * - 65, + - 61 + + 53 * 12, - CASE + CAST( NULL AS SIGNED ) WHEN + ( + 38 ) + 49 THEN NULL ELSE - 36 END, - 45 ) DIV + 16 ELSE + ( - 21 ) END
----
21

skipif mysql # not compatible
query I rowsort label-4932
SELECT + - CASE - CAST ( NULL AS INTEGER ) WHEN + 93 * 21 THEN NULL WHEN 94 THEN COALESCE ( 0, 33 * - 0 * MAX ( + 32 ) + + NULLIF ( - + 60, - 20 + COUNT ( * ) + - COUNT ( * ) ) + + 40 * - 65, + - 61 + + 53 * 12, - CASE + CAST ( NULL AS INTEGER ) WHEN + ( + 38 ) + 49 THEN NULL ELSE - 36 END, - 45 ) / + 16 ELSE + ( - 21 ) END
----
21

query I rowsort
SELECT ALL + 21 - 71 col0
----
-50

query I rowsort
SELECT DISTINCT - + 90 AS col1
----
-90

query I rowsort
SELECT DISTINCT - 13 col2
----
-13

query I rowsort
SELECT ALL 99 - - 38
----
137

query I rowsort
SELECT 72 * - 8 - - - 13
----
-589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT ALL 38 * + 9 * - CAST( NULL AS SIGNED ) * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL 38 * + 9 * - CAST ( NULL AS INTEGER ) * + 17
----
NULL

query II rowsort
SELECT - 82 + + - 0 - - 13, + 58 AS col2
----
-69
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4940
SELECT ALL - 61 col0, + CAST( - - 48 AS SIGNED )
----
-61
48

skipif mysql # not compatible
query II rowsort label-4940
SELECT ALL - 61 col0, + CAST ( - - 48 AS INTEGER )
----
-61
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT - SUM( - 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT - SUM ( - 16 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4942
SELECT DISTINCT 76, COUNT( * ) * 49 AS col2
----
76
49

skipif mysql # not compatible
query II rowsort label-4942
SELECT DISTINCT 76, COUNT ( * ) * 49 AS col2
----
76
49

query I rowsort
SELECT 74 + 74 AS col2
----
148

onlyif mysql # DIV for integer division: 
query I rowsort label-4944
SELECT ALL 41 DIV 37 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL 41 / 37 AS col1
----
1

query I rowsort
SELECT ALL + - 99 + - 86 AS col2
----
-185

query I rowsort
SELECT ALL 68 * - + 74 + - 42 * 44 * - - 6
----
-16120

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT + COUNT( * ) + - 99 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4947
SELECT + COUNT ( * ) + - 99 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT - MIN( - 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4948
SELECT - MIN ( - 40 ) AS col1
----
40

query I rowsort
SELECT 77 + - - 25
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT - MIN( - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-4950
SELECT - MIN ( - 95 )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT 84 + CAST( - + 73 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-4951
SELECT 84 + CAST ( - + 73 AS INTEGER )
----
11

query II rowsort
SELECT - 9 AS col2, ( - 97 ) AS col0
----
-9
-97

query I rowsort
SELECT 58 * - 96 AS col2
----
-5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4954
SELECT 93 + CAST( - - 38 AS SIGNED )
----
131

skipif mysql # not compatible
query I rowsort label-4954
SELECT 93 + CAST ( - - 38 AS INTEGER )
----
131

query II rowsort
SELECT 40 col0, + 45
----
40
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL MAX( DISTINCT 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL MAX ( DISTINCT 42 ) AS col1
----
42

query I rowsort
SELECT 10 col1
----
10

query I rowsort
SELECT ALL 2 + - + 34
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT MIN( - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT MIN ( - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4960
SELECT ALL 36 * COUNT( ALL + 86 ) + - 85 AS col0, 58
----
-49
58

skipif mysql # not compatible
query II rowsort label-4960
SELECT ALL 36 * COUNT ( ALL + 86 ) + - 85 AS col0, 58
----
-49
58

query I rowsort
SELECT 83 * + 65
----
5395

query II rowsort
SELECT + 77 AS col1, 87 AS col0
----
77
87

query II rowsort
SELECT ALL - 64 AS col0, 16
----
-64
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4964
SELECT NULLIF ( - CAST( 14 AS SIGNED ), + - 51 / - COUNT( * ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4964
SELECT NULLIF ( - CAST ( 14 AS INTEGER ), + - 51 / - COUNT ( * ) ) AS col2
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-4965
SELECT 73 * + - 52 AS col2, COALESCE ( 21, + + 44 DIV - 3, - 21 )
----
-3796
21

skipif mysql # not compatible
query II rowsort label-4965
SELECT 73 * + - 52 AS col2, COALESCE ( 21, + + 44 / - 3, - 21 )
----
-3796
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT 9 * - - 92 * - COUNT( * ) * - - 54
----
-44712

skipif mysql # not compatible
query I rowsort label-4966
SELECT 9 * - - 92 * - COUNT ( * ) * - - 54
----
-44712

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT + 12 DIV - 97 * 57
----
0

skipif mysql # not compatible
query I rowsort label-4967
SELECT + 12 / - 97 * 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT ALL + 50 * + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + 50 * + - COUNT ( * )
----
-50

query I rowsort
SELECT DISTINCT + + 4 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT - 44 * + 4 * + CAST( 25 AS SIGNED ) AS col2
----
-4400

skipif mysql # not compatible
query I rowsort label-4970
SELECT - 44 * + 4 * + CAST ( 25 AS INTEGER ) AS col2
----
-4400

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT - 53 / + 59 * + CASE - 60 WHEN 95 * 0 / + COUNT( * ) * - 64 THEN + 24 END * + - ( - - 12 ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT - 53 / + 59 * + CASE - 60 WHEN 95 * 0 / + COUNT ( * ) * - 64 THEN + 24 END * + - ( - - 12 ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT + + 86 col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4973
SELECT 59, COUNT( * ) * - 19 AS col2
----
59
-19

skipif mysql # not compatible
query II rowsort label-4973
SELECT 59, COUNT ( * ) * - 19 AS col2
----
59
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4974
SELECT ALL + COUNT( * ) DIV + + ( + - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + COUNT ( * ) / + + ( + - 31 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4975
SELECT + CAST( NULL AS DECIMAL ) AS col2, - 69 * - COALESCE ( + 89, + 53 )
----
NULL
6141

skipif mysql # not compatible
query II rowsort label-4975
SELECT + CAST ( NULL AS REAL ) AS col2, - 69 * - COALESCE ( + 89, + 53 )
----
NULL
6141

onlyif mysql # aggregate syntax: 
query II rowsort label-4976
SELECT ALL + + 63, + NULLIF ( + - CASE - 8 WHEN + 34 THEN 55 ELSE NULL END, + 51 ) * COUNT( - 54 ) * + 14 + + 50 + - 15 AS col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-4976
SELECT ALL + + 63, + NULLIF ( + - CASE - 8 WHEN + 34 THEN 55 ELSE NULL END, + 51 ) * COUNT ( - 54 ) * + 14 + + 50 + - 15 AS col0
----
63
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT + 2 * + 62 DIV - 61
----
-2

skipif mysql # not compatible
query I rowsort label-4977
SELECT + 2 * + 62 / - 61
----
-2

query I rowsort
SELECT - 42 * + 22 AS col0
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT DISTINCT + COUNT( * ) + 84 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT + COUNT ( * ) + 84 AS col0
----
85

query II rowsort
SELECT 39, + 47 AS col1
----
39
47

query I rowsort
SELECT ALL - 52 + - 9 + + 30 * - 61 + - 2
----
-1893

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT ALL - MIN( DISTINCT - - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL - MIN ( DISTINCT - - 32 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4983
SELECT DISTINCT CAST( + - NULLIF ( 56, - 77 ) AS SIGNED ) + - 86 + + - ( 82 ) + 94 + - 94 + CAST( NULL AS SIGNED ) * 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT CAST ( + - NULLIF ( 56, - 77 ) AS INTEGER ) + - 86 + + - ( 82 ) + 94 + - 94 + CAST ( NULL AS INTEGER ) * 91 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4984
SELECT + - CAST( NULL AS SIGNED ) - SUM( DISTINCT + - 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT + - CAST ( NULL AS INTEGER ) - SUM ( DISTINCT + - 70 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT 70 + + MIN( - 38 )
----
32

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT 70 + + MIN ( - 38 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT ALL COUNT( DISTINCT 28 ) + + ( + 71 )
----
72

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL COUNT ( DISTINCT 28 ) + + ( + 71 )
----
72

query I rowsort
SELECT ALL + NULLIF ( 22, + 76 ) + 72 AS col2
----
94

query I rowsort
SELECT - ( + 27 ) col2
----
-27

query I rowsort
SELECT + 3 * + + CASE - 45 WHEN + - 3 THEN NULL WHEN - - 11 THEN 67 * - - 42 END * - - 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4990
SELECT + COUNT( * ) DIV - + 52 col0
----
0

skipif mysql # not compatible
query I rowsort label-4990
SELECT + COUNT ( * ) / - + 52 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT - COALESCE ( + 52, 4 + - COUNT( * ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4991
SELECT - COALESCE ( + 52, 4 + - COUNT ( * ) ) AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT DISTINCT CASE + - 21 WHEN + + 51 THEN - CAST( NULL AS SIGNED ) WHEN - + 32 * - 52 + + CAST( + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) - 95 * - 77 + - 52 THEN - 65 / 44 - - 4 + + - 89 WHEN - 34 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT CASE + - 21 WHEN + + 51 THEN - CAST ( NULL AS INTEGER ) WHEN - + 32 * - 52 + + CAST ( + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) - 95 * - 77 + - 52 THEN - 65 / 44 - - 4 + + - 89 WHEN - 34 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 13 * - 90 * - 99 AS col1
----
115830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4994
SELECT DISTINCT COALESCE ( + - CAST( NULL AS SIGNED ), + 71, - NULLIF ( - 85, + COUNT( * ) / 1 + 58 ) * 34 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT COALESCE ( + - CAST ( NULL AS INTEGER ), + 71, - NULLIF ( - 85, + COUNT ( * ) / 1 + 58 ) * 34 ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4995
SELECT + COALESCE ( + ( - - 83 ), 16 * 13 + - MIN( DISTINCT + - 62 ) + - - 4 + - ( + 4 ) DIV - COUNT( * ) * + COUNT( * ) DIV - + 3 ) + + 46
----
129

skipif mysql # not compatible
query I rowsort label-4995
SELECT + COALESCE ( + ( - - 83 ), 16 * 13 + - MIN ( DISTINCT + - 62 ) + - - 4 + - ( + 4 ) / - COUNT ( * ) * + COUNT ( * ) / - + 3 ) + + 46
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL COUNT( * ) - COALESCE ( 75, + 52 )
----
-74

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL COUNT ( * ) - COALESCE ( 75, + 52 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT + ( - ( + MAX( 52 ) ) ) + - COUNT( * ) * - + CASE + NULLIF ( - COUNT( * ), - + 65 * + 14 - - 85 ) WHEN 41 THEN NULLIF ( + 71, - + 31 - + MIN( ALL 91 ) ) WHEN + ( + 29 ) THEN - 20 * + 50 * - + 89 + + 34 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT + ( - ( + MAX ( 52 ) ) ) + - COUNT ( * ) * - + CASE + NULLIF ( - COUNT ( * ), - + 65 * + 14 - - 85 ) WHEN 41 THEN NULLIF ( + 71, - + 31 - + MIN ( ALL 91 ) ) WHEN + ( + 29 ) THEN - 20 * + 50 * - + 89 + + 34 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 30 + - - 39
----
69

query I rowsort
SELECT - 36 * 59 * - 86
----
182664

onlyif mysql # aggregate syntax: 
query II rowsort label-5000
SELECT ALL + COUNT( DISTINCT 81 ), - 48 - + - 12 + + - NULLIF ( + 42, + 88 + + 3 * + - 13 ) - + - COUNT( * ) AS col0
----
1
-77

skipif mysql # not compatible
query II rowsort label-5000
SELECT ALL + COUNT ( DISTINCT 81 ), - 48 - + - 12 + + - NULLIF ( + 42, + 88 + + 3 * + - 13 ) - + - COUNT ( * ) AS col0
----
1
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT - 0 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5001
SELECT - 0 * - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT - 59 + 63 * + MIN( + 47 )
----
2902

skipif mysql # not compatible
query I rowsort label-5002
SELECT - 59 + 63 * + MIN ( + 47 )
----
2902

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL + SUM( ALL - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + SUM ( ALL - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT - + 94 + + COUNT( * ) + - + 7 AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-5004
SELECT - + 94 + + COUNT ( * ) + - + 7 AS col2
----
-100

query I rowsort
SELECT - - 19 + ( 41 ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5006
SELECT ALL + COUNT( * ) * - 29, + 34 * 36 * CASE + 1 WHEN - MIN( + + 55 ) THEN CASE WHEN NOT NULL IS NULL THEN 5 END * - 52 * - + 70 + + 44 END AS col1
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-5006
SELECT ALL + COUNT ( * ) * - 29, + 34 * 36 * CASE + 1 WHEN - MIN ( + + 55 ) THEN CASE WHEN NOT NULL IS NULL THEN 5 END * - 52 * - + 70 + + 44 END AS col1
----
-29
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT DISTINCT + - MIN( ALL - CAST( - 32 AS SIGNED ) ) * + SUM( ALL + 87 )
----
-2784

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT + - MIN ( ALL - CAST ( - 32 AS INTEGER ) ) * + SUM ( ALL + 87 )
----
-2784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5008
SELECT DISTINCT + + SUM( ALL + + 37 ) * - 55 * - ( + 42 ) + - 73 + + CAST( + 23 AS SIGNED ) * + + 69 * - - 19 * - 17 col2
----
-427204

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT + + SUM ( ALL + + 37 ) * - 55 * - ( + 42 ) + - 73 + + CAST ( + 23 AS INTEGER ) * + + 69 * - - 19 * - 17 col2
----
-427204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5009
SELECT - CASE - + 37 WHEN + ( + - 3 ) THEN NULL WHEN - 42 * 63 + + 57 DIV 36 THEN COUNT( * ) * - 8 * + + 9 WHEN + 87 DIV CAST( 89 AS SIGNED ) THEN + COUNT( * ) ELSE - - MIN( + 40 ) END DIV 85 + + 55 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-5009
SELECT - CASE - + 37 WHEN + ( + - 3 ) THEN NULL WHEN - 42 * 63 + + 57 / 36 THEN COUNT ( * ) * - 8 * + + 9 WHEN + 87 / CAST ( 89 AS INTEGER ) THEN + COUNT ( * ) ELSE - - MIN ( + 40 ) END / 85 + + 55 AS col0
----
55

query I rowsort
SELECT DISTINCT + 6 AS col1
----
6

query I rowsort
SELECT + 0 + - + 59
----
-59

query I rowsort
SELECT - 44 * + 63 AS col2
----
-2772

query I rowsort
SELECT ALL + 98 * + 78 + 3 + - 96 + + 24 - - 3
----
7578

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT ALL - 34 * - ( + 6 ) + MIN( DISTINCT 32 ) * + - 84 + - 79
----
-2563

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL - 34 * - ( + 6 ) + MIN ( DISTINCT 32 ) * + - 84 + - 79
----
-2563

query I rowsort
SELECT - 76 * 21 AS col1
----
-1596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5016
SELECT DISTINCT + 19 * 32 * 80 + - - MAX( - 9 ) + - COUNT( * ) * COUNT( DISTINCT + 1 ) DIV - - 74 AS col2
----
48631

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT + 19 * 32 * 80 + - - MAX ( - 9 ) + - COUNT ( * ) * COUNT ( DISTINCT + 1 ) / - - 74 AS col2
----
48631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5017
SELECT ALL 27 * - 29 + 78 / AVG ( ALL + + CAST( + ( 55 ) AS DECIMAL ) ) + + CAST( NULL AS SIGNED ) + + - SUM( ( + - 67 ) ) - + - 80 + + CAST( NULL AS SIGNED ) * - 49 / NULLIF ( + - 83, + - 61 * - COUNT( * ) ) + - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL 27 * - 29 + 78 / AVG ( ALL + + CAST ( + ( 55 ) AS REAL ) ) + + CAST ( NULL AS INTEGER ) + + - SUM ( ( + - 67 ) ) - + - 80 + + CAST ( NULL AS INTEGER ) * - 49 / NULLIF ( + - 83, + - 61 * - COUNT ( * ) ) + - 37 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5018
SELECT ALL SUM( DISTINCT 29 ) * + CASE CASE - 13 WHEN - CASE + - COALESCE ( + 77, 34, + ( - 82 ) + - MAX( DISTINCT CAST( NULL AS SIGNED ) ) + + + 62 * + 87 + 54 + - + 61, + COUNT( * ) * + + 38 ) WHEN - - ( - + 84 ) + - - ( + 69 ) + + 78 THEN NULL WHEN 41 THEN COUNT( * ) * - CAST( NULL AS SIGNED ) + + 33 * 27 ELSE NULL END THEN + SUM( ALL 14 ) + 66 WHEN - 46 / + 76 THEN + 56 END WHEN - 61 THEN NULL WHEN ( - 2 ) * 36 THEN + 63 END / - CAST( 73 AS SIGNED ) + + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL SUM ( DISTINCT 29 ) * + CASE CASE - 13 WHEN - CASE + - COALESCE ( + 77, 34, + ( - 82 ) + - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + + + 62 * + 87 + 54 + - + 61, + COUNT ( * ) * + + 38 ) WHEN - - ( - + 84 ) + - - ( + 69 ) + + 78 THEN NULL WHEN 41 THEN COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 33 * 27 ELSE NULL END THEN + SUM ( ALL 14 ) + 66 WHEN - 46 / + 76 THEN + 56 END WHEN - 61 THEN NULL WHEN ( - 2 ) * 36 THEN + 63 END / - CAST ( 73 AS INTEGER ) + + 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5019
SELECT DISTINCT + COUNT( * ) DIV + 3 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT + COUNT ( * ) / + 3 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5020
SELECT - 42 + + 5 AS col1, COUNT( * )
----
-37
1

skipif mysql # not compatible
query II rowsort label-5020
SELECT - 42 + + 5 AS col1, COUNT ( * )
----
-37
1

query II rowsort
SELECT - 47 - + 77 + + 71 + + 80 * 23, 54 + + ( + 9 ) AS col1
----
1787
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5022
SELECT ALL 8 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL 8 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5023
SELECT ALL 6, + CAST( - 44 AS SIGNED ) AS col2
----
6
-44

skipif mysql # not compatible
query II rowsort label-5023
SELECT ALL 6, + CAST ( - 44 AS INTEGER ) AS col2
----
6
-44

query I rowsort
SELECT - COALESCE ( - ( - ( + 2 ) ), - + 24 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT + 90 + + COALESCE ( + 5, 22, + + COUNT( * ) + 16 ) - + 4
----
91

skipif mysql # not compatible
query I rowsort label-5025
SELECT + 90 + + COALESCE ( + 5, 22, + + COUNT ( * ) + 16 ) - + 4
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5026
SELECT + COALESCE ( - 47, - 39 * - 42 * - + COALESCE ( - 12, 35 DIV - 55 ) - + 70 * + + 75 + - 95 + + 83 ) * - + 44 * - COALESCE ( + + 48, - COALESCE ( - COUNT( * ), - - 70 + - 54 ) ), 83 + 41 + 50 * + 2 - + COUNT( * ) * + 40 * + COUNT( * ) AS col2
----
-99264
184

skipif mysql # not compatible
query II rowsort label-5026
SELECT + COALESCE ( - 47, - 39 * - 42 * - + COALESCE ( - 12, 35 / - 55 ) - + 70 * + + 75 + - 95 + + 83 ) * - + 44 * - COALESCE ( + + 48, - COALESCE ( - COUNT ( * ), - - 70 + - 54 ) ), 83 + 41 + 50 * + 2 - + COUNT ( * ) * + 40 * + COUNT ( * ) AS col2
----
-99264
184

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL MIN( DISTINCT - + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL MIN ( DISTINCT - + 6 )
----
-6

query I rowsort
SELECT + ( + 3 ) + + + 57 + + + 19
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL 72 - 93 + + SUM( + ( - 48 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL 72 - 93 + + SUM ( + ( - 48 ) )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5030
SELECT ( COALESCE ( + 45, 7 * + - COUNT( - - 95 ) DIV + + 60 + - - 13 - - 18 ) ) + + 58 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-5030
SELECT ( COALESCE ( + 45, 7 * + - COUNT ( - - 95 ) / + + 60 + - - 13 - - 18 ) ) + + 58 AS col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ( - - SUM( ALL + 79 ) ) + ( + + 54 ) * + + ( - SUM( + 21 ) ) * + 45 * CASE + + 2 WHEN + 63 THEN COUNT( * ) * - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT ( - - SUM ( ALL + 79 ) ) + ( + + 54 ) * + + ( - SUM ( + 21 ) ) * + 45 * CASE + + 2 WHEN + 63 THEN COUNT ( * ) * - - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5032
SELECT DISTINCT COUNT( * ) DIV + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT COUNT ( * ) / + 47 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT DISTINCT CASE MIN( ALL - - 53 ) WHEN 76 * - 51 * - - 93 THEN 64 ELSE NULL END / + ( - + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT CASE MIN ( ALL - - 53 ) WHEN 76 * - 51 * - - 93 THEN 64 ELSE NULL END / + ( - + 96 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT 31 DIV + 16 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5034
SELECT 31 / + 16 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5035
SELECT ( - CASE - + 68 WHEN - 41 - COUNT( * ) * - 23 * - - 60 THEN + 36 * - ( + CAST( NULL AS SIGNED ) ) END ) * + 59 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5035
SELECT ( - CASE - + 68 WHEN - 41 - COUNT ( * ) * - 23 * - - 60 THEN + 36 * - ( + CAST ( NULL AS INTEGER ) ) END ) * + 59 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT ALL ( + COUNT( * ) ) * 21 DIV 56 + - - 82
----
82

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL ( + COUNT ( * ) ) * 21 / 56 + - - 82
----
82

query II rowsort
SELECT DISTINCT - 89 AS col1, 82
----
-89
82

query I rowsort
SELECT ALL - ( + - 60 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5039
SELECT COUNT( * ) DIV - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5039
SELECT COUNT ( * ) / - 33 AS col0
----
0

query I rowsort
SELECT ALL 18 * + 28 col1
----
504

query I rowsort
SELECT DISTINCT - + 27 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT - 97 * - - 19 + + NULLIF ( + - COUNT( * ), + 48 ) + - COUNT( * ) * + 82 - COUNT( * ) * - 89
----
-1837

skipif mysql # not compatible
query I rowsort label-5042
SELECT - 97 * - - 19 + + NULLIF ( + - COUNT ( * ), + 48 ) + - COUNT ( * ) * + 82 - COUNT ( * ) * - 89
----
-1837

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT - MIN( DISTINCT - + 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5043
SELECT - MIN ( DISTINCT - + 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL + 18 + - - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL + 18 + - - COUNT ( * ) AS col0
----
19

query I rowsort
SELECT DISTINCT - 60 + - 15 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT COUNT( ALL + 47 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5046
SELECT COUNT ( ALL + 47 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5047
SELECT ALL - NULLIF ( - COUNT( * ), + 17 * - - MIN( CAST( NULL AS SIGNED ) ) - COUNT( * ) ) + - + 50 * - + 1 + 47 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL - NULLIF ( - COUNT ( * ), + 17 * - - MIN ( CAST ( NULL AS INTEGER ) ) - COUNT ( * ) ) + - + 50 * - + 1 + 47 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT DISTINCT - + COUNT( ALL - + 12 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT - + COUNT ( ALL - + 12 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5049
SELECT + - 49 col0, 26 * + 43 * - COUNT( DISTINCT + 6 )
----
-49
-1118

skipif mysql # not compatible
query II rowsort label-5049
SELECT + - 49 col0, 26 * + 43 * - COUNT ( DISTINCT + 6 )
----
-49
-1118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5050
SELECT ALL + - NULLIF ( - MAX( + - 76 ), - 76 ) + - CAST( + 8 AS SIGNED ) + + 58 - CAST( + MAX( DISTINCT + 60 ) AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL + - NULLIF ( - MAX ( + - 76 ), - 76 ) + - CAST ( + 8 AS INTEGER ) + + 58 - CAST ( + MAX ( DISTINCT + 60 ) AS INTEGER )
----
-86

query I rowsort
SELECT ALL + 75 * ( - + 38 ) + 90
----
-2760

query I rowsort
SELECT ALL - + ( - - 45 ) AS col1
----
-45

query II rowsort
SELECT + 79, - ( + 5 ) AS col1
----
79
-5

query I rowsort
SELECT + - 93 * - 17 - - 96 + - 39 col2
----
1638

onlyif mysql # aggregate syntax: 
query II rowsort label-5055
SELECT DISTINCT + 80 - + + COUNT( * ) AS col1, + 24 + - COUNT( * ) col0
----
79
23

skipif mysql # not compatible
query II rowsort label-5055
SELECT DISTINCT + 80 - + + COUNT ( * ) AS col1, + 24 + - COUNT ( * ) col0
----
79
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5056
SELECT ALL 61 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL 61 / - 81
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5057
SELECT 76 DIV 35
----
2

skipif mysql # not compatible
query I rowsort label-5057
SELECT 76 / 35
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT 12 * MIN( ALL - COALESCE ( 58, + 23 ) ) * + 55 * + COUNT( ALL - 80 ) AS col0
----
-38280

skipif mysql # not compatible
query I rowsort label-5058
SELECT 12 * MIN ( ALL - COALESCE ( 58, + 23 ) ) * + 55 * + COUNT ( ALL - 80 ) AS col0
----
-38280

query I rowsort
SELECT ALL - 54 * + 79 AS col1
----
-4266

query I rowsort
SELECT ALL ( 29 ) * - 21
----
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT COUNT( * ) * - + 2 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5061
SELECT COUNT ( * ) * - + 2 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL COUNT( * ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5063
SELECT 27 - NULLIF ( + 47, + 95 * 75 * + AVG ( + + 15 ) * - - 24 + - - COUNT( * ) ) AS col1, 41 + 12 - 77 - + COUNT( * ) * - - 47
----
-20
-71

skipif mysql # not compatible
query II rowsort label-5063
SELECT 27 - NULLIF ( + 47, + 95 * 75 * + AVG ( + + 15 ) * - - 24 + - - COUNT ( * ) ) AS col1, 41 + 12 - 77 - + COUNT ( * ) * - - 47
----
-20
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5064
SELECT ( - 22 ) * - CASE + COUNT( * ) WHEN - COUNT( * ) THEN 36 * - - 43 DIV - ( 99 ) ELSE + 53 END AS col2
----
1166

skipif mysql # not compatible
query I rowsort label-5064
SELECT ( - 22 ) * - CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN 36 * - - 43 / - ( 99 ) ELSE + 53 END AS col2
----
1166

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT + MAX( DISTINCT + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-5065
SELECT + MAX ( DISTINCT + 78 )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5066
SELECT ALL + SUM( ALL - + 72 ) * + 54 + + 65 AS col0, 0 * 20 AS col1
----
-3823
0

skipif mysql # not compatible
query II rowsort label-5066
SELECT ALL + SUM ( ALL - + 72 ) * + 54 + + 65 AS col0, 0 * 20 AS col1
----
-3823
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT - MAX( DISTINCT + + 48 ) * - - 81 * 1 + + 16 + - + 98 + + 84 + + + 88 * 3 + - 62
----
-3684

skipif mysql # not compatible
query I rowsort label-5067
SELECT - MAX ( DISTINCT + + 48 ) * - - 81 * 1 + + 16 + - + 98 + + 84 + + + 88 * 3 + - 62
----
-3684

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT + 69 - + + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5068
SELECT + 69 - + + COUNT ( * ) AS col2
----
68

query I rowsort
SELECT ALL 38 * 12 * - 55
----
-25080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5070
SELECT DISTINCT - - COUNT( * ) * 99 + - 41 DIV - - 94
----
99

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT - - COUNT ( * ) * 99 + - 41 / - - 94
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT COUNT( - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-5071
SELECT COUNT ( - 37 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5072
SELECT ALL 96 + 41 DIV + ( 61 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL 96 + 41 / + ( 61 ) AS col0
----
96

query I rowsort
SELECT DISTINCT - 28 + - 26 + + 59 + + 10 * 1 * 58 AS col2
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT ALL + - 90 + - COUNT( + 65 ) * - 23 * + 64 + + 20
----
1402

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL + - 90 + - COUNT ( + 65 ) * - 23 * + 64 + + 20
----
1402

onlyif mysql # DIV for integer division: 
query I rowsort label-5075
SELECT ALL 18 + - 57 DIV - - COALESCE ( 3, + 72, + - 48, + 22 ) + CASE - 29 WHEN + 74 THEN NULL ELSE - 92 DIV - 20 END * - 37
----
-149

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL 18 + - 57 / - - COALESCE ( 3, + 72, + - 48, + 22 ) + CASE - 29 WHEN + 74 THEN NULL ELSE - 92 / - 20 END * - 37
----
-149

query I rowsort
SELECT + - 74 col0
----
-74

query I rowsort
SELECT + ( - - 32 ) AS col0
----
32

query I rowsort
SELECT 26 * - + 50 + 44
----
-1256

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT + 2 * COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5079
SELECT + 2 * COUNT ( * ) AS col2
----
2

query I rowsort
SELECT - ( + 23 ) + + 5 col0
----
-18

query I rowsort
SELECT ALL + 45 - - 5 * + 95
----
520

query I rowsort
SELECT + 15 * ( 12 )
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT + NULLIF ( + COUNT( * ), 50 + - + CASE + 38 WHEN + 13 THEN + 95 WHEN - CASE + 34 WHEN - 54 THEN NULL WHEN 84 + - 77 + + 9 * + 88 * + 63 THEN - 42 ELSE + + 3 END THEN 32 ELSE MIN( - 24 ) * - 13 - + 88 END )
----
1

skipif mysql # not compatible
query I rowsort label-5083
SELECT + NULLIF ( + COUNT ( * ), 50 + - + CASE + 38 WHEN + 13 THEN + 95 WHEN - CASE + 34 WHEN - 54 THEN NULL WHEN 84 + - 77 + + 9 * + 88 * + 63 THEN - 42 ELSE + + 3 END THEN 32 ELSE MIN ( - 24 ) * - 13 - + 88 END )
----
1

query I rowsort
SELECT ALL - - 68 col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL + COUNT( ALL 68 ) - 79
----
-78

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL + COUNT ( ALL 68 ) - 79
----
-78

query I rowsort
SELECT ALL - ( + + 34 )
----
-34

query I rowsort
SELECT DISTINCT 97 - + 97
----
0

query I rowsort
SELECT + ( - - 61 ) * 6 + - + 34 AS col0
----
332

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT 67 * + NULLIF ( - ( + MAX( + - 69 ) ), - - MAX( ALL 72 ) * + ( - + COUNT( * ) ) ) * - 55 * 70 AS col1
----
-17798550

skipif mysql # not compatible
query I rowsort label-5089
SELECT 67 * + NULLIF ( - ( + MAX ( + - 69 ) ), - - MAX ( ALL 72 ) * + ( - + COUNT ( * ) ) ) * - 55 * 70 AS col1
----
-17798550

query I rowsort
SELECT 2 * - 58
----
-116

query I rowsort
SELECT - CASE 14 WHEN + 20 / - 38 THEN - 20 WHEN - 28 + - 34 THEN - - 68 WHEN + 33 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL MIN( + CASE + 71 WHEN - 40 + ( + 31 ) THEN NULL WHEN - 14 * - 81 THEN 96 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL MIN ( + CASE + 71 WHEN - 40 + ( + 31 ) THEN NULL WHEN - 14 * - 81 THEN 96 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT + 90 - + + 22 AS col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT - 96 DIV + 38
----
-2

skipif mysql # not compatible
query I rowsort label-5094
SELECT - 96 / + 38
----
-2

query II rowsort
SELECT - 7 + + ( + 8 ) col2, 48 + + - 37 * - + 74
----
1
2786

query I rowsort
SELECT - 13 - 15
----
-28

query I rowsort
SELECT ALL - ( - 89 ) + ( - 56 ) col0
----
33

query I rowsort
SELECT - 77 + + 40 * 70 + - COALESCE ( - - 9, + 69, + 87 )
----
2714

query I rowsort
SELECT ALL + CASE + 15 WHEN 20 THEN + - 79 ELSE NULL END + + 14
----
NULL

query I rowsort
SELECT - 53 + + 67
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5101
SELECT ALL - 32 DIV COUNT( * ) * - ( + 20 ) * 52
----
33280

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL - 32 / COUNT ( * ) * - ( + 20 ) * 52
----
33280

onlyif mysql # DIV for integer division: 
query I rowsort label-5102
SELECT - 24 DIV + 23 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5102
SELECT - 24 / + 23 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5103
SELECT - 41 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT - 41 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5104
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT - 93 + 60 col1
----
-33

query I rowsort
SELECT COALESCE ( - - 90, - ( + 19 ) ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT ALL - CASE - 86 WHEN + COUNT( * ) + 27 THEN COUNT( * ) WHEN - 15 * + 19 - + + 22 THEN NULL END + 71 + - 6 + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - CASE - 86 WHEN + COUNT ( * ) + 27 THEN COUNT ( * ) WHEN - 15 * + 19 - + + 22 THEN NULL END + 71 + - 6 + + 72
----
NULL

query II rowsort
SELECT - 50 AS col1, 64 AS col2
----
-50
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5109
SELECT + - NULLIF ( - CAST( - 80 AS SIGNED ), + 18 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-5109
SELECT + - NULLIF ( - CAST ( - 80 AS INTEGER ), + 18 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT ALL + + CASE - + MIN( + + 15 ) WHEN - 77 THEN NULL WHEN + 48 * + - 0 THEN + + 41 * 33 - 99 ELSE - 29 + + 40 END AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL + + CASE - + MIN ( + + 15 ) WHEN - 77 THEN NULL WHEN + 48 * + - 0 THEN + + 41 * 33 - 99 ELSE - 29 + + 40 END AS col1
----
11

query I rowsort
SELECT ALL + - 63
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-5112
SELECT - + COUNT( * ) * 73 * + 29, - 58 * - - 10 AS col1
----
-2117
-580

skipif mysql # not compatible
query II rowsort label-5112
SELECT - + COUNT ( * ) * 73 * + 29, - 58 * - - 10 AS col1
----
-2117
-580

query I rowsort
SELECT + - 48 col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5114
SELECT + CASE + - 29 WHEN CAST( NULL AS SIGNED ) THEN CAST( NULL AS SIGNED ) END * - 80 * CAST( NULL AS SIGNED ), 70 AS col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-5114
SELECT + CASE + - 29 WHEN CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) END * - 80 * CAST ( NULL AS INTEGER ), 70 AS col0
----
NULL
70

query I rowsort
SELECT + NULLIF ( + 84, 49 / - 62 * + - 58 * 54 ) * - 21
----
-1764

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT ALL 79 * SUM( DISTINCT - 74 )
----
-5846

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL 79 * SUM ( DISTINCT - 74 )
----
-5846

query I rowsort
SELECT + 62 * - 41 - 70
----
-2612

query I rowsort
SELECT 99 * + 15 * + + 8 - - COALESCE ( + - 14, 48, 77 )
----
11866

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5119
SELECT + COUNT( * ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-5119
SELECT + COUNT ( * ) / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT + 44 * + ( SUM( + 91 ) ) AS col0
----
4004

skipif mysql # not compatible
query I rowsort label-5120
SELECT + 44 * + ( SUM ( + 91 ) ) AS col0
----
4004

query I rowsort
SELECT ALL 49 * - 77 AS col1
----
-3773

query I rowsort
SELECT + 20 * + ( + + 85 )
----
1700

query I rowsort
SELECT ALL 26 * - - ( - 80 )
----
-2080

query I rowsort
SELECT COALESCE ( + 47, - 9 )
----
47

query I rowsort
SELECT - 13 + - - 30
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT + 84 * MIN( DISTINCT 39 )
----
3276

skipif mysql # not compatible
query I rowsort label-5126
SELECT + 84 * MIN ( DISTINCT 39 )
----
3276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT ALL CAST( + - 80 AS SIGNED ) * ( - 71 ) + - - ( + 97 ) * 75 + + 66 + - 20 + ( - + MIN( 29 ) ) + - + 96 * - 48 * + MIN( + 66 ) * + COUNT( * ) + 54 * - + 0 * - COUNT( * )
----
317100

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL CAST ( + - 80 AS INTEGER ) * ( - 71 ) + - - ( + 97 ) * 75 + + 66 + - 20 + ( - + MIN ( 29 ) ) + - + 96 * - 48 * + MIN ( + 66 ) * + COUNT ( * ) + 54 * - + 0 * - COUNT ( * )
----
317100

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT SUM( - 24 ) col0
----
-24

skipif mysql # not compatible
query I rowsort label-5128
SELECT SUM ( - 24 ) col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT SUM( - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-5129
SELECT SUM ( - 98 )
----
-98

query II rowsort
SELECT DISTINCT 74 AS col2, - 56 AS col1
----
74
-56

query I rowsort
SELECT - 54 * + + 22 AS col0
----
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT COUNT( 88 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5132
SELECT COUNT ( 88 ) col0
----
1

query I rowsort
SELECT ALL ( + 42 ) + + + 78
----
120

query I rowsort
SELECT + 42 - 67
----
-25

query I rowsort
SELECT + 18 - - + 22 + 16 AS col1
----
56

query I rowsort
SELECT - 24 * - + 82 AS col1
----
1968

query I rowsort
SELECT DISTINCT - 19 * + 68 * + 4
----
-5168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT - CAST( + 20 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-5138
SELECT - CAST ( + 20 AS INTEGER )
----
-20

query I rowsort
SELECT ALL + 89 + - 53
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT DISTINCT CASE 62 WHEN + SUM( DISTINCT - 34 ) THEN - + 56 + 2 END + - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT CASE 62 WHEN + SUM ( DISTINCT - 34 ) THEN - + 56 + 2 END + - 49 AS col2
----
NULL

query II rowsort
SELECT 45, 69 AS col2
----
45
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5142
SELECT ALL - 39 + - 90 + - 44 + + CAST( NULL AS DECIMAL ) * + 33 * - 71 * + NULLIF ( + + 47, - - 75 + + - 57 + + CASE + + 61 WHEN - 5 THEN - 63 + + 91 ELSE NULL END + + 38 * + 70 * 8 ) * 28 / - - ( - - 13 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL - 39 + - 90 + - 44 + + CAST ( NULL AS REAL ) * + 33 * - 71 * + NULLIF ( + + 47, - - 75 + + - 57 + + CASE + + 61 WHEN - 5 THEN - 63 + + 91 ELSE NULL END + + 38 * + 70 * 8 ) * 28 / - - ( - - 13 ) col0
----
NULL

query I rowsort
SELECT - - 34 - - - 25 + 5
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT ALL + COALESCE ( COUNT( * ), + 97 )
----
1

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL + COALESCE ( COUNT ( * ), + 97 )
----
1

query II rowsort
SELECT ALL 68, ( + 96 ) AS col0
----
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5146
SELECT + 57 * COUNT( * ) * ( COUNT( * ) ) AS col2, + ( 48 ) DIV - 3 AS col1
----
57
-16

skipif mysql # not compatible
query II rowsort label-5146
SELECT + 57 * COUNT ( * ) * ( COUNT ( * ) ) AS col2, + ( 48 ) / - 3 AS col1
----
57
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT - SUM( ALL 92 ) + + 79
----
-13

skipif mysql # not compatible
query I rowsort label-5147
SELECT - SUM ( ALL 92 ) + + 79
----
-13

query I rowsort
SELECT - 44 * + CASE - - ( + NULLIF ( - ( - 79 ), 18 ) ) WHEN - 60 THEN + 70 END AS col0
----
NULL

query I rowsort
SELECT - 84 + + 73 col0
----
-11

query I rowsort
SELECT ALL - - 6 * - 96 * 90
----
-51840

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT - + 7 * - 34 * - COUNT( * ) * - 67 AS col0
----
15946

skipif mysql # not compatible
query I rowsort label-5151
SELECT - + 7 * - 34 * - COUNT ( * ) * - 67 AS col0
----
15946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT + - 81 / + + 94 * - + 39 - + 77 * 1 / + 71 + - ( - + 48 ) + + 69 + + 21 * - 14 / + - 50 * - 23 - - + CAST( NULL AS SIGNED ) + - 12 / + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT + - 81 / + + 94 * - + 39 - + 77 * 1 / + 71 + - ( - + 48 ) + + 69 + + 21 * - 14 / + - 50 * - 23 - - + CAST ( NULL AS INTEGER ) + - 12 / + + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - + 57 + MAX( ( - 53 ) ) + 42 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5153
SELECT - + 57 + MAX ( ( - 53 ) ) + 42 AS col1
----
-68

query I rowsort
SELECT ALL - 52 * - 3 * - - 3
----
468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5155
SELECT + COUNT( * ) * - + COUNT( - - 50 ) + COUNT( DISTINCT 61 ) * - 48 + - COUNT( * ) * - MAX( ALL + 21 ) + - CAST( NULL AS SIGNED ) + + 30 +